Skip to content

Commit

Permalink
bake: extend print test
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Nov 28, 2024
1 parent e689d18 commit dd6916c
Showing 1 changed file with 135 additions and 0 deletions.
135 changes: 135 additions & 0 deletions tests/bake.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

"github.com/containerd/continuity/fs/fstest"
"github.com/docker/buildx/bake"
"github.com/docker/buildx/util/buildflags"
"github.com/docker/buildx/util/gitutil"
"github.com/moby/buildkit/client"
"github.com/moby/buildkit/frontend/subrequests/lint"
Expand All @@ -32,6 +33,7 @@ func bakeCmd(sb integration.Sandbox, opts ...cmdOpt) (string, error) {

var bakeTests = []func(t *testing.T, sb integration.Sandbox){
testBakePrint,
testBakePrintConsistency,
testBakeLocal,
testBakeLocalMulti,
testBakeRemote,
Expand Down Expand Up @@ -63,6 +65,139 @@ var bakeTests = []func(t *testing.T, sb integration.Sandbox){
}

func testBakePrint(t *testing.T, sb integration.Sandbox) {
dockerfile := []byte(`
FROM busybox
ARG HELLO
RUN echo "Hello ${HELLO}"
`)
bakefile := []byte(`
target "build" {
args = {
HELLO = "foo"
}
cache-from = [
"type=gha,scope=build",
"type=s3,region=eu-west-1,bucket=mybucket",
"user/repo:cache",
]
cache-to = [
"type=gha,scope=build,token=foo,mode=max",
"type=s3,region=eu-west-1,bucket=mybucket",
"type=inline"
]
output = [
"./release-out",
"type=registry,ref=user/app"
]
}
`)
dir := tmpdir(
t,
fstest.CreateFile("docker-bake.hcl", bakefile, 0600),
fstest.CreateFile("Dockerfile", dockerfile, 0600),
)

cmd := buildxCmd(sb, withDir(dir), withArgs("bake", "--print", "build"))
cmd.Env = append(cmd.Env, "ACTIONS_RUNTIME_TOKEN=baz", "AWS_ACCESS_KEY_ID=foo", "AWS_SECRET_ACCESS_KEY=bar")
stdout := bytes.Buffer{}
stderr := bytes.Buffer{}
cmd.Stdout = &stdout
cmd.Stderr = &stderr
require.NoError(t, cmd.Run(), stdout.String(), stderr.String())

var def struct {
Group map[string]*bake.Group `json:"group,omitempty"`
Target map[string]*bake.Target `json:"target"`
}
require.NoError(t, json.Unmarshal(stdout.Bytes(), &def))

require.Len(t, def.Group, 1)
require.Contains(t, def.Group, "default")

require.Equal(t, []string{"build"}, def.Group["default"].Targets)
require.Len(t, def.Target, 1)
require.Contains(t, def.Target, "build")
require.Equal(t, ".", *def.Target["build"].Context)
require.Equal(t, "Dockerfile", *def.Target["build"].Dockerfile)
require.Equal(t, map[string]*string{"HELLO": ptrstr("foo")}, def.Target["build"].Args)
require.Equal(t, []*buildflags.CacheOptionsEntry{

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (buildx-stable-1, remote, ./tests)

Failed: tests/TestIntegration/TestBakePrint/worker=remote

=== RUN TestIntegration/TestBakePrint/worker=remote === PAUSE TestIntegration/TestBakePrint/worker=remote === CONT TestIntegration/TestBakePrint/worker=remote bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001195560), (*buildflags.CacheOptionsEntry)(0xc001195578), (*buildflags.CacheOptionsEntry)(0xc001195590)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0011953c8), (*buildflags.CacheOptionsEntry)(0xc0011953f8), (*buildflags.CacheOptionsEntry)(0xc001195428)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=remote 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_config1323541929/buildkitd.toml --root /tmp/bktest_buildkitd1320923932 --addr unix:///tmp/bktest_buildkitd1320923932/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 15:50:38.388718455 +0000 UTC m=+9.073378156 /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_config1323541929/buildkitd.toml --root /tmp/bktest_buildkitd1320923932 --addr unix:///tmp/bktest_buildkitd1320923932/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T15:50:38Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T15:50:38Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T15:50:38Z" level=info msg="found worker \"xrs061zed111ai9zfptpzqve6\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:2cd58c21f4c6 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-11-28T15:50:38Z" level=info msg="found 1 workers, default=\"xrs061zed111ai9zfptpzqve6\"" sandbox.go:138: time="2024-11-28T15:50:38Z" level=warning msg="currently, only the default worker can be used." sandbox.go:138: time="2024-11-28T15:50:38Z" level=info msg="running server on /tmp/bktest_buildkitd1320923932/bu

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (master, remote, ./tests)

Failed: tests/TestIntegration/TestBakePrint/worker=remote

=== RUN TestIntegration/TestBakePrint/worker=remote === PAUSE TestIntegration/TestBakePrint/worker=remote === CONT TestIntegration/TestBakePrint/worker=remote bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0014aa660), (*buildflags.CacheOptionsEntry)(0xc0014aa678), (*buildflags.CacheOptionsEntry)(0xc0014aa690)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0014aa4c8), (*buildflags.CacheOptionsEntry)(0xc0014aa4f8), (*buildflags.CacheOptionsEntry)(0xc0014aa528)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=remote 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_config4245442633/buildkitd.toml --root /tmp/bktest_buildkitd591273116 --addr unix:///tmp/bktest_buildkitd591273116/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_config4245442633/buildkitd.toml --root /tmp/bktest_buildkitd591273116 --addr unix:///tmp/bktest_buildkitd591273116/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 15:50:39.646651789 +0000 UTC m=+9.585741415 /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_config4245442633/buildkitd.toml --root /tmp/bktest_buildkitd591273116 --addr unix:///tmp/bktest_buildkitd591273116/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T15:50:39Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T15:50:39Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T15:50:39Z" level=info msg="found worker \"xwo421atdsprkyvkm1fjp1gxk\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:2dc5248de960 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:

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (v0.15.2, remote, ./tests)

Failed: tests/TestIntegration/TestBakePrint/worker=remote

=== RUN TestIntegration/TestBakePrint/worker=remote === PAUSE TestIntegration/TestBakePrint/worker=remote === CONT TestIntegration/TestBakePrint/worker=remote bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0007ab980), (*buildflags.CacheOptionsEntry)(0xc0007ab998), (*buildflags.CacheOptionsEntry)(0xc0007ab9b0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0007ab7b8), (*buildflags.CacheOptionsEntry)(0xc0007ab7e8), (*buildflags.CacheOptionsEntry)(0xc0007ab818)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=remote 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_config2437880564/buildkitd.toml --root /tmp/bktest_buildkitd2153313729 --addr unix:///tmp/bktest_buildkitd2153313729/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_config2437880564/buildkitd.toml --root /tmp/bktest_buildkitd2153313729 --addr unix:///tmp/bktest_buildkitd2153313729/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 15:50:36.843682743 +0000 UTC m=+6.194672851 /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_config2437880564/buildkitd.toml --root /tmp/bktest_buildkitd2153313729 --addr unix:///tmp/bktest_buildkitd2153313729/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T15:50:36Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T15:50:36Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T15:50:36Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T15:50:36Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T15:50:36Z" level=info msg="found worker \"27wdzf2zxny23cqsd1t47x53s\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:ccd87045f526 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.wor

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (buildx-stable-1, remote, ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/worker=remote

=== RUN TestIntegration/TestBakePrint/worker=remote === PAUSE TestIntegration/TestBakePrint/worker=remote === CONT TestIntegration/TestBakePrint/worker=remote bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001069140), (*buildflags.CacheOptionsEntry)(0xc001069158), (*buildflags.CacheOptionsEntry)(0xc001069170)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001068fa8), (*buildflags.CacheOptionsEntry)(0xc001068fd8), (*buildflags.CacheOptionsEntry)(0xc001069008)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=remote 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_config557739013/buildkitd.toml --root /tmp/bktest_buildkitd2578302073 --addr unix:///tmp/bktest_buildkitd2578302073/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_config557739013/buildkitd.toml --root /tmp/bktest_buildkitd2578302073 --addr unix:///tmp/bktest_buildkitd2578302073/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 15:50:43.805248873 +0000 UTC m=+10.054248848 /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_config557739013/buildkitd.toml --root /tmp/bktest_buildkitd2578302073 --addr unix:///tmp/bktest_buildkitd2578302073/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T15:50:43Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T15:50:43Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T15:50:43Z" level=info msg="found worker \"4ttot72zbehsjdhwanc3rhn32\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:ea9f685df043 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:

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (v0.16.0, remote, ./tests)

