moby / moby/buildkit

flaky test: TestCacheMultiPlatformImportExport

Open
#3,370 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/testing
Dominant language
Go
Stars
10.3k
Forks
1.5k
Avg merge
1d 21h
Merged PRs (30d)
50

Description

related to https://github.com/moby/buildkit/pull/3368#issuecomment-1340624496

https://github.com/moby/buildkit/actions/runs/3634255842/jobs/6132922905#step:6:1372

2022-12-07T00:23:31.8763585Z === CONT  TestIntegration/TestCacheMultiPlatformImportExport/worker=oci-rootless/frontend=client
2022-12-07T00:23:31.8766516Z     dockerfile_test.go:4000: 
2022-12-07T00:23:31.8768823Z         	Error Trace:	/src/frontend/dockerfile/dockerfile_test.go:4000
2022-12-07T00:23:31.8771276Z         	            				/src/frontend/dockerfile/run.go:86
2022-12-07T00:23:31.8772043Z         	            				/src/frontend/dockerfile/run.go:195
2022-12-07T00:23:31.8772357Z         	Error:      	Received unexpected error:
2022-12-07T00:23:31.8772692Z         	            	rpc error: code = Unavailable desc = error reading from server: EOF
2022-12-07T00:23:31.8773022Z         	            	failed to receive status
2022-12-07T00:23:31.8773317Z         	            	github.com/moby/buildkit/client.(*Client).solve.func4
2022-12-07T00:23:31.8773862Z         	            		/src/client/solve.go:306
2022-12-07T00:23:31.8774154Z         	            	golang.org/x/sync/errgroup.(*Group).Go.func1
2022-12-07T00:23:31.8774510Z         	            		/src/vendor/golang.org/x/sync/errgroup/errgroup.go:75
2022-12-07T00:23:31.8774787Z         	            	runtime.goexit
2022-12-07T00:23:31.8775040Z         	            		/usr/local/go/src/runtime/asm_amd64.s:1594
2022-12-07T00:23:31.8775717Z         	Test:       	TestIntegration/TestCacheMultiPlatformImportExport/worker=oci-rootless/frontend=client
2022-12-07T00:23:31.8776088Z     sandbox.go:234: stdout: /usr/bin/sudo
2022-12-07T00:23:31.8776328Z     sandbox.go:234: stderr: /usr/bin/sudo
2022-12-07T00:23:31.8777702Z     sandbox.go:237: > startCmd 2022-12-07 00:23:30.640519571 +0000 UTC m=+56.680106333 [sudo -u #1000 -i -- exec rootlesskit buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config4040588246/buildkitd.toml --root /tmp/bktest_buildkitd2739643242 --addr unix:///tmp/bktest_buildkitd2739643242/buildkitd.sock --debug]
2022-12-07T00:23:31.8778678Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=info msg="auto snapshotter: using overlayfs"
2022-12-07T00:23:31.8779239Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=debug msg="running in rootless mode"
2022-12-07T00:23:31.8781120Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=info msg="found worker \"ipp9aqc4xgeko2aas14rbw868\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:72b9e3504481 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/amd64/v4 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/mips64le linux/mips64 linux/arm/v7 linux/arm/v6]"
2022-12-07T00:23:31.8782603Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=info msg="found 1 workers, default=\"ipp9aqc4xgeko2aas14rbw868\""
2022-12-07T00:23:31.8783167Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=warning msg="currently, only the default worker can be used."
2022-12-07T00:23:31.8783743Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=info msg="running server on /tmp/bktest_buildkitd2739643242/buildkitd.sock"
2022-12-07T00:23:31.8784248Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=debug msg="session started"
2022-12-07T00:23:31.8784734Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=debug msg="skipping invalid cache export mode: "
2022-12-07T00:23:31.8785355Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=debug msg="new ref for local: xzjkqluiar6uipu2g6qo6m9lh" span="[internal] load .dockerignore"
2022-12-07T00:23:31.8785952Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=debug msg="diffcopy took: 1.304327ms" span="[internal] load .dockerignore"
2022-12-07T00:23:31.8786615Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=debug msg="new ref for local: zn6prg263cv39h9frz4ov9ig5" span="[internal] load build definition from Dockerfile"
2022-12-07T00:23:31.8787273Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=debug msg="diffcopy took: 1.402529ms" span="[internal] load build definition from Dockerfile"
2022-12-07T00:23:31.8787968Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=debug msg="saved xzjkqluiar6uipu2g6qo6m9lh as context:context-.dockerignore:" span="[internal] load .dockerignore"
2022-12-07T00:23:31.8788712Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=debug msg="saved zn6prg263cv39h9frz4ov9ig5 as dockerfile:dockerfile:" span="[internal] load build definition from Dockerfile"
2022-12-07T00:23:31.8789607Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=error msg="/moby.buildkit.v1.frontend.LLBBridge/ReadFile returned error: rpc error: code = Unknown desc = open /tmp/buildkit-mount3443202496/.dockerignore: no such file or directory"
2022-12-07T00:23:31.8790370Z     sandbox.go:237: open /tmp/buildkit-mount3443202496/.dockerignore: no such file or directory
2022-12-07T00:23:31.8791425Z     sandbox.go:237: 24469 1b4a1c6 buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config4040588246/buildkitd.toml --root /tmp/bktest_buildkitd2739643242 --addr unix:///tmp/bktest_buildkitd2739643242/buildkitd.sock --debug
2022-12-07T00:23:31.8792113Z     sandbox.go:237: github.com/moby/buildkit/cache/util.ReadFile.func1
2022-12-07T00:23:31.8792415Z     sandbox.go:237: 	/src/cache/util/fsutil.go:63
2022-12-07T00:23:31.8792722Z     sandbox.go:237: github.com/moby/buildkit/cache/util.withMount
2022-12-07T00:23:31.8793074Z     sandbox.go:237: 	/src/cache/util/fsutil.go:40
2022-12-07T00:23:31.8793368Z     sandbox.go:237: github.com/moby/buildkit/cache/util.ReadFile
2022-12-07T00:23:31.8793671Z     sandbox.go:237: 	/src/cache/util/fsutil.go:54
2022-12-07T00:23:31.8794013Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway.(*llbBridgeForwarder).ReadFile
2022-12-07T00:23:31.8794361Z     sandbox.go:237: 	/src/frontend/gateway/gateway.go:786
2022-12-07T00:23:31.8794700Z     sandbox.go:237: github.com/moby/buildkit/control/gateway.(*GatewayForwarder).ReadFile
2022-12-07T00:23:31.8795042Z     sandbox.go:237: 	/src/control/gateway/gateway.go:111
2022-12-07T00:23:31.8795404Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway/pb._LLBBridge_ReadFile_Handler.func1
2022-12-07T00:23:31.8795761Z     sandbox.go:237: 	/src/frontend/gateway/pb/gateway.pb.go:3060
2022-12-07T00:23:31.8796286Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
2022-12-07T00:23:31.8797196Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
2022-12-07T00:23:31.8797700Z     sandbox.go:237: go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc.UnaryServerInterceptor.func1
2022-12-07T00:23:31.8807418Z     sandbox.go:237: 	/src/vendor/go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/interceptor.go:325
2022-12-07T00:23:31.8807879Z     sandbox.go:237: main.unaryInterceptor.func1
2022-12-07T00:23:31.8808164Z     sandbox.go:237: 	/src/cmd/buildkitd/main.go:569
2022-12-07T00:23:31.8808821Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
2022-12-07T00:23:31.8809383Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
2022-12-07T00:23:31.8809922Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1
2022-12-07T00:23:31.8810452Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34
2022-12-07T00:23:31.8810861Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway/pb._LLBBridge_ReadFile_Handler
2022-12-07T00:23:31.8811230Z     sandbox.go:237: 	/src/frontend/gateway/pb/gateway.pb.go:3062
2022-12-07T00:23:31.8811558Z     sandbox.go:237: google.golang.org/grpc.(*Server).processUnaryRPC
2022-12-07T00:23:31.8811904Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1340
2022-12-07T00:23:31.8812240Z     sandbox.go:237: google.golang.org/grpc.(*Server).handleStream
2022-12-07T00:23:31.8812572Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1713
2022-12-07T00:23:31.8812912Z     sandbox.go:237: google.golang.org/grpc.(*Server).serveStreams.func1.2
2022-12-07T00:23:31.8813261Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:965
2022-12-07T00:23:31.8813550Z     sandbox.go:237: runtime.goexit
2022-12-07T00:23:31.8813814Z     sandbox.go:237: 	/usr/local/go/src/runtime/asm_amd64.s:1594
2022-12-07T00:23:31.8814066Z     sandbox.go:237: 
2022-12-07T00:23:31.8815043Z     sandbox.go:237: 24469 1b4a1c6 buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config4040588246/buildkitd.toml --root /tmp/bktest_buildkitd2739643242 --addr unix:///tmp/bktest_buildkitd2739643242/buildkitd.sock --debug
2022-12-07T00:23:31.8815873Z     sandbox.go:237: main.unaryInterceptor.func1
2022-12-07T00:23:31.8816153Z     sandbox.go:237: 	/src/cmd/buildkitd/main.go:573
2022-12-07T00:23:31.8816651Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
2022-12-07T00:23:31.8817209Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
2022-12-07T00:23:31.8817740Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1
2022-12-07T00:23:31.8818257Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34
2022-12-07T00:23:31.8818738Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway/pb._LLBBridge_ReadFile_Handler
2022-12-07T00:23:31.8819105Z     sandbox.go:237: 	/src/frontend/gateway/pb/gateway.pb.go:3062
2022-12-07T00:23:31.8819433Z     sandbox.go:237: google.golang.org/grpc.(*Server).processUnaryRPC
2022-12-07T00:23:31.8819782Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1340
2022-12-07T00:23:31.8820118Z     sandbox.go:237: google.golang.org/grpc.(*Server).handleStream
2022-12-07T00:23:31.8820463Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1713
2022-12-07T00:23:31.8820806Z     sandbox.go:237: google.golang.org/grpc.(*Server).serveStreams.func1.2
2022-12-07T00:23:31.8821168Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:965
2022-12-07T00:23:31.8821454Z     sandbox.go:237: runtime.goexit
2022-12-07T00:23:31.8821725Z     sandbox.go:237: 	/usr/local/go/src/runtime/asm_amd64.s:1594
2022-12-07T00:23:31.8821975Z     sandbox.go:237: 
2022-12-07T00:23:31.8822741Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=error msg="/moby.buildkit.v1.frontend.LLBBridge/ReadFile returned error: rpc error: code = Unknown desc = open /tmp/buildkit-mount20904224/Dockerfile.dockerignore: no such file or directory"
2022-12-07T00:23:31.8823476Z     sandbox.go:237: open /tmp/buildkit-mount20904224/Dockerfile.dockerignore: no such file or directory
2022-12-07T00:23:31.8824526Z     sandbox.go:237: 24469 1b4a1c6 buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config4040588246/buildkitd.toml --root /tmp/bktest_buildkitd2739643242 --addr unix:///tmp/bktest_buildkitd2739643242/buildkitd.sock --debug
2022-12-07T00:23:31.8825222Z     sandbox.go:237: github.com/moby/buildkit/cache/util.ReadFile.func1
2022-12-07T00:23:31.8825542Z     sandbox.go:237: 	/src/cache/util/fsutil.go:63
2022-12-07T00:23:31.8825845Z     sandbox.go:237: github.com/moby/buildkit/cache/util.withMount
2022-12-07T00:23:31.8826131Z     sandbox.go:237: 	/src/cache/util/fsutil.go:40
2022-12-07T00:23:31.8826431Z     sandbox.go:237: github.com/moby/buildkit/cache/util.ReadFile
2022-12-07T00:23:31.8826731Z     sandbox.go:237: 	/src/cache/util/fsutil.go:54
2022-12-07T00:23:31.8827058Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway.(*llbBridgeForwarder).ReadFile
2022-12-07T00:23:31.8827408Z     sandbox.go:237: 	/src/frontend/gateway/gateway.go:786
2022-12-07T00:23:31.8827755Z     sandbox.go:237: github.com/moby/buildkit/control/gateway.(*GatewayForwarder).ReadFile
2022-12-07T00:23:31.8828102Z     sandbox.go:237: 	/src/control/gateway/gateway.go:111
2022-12-07T00:23:31.8828449Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway/pb._LLBBridge_ReadFile_Handler.func1
2022-12-07T00:23:31.8828819Z     sandbox.go:237: 	/src/frontend/gateway/pb/gateway.pb.go:3060
2022-12-07T00:23:31.8829331Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
2022-12-07T00:23:31.8829872Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
2022-12-07T00:23:31.8830425Z     sandbox.go:237: go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc.UnaryServerInterceptor.func1
2022-12-07T00:23:31.8836580Z     sandbox.go:237: 	/src/vendor/go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/interceptor.go:325
2022-12-07T00:23:31.8837156Z     sandbox.go:237: main.unaryInterceptor.func1
2022-12-07T00:23:31.8837443Z     sandbox.go:237: 	/src/cmd/buildkitd/main.go:569
2022-12-07T00:23:31.8838026Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
2022-12-07T00:23:31.8838575Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
2022-12-07T00:23:31.8869423Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1
2022-12-07T00:23:31.8872231Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34
2022-12-07T00:23:31.8872706Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway/pb._LLBBridge_ReadFile_Handler
2022-12-07T00:23:31.8873448Z     sandbox.go:237: 	/src/frontend/gateway/pb/gateway.pb.go:3062
2022-12-07T00:23:31.8874000Z     sandbox.go:237: google.golang.org/grpc.(*Server).processUnaryRPC
2022-12-07T00:23:31.8874857Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1340
2022-12-07T00:23:31.8875869Z     sandbox.go:237: google.golang.org/grpc.(*Server).handleStream
2022-12-07T00:23:31.8876436Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1713
2022-12-07T00:23:31.8877056Z     sandbox.go:237: google.golang.org/grpc.(*Server).serveStreams.func1.2
2022-12-07T00:23:31.8877429Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:965
2022-12-07T00:23:31.8877927Z     sandbox.go:237: runtime.goexit
2022-12-07T00:23:31.8878197Z     sandbox.go:237: 	/usr/local/go/src/runtime/asm_amd64.s:1594
2022-12-07T00:23:31.8878685Z     sandbox.go:237: 
2022-12-07T00:23:31.8879932Z     sandbox.go:237: 24469 1b4a1c6 buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config4040588246/buildkitd.toml --root /tmp/bktest_buildkitd2739643242 --addr unix:///tmp/bktest_buildkitd2739643242/buildkitd.sock --debug
2022-12-07T00:23:31.8881017Z     sandbox.go:237: main.unaryInterceptor.func1
2022-12-07T00:23:31.8881308Z     sandbox.go:237: 	/src/cmd/buildkitd/main.go:573
2022-12-07T00:23:31.8882035Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
2022-12-07T00:23:31.8883101Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
2022-12-07T00:23:31.8883813Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1
2022-12-07T00:23:31.8884473Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34
2022-12-07T00:23:31.8886666Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway/pb._LLBBridge_ReadFile_Handler
2022-12-07T00:23:31.8887057Z     sandbox.go:237: 	/src/frontend/gateway/pb/gateway.pb.go:3062
2022-12-07T00:23:31.8887385Z     sandbox.go:237: google.golang.org/grpc.(*Server).processUnaryRPC
2022-12-07T00:23:31.8887733Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1340
2022-12-07T00:23:31.8888191Z     sandbox.go:237: google.golang.org/grpc.(*Server).handleStream
2022-12-07T00:23:31.8888524Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1713
2022-12-07T00:23:31.8888876Z     sandbox.go:237: google.golang.org/grpc.(*Server).serveStreams.func1.2
2022-12-07T00:23:31.8889229Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:965
2022-12-07T00:23:31.8889514Z     sandbox.go:237: runtime.goexit
2022-12-07T00:23:31.8889912Z     sandbox.go:237: 	/usr/local/go/src/runtime/asm_amd64.s:1594
2022-12-07T00:23:31.8890162Z     sandbox.go:237: 
2022-12-07T00:23:31.8890617Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=debug msg=resolving host="localhost:39849"
2022-12-07T00:23:31.8892549Z     sandbox.go:237: time="2022-12-07T00:23:30Z" level=debug msg="do request" host="localhost:39849" request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=buildkit/0.0.0+unknown request.method=HEAD url="http://localhost:39849/v2/library/busybox/manifests/latest?ns=docker.io"
2022-12-07T00:23:31.9388533Z     sandbox.go:237: time="2022-12-07T00:23:31Z" level=error msg="/moby.buildkit.v1.frontend.LLBBridge/ReadFile returned error: rpc error: code = Unknown desc = open /tmp/buildkit-mount721805943/.dockerignore: no such file or directory"
2022-12-07T00:23:31.9389221Z     sandbox.go:237: open /tmp/buildkit-mount721805943/.dockerignore: no such file or directory
2022-12-07T00:23:31.9390274Z     sandbox.go:237: 24469 1b4a1c6 buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config4040588246/buildkitd.toml --root /tmp/bktest_buildkitd2739643242 --addr unix:///tmp/bktest_buildkitd2739643242/buildkitd.sock --debug
2022-12-07T00:23:31.9390957Z     sandbox.go:237: github.com/moby/buildkit/cache/util.ReadFile.func1
2022-12-07T00:23:31.9391269Z     sandbox.go:237: 	/src/cache/util/fsutil.go:63
2022-12-07T00:23:31.9391582Z     sandbox.go:237: github.com/moby/buildkit/cache/util.withMount
2022-12-07T00:23:31.9391869Z     sandbox.go:237: 	/src/cache/util/fsutil.go:40
2022-12-07T00:23:31.9392177Z     sandbox.go:237: github.com/moby/buildkit/cache/util.ReadFile
2022-12-07T00:23:31.9392472Z     sandbox.go:237: 	/src/cache/util/fsutil.go:54
2022-12-07T00:23:31.9392815Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway.(*llbBridgeForwarder).ReadFile
2022-12-07T00:23:31.9393159Z     sandbox.go:237: 	/src/frontend/gateway/gateway.go:786
2022-12-07T00:23:31.9393506Z     sandbox.go:237: github.com/moby/buildkit/control/gateway.(*GatewayForwarder).ReadFile
2022-12-07T00:23:31.9393918Z     sandbox.go:237: 	/src/control/gateway/gateway.go:111
2022-12-07T00:23:31.9394267Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway/pb._LLBBridge_ReadFile_Handler.func1
2022-12-07T00:23:31.9394635Z     sandbox.go:237: 	/src/frontend/gateway/pb/gateway.pb.go:3060
2022-12-07T00:23:31.9395158Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
2022-12-07T00:23:31.9395708Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
2022-12-07T00:23:31.9396182Z     sandbox.go:237: go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc.UnaryServerInterceptor.func1
2022-12-07T00:23:31.9396785Z     sandbox.go:237: 	/src/vendor/go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/interceptor.go:325
2022-12-07T00:23:31.9397443Z     sandbox.go:237: main.unaryInterceptor.func1
2022-12-07T00:23:31.9397728Z     sandbox.go:237: 	/src/cmd/buildkitd/main.go:569
2022-12-07T00:23:31.9398231Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
2022-12-07T00:23:31.9398780Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
2022-12-07T00:23:31.9399311Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1
2022-12-07T00:23:31.9399833Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34
2022-12-07T00:23:31.9400234Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway/pb._LLBBridge_ReadFile_Handler
2022-12-07T00:23:31.9400598Z     sandbox.go:237: 	/src/frontend/gateway/pb/gateway.pb.go:3062
2022-12-07T00:23:31.9400927Z     sandbox.go:237: google.golang.org/grpc.(*Server).processUnaryRPC
2022-12-07T00:23:31.9401277Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1340
2022-12-07T00:23:31.9401618Z     sandbox.go:237: google.golang.org/grpc.(*Server).handleStream
2022-12-07T00:23:31.9401960Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1713
2022-12-07T00:23:31.9402300Z     sandbox.go:237: google.golang.org/grpc.(*Server).serveStreams.func1.2
2022-12-07T00:23:31.9402658Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:965
2022-12-07T00:23:31.9402946Z     sandbox.go:237: runtime.goexit
2022-12-07T00:23:31.9403209Z     sandbox.go:237: 	/usr/local/go/src/runtime/asm_amd64.s:1594
2022-12-07T00:23:31.9403461Z     sandbox.go:237: 
2022-12-07T00:23:31.9404435Z     sandbox.go:237: 24469 1b4a1c6 buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config4040588246/buildkitd.toml --root /tmp/bktest_buildkitd2739643242 --addr unix:///tmp/bktest_buildkitd2739643242/buildkitd.sock --debug
2022-12-07T00:23:31.9405097Z     sandbox.go:237: main.unaryInterceptor.func1
2022-12-07T00:23:31.9405378Z     sandbox.go:237: 	/src/cmd/buildkitd/main.go:573
2022-12-07T00:23:31.9405871Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
2022-12-07T00:23:31.9406417Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
2022-12-07T00:23:31.9406934Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1
2022-12-07T00:23:31.9407461Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34
2022-12-07T00:23:31.9407865Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway/pb._LLBBridge_ReadFile_Handler
2022-12-07T00:23:31.9408225Z     sandbox.go:237: 	/src/frontend/gateway/pb/gateway.pb.go:3062
2022-12-07T00:23:31.9408550Z     sandbox.go:237: google.golang.org/grpc.(*Server).processUnaryRPC
2022-12-07T00:23:31.9408899Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1340
2022-12-07T00:23:31.9409235Z     sandbox.go:237: google.golang.org/grpc.(*Server).handleStream
2022-12-07T00:23:31.9409657Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1713
2022-12-07T00:23:31.9410012Z     sandbox.go:237: google.golang.org/grpc.(*Server).serveStreams.func1.2
2022-12-07T00:23:31.9410369Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:965
2022-12-07T00:23:31.9410661Z     sandbox.go:237: runtime.goexit
2022-12-07T00:23:31.9410930Z     sandbox.go:237: 	/usr/local/go/src/runtime/asm_amd64.s:1594
2022-12-07T00:23:31.9411187Z     sandbox.go:237: 
2022-12-07T00:23:31.9411965Z     sandbox.go:237: time="2022-12-07T00:23:31Z" level=error msg="/moby.buildkit.v1.frontend.LLBBridge/ReadFile returned error: rpc error: code = Unknown desc = open /tmp/buildkit-mount1893070761/Dockerfile.dockerignore: no such file or directory"
2022-12-07T00:23:31.9412753Z     sandbox.go:237: open /tmp/buildkit-mount1893070761/Dockerfile.dockerignore: no such file or directory
2022-12-07T00:23:31.9413830Z     sandbox.go:237: 24469 1b4a1c6 buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config4040588246/buildkitd.toml --root /tmp/bktest_buildkitd2739643242 --addr unix:///tmp/bktest_buildkitd2739643242/buildkitd.sock --debug
2022-12-07T00:23:31.9414515Z     sandbox.go:237: github.com/moby/buildkit/cache/util.ReadFile.func1
2022-12-07T00:23:31.9414827Z     sandbox.go:237: 	/src/cache/util/fsutil.go:63
2022-12-07T00:23:31.9415130Z     sandbox.go:237: github.com/moby/buildkit/cache/util.withMount
2022-12-07T00:23:31.9415418Z     sandbox.go:237: 	/src/cache/util/fsutil.go:40
2022-12-07T00:23:31.9415723Z     sandbox.go:237: github.com/moby/buildkit/cache/util.ReadFile
2022-12-07T00:23:31.9416026Z     sandbox.go:237: 	/src/cache/util/fsutil.go:54
2022-12-07T00:23:31.9416360Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway.(*llbBridgeForwarder).ReadFile
2022-12-07T00:23:31.9416720Z     sandbox.go:237: 	/src/frontend/gateway/gateway.go:786
2022-12-07T00:23:31.9417069Z     sandbox.go:237: github.com/moby/buildkit/control/gateway.(*GatewayForwarder).ReadFile
2022-12-07T00:23:31.9417410Z     sandbox.go:237: 	/src/control/gateway/gateway.go:111
2022-12-07T00:23:31.9417769Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway/pb._LLBBridge_ReadFile_Handler.func1
2022-12-07T00:23:31.9418138Z     sandbox.go:237: 	/src/frontend/gateway/pb/gateway.pb.go:3060
2022-12-07T00:23:31.9418663Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
2022-12-07T00:23:31.9419201Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
2022-12-07T00:23:31.9419687Z     sandbox.go:237: go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc.UnaryServerInterceptor.func1
2022-12-07T00:23:31.9420223Z     sandbox.go:237: 	/src/vendor/go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc/interceptor.go:325
2022-12-07T00:23:31.9420612Z     sandbox.go:237: main.unaryInterceptor.func1
2022-12-07T00:23:31.9420914Z     sandbox.go:237: 	/src/cmd/buildkitd/main.go:569
2022-12-07T00:23:31.9421406Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
2022-12-07T00:23:31.9421955Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
2022-12-07T00:23:31.9422476Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1
2022-12-07T00:23:31.9423018Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34
2022-12-07T00:23:31.9423425Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway/pb._LLBBridge_ReadFile_Handler
2022-12-07T00:23:31.9423777Z     sandbox.go:237: 	/src/frontend/gateway/pb/gateway.pb.go:3062
2022-12-07T00:23:31.9424125Z     sandbox.go:237: google.golang.org/grpc.(*Server).processUnaryRPC
2022-12-07T00:23:31.9424487Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1340
2022-12-07T00:23:31.9424832Z     sandbox.go:237: google.golang.org/grpc.(*Server).handleStream
2022-12-07T00:23:31.9425235Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1713
2022-12-07T00:23:31.9425592Z     sandbox.go:237: google.golang.org/grpc.(*Server).serveStreams.func1.2
2022-12-07T00:23:31.9425949Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:965
2022-12-07T00:23:31.9426234Z     sandbox.go:237: runtime.goexit
2022-12-07T00:23:31.9426518Z     sandbox.go:237: 	/usr/local/go/src/runtime/asm_amd64.s:1594
2022-12-07T00:23:31.9426775Z     sandbox.go:237: 
2022-12-07T00:23:31.9427817Z     sandbox.go:237: 24469 1b4a1c6 buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config4040588246/buildkitd.toml --root /tmp/bktest_buildkitd2739643242 --addr unix:///tmp/bktest_buildkitd2739643242/buildkitd.sock --debug
2022-12-07T00:23:31.9428477Z     sandbox.go:237: main.unaryInterceptor.func1
2022-12-07T00:23:31.9428771Z     sandbox.go:237: 	/src/cmd/buildkitd/main.go:573
2022-12-07T00:23:31.9429279Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1.1.1
2022-12-07T00:23:31.9429824Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:25
2022-12-07T00:23:31.9430369Z     sandbox.go:237: github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1
2022-12-07T00:23:31.9430909Z     sandbox.go:237: 	/src/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:34
2022-12-07T00:23:31.9431319Z     sandbox.go:237: github.com/moby/buildkit/frontend/gateway/pb._LLBBridge_ReadFile_Handler
2022-12-07T00:23:31.9431670Z     sandbox.go:237: 	/src/frontend/gateway/pb/gateway.pb.go:3062
2022-12-07T00:23:31.9432008Z     sandbox.go:237: google.golang.org/grpc.(*Server).processUnaryRPC
2022-12-07T00:23:31.9432361Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1340
2022-12-07T00:23:31.9432685Z     sandbox.go:237: google.golang.org/grpc.(*Server).handleStream
2022-12-07T00:23:31.9433025Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:1713
2022-12-07T00:23:31.9433385Z     sandbox.go:237: google.golang.org/grpc.(*Server).serveStreams.func1.2
2022-12-07T00:23:31.9433745Z     sandbox.go:237: 	/src/vendor/google.golang.org/grpc/server.go:965
2022-12-07T00:23:31.9434022Z     sandbox.go:237: runtime.goexit
2022-12-07T00:23:31.9434301Z     sandbox.go:237: 	/usr/local/go/src/runtime/asm_amd64.s:1594
2022-12-07T00:23:31.9434555Z     sandbox.go:237: 
2022-12-07T00:23:31.9434964Z     sandbox.go:237: time="2022-12-07T00:23:31Z" level=debug msg=resolving host="localhost:39849"
2022-12-07T00:23:31.9436417Z     sandbox.go:237: time="2022-12-07T00:23:31Z" level=debug msg="do request" host="localhost:39849" request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=buildkit/0.0.0+unknown request.method=HEAD url="http://localhost:39849/v2/library/busybox/manifests/latest?ns=docker.io"

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with TestIntegration/TestCacheMultiPlatformImportExport in frontend/dockerfile/dockerfile_test.go around line 4000, focusing on the oci-rootless/client case and the linked Actions failure. Trace the reported paths through frontend/dockerfile/run.go and cache/util/fsutil.go, then reproduce the failure; done means the test no longer flakes in this scenario.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
build-system, testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.