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/moby/buildkit:buildx-stable-1 to local mirror localhost:42503/moby/buildkit:buildx-stable-1
time="2024-12-02T23:04:18Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:42503"
run.go:272: copied docker.io/amd64/busybox:latest@sha256:023917ec6a886d0e8e15f28fb543515a5fcd8d938edb091e8147db4efed388ee to local mirror localhost:42503/library/busybox:latest
time="2024-12-02T23:04:19Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:42503"
run.go:272: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:42503/library/alpine:latest
--- FAIL: TestIntegration (0.01s)
|
Generate annotations:
tests/bake.go#L245
=== RUN TestIntegration/TestBakeRemote/worker=docker+containerd
=== PAUSE TestIntegration/TestBakeRemote/worker=docker+containerd
=== CONT TestIntegration/TestBakeRemote/worker=docker+containerd
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+containerd
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:36097/test.git --set *.output=type=local,dest=/tmp/TestIntegrationTestBakeRemoteworker=docker+containerd3634141853/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:06.268575656 +0000 UTC m=+113.553423007 /usr/bin/dockerd --data-root /tmp/integration3173915693/dzqmpcg9frqph/root --exec-root /tmp/dxr/dzqmpcg9frqph --pidfile /tmp/integration3173915693/dzqmpcg9frqph/docker.pid --containerd-namespace dzqmpcg9frqph --containerd-plugins-namespace dzqmpcg9frqphp --host unix:///tmp/docker-integration/dzqmpcg9frqph.sock --config-file /tmp/integration3173915693/daemon.json --userland-proxy=false --tls=false --debug
sandbox.go:138: time="2024-12-02T23:06:06.286648577Z" level=info msg="Starting up"
sandbox.go:138: time="2024-12-02T23:06:06.287687381Z" level=warning msg="could not change group /tmp/docker-integration/dzqmpcg9frqph.sock to docker: group docker not found"
sandbox.go:138: time="2024-12-02T23:06:06.287804169Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dzqmpcg9frqph.sock)"
sandbox.go:138: time="2024-12-02T23:06:06.287824036Z" level=info msg="containerd not running, starting managed containerd"
sandbox.go:138: time="2024-12-02T23:06:06.288387004Z" level=info msg="started new containerd process" address=/tmp/dxr/dzqmpcg9frqph/containerd/containerd.sock module=libcontainerd pid=18379
sandbox.go:138: time="2024-12-02T23:06:06.288760543Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dzqmpcg9frqph/containerd/containerd.sock module=libcontainerd
sandbox.go:138: time="2024-12-02T23:06:06.288893610Z" 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/dzqmpcg9frqph/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/dzqmpcg9frqph/containerd/containerd.sock: connect: no such file or directory\"" library=grpc
sandbox.go:138: time="2024-12-02T23:06:06.298981179Z" level=info msg="starting containerd" revision=7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c version=v1.7.22
sandbox.go:138: time="2024-12-02T23:06:06.311989287Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:138: time="2024-12-02T23:06:06.312013082Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:138: time="2024-12-02T23:06:06.312035974Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1
sandbox.go:138: time="2024-12-02T23:06:06.312047766Z" level=info
|
Generate annotations:
tests/testutilserve.go#L54
=== RUN TestIntegration/TestBakeRemoteAuth/worker=docker+containerd
=== PAUSE TestIntegration/TestBakeRemoteAuth/worker=docker+containerd
=== CONT TestIntegration/TestBakeRemoteAuth/worker=docker+containerd
testutilserve.go:54: git access token to check: "8osvt4ezm87zfrgqr06b6te4g"
testutilserve.go:56: basic auth: user="x-access-token" pass="8osvt4ezm87zfrgqr06b6te4g"
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+containerd
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:37115/test.git --set *.output=type=local,dest=/tmp/TestIntegrationTestBakeRemoteAuthworker=docker+containerd14826135/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:03.7150432 +0000 UTC m=+110.999890561 /usr/bin/dockerd --data-root /tmp/integration3348441067/dkwjt40g2o9bt/root --exec-root /tmp/dxr/dkwjt40g2o9bt --pidfile /tmp/integration3348441067/dkwjt40g2o9bt/docker.pid --containerd-namespace dkwjt40g2o9bt --containerd-plugins-namespace dkwjt40g2o9btp --host unix:///tmp/docker-integration/dkwjt40g2o9bt.sock --config-file /tmp/integration3348441067/daemon.json --userland-proxy=false --tls=false --debug
sandbox.go:138: time="2024-12-02T23:06:03.733477637Z" level=info msg="Starting up"
sandbox.go:138: time="2024-12-02T23:06:03.734446520Z" level=warning msg="could not change group /tmp/docker-integration/dkwjt40g2o9bt.sock to docker: group docker not found"
sandbox.go:138: time="2024-12-02T23:06:03.734565954Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dkwjt40g2o9bt.sock)"
sandbox.go:138: time="2024-12-02T23:06:03.734581292Z" level=info msg="containerd not running, starting managed containerd"
sandbox.go:138: time="2024-12-02T23:06:03.735111123Z" level=info msg="started new containerd process" address=/tmp/dxr/dkwjt40g2o9bt/containerd/containerd.sock module=libcontainerd pid=18104
sandbox.go:138: time="2024-12-02T23:06:03.735546228Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dkwjt40g2o9bt/containerd/containerd.sock module=libcontainerd
sandbox.go:138: time="2024-12-02T23:06:03.735664913Z" level=debug msg="2024/12/02 23:06:03 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dkwjt40g2o9bt/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/dkwjt40g2o9bt/containerd/containerd.sock: connect: no such file or directory\"" library=grpc
sandbox.go:138: time="2024-12-02T23:06:03.745769450Z" level=info msg="starting containerd" revision=7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c version=v1.7.22
sandbox.go:138: time="2024-12-02T23:06:03.758402354Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:138: time="2024-12-02T23:06:03.758424646Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:138: time="2024-12-02T23:06:03.
|
Generate annotations:
tests/bake.go#L391
=== RUN TestIntegration/TestBakeRemoteCmdContext/worker=docker+containerd
=== PAUSE TestIntegration/TestBakeRemoteCmdContext/worker=docker+containerd
=== CONT TestIntegration/TestBakeRemoteCmdContext/worker=docker+containerd
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+containerd
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:44915/test.git --set *.output=type=local,dest=/tmp/TestIntegrationTestBakeRemoteCmdContextworker=docker+containerd177176115/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.381546698 +0000 UTC m=+9.666394059 /usr/bin/dockerd --data-root /tmp/integration564694282/di0iebny3uo44/root --exec-root /tmp/dxr/di0iebny3uo44 --pidfile /tmp/integration564694282/di0iebny3uo44/docker.pid --containerd-namespace di0iebny3uo44 --containerd-plugins-namespace di0iebny3uo44p --host unix:///tmp/docker-integration/di0iebny3uo44.sock --config-file /tmp/integration564694282/daemon.json --userland-proxy=false --tls=false --debug
sandbox.go:138: time="2024-12-02T23:04:22.399661567Z" level=info msg="Starting up"
sandbox.go:138: time="2024-12-02T23:04:22.400672206Z" level=warning msg="could not change group /tmp/docker-integration/di0iebny3uo44.sock to docker: group docker not found"
sandbox.go:138: time="2024-12-02T23:04:22.400843195Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/di0iebny3uo44.sock)"
sandbox.go:138: time="2024-12-02T23:04:22.400867801Z" level=info msg="containerd not running, starting managed containerd"
sandbox.go:138: time="2024-12-02T23:04:22.401402289Z" level=info msg="started new containerd process" address=/tmp/dxr/di0iebny3uo44/containerd/containerd.sock module=libcontainerd pid=9207
sandbox.go:138: time="2024-12-02T23:04:22.401818688Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/di0iebny3uo44/containerd/containerd.sock module=libcontainerd
sandbox.go:138: time="2024-12-02T23:04:22.401951659Z" 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/di0iebny3uo44/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/di0iebny3uo44/containerd/containerd.sock: connect: no such file or directory\"" library=grpc
sandbox.go:138: time="2024-12-02T23:04:22.412166452Z" level=info msg="starting containerd" revision=7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c version=v1.7.22
sandbox.go:138: time="2024-12-02T23:04:22.424655838Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:138: time="2024-12-02T23:04:22.424678060Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:138: time="2024-12-02T23:04:22.424701243Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1
sandbox.go:138: time="
|
Generate annotations:
tests/bake.go#L322
=== RUN TestIntegration/TestBakeRemoteLocalOverride/worker=docker+containerd
=== PAUSE TestIntegration/TestBakeRemoteLocalOverride/worker=docker+containerd
=== CONT TestIntegration/TestBakeRemoteLocalOverride/worker=docker+containerd
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+containerd
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:44983/test.git --file cwd://local-docker-bake.hcl --set *.output=type=local,dest=/tmp/TestIntegrationTestBakeRemoteLocalOverrideworker=docker+containerd2390477783/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:58.746397641 +0000 UTC m=+106.031244992 /usr/bin/dockerd --data-root /tmp/integration3369452385/dkdtjv3bj56t2/root --exec-root /tmp/dxr/dkdtjv3bj56t2 --pidfile /tmp/integration3369452385/dkdtjv3bj56t2/docker.pid --containerd-namespace dkdtjv3bj56t2 --containerd-plugins-namespace dkdtjv3bj56t2p --host unix:///tmp/docker-integration/dkdtjv3bj56t2.sock --config-file /tmp/integration3369452385/daemon.json --userland-proxy=false --tls=false --debug
sandbox.go:138: time="2024-12-02T23:05:58.764107699Z" level=info msg="Starting up"
sandbox.go:138: time="2024-12-02T23:05:58.765172000Z" level=warning msg="could not change group /tmp/docker-integration/dkdtjv3bj56t2.sock to docker: group docker not found"
sandbox.go:138: time="2024-12-02T23:05:58.765293437Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dkdtjv3bj56t2.sock)"
sandbox.go:138: time="2024-12-02T23:05:58.765313695Z" level=info msg="containerd not running, starting managed containerd"
sandbox.go:138: time="2024-12-02T23:05:58.765883354Z" level=info msg="started new containerd process" address=/tmp/dxr/dkdtjv3bj56t2/containerd/containerd.sock module=libcontainerd pid=17642
sandbox.go:138: time="2024-12-02T23:05:58.766187292Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dkdtjv3bj56t2/containerd/containerd.sock module=libcontainerd
sandbox.go:138: time="2024-12-02T23:05:58.766332867Z" level=debug msg="2024/12/02 23:05:58 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dkdtjv3bj56t2/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/dkdtjv3bj56t2/containerd/containerd.sock: connect: no such file or directory\"" library=grpc
sandbox.go:138: time="2024-12-02T23:05:58.777253342Z" level=info msg="starting containerd" revision=7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c version=v1.7.22
sandbox.go:138: time="2024-12-02T23:05:58.789838075Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:138: time="2024-12-02T23:05:58.789884723Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:138: time="2024-12-02T23:05:58.789917805Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..."
|
Generate annotations:
tests/bake.go#L617
=== RUN TestIntegration/TestBakeRemoteDockerfileCwd/worker=docker+containerd
=== PAUSE TestIntegration/TestBakeRemoteDockerfileCwd/worker=docker+containerd
=== CONT TestIntegration/TestBakeRemoteDockerfileCwd/worker=docker+containerd
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+containerd
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:38927/test.git --set *.output=type=local,dest=/tmp/TestIntegrationTestBakeRemoteDockerfileCwdworker=docker+containerd1281057835/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.276829503 +0000 UTC m=+95.561676854 /usr/bin/dockerd --data-root /tmp/integration3964367944/dnk65n1a120wf/root --exec-root /tmp/dxr/dnk65n1a120wf --pidfile /tmp/integration3964367944/dnk65n1a120wf/docker.pid --containerd-namespace dnk65n1a120wf --containerd-plugins-namespace dnk65n1a120wfp --host unix:///tmp/docker-integration/dnk65n1a120wf.sock --config-file /tmp/integration3964367944/daemon.json --userland-proxy=false --tls=false --debug
sandbox.go:138: time="2024-12-02T23:05:48.293919722Z" level=info msg="Starting up"
sandbox.go:138: time="2024-12-02T23:05:48.294866151Z" level=warning msg="could not change group /tmp/docker-integration/dnk65n1a120wf.sock to docker: group docker not found"
sandbox.go:138: time="2024-12-02T23:05:48.294983611Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dnk65n1a120wf.sock)"
sandbox.go:138: time="2024-12-02T23:05:48.294999691Z" level=info msg="containerd not running, starting managed containerd"
sandbox.go:138: time="2024-12-02T23:05:48.295551500Z" level=info msg="started new containerd process" address=/tmp/dxr/dnk65n1a120wf/containerd/containerd.sock module=libcontainerd pid=16529
sandbox.go:138: time="2024-12-02T23:05:48.295837666Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dnk65n1a120wf/containerd/containerd.sock module=libcontainerd
sandbox.go:138: time="2024-12-02T23:05:48.295996618Z" 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/dnk65n1a120wf/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/dnk65n1a120wf/containerd/containerd.sock: connect: no such file or directory\"" library=grpc
sandbox.go:138: time="2024-12-02T23:05:48.306283057Z" level=info msg="starting containerd" revision=7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c version=v1.7.22
sandbox.go:138: time="2024-12-02T23:05:48.318897931Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:138: time="2024-12-02T23:05:48.318920514Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:138: time="2024-12-02T23:05:48.318950470Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1
s
|
Test
Process completed with exit code 1.
|
Loading