Failed: tests/TestIntegration/TestBakePrint/worker=remote

=== RUN TestIntegration/TestBakePrint/worker=remote === PAUSE TestIntegration/TestBakePrint/worker=remote === CONT TestIntegration/TestBakePrint/worker=remote bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00065b260), (*buildflags.CacheOptionsEntry)(0xc00065b278), (*buildflags.CacheOptionsEntry)(0xc00065b290)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00065b098), (*buildflags.CacheOptionsEntry)(0xc00065b0c8), (*buildflags.CacheOptionsEntry)(0xc00065b0f8)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=remote 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_config1960790774/buildkitd.toml --root /tmp/bktest_buildkitd3210000909 --addr unix:///tmp/bktest_buildkitd3210000909/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_config1960790774/buildkitd.toml --root /tmp/bktest_buildkitd3210000909 --addr unix:///tmp/bktest_buildkitd3210000909/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 15:50:43.796390853 +0000 UTC m=+9.314256934 /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_config1960790774/buildkitd.toml --root /tmp/bktest_buildkitd3210000909 --addr unix:///tmp/bktest_buildkitd3210000909/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T15:50:43Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T15:50:43Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T15:50:43Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T15:50:43Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T15:50:43Z" level=info msg="found worker \"are0sbcj1pozk1eiui86mb4lv\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:cc007e59671c org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.wor

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (v0.16.0, remote, ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/worker=remote

=== RUN TestIntegration/TestBakePrint/worker=remote === PAUSE TestIntegration/TestBakePrint/worker=remote === CONT TestIntegration/TestBakePrint/worker=remote bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00163ad80), (*buildflags.CacheOptionsEntry)(0xc00163ad98), (*buildflags.CacheOptionsEntry)(0xc00163adb0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00163abe8), (*buildflags.CacheOptionsEntry)(0xc00163ac18), (*buildflags.CacheOptionsEntry)(0xc00163ac48)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=remote 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_config3981419789/buildkitd.toml --root /tmp/bktest_buildkitd3556410596 --addr unix:///tmp/bktest_buildkitd3556410596/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_config3981419789/buildkitd.toml --root /tmp/bktest_buildkitd3556410596 --addr unix:///tmp/bktest_buildkitd3556410596/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 15:50:39.330490751 +0000 UTC m=+5.944805695 /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_config3981419789/buildkitd.toml --root /tmp/bktest_buildkitd3556410596 --addr unix:///tmp/bktest_buildkitd3556410596/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T15:50:39Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T15:50:39Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T15:50:39Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T15:50:39Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T15:50:39Z" level=info msg="found worker \"ylebqezycz7y7gmbjyayta9ly\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:3abc6ba327d3 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.wor

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (v0.17.2, remote, ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/worker=remote

=== RUN TestIntegration/TestBakePrint/worker=remote === PAUSE TestIntegration/TestBakePrint/worker=remote === CONT TestIntegration/TestBakePrint/worker=remote bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00145b3b0), (*buildflags.CacheOptionsEntry)(0xc00145b3c8), (*buildflags.CacheOptionsEntry)(0xc00145b3e0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00145b218), (*buildflags.CacheOptionsEntry)(0xc00145b248), (*buildflags.CacheOptionsEntry)(0xc00145b278)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=remote 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_config916245568/buildkitd.toml --root /tmp/bktest_buildkitd367677419 --addr unix:///tmp/bktest_buildkitd367677419/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_config916245568/buildkitd.toml --root /tmp/bktest_buildkitd367677419 --addr unix:///tmp/bktest_buildkitd367677419/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 15:50:43.492286811 +0000 UTC m=+8.732484488 /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_config916245568/buildkitd.toml --root /tmp/bktest_buildkitd367677419 --addr unix:///tmp/bktest_buildkitd367677419/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T15:50:43Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T15:50:43Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T15:50:43Z" level=info msg="found worker \"jrmmrublm0srm65totspiuos7\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:2f8f3c32da3d 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: ti

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (v0.17.2, remote, ./tests)

