Skip to content

docker build (sometimes?) times out #1397

@marten-seemann

Description

@marten-seemann

Version information:

Running on commit e02c78f on a M1 Macbook Pro.

Description:

Trying to run the new libp2p ping plan on my local machine, I sometimes get docker build timeouts. Sometimes I get other errors (will open a separate issue).

testground run composition -f ./_compositions/go-cross-versions.toml --collect --wait
Jul 26 12:58:25.792269	INFO	using home directory: /Users/marten/testground
Jul 26 12:58:25.792326	INFO	no .env.toml found at /Users/marten/testground/.env.toml; running with defaults
Jul 26 12:58:25.792329	INFO	testground client initialized	{"addr": "http://localhost:8042"}

>>> Result:

Jul 26 12:58:25.809826	INFO	run is queued with ID: cbfu9sev9mcd0j0l1ps0

>>> Server output:

Jul 26 12:58:25.921869	INFO	performing build for groups	{"plan": "ping", "groups": ["v0.19"], "builder": "docker:go"}
Jul 26 12:58:25.921885	INFO	performing build for groups	{"plan": "ping", "groups": ["v0.20"], "builder": "docker:go"}
Jul 26 12:58:25.921888	INFO	performing build for groups	{"plan": "ping", "groups": ["v0.11"], "builder": "docker:go"}
Jul 26 12:58:25.921850	INFO	performing build for groups	{"plan": "ping", "groups": ["master"], "builder": "docker:go"}
Jul 26 12:58:25.921849	INFO	performing build for groups	{"plan": "ping", "groups": ["v0.17"], "builder": "docker:go"}
Jul 26 12:58:25.922009	INFO	[go_proxy_mode=remote] using url: https://proxy.golang.org
Jul 26 12:58:25.922077	INFO	[go_proxy_mode=remote] using url: https://proxy.golang.org
Jul 26 12:58:25.922102	INFO	[go_proxy_mode=remote] using url: https://proxy.golang.org
Jul 26 12:58:25.922130	INFO	[go_proxy_mode=remote] using url: https://proxy.golang.org
Jul 26 12:58:25.922185	INFO	[go_proxy_mode=remote] using url: https://proxy.golang.org
Step 1/29 : ARG BUILD_BASE_IMAGE
Step 2/29 : ARG RUNTIME_IMAGE=busybox:1.31.1-glibc
Step 3/29 : FROM ${BUILD_BASE_IMAGE} AS builder
Step 1/29 : ARG BUILD_BASE_IMAGE
Step 2/29 : ARG RUNTIME_IMAGE=busybox:1.31.1-glibc
Step 3/29 : FROM ${BUILD_BASE_IMAGE} AS builder
 ---> 028d102f774a
Step 4/29 : ARG PLAN_PATH
Step 1/29 : ARG BUILD_BASE_IMAGE
Step 2/29 : ARG RUNTIME_IMAGE=busybox:1.31.1-glibc
Step 3/29 : FROM ${BUILD_BASE_IMAGE} AS builder
 ---> e2983818360c
Step 4/29 : ARG PLAN_PATH
 ---> Using cache
 ---> 025a517f6bf1
Step 5/29 : ENV PLAN_DIR /plan/${PLAN_PATH}
 ---> Using cache
 ---> 7b87b1bcce05
Step 6/29 : ENV SDK_DIR /sdk
 ---> Using cache
 ---> ee33b092edf1
Step 7/29 : RUN rm -rf ${PLAN_DIR} ${SDK_DIR} /testground_dep_list
 ---> Using cache
 ---> d4668b99589a
Step 8/29 : ARG TESTPLAN_EXEC_PKG="."
 ---> Using cache
 ---> 88d1b40f03d0
Step 9/29 : ARG GO_PROXY=direct
 ---> Using cache
 ---> 7cd507a5fc30
Step 10/29 : ARG BUILD_TAGS
 ---> Using cache
 ---> 49405356e31f
Step 11/29 : ENV TESTPLAN_EXEC_PKG ${TESTPLAN_EXEC_PKG}
 ---> Using cache
 ---> d07fe5e16207
Step 12/29 : ENV GOCACHE /go/cache
 ---> Using cache
 ---> 639cc4bc7e97
Step 13/29 : ARG MODFILE="go.mod"
 ---> Using cache
 ---> 9c169ad78649
Step 14/29 : ARG MODFILE_SUM="go.sum"
 ---> Using cache
 ---> 46515860a8f6
Step 15/29 : COPY /plan/${PLAN_PATH}/${MODFILE} ${PLAN_DIR}/go.mod
Step 1/29 : ARG BUILD_BASE_IMAGE
Step 2/29 : ARG RUNTIME_IMAGE=busybox:1.31.1-glibc
Step 3/29 : FROM ${BUILD_BASE_IMAGE} AS builder
Step 1/30 : ARG BUILD_BASE_IMAGE
Step 2/30 : ARG RUNTIME_IMAGE=busybox:1.31.1-glibc
Step 3/30 : FROM ${BUILD_BASE_IMAGE} AS builder
 ---> e2983818360c
