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/busybox:latest@sha256:023917ec6a886d0e8e15f28fb543515a5fcd8d938edb091e8147db4efed388ee to local mirror localhost:39729/library/busybox:latest
time="2024-12-02T23:04:17Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:39729"
run.go:272: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:39729/library/alpine:latest
time="2024-12-02T23:04:17Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:39729"
run.go:272: copied docker.io/moby/buildkit:buildx-stable-1 to local mirror localhost:39729/moby/buildkit:buildx-stable-1
--- FAIL: TestIntegration (0.01s)
|
Generate annotations:
tests/bake.go#L245
=== RUN TestIntegration/TestBakeRemote/worker=docker
=== PAUSE TestIntegration/TestBakeRemote/worker=docker
=== CONT TestIntegration/TestBakeRemote/worker=docker
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=docker
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:37813/test.git --set *.output=type=local,dest=/tmp/TestIntegrationTestBakeRemoteworker=docker1880580752/002
ERROR: additional privileges requested
sandbox.go:135: stdout: /usr/bin/dockerd
sandbox.go:135: stderr: /usr/bin/dockerd
sandbox.go:138: > startCmd 2024-12-02 23:06:12.043755292 +0000 UTC m=+115.036995766 /usr/bin/dockerd --data-root /tmp/integration3750461616/dxhe0n90ir5c7/root --exec-root /tmp/dxr/dxhe0n90ir5c7 --pidfile /tmp/integration3750461616/dxhe0n90ir5c7/docker.pid --containerd-namespace dxhe0n90ir5c7 --containerd-plugins-namespace dxhe0n90ir5c7p --host unix:///tmp/docker-integration/dxhe0n90ir5c7.sock --config-file /tmp/integration3750461616/daemon.json --userland-proxy=false --tls=false --debug
sandbox.go:138: time="2024-12-02T23:06:12.061614472Z" level=info msg="Starting up"
sandbox.go:138: time="2024-12-02T23:06:12.062583704Z" level=warning msg="could not change group /tmp/docker-integration/dxhe0n90ir5c7.sock to docker: group docker not found"
sandbox.go:138: time="2024-12-02T23:06:12.062700063Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dxhe0n90ir5c7.sock)"
sandbox.go:138: time="2024-12-02T23:06:12.062717165Z" level=info msg="containerd not running, starting managed containerd"
sandbox.go:138: time="2024-12-02T23:06:12.063232935Z" level=info msg="started new containerd process" address=/tmp/dxr/dxhe0n90ir5c7/containerd/containerd.sock module=libcontainerd pid=19095
sandbox.go:138: time="2024-12-02T23:06:12.063527199Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dxhe0n90ir5c7/containerd/containerd.sock module=libcontainerd
sandbox.go:138: time="2024-12-02T23:06:12.063642268Z" level=debug msg="2024/12/02 23:06:12 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dxhe0n90ir5c7/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connection error: desc = \"transport: Error while dialing: dial unix /tmp/dxr/dxhe0n90ir5c7/containerd/containerd.sock: connect: no such file or directory\"" library=grpc
sandbox.go:138: time="2024-12-02T23:06:12.073841808Z" level=info msg="starting containerd" revision=7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c version=v1.7.22
sandbox.go:138: time="2024-12-02T23:06:12.086664065Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:138: time="2024-12-02T23:06:12.086693681Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:138: time="2024-12-02T23:06:12.086716283Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1
sandbox.go:138: time="2024-12-02T23:06:12.086726483Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.bloc
|
Generate annotations:
tests/testutilserve.go#L54
=== RUN TestIntegration/TestBakeRemoteAuth/worker=docker
=== PAUSE TestIntegration/TestBakeRemoteAuth/worker=docker
=== CONT TestIntegration/TestBakeRemoteAuth/worker=docker
testutilserve.go:54: git access token to check: "fzcope4bgsndffeyjm8da627n"
testutilserve.go:56: basic auth: user="x-access-token" pass="fzcope4bgsndffeyjm8da627n"
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=docker
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:40015/test.git --set *.output=type=local,dest=/tmp/TestIntegrationTestBakeRemoteAuthworker=docker525187954/002
ERROR: additional privileges requested
sandbox.go:135: stdout: /usr/bin/dockerd
sandbox.go:135: stderr: /usr/bin/dockerd
sandbox.go:138: > startCmd 2024-12-02 23:06:09.47388907 +0000 UTC m=+112.467129544 /usr/bin/dockerd --data-root /tmp/integration2295237292/dy3dqpc90k9ci/root --exec-root /tmp/dxr/dy3dqpc90k9ci --pidfile /tmp/integration2295237292/dy3dqpc90k9ci/docker.pid --containerd-namespace dy3dqpc90k9ci --containerd-plugins-namespace dy3dqpc90k9cip --host unix:///tmp/docker-integration/dy3dqpc90k9ci.sock --config-file /tmp/integration2295237292/daemon.json --userland-proxy=false --tls=false --debug
sandbox.go:138: time="2024-12-02T23:06:09.491759890Z" level=info msg="Starting up"
sandbox.go:138: time="2024-12-02T23:06:09.492769059Z" level=warning msg="could not change group /tmp/docker-integration/dy3dqpc90k9ci.sock to docker: group docker not found"
sandbox.go:138: time="2024-12-02T23:06:09.492885187Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dy3dqpc90k9ci.sock)"
sandbox.go:138: time="2024-12-02T23:06:09.492906217Z" level=info msg="containerd not running, starting managed containerd"
sandbox.go:138: time="2024-12-02T23:06:09.493508696Z" level=info msg="started new containerd process" address=/tmp/dxr/dy3dqpc90k9ci/containerd/containerd.sock module=libcontainerd pid=18820
sandbox.go:138: time="2024-12-02T23:06:09.493927674Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dy3dqpc90k9ci/containerd/containerd.sock module=libcontainerd
sandbox.go:138: time="2024-12-02T23:06:09.494243361Z" level=debug msg="2024/12/02 23:06:09 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dy3dqpc90k9ci/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connection error: desc = \"transport: Error while dialing: dial unix /tmp/dxr/dy3dqpc90k9ci/containerd/containerd.sock: connect: no such file or directory\"" library=grpc
sandbox.go:138: time="2024-12-02T23:06:09.504245484Z" level=info msg="starting containerd" revision=7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c version=v1.7.22
sandbox.go:138: time="2024-12-02T23:06:09.516860311Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:138: time="2024-12-02T23:06:09.516882723Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:138: time="2024-12-02T23:06:09.516914894Z" level=info msg="loading plugin \"io.conta
|
Generate annotations:
tests/bake.go#L391
=== RUN TestIntegration/TestBakeRemoteCmdContext/worker=docker
=== PAUSE TestIntegration/TestBakeRemoteCmdContext/worker=docker
=== CONT TestIntegration/TestBakeRemoteCmdContext/worker=docker
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=docker
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:39055/test.git --set *.output=type=local,dest=/tmp/TestIntegrationTestBakeRemoteCmdContextworker=docker3961319653/003
ERROR: additional privileges requested
sandbox.go:135: stdout: /usr/bin/dockerd
sandbox.go:135: stderr: /usr/bin/dockerd
sandbox.go:138: > startCmd 2024-12-02 23:06:06.900699209 +0000 UTC m=+109.893939682 /usr/bin/dockerd --data-root /tmp/integration4282475443/domll74kcq37a/root --exec-root /tmp/dxr/domll74kcq37a --pidfile /tmp/integration4282475443/domll74kcq37a/docker.pid --containerd-namespace domll74kcq37a --containerd-plugins-namespace domll74kcq37ap --host unix:///tmp/docker-integration/domll74kcq37a.sock --config-file /tmp/integration4282475443/daemon.json --userland-proxy=false --tls=false --debug
sandbox.go:138: time="2024-12-02T23:06:06.918348540Z" level=info msg="Starting up"
sandbox.go:138: time="2024-12-02T23:06:06.919390651Z" level=warning msg="could not change group /tmp/docker-integration/domll74kcq37a.sock to docker: group docker not found"
sandbox.go:138: time="2024-12-02T23:06:06.919511048Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/domll74kcq37a.sock)"
sandbox.go:138: time="2024-12-02T23:06:06.919531326Z" level=info msg="containerd not running, starting managed containerd"
sandbox.go:138: time="2024-12-02T23:06:06.920082814Z" level=info msg="started new containerd process" address=/tmp/dxr/domll74kcq37a/containerd/containerd.sock module=libcontainerd pid=18544
sandbox.go:138: time="2024-12-02T23:06:06.920479069Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/domll74kcq37a/containerd/containerd.sock module=libcontainerd
sandbox.go:138: time="2024-12-02T23:06:06.920620297Z" level=debug msg="2024/12/02 23:06:06 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/domll74kcq37a/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connection error: desc = \"transport: Error while dialing: dial unix /tmp/dxr/domll74kcq37a/containerd/containerd.sock: connect: no such file or directory\"" library=grpc
sandbox.go:138: time="2024-12-02T23:06:06.930833323Z" level=info msg="starting containerd" revision=7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c version=v1.7.22
sandbox.go:138: time="2024-12-02T23:06:06.943517310Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:138: time="2024-12-02T23:06:06.943539582Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:138: time="2024-12-02T23:06:06.943562535Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1
sandbox.go:138: time="2024-12-02T23:06:06.943574819Z" level=info msg="
|
Generate annotations:
tests/bake.go#L322
=== RUN TestIntegration/TestBakeRemoteLocalOverride/worker=docker
=== PAUSE TestIntegration/TestBakeRemoteLocalOverride/worker=docker
=== CONT TestIntegration/TestBakeRemoteLocalOverride/worker=docker
time="2024-12-02T23:04:17Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:39729"
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=docker
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:39793/test.git --file cwd://local-docker-bake.hcl --set *.output=type=local,dest=/tmp/TestIntegrationTestBakeRemoteLocalOverrideworker=docker2089178252/003
ERROR: additional privileges requested
sandbox.go:135: stdout: /usr/bin/dockerd
sandbox.go:135: stderr: /usr/bin/dockerd
sandbox.go:138: > startCmd 2024-12-02 23:04:22.676896405 +0000 UTC m=+5.670136888 /usr/bin/dockerd --data-root /tmp/integration2804894879/dxv28xh55mw9k/root --exec-root /tmp/dxr/dxv28xh55mw9k --pidfile /tmp/integration2804894879/dxv28xh55mw9k/docker.pid --containerd-namespace dxv28xh55mw9k --containerd-plugins-namespace dxv28xh55mw9kp --host unix:///tmp/docker-integration/dxv28xh55mw9k.sock --config-file /tmp/integration2804894879/daemon.json --userland-proxy=false --tls=false --debug
sandbox.go:138: time="2024-12-02T23:04:22.695238054Z" level=info msg="Starting up"
sandbox.go:138: time="2024-12-02T23:04:22.696376206Z" level=warning msg="could not change group /tmp/docker-integration/dxv28xh55mw9k.sock to docker: group docker not found"
sandbox.go:138: time="2024-12-02T23:04:22.696489860Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dxv28xh55mw9k.sock)"
sandbox.go:138: time="2024-12-02T23:04:22.696515348Z" level=info msg="containerd not running, starting managed containerd"
sandbox.go:138: time="2024-12-02T23:04:22.697070255Z" level=info msg="started new containerd process" address=/tmp/dxr/dxv28xh55mw9k/containerd/containerd.sock module=libcontainerd pid=9043
sandbox.go:138: time="2024-12-02T23:04:22.697402460Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dxv28xh55mw9k/containerd/containerd.sock module=libcontainerd
sandbox.go:138: time="2024-12-02T23:04:22.697551448Z" level=debug msg="2024/12/02 23:04:22 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dxv28xh55mw9k/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connection error: desc = \"transport: Error while dialing: dial unix /tmp/dxr/dxv28xh55mw9k/containerd/containerd.sock: connect: no such file or directory\"" library=grpc
sandbox.go:138: time="2024-12-02T23:04:22.708056289Z" level=info msg="starting containerd" revision=7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c version=v1.7.22
sandbox.go:138: time="2024-12-02T23:04:22.720580119Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:138: time="2024-12-02T23:04:22.720602240Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:138: time="2024-12-02T23:04:22.720854195Z" level=info msg
|
Generate annotations:
tests/bake.go#L617
=== RUN TestIntegration/TestBakeRemoteDockerfileCwd/worker=docker
=== PAUSE TestIntegration/TestBakeRemoteDockerfileCwd/worker=docker
=== CONT TestIntegration/TestBakeRemoteDockerfileCwd/worker=docker
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=docker
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:41517/test.git --set *.output=type=local,dest=/tmp/TestIntegrationTestBakeRemoteDockerfileCwdworker=docker3659509705/003
ERROR: additional privileges requested
sandbox.go:135: stdout: /usr/bin/dockerd
sandbox.go:135: stderr: /usr/bin/dockerd
sandbox.go:138: > startCmd 2024-12-02 23:05:48.598060394 +0000 UTC m=+91.591300857 /usr/bin/dockerd --data-root /tmp/integration1460328056/dtrk8kfxflslc/root --exec-root /tmp/dxr/dtrk8kfxflslc --pidfile /tmp/integration1460328056/dtrk8kfxflslc/docker.pid --containerd-namespace dtrk8kfxflslc --containerd-plugins-namespace dtrk8kfxflslcp --host unix:///tmp/docker-integration/dtrk8kfxflslc.sock --config-file /tmp/integration1460328056/daemon.json --userland-proxy=false --tls=false --debug
sandbox.go:138: time="2024-12-02T23:05:48.615931119Z" level=info msg="Starting up"
sandbox.go:138: time="2024-12-02T23:05:48.616980323Z" level=warning msg="could not change group /tmp/docker-integration/dtrk8kfxflslc.sock to docker: group docker not found"
sandbox.go:138: time="2024-12-02T23:05:48.617090180Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dtrk8kfxflslc.sock)"
sandbox.go:138: time="2024-12-02T23:05:48.617106140Z" level=info msg="containerd not running, starting managed containerd"
sandbox.go:138: time="2024-12-02T23:05:48.617661996Z" level=info msg="started new containerd process" address=/tmp/dxr/dtrk8kfxflslc/containerd/containerd.sock module=libcontainerd pid=16580
sandbox.go:138: time="2024-12-02T23:05:48.618036742Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dtrk8kfxflslc/containerd/containerd.sock module=libcontainerd
sandbox.go:138: time="2024-12-02T23:05:48.618187295Z" level=debug msg="2024/12/02 23:05:48 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dtrk8kfxflslc/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connection error: desc = \"transport: Error while dialing: dial unix /tmp/dxr/dtrk8kfxflslc/containerd/containerd.sock: connect: no such file or directory\"" library=grpc
sandbox.go:138: time="2024-12-02T23:05:48.628491952Z" level=info msg="starting containerd" revision=7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c version=v1.7.22
sandbox.go:138: time="2024-12-02T23:05:48.641040036Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:138: time="2024-12-02T23:05:48.641067307Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:138: time="2024-12-02T23:05:48.641101952Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1
sandbox.go:138: time="2024-12-02T23:05:48.641122110Z" le
|
Test
Process completed with exit code 1.
|
Loading