Failed: tests/TestIntegration/TestBakePrint/worker=remote

=== RUN TestIntegration/TestBakePrint/worker=remote === PAUSE TestIntegration/TestBakePrint/worker=remote === CONT TestIntegration/TestBakePrint/worker=remote bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0004ae3a8), (*buildflags.CacheOptionsEntry)(0xc0004ae3c0), (*buildflags.CacheOptionsEntry)(0xc0004ae3d8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0004ae210), (*buildflags.CacheOptionsEntry)(0xc0004ae240), (*buildflags.CacheOptionsEntry)(0xc0004ae270)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=remote 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_config2441690338/buildkitd.toml --root /tmp/bktest_buildkitd3413419266 --addr unix:///tmp/bktest_buildkitd3413419266/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 15:50:48.273742462 +0000 UTC m=+8.061207323 /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_config2441690338/buildkitd.toml --root /tmp/bktest_buildkitd3413419266 --addr unix:///tmp/bktest_buildkitd3413419266/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T15:50:48Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T15:50:48Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T15:50:48Z" level=info msg="found worker \"r88pghfnjs2act8f2rlucdtnm\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:f17f8fc85a11 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-11-28T15:50:48Z" level=info msg="found 1 workers, default=\"r88pghfnjs2act8f2rlucdtnm\"" sandbox.go:138: time="2024-11-28T15:50:48Z" level=warning msg="currently, only the default worker can be used." sandbox.go:138: time="2024-11-28T15:50:48Z" level=info msg="running server on /tmp/bktest_buildkitd3413419266/bu

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (latest, docker-container, ./tests)

Failed: tests/TestIntegration/TestBakePrint/worker=docker-container

=== RUN TestIntegration/TestBakePrint/worker=docker-container === PAUSE TestIntegration/TestBakePrint/worker=docker-container === CONT TestIntegration/TestBakePrint/worker=docker-container bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000c8d2d8), (*buildflags.CacheOptionsEntry)(0xc000c8d2f0), (*buildflags.CacheOptionsEntry)(0xc000c8d308)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000c8d140), (*buildflags.CacheOptionsEntry)(0xc000c8d170), (*buildflags.CacheOptionsEntry)(0xc000c8d1a0)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (0.91s)

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (v0.15.2, remote, ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/worker=remote

=== RUN TestIntegration/TestBakePrint/worker=remote === PAUSE TestIntegration/TestBakePrint/worker=remote === CONT TestIntegration/TestBakePrint/worker=remote bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000600fd8), (*buildflags.CacheOptionsEntry)(0xc000600ff0), (*buildflags.CacheOptionsEntry)(0xc000601008)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000600e40), (*buildflags.CacheOptionsEntry)(0xc000600e70), (*buildflags.CacheOptionsEntry)(0xc000600ea0)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=remote 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_config2541247855/buildkitd.toml --root /tmp/bktest_buildkitd1985787773 --addr unix:///tmp/bktest_buildkitd1985787773/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 15:50:48.268643709 +0000 UTC m=+9.129464078 /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_config2541247855/buildkitd.toml --root /tmp/bktest_buildkitd1985787773 --addr unix:///tmp/bktest_buildkitd1985787773/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T15:50:48Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T15:50:48Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T15:50:48Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T15:50:48Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T15:50:48Z" level=info msg="found worker \"4gkvdkwxl4dukkmwyaz15tmr1\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:9dc0a9e726b7 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/mips64le linux/mips64 linux/arm/v7 linux/arm/v6]" sandbox.go:138: time="2024-11-28T15:50:48Z" level=info msg="found 1 workers, defau

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (latest, remote, ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/worker=remote

=== RUN TestIntegration/TestBakePrint/worker=remote === PAUSE TestIntegration/TestBakePrint/worker=remote === CONT TestIntegration/TestBakePrint/worker=remote bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001fc4570), (*buildflags.CacheOptionsEntry)(0xc001fc4588), (*buildflags.CacheOptionsEntry)(0xc001fc45a0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001fc43a8), (*buildflags.CacheOptionsEntry)(0xc001fc43d8), (*buildflags.CacheOptionsEntry)(0xc001fc4438)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=remote 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_config982997084/buildkitd.toml --root /tmp/bktest_buildkitd3081978458 --addr unix:///tmp/bktest_buildkitd3081978458/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_config982997084/buildkitd.toml --root /tmp/bktest_buildkitd3081978458 --addr unix:///tmp/bktest_buildkitd3081978458/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 15:50:48.925456083 +0000 UTC m=+8.560130161 /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_config982997084/buildkitd.toml --root /tmp/bktest_buildkitd3081978458 --addr unix:///tmp/bktest_buildkitd3081978458/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T15:50:48Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T15:50:48Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T15:50:48Z" level=info msg="found worker \"y42bnter324vm6k2vpdp3j9k0\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:42e6f9a41bef 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:1

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (latest, remote, ./tests)