Step 4/30 : ARG PLAN_PATH
 ---> Using cache
 ---> 025a517f6bf1
Step 5/30 : ENV PLAN_DIR /plan/${PLAN_PATH}
 ---> Using cache
 ---> 7b87b1bcce05
Step 6/30 : ENV SDK_DIR /sdk
 ---> Using cache
 ---> ee33b092edf1
Step 7/30 : RUN rm -rf ${PLAN_DIR} ${SDK_DIR} /testground_dep_list
 ---> Using cache
 ---> d4668b99589a
Step 8/30 : ARG TESTPLAN_EXEC_PKG="."
 ---> Using cache
 ---> 88d1b40f03d0
Step 9/30 : ARG GO_PROXY=direct
 ---> Using cache
 ---> 7cd507a5fc30
Step 10/30 : ARG BUILD_TAGS
 ---> Using cache
 ---> 49405356e31f
Step 11/30 : ENV TESTPLAN_EXEC_PKG ${TESTPLAN_EXEC_PKG}
 ---> Using cache
 ---> d07fe5e16207
Step 12/30 : ENV GOCACHE /go/cache
 ---> Using cache
 ---> 639cc4bc7e97
Step 13/30 : ARG MODFILE="go.mod"
 ---> Using cache
 ---> 9c169ad78649
Step 14/30 : ARG MODFILE_SUM="go.sum"
 ---> Using cache
 ---> 46515860a8f6
Step 15/30 : COPY /plan/${PLAN_PATH}/${MODFILE} ${PLAN_DIR}/go.mod
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in b55a0ba86a03
 ---> b47de0b8ea87
Step 16/29 : COPY /plan/${PLAN_PATH}/${MODFILE_SUM} ${PLAN_DIR}/go.sum
 ---> 7389501cba99
Step 5/29 : ENV PLAN_DIR /plan/${PLAN_PATH}
 ---> 7feedcf05e40
Step 16/30 : COPY /plan/${PLAN_PATH}/${MODFILE_SUM} ${PLAN_DIR}/go.sum
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in f5ad7855f698
 ---> 9605e07dbe47
Step 17/29 : RUN echo "Using go proxy: ${GO_PROXY}"     && cd ${PLAN_DIR}     && go env -w GOPROXY="${GO_PROXY}"     && go mod download
 ---> 3654d9a02bb3
Step 6/29 : ENV SDK_DIR /sdk
 ---> 7af21fa4c213
Step 17/30 : RUN echo "Using go proxy: ${GO_PROXY}"     && cd ${PLAN_DIR}     && go env -w GOPROXY="${GO_PROXY}"     && go mod download
 ---> Running in 08826adfbbf6
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in 4dcd7818b0ff
 ---> Running in 68084d0e7ace
 ---> 75f64ac69f85
Step 7/29 : RUN rm -rf ${PLAN_DIR} ${SDK_DIR} /testground_dep_list
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in 4adad9b7de18
Using go proxy: https://proxy.golang.org
Using go proxy: https://proxy.golang.org
 ---> 35056334da40
Step 8/29 : ARG TESTPLAN_EXEC_PKG="."
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in 4373bda9145f
 ---> 86659c82e037
Step 9/29 : ARG GO_PROXY=direct
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in 871e8d6567fb
1.14-buster:
1.17-buster:
 ---> bb43d50f405c
Step 10/29 : ARG BUILD_TAGS
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in 05d366e9fc6f
 ---> 64ecce1dfc45
Step 11/29 : ENV TESTPLAN_EXEC_PKG ${TESTPLAN_EXEC_PKG}
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in 847693a5b994
 ---> 192148ddae2e
Step 12/29 : ENV GOCACHE /go/cache
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in c51cfa4efa13
c78c297fb0d0:
06af62193c25:
8b846e1b7390:
fb44d26a138a:
d638b6994818:
c83562ffe1b7:
6dab3a1d9481:
d638b6994818:
c83562ffe1b7:
6dab3a1d9481:
fb44d26a138a:
891a1587d364:
 ---> 97408e8c6bd1
Step 13/29 : ARG MODFILE="go.mod"
6a5d1ed6a27d:
1186afd5d5e8:
a5359768b018:
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in 2b1f6c712fe8
faa18f8501e4:
b9ea777faa3b:
9d5577adfe44:
b9ea777faa3b:
9d5577adfe44:
 ---> d1dc6afea23e
Step 14/29 : ARG MODFILE_SUM="go.sum"
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in 99249f7568ac
 ---> b2e0d9241732
