bake: fix entitlements path checks for local outputs #4732
Annotations
7 errors
Generate annotations:
tests/run.go#L272
=== RUN TestIntegration
run.go:272: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:39285/library/alpine:latest
time="2024-12-02T23:04:09Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:39285"
run.go:272: copied docker.io/moby/buildkit:buildx-stable-1 to local mirror localhost:39285/moby/buildkit:buildx-stable-1
time="2024-12-02T23:04:14Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:39285"
run.go:272: copied docker.io/amd64/busybox:latest@sha256:023917ec6a886d0e8e15f28fb543515a5fcd8d938edb091e8147db4efed388ee to local mirror localhost:39285/library/busybox:latest
--- FAIL: TestIntegration (0.01s)
|
Generate annotations:
tests/bake.go#L245
=== RUN TestIntegration/TestBakeRemote/worker=remote
=== PAUSE TestIntegration/TestBakeRemote/worker=remote
=== CONT TestIntegration/TestBakeRemote/worker=remote
bake.go:245:
Error Trace: /src/tests/bake.go:245
/src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:97
/src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211
Error: Received unexpected error:
exit status 1
Test: TestIntegration/TestBakeRemote/worker=remote
Messages: Your build is requesting privileges for following possibly insecure capabilities:
- Write access to path ../002
Pass "--allow=fs.write=../002" to grant requested privileges.
Your full command with requested privileges:
buildx bake --allow=fs.write=../002 --progress=quiet http://127.0.0.1:41211/test.git --set *.output=type=local,dest=/tmp/TestIntegrationTestBakeRemoteworker=remote2375205091/002
ERROR: additional privileges requested
sandbox.go:135: stdout: /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config4097792203/buildkitd.toml --root /tmp/bktest_buildkitd1031998687 --addr unix:///tmp/bktest_buildkitd1031998687/buildkitd.sock --debug
sandbox.go:135: stderr: /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config4097792203/buildkitd.toml --root /tmp/bktest_buildkitd1031998687 --addr unix:///tmp/bktest_buildkitd1031998687/buildkitd.sock --debug
sandbox.go:138: > StartCmd 2024-12-02 23:04:18.00495223 +0000 UTC m=+8.786874042 /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config4097792203/buildkitd.toml --root /tmp/bktest_buildkitd1031998687 --addr unix:///tmp/bktest_buildkitd1031998687/buildkitd.sock --debug
sandbox.go:138: time="2024-12-02T23:04:18Z" level=info msg="auto snapshotter: using overlayfs"
sandbox.go:138: time="2024-12-02T23:04:18Z" level=warning msg="using host network as the default"
sandbox.go:138: time="2024-12-02T23:04:18Z" level=info msg="found worker \"tmj4mhee4bfd22ps1gckdljns\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:23e4e61d854c 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/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]"
sandbox.go:138: time="2024-12-02T23:04:18Z" level=info msg="found 1 workers, default=\"tmj4mhee4bfd22ps1gckdljns\""
sandbox.go:138: time="2024-12-02T23:04:18Z" level=warning msg="currently, only the default worker can be used."
sandbox.go:138: time="2024-12-02T23:04:18Z" level=info msg="running server on /tmp/bktest_buildkitd1031998687/buildkitd.sock"
sandbox.go:138: time="2024-12-02T23:04:18Z" level=debug msg="session started" spanID=a93646f9693c8129 traceID=5b40420b2db64fcc7d6ad360a9b721dc
sandbox.go:138: time="2024-12-02T23:04:18Z" level=error msg="/moby.buildkit.v1.frontend.LLBBridge/StatFile returned error: rpc error: code = Unknown desc = lstat compose.yaml: no such file or directory" spanID=dfc87ce0324f397e traceID=5b40420b2db64fcc7d6ad360a9b721dc
sandbox.go:138: lstat compose.yaml: no such file or directory
sandbox.go:138: 12000 v0.17.2 buildkitd --oci-worker=true --containerd-worker=false --o
|
Generate annotations:
tests/testutilserve.go#L54
=== RUN TestIntegration/TestBakeRemoteAuth/worker=remote
=== PAUSE TestIntegration/TestBakeRemoteAuth/worker=remote
=== CONT TestIntegration/TestBakeRemoteAuth/worker=remote
testutilserve.go:54: git access token to check: "lfdjq3xjv4gv5qert9i4atid1"
testutilserve.go:56: basic auth: user="x-access-token" pass="lfdjq3xjv4gv5qert9i4atid1"
bake.go:280:
Error Trace: /src/tests/bake.go:280
/src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:97
/src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211
Error: Received unexpected error:
exit status 1
Test: TestIntegration/TestBakeRemoteAuth/worker=remote
Messages: Your build is requesting privileges for following possibly insecure capabilities:
- Write access to path ../002
Pass "--allow=fs.write=../002" to grant requested privileges.
Your full command with requested privileges:
buildx bake --allow=fs.write=../002 --progress=quiet http://127.0.0.1:36365/test.git --set *.output=type=local,dest=/tmp/TestIntegrationTestBakeRemoteAuthworker=remote4156076020/002
ERROR: additional privileges requested
sandbox.go:135: stdout: /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config3518214752/buildkitd.toml --root /tmp/bktest_buildkitd59829170 --addr unix:///tmp/bktest_buildkitd59829170/buildkitd.sock --debug
sandbox.go:135: stderr: /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config3518214752/buildkitd.toml --root /tmp/bktest_buildkitd59829170 --addr unix:///tmp/bktest_buildkitd59829170/buildkitd.sock --debug
sandbox.go:138: > StartCmd 2024-12-02 23:04:17.992043067 +0000 UTC m=+8.773964879 /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config3518214752/buildkitd.toml --root /tmp/bktest_buildkitd59829170 --addr unix:///tmp/bktest_buildkitd59829170/buildkitd.sock --debug
sandbox.go:138: time="2024-12-02T23:04:18Z" level=info msg="auto snapshotter: using overlayfs"
sandbox.go:138: time="2024-12-02T23:04:18Z" level=warning msg="using host network as the default"
sandbox.go:138: time="2024-12-02T23:04:18Z" level=info msg="found worker \"2ut8x3l0mzliz04xrxyx11w6g\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:23e4e61d854c 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/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]"
sandbox.go:138: time="2024-12-02T23:04:18Z" level=info msg="found 1 workers, default=\"2ut8x3l0mzliz04xrxyx11w6g\""
sandbox.go:138: time="2024-12-02T23:04:18Z" level=warning msg="currently, only the default worker can be used."
sandbox.go:138: time="2024-12-02T23:04:18Z" level=info msg="running server on /tmp/bktest_buildkitd59829170/buildkitd.sock"
sandbox.go:138: time="2024-12-02T23:04:18Z" level=debug msg="session started" spanID=939b09de3ef1bc32 traceID=fe5c4d9f7b13086a0ab47c4c119a4ea7
sandbox.go:138: time="2024-12-02T23:04:18Z" level=error msg="/moby.buildkit.v1.frontend.LLBBridge/StatFile returned error: rpc error: code = Unknown desc = lstat compose.yaml: no such file or directory" spanID=db13ed10da15c9a9 traceID=fe5c4d9f7b1
|
Generate annotations:
tests/bake.go#L391
=== RUN TestIntegration/TestBakeRemoteCmdContext/worker=remote
=== PAUSE TestIntegration/TestBakeRemoteCmdContext/worker=remote
=== CONT TestIntegration/TestBakeRemoteCmdContext/worker=remote
bake.go:391:
Error Trace: /src/tests/bake.go:391
/src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:97
/src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211
Error: Received unexpected error:
exit status 1
Test: TestIntegration/TestBakeRemoteCmdContext/worker=remote
Messages: Your build is requesting privileges for following possibly insecure capabilities:
- Write access to path ../003
Pass "--allow=fs.write=../003" to grant requested privileges.
Your full command with requested privileges:
buildx bake --allow=fs.write=../003 --progress=quiet http://127.0.0.1:40761/test.git --set *.output=type=local,dest=/tmp/TestIntegrationTestBakeRemoteCmdContextworker=remote2685602358/003
ERROR: additional privileges requested
sandbox.go:135: stdout: /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config2144125014/buildkitd.toml --root /tmp/bktest_buildkitd3677434564 --addr unix:///tmp/bktest_buildkitd3677434564/buildkitd.sock --debug
sandbox.go:135: stderr: /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config2144125014/buildkitd.toml --root /tmp/bktest_buildkitd3677434564 --addr unix:///tmp/bktest_buildkitd3677434564/buildkitd.sock --debug
sandbox.go:138: > StartCmd 2024-12-02 23:04:14.790933485 +0000 UTC m=+5.572855277 /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config2144125014/buildkitd.toml --root /tmp/bktest_buildkitd3677434564 --addr unix:///tmp/bktest_buildkitd3677434564/buildkitd.sock --debug
sandbox.go:138: time="2024-12-02T23:04:15Z" level=info msg="auto snapshotter: using overlayfs"
sandbox.go:138: time="2024-12-02T23:04:15Z" level=warning msg="using host network as the default"
sandbox.go:138: time="2024-12-02T23:04:15Z" level=info msg="found worker \"3jgbfyrrr2glkvo9futt7um98\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:23e4e61d854c 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/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]"
sandbox.go:138: time="2024-12-02T23:04:15Z" level=info msg="found 1 workers, default=\"3jgbfyrrr2glkvo9futt7um98\""
sandbox.go:138: time="2024-12-02T23:04:15Z" level=warning msg="currently, only the default worker can be used."
sandbox.go:138: time="2024-12-02T23:04:15Z" level=info msg="running server on /tmp/bktest_buildkitd3677434564/buildkitd.sock"
sandbox.go:138: time="2024-12-02T23:04:15Z" level=debug msg="session started" spanID=8f0095649568384d traceID=5297cd225b1a37a4dce8e28fb6e76266
sandbox.go:138: time="2024-12-02T23:04:15Z" level=error msg="/moby.buildkit.v1.frontend.LLBBridge/StatFile returned error: rpc error: code = Unknown desc = lstat compose.yaml: no such file or directory" spanID=54e0a9795c84f774 traceID=5297cd225b1a37a4dce8e28fb6e76266
sandbox.go:138: lstat compose.yaml: no such file or directory
sandbox.go:138: 9079 v0.17.2 buildki
|
Generate annotations:
tests/bake.go#L322
=== RUN TestIntegration/TestBakeRemoteLocalOverride/worker=remote
=== PAUSE TestIntegration/TestBakeRemoteLocalOverride/worker=remote
=== CONT TestIntegration/TestBakeRemoteLocalOverride/worker=remote
bake.go:322:
Error Trace: /src/tests/bake.go:322
/src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:97
/src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211
Error: Received unexpected error:
exit status 1
Test: TestIntegration/TestBakeRemoteLocalOverride/worker=remote
Messages: Your build is requesting privileges for following possibly insecure capabilities:
- Write access to path ../003
Pass "--allow=fs.write=../003" to grant requested privileges.
Your full command with requested privileges:
buildx bake --allow=fs.write=../003 --progress=quiet http://127.0.0.1:41429/test.git --file cwd://local-docker-bake.hcl --set *.output=type=local,dest=/tmp/TestIntegrationTestBakeRemoteLocalOverrideworker=remote965917273/003
ERROR: additional privileges requested
sandbox.go:135: stdout: /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config1240285706/buildkitd.toml --root /tmp/bktest_buildkitd2417473962 --addr unix:///tmp/bktest_buildkitd2417473962/buildkitd.sock --debug
sandbox.go:135: stderr: /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config1240285706/buildkitd.toml --root /tmp/bktest_buildkitd2417473962 --addr unix:///tmp/bktest_buildkitd2417473962/buildkitd.sock --debug
sandbox.go:138: > StartCmd 2024-12-02 23:04:19.259815753 +0000 UTC m=+10.041737555 /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config1240285706/buildkitd.toml --root /tmp/bktest_buildkitd2417473962 --addr unix:///tmp/bktest_buildkitd2417473962/buildkitd.sock --debug
sandbox.go:138: time="2024-12-02T23:04:19Z" level=info msg="auto snapshotter: using overlayfs"
sandbox.go:138: time="2024-12-02T23:04:19Z" level=warning msg="using host network as the default"
sandbox.go:138: time="2024-12-02T23:04:19Z" level=info msg="found worker \"mc5sk40z86ptb7hfib7l2bb5x\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:23e4e61d854c 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/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]"
sandbox.go:138: time="2024-12-02T23:04:19Z" level=info msg="found 1 workers, default=\"mc5sk40z86ptb7hfib7l2bb5x\""
sandbox.go:138: time="2024-12-02T23:04:19Z" level=warning msg="currently, only the default worker can be used."
sandbox.go:138: time="2024-12-02T23:04:19Z" level=info msg="running server on /tmp/bktest_buildkitd2417473962/buildkitd.sock"
sandbox.go:138: time="2024-12-02T23:04:19Z" level=debug msg="session started" spanID=6ac74ff5c95f8f2f traceID=3e9faa9f9e7c44943ade853eb8f174ae
sandbox.go:138: time="2024-12-02T23:04:19Z" level=error msg="/moby.buildkit.v1.frontend.LLBBridge/StatFile returned error: rpc error: code = Unknown desc = lstat compose.yaml: no such file or directory" spanID=849f82d6399591e6 traceID=3e9faa9f9e7c44943ade853eb8f174ae
sandbox.go:138: lstat compose.yaml: no such file or
|
Generate annotations:
tests/bake.go#L617
=== RUN TestIntegration/TestBakeRemoteDockerfileCwd/worker=remote
=== PAUSE TestIntegration/TestBakeRemoteDockerfileCwd/worker=remote
=== CONT TestIntegration/TestBakeRemoteDockerfileCwd/worker=remote
bake.go:617:
Error Trace: /src/tests/bake.go:617
/src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:97
/src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211
Error: Received unexpected error:
exit status 1
Test: TestIntegration/TestBakeRemoteDockerfileCwd/worker=remote
Messages: Your build is requesting privileges for following possibly insecure capabilities:
- Write access to path ../003
Pass "--allow=fs.write=../003" to grant requested privileges.
Your full command with requested privileges:
buildx bake --allow=fs.write=../003 --progress=quiet http://127.0.0.1:34979/test.git --set *.output=type=local,dest=/tmp/TestIntegrationTestBakeRemoteDockerfileCwdworker=remote1620006069/003
ERROR: additional privileges requested
sandbox.go:135: stderr: /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config1348742098/buildkitd.toml --root /tmp/bktest_buildkitd461838996 --addr unix:///tmp/bktest_buildkitd461838996/buildkitd.sock --debug
sandbox.go:138: > StartCmd 2024-12-02 23:04:17.357421927 +0000 UTC m=+8.139343729 /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config1348742098/buildkitd.toml --root /tmp/bktest_buildkitd461838996 --addr unix:///tmp/bktest_buildkitd461838996/buildkitd.sock --debug
sandbox.go:138: time="2024-12-02T23:04:17Z" level=info msg="auto snapshotter: using overlayfs"
sandbox.go:138: time="2024-12-02T23:04:17Z" level=warning msg="using host network as the default"
sandbox.go:138: time="2024-12-02T23:04:17Z" level=info msg="found worker \"gy7otsayuda0rx5edswqh9hie\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:23e4e61d854c 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/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]"
sandbox.go:138: time="2024-12-02T23:04:17Z" level=info msg="found 1 workers, default=\"gy7otsayuda0rx5edswqh9hie\""
sandbox.go:138: time="2024-12-02T23:04:17Z" level=warning msg="currently, only the default worker can be used."
sandbox.go:138: time="2024-12-02T23:04:17Z" level=info msg="running server on /tmp/bktest_buildkitd461838996/buildkitd.sock"
sandbox.go:138: time="2024-12-02T23:04:17Z" level=debug msg="session started" spanID=9877140611058282 traceID=17e066cb1f7d796385c36d70e411b0ca
sandbox.go:138: time="2024-12-02T23:04:17Z" level=error msg="/moby.buildkit.v1.frontend.LLBBridge/StatFile returned error: rpc error: code = Unknown desc = lstat compose.yaml: no such file or directory" spanID=fe64ccfc2495a9b4 traceID=17e066cb1f7d796385c36d70e411b0ca
sandbox.go:138: lstat compose.yaml: no such file or directory
sandbox.go:138: 11378 v0.17.2 buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config1348742098/buildkitd.toml --root /tmp/bktest_buildkitd461838996 --addr unix:///tmp/bktest_buildkitd461838996/buildkitd.sock --debug
sandbox.go:138: github.com/toni
|
Test
Process completed with exit code 1.
|
Loading