Failed: tests/TestIntegration/TestBakePrint/worker=remote

=== RUN TestIntegration/TestBakePrint/worker=remote === PAUSE TestIntegration/TestBakePrint/worker=remote === CONT TestIntegration/TestBakePrint/worker=remote bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00206b158), (*buildflags.CacheOptionsEntry)(0xc00206b170), (*buildflags.CacheOptionsEntry)(0xc00206b188)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00206afc0), (*buildflags.CacheOptionsEntry)(0xc00206aff0), (*buildflags.CacheOptionsEntry)(0xc00206b020)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=remote 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_config4254210210/buildkitd.toml --root /tmp/bktest_buildkitd2138063014 --addr unix:///tmp/bktest_buildkitd2138063014/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_config4254210210/buildkitd.toml --root /tmp/bktest_buildkitd2138063014 --addr unix:///tmp/bktest_buildkitd2138063014/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 15:50:52.294769863 +0000 UTC m=+9.593636679 /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_config4254210210/buildkitd.toml --root /tmp/bktest_buildkitd2138063014 --addr unix:///tmp/bktest_buildkitd2138063014/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T15:50:52Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T15:50:52Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T15:50:52Z" level=info msg="found worker \"z4dl539khdyb0wif8dmq6ivt6\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:9ba670f35cdd 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.g

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (v0.17.2, docker-container, ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/worker=docker-container

=== RUN TestIntegration/TestBakePrint/worker=docker-container === PAUSE TestIntegration/TestBakePrint/worker=docker-container === CONT TestIntegration/TestBakePrint/worker=docker-container bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00052dc98), (*buildflags.CacheOptionsEntry)(0xc00052dcb0), (*buildflags.CacheOptionsEntry)(0xc00052dcc8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00052dad0), (*buildflags.CacheOptionsEntry)(0xc00052db00), (*buildflags.CacheOptionsEntry)(0xc00052db30)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.17s)

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (buildx-stable-1, docker-container, ./tests)

Failed: tests/TestIntegration/TestBakePrint/worker=docker-container

=== RUN TestIntegration/TestBakePrint/worker=docker-container === PAUSE TestIntegration/TestBakePrint/worker=docker-container === CONT TestIntegration/TestBakePrint/worker=docker-container bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0017f82e8), (*buildflags.CacheOptionsEntry)(0xc0017f8300), (*buildflags.CacheOptionsEntry)(0xc0017f8318)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0017f8120), (*buildflags.CacheOptionsEntry)(0xc0017f8150), (*buildflags.CacheOptionsEntry)(0xc0017f8180)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.28s)

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (v0.17.2, docker-container, ./tests)

Failed: tests/TestIntegration/TestBakePrint/worker=docker-container

=== RUN TestIntegration/TestBakePrint/worker=docker-container === PAUSE TestIntegration/TestBakePrint/worker=docker-container === CONT TestIntegration/TestBakePrint/worker=docker-container bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0012fc378), (*buildflags.CacheOptionsEntry)(0xc0012fc390), (*buildflags.CacheOptionsEntry)(0xc0012fc3a8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0012fc1e0), (*buildflags.CacheOptionsEntry)(0xc0012fc210), (*buildflags.CacheOptionsEntry)(0xc0012fc240)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.16s)

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (master, docker-container, ./tests)

Failed: tests/TestIntegration/TestBakePrint/worker=docker-container

=== RUN TestIntegration/TestBakePrint/worker=docker-container === PAUSE TestIntegration/TestBakePrint/worker=docker-container === CONT TestIntegration/TestBakePrint/worker=docker-container bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0007018d8), (*buildflags.CacheOptionsEntry)(0xc0007018f0), (*buildflags.CacheOptionsEntry)(0xc000701908)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000701740), (*buildflags.CacheOptionsEntry)(0xc000701770), (*buildflags.CacheOptionsEntry)(0xc0007017a0)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.28s)

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (master, docker-container, ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/worker=docker-container

=== RUN TestIntegration/TestBakePrint/worker=docker-container === PAUSE TestIntegration/TestBakePrint/worker=docker-container === CONT TestIntegration/TestBakePrint/worker=docker-container bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001793c20), (*buildflags.CacheOptionsEntry)(0xc001793c38), (*buildflags.CacheOptionsEntry)(0xc001793c50)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001793a88), (*buildflags.CacheOptionsEntry)(0xc001793ab8), (*buildflags.CacheOptionsEntry)(0xc001793ae8)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.36s)

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (v0.16.0, docker-container, ./tests)

Failed: tests/TestIntegration/TestBakePrint/worker=docker-container