Step 15/29 : COPY /plan/${PLAN_PATH}/${MODFILE} ${PLAN_DIR}/go.mod
 ---> 3873aa1871f2
Step 16/29 : COPY /plan/${PLAN_PATH}/${MODFILE_SUM} ${PLAN_DIR}/go.sum
 ---> 270ba049a83e
Step 17/29 : RUN echo "Using go proxy: ${GO_PROXY}"     && cd ${PLAN_DIR}     && go env -w GOPROXY="${GO_PROXY}"     && go mod download
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in bf1e3b410706
Using go proxy: https://proxy.golang.org
 ---> 0158e6deded2
Step 18/30 : RUN cp ${PLAN_DIR}/go.mod ${PLAN_DIR}/go.sum /tmp/
 ---> Running in 035a8d856069
 ---> 370b0d716012
Step 19/30 : COPY . /
 ---> a907b2476524
Step 20/30 : RUN cp /tmp/go.mod /tmp/go.sum ${PLAN_DIR}/
 ---> Running in 6c3dcc830d22
 ---> 45d81034ae25
Step 21/30 : RUN cd ${PLAN_DIR} && go mod download github.com/libp2p/go-libp2p && go mod tidy -compat=1.18
 ---> Running in 9ae209c57714
go: downloading github.com/stretchr/testify v1.8.0
go: downloading gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c
go: downloading go.uber.org/goleak v1.1.12
go: downloading github.com/libp2p/go-libp2p-testing v0.11.0
go: downloading github.com/golang/mock v1.6.0
go: downloading gopkg.in/yaml.v2 v2.4.0
go: downloading github.com/gin-gonic/gin v1.6.3
go: downloading github.com/gobwas/ws v1.0.2
go: downloading github.com/google/uuid v1.3.0
go: downloading github.com/davecgh/go-spew v1.1.1
go: downloading github.com/coreos/go-semver v0.3.0
go: downloading github.com/mikioh/tcp v0.0.0-20190314235350-803a9b46060c
go: downloading github.com/kr/pretty v0.2.1
go: downloading github.com/onsi/gomega v1.13.0
go: downloading github.com/pmezard/go-difflib v1.0.0
go: downloading gopkg.in/yaml.v3 v3.0.1
go: downloading github.com/google/go-cmp v0.5.5
go: downloading github.com/decred/dcrd/crypto/blake256 v1.0.0
go: downloading github.com/ipfs/go-detect-race v0.0.1
go: downloading github.com/gin-contrib/sse v0.1.0
go: downloading github.com/gobwas/httphead v0.0.0-20180130184737-2c6c146eadee
go: downloading github.com/gobwas/pool v0.2.0
go: downloading github.com/kr/text v0.2.0
go: downloading github.com/go-playground/validator/v10 v10.3.0
go: downloading github.com/json-iterator/go v1.1.12
go: downloading github.com/ugorji/go/codec v1.1.7
go: downloading github.com/marten-seemann/qtls-go1-19 v0.1.0-beta.1
go: downloading golang.org/x/text v0.3.7
go: downloading github.com/ugorji/go v1.1.7
go: downloading github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd
go: downloading github.com/modern-go/reflect2 v1.0.2
go: downloading github.com/go-playground/universal-translator v0.17.0
go: downloading github.com/leodido/go-urn v1.2.0
go: downloading github.com/go-playground/locales v0.13.0
 ---> 2a4bb0517010
Step 18/29 : RUN cp ${PLAN_DIR}/go.mod ${PLAN_DIR}/go.sum /tmp/
 ---> Running in 917de0ecd6b3
 ---> 3e5c2c3284b4
Step 19/29 : COPY . /
 ---> 788806e92fe2
Step 20/29 : RUN cp /tmp/go.mod /tmp/go.sum ${PLAN_DIR}/
 ---> Running in 64c1c3dda286
 ---> 46aaa4f53251
Step 21/29 : RUN cd ${PLAN_DIR}     && go env -w GOPROXY="${GO_PROXY}"     && CGO_ENABLED=${CgoEnabled} GOOS=linux go build -o ${PLAN_DIR}/testplan.bin ${BUILD_TAGS} ${TESTPLAN_EXEC_PKG}
 ---> Running in 59ca9e62db89
 ---> 3e6c88ff66b1
Step 22/30 : RUN cd ${PLAN_DIR}     && go env -w GOPROXY="${GO_PROXY}"     && CGO_ENABLED=${CgoEnabled} GOOS=linux go build -o ${PLAN_DIR}/testplan.bin ${BUILD_TAGS} ${TESTPLAN_EXEC_PKG}
 ---> Running in f5d7286d4ff1
 ---> d0f75b04851f
Step 22/29 : RUN cd ${PLAN_DIR}   && go list -m all > /testground_dep_list
 ---> Running in dae00a573ba2
 ---> e6e6556e3fe3