=== RUN TestIntegration/TestBakePrint/worker=docker-container === PAUSE TestIntegration/TestBakePrint/worker=docker-container === CONT TestIntegration/TestBakePrint/worker=docker-container bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000aa4db0), (*buildflags.CacheOptionsEntry)(0xc000aa4dc8), (*buildflags.CacheOptionsEntry)(0xc000aa4de0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000aa4c18), (*buildflags.CacheOptionsEntry)(0xc000aa4c48), (*buildflags.CacheOptionsEntry)(0xc000aa4c78)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.23s)

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (v0.15.2, docker-container, ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/worker=docker-container

=== RUN TestIntegration/TestBakePrint/worker=docker-container === PAUSE TestIntegration/TestBakePrint/worker=docker-container === CONT TestIntegration/TestBakePrint/worker=docker-container bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000c2e420), (*buildflags.CacheOptionsEntry)(0xc000c2e438), (*buildflags.CacheOptionsEntry)(0xc000c2e450)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000c2e228), (*buildflags.CacheOptionsEntry)(0xc000c2e270), (*buildflags.CacheOptionsEntry)(0xc000c2e2b8)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.08s)

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (master, remote, ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/worker=remote

=== RUN TestIntegration/TestBakePrint/worker=remote === PAUSE TestIntegration/TestBakePrint/worker=remote === CONT TestIntegration/TestBakePrint/worker=remote bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0005cd770), (*buildflags.CacheOptionsEntry)(0xc0005cd788), (*buildflags.CacheOptionsEntry)(0xc0005cd7a0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0005cd5d8), (*buildflags.CacheOptionsEntry)(0xc0005cd608), (*buildflags.CacheOptionsEntry)(0xc0005cd638)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=remote 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_config2265973531/buildkitd.toml --root /tmp/bktest_buildkitd2411991384 --addr unix:///tmp/bktest_buildkitd2411991384/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_config2265973531/buildkitd.toml --root /tmp/bktest_buildkitd2411991384 --addr unix:///tmp/bktest_buildkitd2411991384/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 15:50:57.477700542 +0000 UTC m=+9.551259286 /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_config2265973531/buildkitd.toml --root /tmp/bktest_buildkitd2411991384 --addr unix:///tmp/bktest_buildkitd2411991384/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T15:50:57Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T15:50:57Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T15:50:57Z" level=info msg="found worker \"7iv8lhqw2b5l2ku9vhcs70bpl\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:a79682b5be9e 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.g

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (v0.15.2, docker-container, ./tests)

Failed: tests/TestIntegration/TestBakePrint/worker=docker-container

=== RUN TestIntegration/TestBakePrint/worker=docker-container === PAUSE TestIntegration/TestBakePrint/worker=docker-container === CONT TestIntegration/TestBakePrint/worker=docker-container bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc002235ce0), (*buildflags.CacheOptionsEntry)(0xc002235cf8), (*buildflags.CacheOptionsEntry)(0xc002235d10)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc002235b48), (*buildflags.CacheOptionsEntry)(0xc002235b78), (*buildflags.CacheOptionsEntry)(0xc002235ba8)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.12s)

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (buildx-stable-1, docker-container, ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/worker=docker-container

=== RUN TestIntegration/TestBakePrint/worker=docker-container === PAUSE TestIntegration/TestBakePrint/worker=docker-container === CONT TestIntegration/TestBakePrint/worker=docker-container bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000773050), (*buildflags.CacheOptionsEntry)(0xc000773068), (*buildflags.CacheOptionsEntry)(0xc000773080)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000772eb8), (*buildflags.CacheOptionsEntry)(0xc000772ee8), (*buildflags.CacheOptionsEntry)(0xc000772f18)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.12s)

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (v0.16.0, docker-container, ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/worker=docker-container

=== RUN TestIntegration/TestBakePrint/worker=docker-container === PAUSE TestIntegration/TestBakePrint/worker=docker-container === CONT TestIntegration/TestBakePrint/worker=docker-container bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0007ac300), (*buildflags.CacheOptionsEntry)(0xc0007ac318), (*buildflags.CacheOptionsEntry)(0xc0007ac330)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0007ac168), (*buildflags.CacheOptionsEntry)(0xc0007ac198), (*buildflags.CacheOptionsEntry)(0xc0007ac1c8)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.25s)

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (latest, docker-container, ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/worker=docker-container

=== RUN TestIntegration/TestBakePrint/worker=docker-container === PAUSE TestIntegration/TestBakePrint/worker=docker-container === CONT TestIntegration/TestBakePrint/worker=docker-container bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00164a2b8), (*buildflags.CacheOptionsEntry)(0xc00164a2d0), (*buildflags.CacheOptionsEntry)(0xc00164a2e8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00164a120), (*buildflags.CacheOptionsEntry)(0xc00164a150), (*buildflags.CacheOptionsEntry)(0xc00164a180)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.25s)

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration ([email protected], ./tests)

Failed: tests/TestIntegration/TestBakePrint/[email protected]

=== RUN TestIntegration/TestBakePrint/[email protected] === PAUSE TestIntegration/TestBakePrint/[email protected] === CONT TestIntegration/TestBakePrint/[email protected] bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000690c78), (*buildflags.CacheOptionsEntry)(0xc000690c90), (*buildflags.CacheOptionsEntry)(0xc000690ca8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000690ae0), (*buildflags.CacheOptionsEntry)(0xc000690b10), (*buildflags.CacheOptionsEntry)(0xc000690b40)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/[email protected] sandbox.go:135: stdout: /opt/docker-alt-26/dockerd sandbox.go:135: stderr: /opt/docker-alt-26/dockerd sandbox.go:138: > startCmd 2024-11-28 15:52:38.473228626 +0000 UTC m=+126.969242078 /opt/docker-alt-26/dockerd --data-root /tmp/integration4126673455/dil7yhljhobx7/root --exec-root /tmp/dxr/dil7yhljhobx7 --pidfile /tmp/integration4126673455/dil7yhljhobx7/docker.pid --containerd-namespace dil7yhljhobx7 --containerd-plugins-namespace dil7yhljhobx7p --host unix:///tmp/docker-integration/dil7yhljhobx7.sock --config-file /tmp/integration4126673455/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T15:52:38.499670187Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T15:52:38.500781447Z" level=warning msg="could not change group /tmp/docker-integration/dil7yhljhobx7.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T15:52:38.500975149Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dil7yhljhobx7.sock)" sandbox.go:138: time="2024-11-28T15:52:38.500992692Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T15:52:38.501523937Z" level=info msg="started new containerd process" address=/tmp/dxr/dil7yhljhobx7/containerd/containerd.sock module=libcontainerd pid=20274 sandbox.go:138: time="2024-11-28T15:52:38.501952309Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dil7yhljhobx7/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T15:52:38.502183359Z" level=debug msg="2024/11/28 15:52:38 WARNING: [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dil7yhljhobx7/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.tran

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (docker+containerd, ./tests)

Failed: tests/TestIntegration/TestBakePrint/worker=docker+containerd

=== RUN TestIntegration/TestBakePrint/worker=docker+containerd === PAUSE TestIntegration/TestBakePrint/worker=docker+containerd === CONT TestIntegration/TestBakePrint/worker=docker+containerd bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00099ade0), (*buildflags.CacheOptionsEntry)(0xc00099adf8), (*buildflags.CacheOptionsEntry)(0xc00099ae10)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00099ac48), (*buildflags.CacheOptionsEntry)(0xc00099ac78), (*buildflags.CacheOptionsEntry)(0xc00099aca8)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker+containerd sandbox.go:135: stdout: /usr/bin/dockerd sandbox.go:135: stderr: /usr/bin/dockerd sandbox.go:138: > startCmd 2024-11-28 15:50:55.554793276 +0000 UTC m=+21.308171718 /usr/bin/dockerd --data-root /tmp/integration34720131/d9kka8hpwrn5w/root --exec-root /tmp/dxr/d9kka8hpwrn5w --pidfile /tmp/integration34720131/d9kka8hpwrn5w/docker.pid --containerd-namespace d9kka8hpwrn5w --containerd-plugins-namespace d9kka8hpwrn5wp --host unix:///tmp/docker-integration/d9kka8hpwrn5w.sock --config-file /tmp/integration34720131/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T15:50:55.572703914Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T15:50:55.573760805Z" level=warning msg="could not change group /tmp/docker-integration/d9kka8hpwrn5w.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T15:50:55.573879526Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/d9kka8hpwrn5w.sock)" sandbox.go:138: time="2024-11-28T15:50:55.573897310Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T15:50:55.574466306Z" level=info msg="started new containerd process" address=/tmp/dxr/d9kka8hpwrn5w/containerd/containerd.sock module=libcontainerd pid=10641 sandbox.go:138: time="2024-11-28T15:50:55.574835343Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/d9kka8hpwrn5w/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T15:50:55.574998059Z" level=debug msg="2024/11/28 15:50:55 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/d9kka8hpwrn5w/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networkt

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration ([email protected], ./tests)

Failed: tests/TestIntegration/TestBakePrint/[email protected]

=== RUN TestIntegration/TestBakePrint/[email protected] === PAUSE TestIntegration/TestBakePrint/[email protected] === CONT TestIntegration/TestBakePrint/[email protected] bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000694f30), (*buildflags.CacheOptionsEntry)(0xc000694f48), (*buildflags.CacheOptionsEntry)(0xc000694f60)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000694d98), (*buildflags.CacheOptionsEntry)(0xc000694dc8), (*buildflags.CacheOptionsEntry)(0xc000694df8)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/[email protected] sandbox.go:135: stdout: /opt/docker-alt-26/dockerd sandbox.go:135: stderr: /opt/docker-alt-26/dockerd sandbox.go:138: > startCmd 2024-11-28 15:52:43.579433684 +0000 UTC m=+125.365414287 /opt/docker-alt-26/dockerd --data-root /tmp/integration988923752/dk9yn1l2dpaxz/root --exec-root /tmp/dxr/dk9yn1l2dpaxz --pidfile /tmp/integration988923752/dk9yn1l2dpaxz/docker.pid --containerd-namespace dk9yn1l2dpaxz --containerd-plugins-namespace dk9yn1l2dpaxzp --host unix:///tmp/docker-integration/dk9yn1l2dpaxz.sock --config-file /tmp/integration988923752/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T15:52:43.605985413Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T15:52:43.607230322Z" level=warning msg="could not change group /tmp/docker-integration/dk9yn1l2dpaxz.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T15:52:43.607406781Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dk9yn1l2dpaxz.sock)" sandbox.go:138: time="2024-11-28T15:52:43.607433481Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T15:52:43.608011467Z" level=info msg="started new containerd process" address=/tmp/dxr/dk9yn1l2dpaxz/containerd/containerd.sock module=libcontainerd pid=19539 sandbox.go:138: time="2024-11-28T15:52:43.608328778Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dk9yn1l2dpaxz/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T15:52:43.608478229Z" level=debug msg="2024/11/28 15:52:43 WARNING: [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dk9yn1l2dpaxz/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (docker+containerd, ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/worker=docker+containerd

=== RUN TestIntegration/TestBakePrint/worker=docker+containerd === PAUSE TestIntegration/TestBakePrint/worker=docker+containerd === CONT TestIntegration/TestBakePrint/worker=docker+containerd bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0002fd848), (*buildflags.CacheOptionsEntry)(0xc0002fd860), (*buildflags.CacheOptionsEntry)(0xc0002fd878)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0002fd680), (*buildflags.CacheOptionsEntry)(0xc0002fd6b0), (*buildflags.CacheOptionsEntry)(0xc0002fd6e0)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker+containerd sandbox.go:135: stdout: /usr/bin/dockerd sandbox.go:135: stderr: /usr/bin/dockerd sandbox.go:138: > startCmd 2024-11-28 15:52:43.938912909 +0000 UTC m=+127.503648347 /usr/bin/dockerd --data-root /tmp/integration4208471285/dn5gyw0qc3z41/root --exec-root /tmp/dxr/dn5gyw0qc3z41 --pidfile /tmp/integration4208471285/dn5gyw0qc3z41/docker.pid --containerd-namespace dn5gyw0qc3z41 --containerd-plugins-namespace dn5gyw0qc3z41p --host unix:///tmp/docker-integration/dn5gyw0qc3z41.sock --config-file /tmp/integration4208471285/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T15:52:43.956047144Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T15:52:43.956989862Z" level=warning msg="could not change group /tmp/docker-integration/dn5gyw0qc3z41.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T15:52:43.957107210Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dn5gyw0qc3z41.sock)" sandbox.go:138: time="2024-11-28T15:52:43.957128961Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T15:52:43.957658358Z" level=info msg="started new containerd process" address=/tmp/dxr/dn5gyw0qc3z41/containerd/containerd.sock module=libcontainerd pid=20088 sandbox.go:138: time="2024-11-28T15:52:43.957956865Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dn5gyw0qc3z41/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T15:52:43.958101679Z" level=debug msg="2024/11/28 15:52:43 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dn5gyw0qc3z41/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.n

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration ([email protected], ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/[email protected]

=== RUN TestIntegration/TestBakePrint/[email protected] === PAUSE TestIntegration/TestBakePrint/[email protected] === CONT TestIntegration/TestBakePrint/[email protected] bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001c3c228), (*buildflags.CacheOptionsEntry)(0xc001c3c240), (*buildflags.CacheOptionsEntry)(0xc001c3c258)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001c3c078), (*buildflags.CacheOptionsEntry)(0xc001c3c0a8), (*buildflags.CacheOptionsEntry)(0xc001c3c0d8)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/[email protected] sandbox.go:135: stdout: /opt/docker-alt-26/dockerd sandbox.go:135: stderr: /opt/docker-alt-26/dockerd sandbox.go:138: > startCmd 2024-11-28 15:51:53.924458346 +0000 UTC m=+76.630055318 /opt/docker-alt-26/dockerd --data-root /tmp/integration3562324239/dynrpqdoddxve/root --exec-root /tmp/dxr/dynrpqdoddxve --pidfile /tmp/integration3562324239/dynrpqdoddxve/docker.pid --containerd-namespace dynrpqdoddxve --containerd-plugins-namespace dynrpqdoddxvep --host unix:///tmp/docker-integration/dynrpqdoddxve.sock --config-file /tmp/integration3562324239/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T15:51:53.952329697Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T15:51:53.953688805Z" level=warning msg="could not change group /tmp/docker-integration/dynrpqdoddxve.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T15:51:53.953847410Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dynrpqdoddxve.sock)" sandbox.go:138: time="2024-11-28T15:51:53.953875723Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T15:51:53.954463923Z" level=info msg="started new containerd process" address=/tmp/dxr/dynrpqdoddxve/containerd/containerd.sock module=libcontainerd pid=14912 sandbox.go:138: time="2024-11-28T15:51:53.954776404Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dynrpqdoddxve/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T15:51:53.954961992Z" level=debug msg="2024/11/28 15:51:53 WARNING: [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dynrpqdoddxve/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration ([email protected], ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/[email protected]

=== RUN TestIntegration/TestBakePrint/[email protected] === PAUSE TestIntegration/TestBakePrint/[email protected] === CONT TestIntegration/TestBakePrint/[email protected] bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000612b70), (*buildflags.CacheOptionsEntry)(0xc000612b88), (*buildflags.CacheOptionsEntry)(0xc000612ba0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0006129d8), (*buildflags.CacheOptionsEntry)(0xc000612a08), (*buildflags.CacheOptionsEntry)(0xc000612a38)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/[email protected] sandbox.go:135: stdout: /opt/docker-alt-26/dockerd sandbox.go:135: stderr: /opt/docker-alt-26/dockerd sandbox.go:138: > startCmd 2024-11-28 15:52:47.688314975 +0000 UTC m=+129.141337978 /opt/docker-alt-26/dockerd --data-root /tmp/integration576919997/dcyrfbnoubit6/root --exec-root /tmp/dxr/dcyrfbnoubit6 --pidfile /tmp/integration576919997/dcyrfbnoubit6/docker.pid --containerd-namespace dcyrfbnoubit6 --containerd-plugins-namespace dcyrfbnoubit6p --host unix:///tmp/docker-integration/dcyrfbnoubit6.sock --config-file /tmp/integration576919997/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T15:52:47.718010370Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T15:52:47.719222539Z" level=warning msg="could not change group /tmp/docker-integration/dcyrfbnoubit6.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T15:52:47.719347984Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dcyrfbnoubit6.sock)" sandbox.go:138: time="2024-11-28T15:52:47.719369815Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T15:52:47.719980587Z" level=info msg="started new containerd process" address=/tmp/dxr/dcyrfbnoubit6/containerd/containerd.sock module=libcontainerd pid=20299 sandbox.go:138: time="2024-11-28T15:52:47.720457139Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dcyrfbnoubit6/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T15:52:47.720665807Z" level=debug msg="2024/11/28 15:52:47 WARNING: [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dcyrfbnoubit6/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transpo

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (docker, ./tests)

Failed: tests/TestIntegration/TestBakePrint/worker=docker

=== RUN TestIntegration/TestBakePrint/worker=docker === PAUSE TestIntegration/TestBakePrint/worker=docker === CONT TestIntegration/TestBakePrint/worker=docker bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00066a288), (*buildflags.CacheOptionsEntry)(0xc00066a2a0), (*buildflags.CacheOptionsEntry)(0xc00066a2b8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00066a0f0), (*buildflags.CacheOptionsEntry)(0xc00066a120), (*buildflags.CacheOptionsEntry)(0xc00066a150)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker sandbox.go:135: stdout: /usr/bin/dockerd sandbox.go:135: stderr: /usr/bin/dockerd sandbox.go:138: > startCmd 2024-11-28 15:52:54.000203234 +0000 UTC m=+130.564558019 /usr/bin/dockerd --data-root /tmp/integration3093341828/dkt1of4yuwct5/root --exec-root /tmp/dxr/dkt1of4yuwct5 --pidfile /tmp/integration3093341828/dkt1of4yuwct5/docker.pid --containerd-namespace dkt1of4yuwct5 --containerd-plugins-namespace dkt1of4yuwct5p --host unix:///tmp/docker-integration/dkt1of4yuwct5.sock --config-file /tmp/integration3093341828/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T15:52:54.018682906Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T15:52:54.019673144Z" level=warning msg="could not change group /tmp/docker-integration/dkt1of4yuwct5.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T15:52:54.019783171Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dkt1of4yuwct5.sock)" sandbox.go:138: time="2024-11-28T15:52:54.019799713Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T15:52:54.020321892Z" level=info msg="started new containerd process" address=/tmp/dxr/dkt1of4yuwct5/containerd/containerd.sock module=libcontainerd pid=20330 sandbox.go:138: time="2024-11-28T15:52:54.020726846Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dkt1of4yuwct5/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T15:52:54.020889749Z" level=debug msg="2024/11/28 15:52:54 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dkt1of4yuwct5/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connecti

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (docker, ./tests, experimental)

Failed: tests/TestIntegration/TestBakePrint/worker=docker

=== RUN TestIntegration/TestBakePrint/worker=docker === PAUSE TestIntegration/TestBakePrint/worker=docker === CONT TestIntegration/TestBakePrint/worker=docker bake.go:123: Error Trace: /src/tests/bake.go:123 /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: Not equal: expected: []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000959650), (*buildflags.CacheOptionsEntry)(0xc000959668), (*buildflags.CacheOptionsEntry)(0xc000959680)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0009594b8), (*buildflags.CacheOptionsEntry)(0xc0009594e8), (*buildflags.CacheOptionsEntry)(0xc000959518)} Diff: --- Expected +++ Actual @@ -3,4 +3,5 @@ Type: (string) (len=3) "gha", - Attrs: (map[string]string) (len=1) { - (string) (len=5) "scope": (string) (len=5) "build" + Attrs: (map[string]string) (len=2) { + (string) (len=5) "scope": (string) (len=5) "build", + (string) (len=5) "token": (string) (len=3) "baz" } @@ -9,5 +10,7 @@ Type: (string) (len=2) "s3", - Attrs: (map[string]string) (len=2) { + Attrs: (map[string]string) (len=4) { + (string) (len=13) "access_key_id": (string) (len=3) "foo", (string) (len=6) "bucket": (string) (len=8) "mybucket", - (string) (len=6) "region": (string) (len=9) "eu-west-1" + (string) (len=6) "region": (string) (len=9) "eu-west-1", + (string) (len=17) "secret_access_key": (string) (len=3) "bar" } Test: TestIntegration/TestBakePrint/worker=docker sandbox.go:135: stdout: /usr/bin/dockerd sandbox.go:135: stderr: /usr/bin/dockerd sandbox.go:138: > startCmd 2024-11-28 15:52:56.112442932 +0000 UTC m=+127.423279892 /usr/bin/dockerd --data-root /tmp/integration3919637675/dbhj2w8ppm93q/root --exec-root /tmp/dxr/dbhj2w8ppm93q --pidfile /tmp/integration3919637675/dbhj2w8ppm93q/docker.pid --containerd-namespace dbhj2w8ppm93q --containerd-plugins-namespace dbhj2w8ppm93qp --host unix:///tmp/docker-integration/dbhj2w8ppm93q.sock --config-file /tmp/integration3919637675/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T15:52:56.130156309Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T15:52:56.131209586Z" level=warning msg="could not change group /tmp/docker-integration/dbhj2w8ppm93q.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T15:52:56.131363874Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dbhj2w8ppm93q.sock)" sandbox.go:138: time="2024-11-28T15:52:56.131380505Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T15:52:56.131915092Z" level=info msg="started new containerd process" address=/tmp/dxr/dbhj2w8ppm93q/containerd/containerd.sock module=libcontainerd pid=20356 sandbox.go:138: time="2024-11-28T15:52:56.132342991Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dbhj2w8ppm93q/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T15:52:56.132468337Z" level=debug msg="2024/11/28 15:52:56 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dbhj2w8ppm93q/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connecti
{Type: "gha", Attrs: map[string]string{"scope": "build"}},
{Type: "s3", Attrs: map[string]string{"region": "eu-west-1", "bucket": "mybucket"}},
{Type: "registry", Attrs: map[string]string{"ref": "user/repo:cache"}},
}, def.Target["build"].CacheFrom)
require.Equal(t, []*buildflags.CacheOptionsEntry{
{Type: "gha", Attrs: map[string]string{"scope": "build", "token": "foo", "mode": "max"}},
{Type: "s3", Attrs: map[string]string{"region": "eu-west-1", "bucket": "mybucket"}},
{Type: "inline", Attrs: map[string]string{}},
}, def.Target["build"].CacheTo)
require.Equal(t, []*buildflags.ExportEntry{
{Type: "local", Destination: "./release-out", Attrs: map[string]string{}},
{Type: "registry", Attrs: map[string]string{"ref": "user/app"}},
}, def.Target["build"].Outputs)

require.JSONEq(t, `{
"group": {
"default": {
"targets": [
"build"
]
}
},
"target": {
"build": {
"context": ".",
"dockerfile": "Dockerfile",
"args": {
"HELLO": "foo"
},
"cache-from": [
{
"scope": "build",
"type": "gha"
},
{
"bucket": "mybucket",
"region": "eu-west-1",
"type": "s3"
},
{
"ref": "user/repo:cache",
"type": "registry"
}
],
"cache-to": [
{
"mode": "max",
"scope": "build",
"token": "foo",
"type": "gha"
},
{
"bucket": "mybucket",
"region": "eu-west-1",
"type": "s3"
},
{
"type": "inline"
}
],
"output": [
{
"dest": "./release-out",
"type": "local"
},
{
"ref": "user/app",
"type": "registry"
}
]
}
}
}
`, stdout.String())
}

func testBakePrintConsistency(t *testing.T, sb integration.Sandbox) {
testCases := []struct {
name string
f string
Expand Down

0 comments on commit dd6916c

Please sign in to comment.