Step 23/30 : RUN cd ${PLAN_DIR}   && go list -m all > /testground_dep_list
 ---> Running in 6ead3bb45cff
 ---> 69636b128609
 ---> 69636b128609
Step 23/29 : FROM ${RUNTIME_IMAGE} AS runtime
 ---> 7a2331af2292
Step 24/29 : ARG PLAN_PATH
 ---> Using cache
 ---> b96442bb4b0c
Step 25/29 : ENV PLAN_DIR /plan/${PLAN_PATH}
 ---> Using cache
 ---> 4813b1f51303
Step 26/29 : COPY --from=builder /testground_dep_list /
 ---> 83c7dbcd801e
Step 27/29 : COPY --from=builder ${PLAN_DIR}/testplan.bin /testplan
 ---> 8f7c3f7059dd
Step 28/29 : EXPOSE 6060
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in cb3deae36b44
 ---> d7155a05f950
Step 29/29 : ENTRYPOINT [ "/testplan"]
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in 8aa02fd623f1
 ---> d15650c10ddf
 ---> d15650c10ddf
Successfully built d15650c10ddf
Successfully tagged b8460e16f66f:latest
Jul 26 13:02:25.891780	INFO	build completed	{"default_tag": "b8460e16f66f:latest", "took": "3m59s"}
Jul 26 13:02:25.944596	INFO	got docker image id	{"image_id": "d15650c10ddf"}
Jul 26 13:02:26.117148	INFO	tagging image	{"image_id": "d15650c10ddf", "tag": "tg-plan-ping:d15650c10ddf"}
Jul 26 13:02:26.124112	INFO	build succeeded	{"plan": "ping", "groups": ["v0.20"], "builder": "docker:go", "artifact": "d15650c10ddf"}
 ---> 4301b1539af3
 ---> 4301b1539af3
Step 24/30 : FROM ${RUNTIME_IMAGE} AS runtime
 ---> 7a2331af2292
Step 25/30 : ARG PLAN_PATH
 ---> Using cache
 ---> b96442bb4b0c
Step 26/30 : ENV PLAN_DIR /plan/${PLAN_PATH}
 ---> Using cache
 ---> 4813b1f51303
Step 27/30 : COPY --from=builder /testground_dep_list /
 ---> f4ff0a9c3873
Step 28/30 : COPY --from=builder ${PLAN_DIR}/testplan.bin /testplan
 ---> 626ccea09100
Step 29/30 : EXPOSE 6060
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in 9b040b6d2051
 ---> 717bf5e52bec
Step 30/30 : ENTRYPOINT [ "/testplan"]
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in 532088a7fd81
 ---> 42626839eabf
 ---> 42626839eabf
Successfully built 42626839eabf
Successfully tagged c771eeba2d87:latest
Jul 26 13:02:29.669228	INFO	build completed	{"default_tag": "c771eeba2d87:latest", "took": "4m3s"}
Jul 26 13:02:29.716431	INFO	got docker image id	{"image_id": "42626839eabf"}
Jul 26 13:02:29.831830	INFO	tagging image	{"image_id": "42626839eabf", "tag": "tg-plan-ping:42626839eabf"}
Jul 26 13:02:29.838255	INFO	build succeeded	{"plan": "ping", "groups": ["master"], "builder": "docker:go", "artifact": "42626839eabf"}
 ---> d4ec34c22831
Step 18/29 : RUN cp ${PLAN_DIR}/go.mod ${PLAN_DIR}/go.sum /tmp/
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in 0bb25a8fea4e
 ---> 49a9f2158a72
Step 19/29 : COPY . /
 ---> 8eb9d6d3db5f
Step 20/29 : RUN cp /tmp/go.mod /tmp/go.sum ${PLAN_DIR}/
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in ce37ac7521cf
 ---> 96d73631f600
Step 21/29 : RUN cd ${PLAN_DIR}     && go env -w GOPROXY="${GO_PROXY}"     && CGO_ENABLED=${CgoEnabled} GOOS=linux go build -o ${PLAN_DIR}/testplan.bin ${BUILD_TAGS} ${TESTPLAN_EXEC_PKG}
 ---> [Warning] The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
 ---> Running in 3a78a7745488
Jul 26 13:08:25.919631	INFO	build failed	{"plan": "ping", "groups": ["v0.19"], "builder": "docker:go", "error": "docker build failed: context deadline exceeded"}
Jul 26 13:08:25.926013	INFO	build failed	{"plan": "ping", "groups": ["v0.11"], "builder": "docker:go", "error": "docker build failed: context deadline exceeded"}
Jul 26 13:08:25.926008	INFO	build failed	{"plan": "ping", "groups": ["v0.17"], "builder": "docker:go", "error": "docker build failed: context deadline exceeded"}

>>> Result:

docker build failed: context deadline exceeded

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions