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 7242c41
Showing 1 changed file with 108 additions and 0 deletions.
108 changes: 108 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,112 @@ 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 (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)(0xc000120c18), (*buildflags.CacheOptionsEntry)(0xc000120c30), (*buildflags.CacheOptionsEntry)(0xc000120c48)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000120948), (*buildflags.CacheOptionsEntry)(0xc000120978), (*buildflags.CacheOptionsEntry)(0xc0001209f0)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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_config1294043457/buildkitd.toml --root /tmp/bktest_buildkitd722153047 --addr unix:///tmp/bktest_buildkitd722153047/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 09:54:59.805671811 +0000 UTC m=+6.699372873 /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_config1294043457/buildkitd.toml --root /tmp/bktest_buildkitd722153047 --addr unix:///tmp/bktest_buildkitd722153047/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T09:54:59Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T09:54:59Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T09:54:59Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T09:54:59Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T09:54:59Z" level=info msg="found worker \"k6x4ohhdp7bq9jvyoebtvsamc\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:d7bd88eb4cf0 org.mobyproject.buildkit.worker.

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)(0xc0013acc30), (*buildflags.CacheOptionsEntry)(0xc0013acc48), (*buildflags.CacheOptionsEntry)(0xc0013acc60)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0013aca98), (*buildflags.CacheOptionsEntry)(0xc0013acac8), (*buildflags.CacheOptionsEntry)(0xc0013acaf8)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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_config2582921647/buildkitd.toml --root /tmp/bktest_buildkitd383745565 --addr unix:///tmp/bktest_buildkitd383745565/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_config2582921647/buildkitd.toml --root /tmp/bktest_buildkitd383745565 --addr unix:///tmp/bktest_buildkitd383745565/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 09:55:00.731023317 +0000 UTC m=+6.867100761 /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_config2582921647/buildkitd.toml --root /tmp/bktest_buildkitd383745565 --addr unix:///tmp/bktest_buildkitd383745565/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T09:55:00Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T09:55:00Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T09:55:00Z" level=info msg="found worker \"n10hcqag8c8vmd0pn3pjzkdr7\", labels=map[org.mobyproject.buildkit.worker.

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)(0xc001515b30), (*buildflags.CacheOptionsEntry)(0xc001515b48), (*buildflags.CacheOptionsEntry)(0xc001515b60)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001515998), (*buildflags.CacheOptionsEntry)(0xc0015159c8), (*buildflags.CacheOptionsEntry)(0xc0015159f8)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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_config3394020270/buildkitd.toml --root /tmp/bktest_buildkitd4132092813 --addr unix:///tmp/bktest_buildkitd4132092813/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_config3394020270/buildkitd.toml --root /tmp/bktest_buildkitd4132092813 --addr unix:///tmp/bktest_buildkitd4132092813/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 09:55:04.163389197 +0000 UTC m=+8.252188202 /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_config3394020270/buildkitd.toml --root /tmp/bktest_buildkitd4132092813 --addr unix:///tmp/bktest_buildkitd4132092813/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T09:55:04Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T09:55:04Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T09:55:04Z" level=info msg="auto snapshotter: using overlayfs" sandb

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)(0xc0021fbab8), (*buildflags.CacheOptionsEntry)(0xc0021fbad0), (*buildflags.CacheOptionsEntry)(0xc0021fbae8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0021fb920), (*buildflags.CacheOptionsEntry)(0xc0021fb950), (*buildflags.CacheOptionsEntry)(0xc0021fb980)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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_config3230132901/buildkitd.toml --root /tmp/bktest_buildkitd3293452253 --addr unix:///tmp/bktest_buildkitd3293452253/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_config3230132901/buildkitd.toml --root /tmp/bktest_buildkitd3293452253 --addr unix:///tmp/bktest_buildkitd3293452253/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 09:55:03.608086438 +0000 UTC m=+8.956197425 /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_config3230132901/buildkitd.toml --root /tmp/bktest_buildkitd3293452253 --addr unix:///tmp/bktest_buildkitd3293452253/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T09:55:03Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T09:55:03Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T09:55:03Z" level=info msg="auto snapshotter: using overlayfs" sandb

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)(0xc000ab7998), (*buildflags.CacheOptionsEntry)(0xc000ab79b0), (*buildflags.CacheOptionsEntry)(0xc000ab79c8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000ab7800), (*buildflags.CacheOptionsEntry)(0xc000ab7830), (*buildflags.CacheOptionsEntry)(0xc000ab7860)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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_config2973315023/buildkitd.toml --root /tmp/bktest_buildkitd3861515873 --addr unix:///tmp/bktest_buildkitd3861515873/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_config2973315023/buildkitd.toml --root /tmp/bktest_buildkitd3861515873 --addr unix:///tmp/bktest_buildkitd3861515873/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 09:55:02.890920253 +0000 UTC m=+5.863806150 /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_config2973315023/buildkitd.toml --root /tmp/bktest_buildkitd3861515873 --addr unix:///tmp/bktest_buildkitd3861515873/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T09:55:02Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T09:55:02Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T09:55:02Z" level=info msg="found worker \"5oiw173qzcdm9thcnpdk1a9fe\", labels=map[org.mobyproject.buildkit.w

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)(0xc0016536f8), (*buildflags.CacheOptionsEntry)(0xc001653710), (*buildflags.CacheOptionsEntry)(0xc001653728)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001653530), (*buildflags.CacheOptionsEntry)(0xc001653560), (*buildflags.CacheOptionsEntry)(0xc001653590)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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_config4094081004/buildkitd.toml --root /tmp/bktest_buildkitd2687947282 --addr unix:///tmp/bktest_buildkitd2687947282/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_config4094081004/buildkitd.toml --root /tmp/bktest_buildkitd2687947282 --addr unix:///tmp/bktest_buildkitd2687947282/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 09:55:03.262568963 +0000 UTC m=+4.799565896 /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_config4094081004/buildkitd.toml --root /tmp/bktest_buildkitd2687947282 --addr unix:///tmp/bktest_buildkitd2687947282/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T09:55:03Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T09:55:03Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T09:55:03Z" level=info msg="found worker \"m5n8hiluy3btwicvfq0ed6pgd\", labels=map[org.mobyproject.buildkit.w

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)(0xc0008b9008), (*buildflags.CacheOptionsEntry)(0xc0008b9020), (*buildflags.CacheOptionsEntry)(0xc0008b9038)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0008b8e70), (*buildflags.CacheOptionsEntry)(0xc0008b8ea0), (*buildflags.CacheOptionsEntry)(0xc0008b8ed0)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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_config1952619660/buildkitd.toml --root /tmp/bktest_buildkitd1387060021 --addr unix:///tmp/bktest_buildkitd1387060021/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 09:55:05.450169961 +0000 UTC m=+8.722414843 /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_config1952619660/buildkitd.toml --root /tmp/bktest_buildkitd1387060021 --addr unix:///tmp/bktest_buildkitd1387060021/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T09:55:05Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T09:55:05Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T09:55:05Z" level=info msg="found worker \"8kfsr3mv1hmbx3rwfu21nnf5o\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:252efbd185df 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

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)(0xc0005c71b8), (*buildflags.CacheOptionsEntry)(0xc0005c71d0), (*buildflags.CacheOptionsEntry)(0xc0005c71e8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0005c7020), (*buildflags.CacheOptionsEntry)(0xc0005c7050), (*buildflags.CacheOptionsEntry)(0xc0005c7080)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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_config1116196850/buildkitd.toml --root /tmp/bktest_buildkitd1799084218 --addr unix:///tmp/bktest_buildkitd1799084218/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_config1116196850/buildkitd.toml --root /tmp/bktest_buildkitd1799084218 --addr unix:///tmp/bktest_buildkitd1799084218/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 09:55:11.121453203 +0000 UTC m=+9.286060238 /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_config1116196850/buildkitd.toml --root /tmp/bktest_buildkitd1799084218 --addr unix:///tmp/bktest_buildkitd1799084218/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T09:55:11Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T09:55:11Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T09:55:11Z" level=info msg="found worker \"pg93074z81uqnznycoxz6rnu4\", labels=map[org.mobyproject.buildkit.w

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)(0xc001df2ed0), (*buildflags.CacheOptionsEntry)(0xc001df2ee8), (*buildflags.CacheOptionsEntry)(0xc001df2f00)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001df2cf0), (*buildflags.CacheOptionsEntry)(0xc001df2d20), (*buildflags.CacheOptionsEntry)(0xc001df2d80)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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_config3566201361/buildkitd.toml --root /tmp/bktest_buildkitd3662045221 --addr unix:///tmp/bktest_buildkitd3662045221/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_config3566201361/buildkitd.toml --root /tmp/bktest_buildkitd3662045221 --addr unix:///tmp/bktest_buildkitd3662045221/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 09:55:11.609850489 +0000 UTC m=+9.721480424 /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_config3566201361/buildkitd.toml --root /tmp/bktest_buildkitd3662045221 --addr unix:///tmp/bktest_buildkitd3662045221/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T09:55:11Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T09:55:11Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T09:55:11Z" level=info msg="auto snapshotter: using overlayfs" sandb

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)(0xc000957e90), (*buildflags.CacheOptionsEntry)(0xc000957ea8), (*buildflags.CacheOptionsEntry)(0xc000957ec0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000957c98), (*buildflags.CacheOptionsEntry)(0xc000957cc8), (*buildflags.CacheOptionsEntry)(0xc000957cf8)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.22s)

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)(0xc0017f14d0), (*buildflags.CacheOptionsEntry)(0xc0017f14e8), (*buildflags.CacheOptionsEntry)(0xc0017f1500)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0017f1338), (*buildflags.CacheOptionsEntry)(0xc0017f1368), (*buildflags.CacheOptionsEntry)(0xc0017f1398)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (0.67s)

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)(0xc00197d098), (*buildflags.CacheOptionsEntry)(0xc00197d0b0), (*buildflags.CacheOptionsEntry)(0xc00197d0c8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00197cf00), (*buildflags.CacheOptionsEntry)(0xc00197cf30), (*buildflags.CacheOptionsEntry)(0xc00197cf60)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (0.89s)

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)(0xc0012f8d98), (*buildflags.CacheOptionsEntry)(0xc0012f8db0), (*buildflags.CacheOptionsEntry)(0xc0012f8dc8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0012f8c00), (*buildflags.CacheOptionsEntry)(0xc0012f8c30), (*buildflags.CacheOptionsEntry)(0xc0012f8c60)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.18s)

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)(0xc0005426f0), (*buildflags.CacheOptionsEntry)(0xc000542708), (*buildflags.CacheOptionsEntry)(0xc000542720)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000542540), (*buildflags.CacheOptionsEntry)(0xc000542570), (*buildflags.CacheOptionsEntry)(0xc0005425a0)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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_config4266286157/buildkitd.toml --root /tmp/bktest_buildkitd1212152828 --addr unix:///tmp/bktest_buildkitd1212152828/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_config4266286157/buildkitd.toml --root /tmp/bktest_buildkitd1212152828 --addr unix:///tmp/bktest_buildkitd1212152828/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 09:55:17.052269374 +0000 UTC m=+10.668831429 /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_config4266286157/buildkitd.toml --root /tmp/bktest_buildkitd1212152828 --addr unix:///tmp/bktest_buildkitd1212152828/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T09:55:17Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T09:55:17Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T09:55:17Z" level=info msg="found worker \"okpq4kkgmujja8xs92sjqphsg\", labels=map[org.mobyproject.buildkit.

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)(0xc002252e40), (*buildflags.CacheOptionsEntry)(0xc002252e58), (*buildflags.CacheOptionsEntry)(0xc002252e70)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc002252ca8), (*buildflags.CacheOptionsEntry)(0xc002252cd8), (*buildflags.CacheOptionsEntry)(0xc002252d08)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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 (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)(0xc0011e3470), (*buildflags.CacheOptionsEntry)(0xc0011e3488), (*buildflags.CacheOptionsEntry)(0xc0011e34a0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0011e3290), (*buildflags.CacheOptionsEntry)(0xc0011e32c0), (*buildflags.CacheOptionsEntry)(0xc0011e3338)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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_config2918170560/buildkitd.toml --root /tmp/bktest_buildkitd1467264103 --addr unix:///tmp/bktest_buildkitd1467264103/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_config2918170560/buildkitd.toml --root /tmp/bktest_buildkitd1467264103 --addr unix:///tmp/bktest_buildkitd1467264103/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 09:55:19.209737146 +0000 UTC m=+11.575239792 /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_config2918170560/buildkitd.toml --root /tmp/bktest_buildkitd1467264103 --addr unix:///tmp/bktest_buildkitd1467264103/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T09:55:19Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T09:55:19Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T09:55:19Z" level=info msg="found worker \"gslic3wvfehf4gjcj2bk06ml8\", labels=map[org.mobyproject.buildkit.

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)(0xc0006a7608), (*buildflags.CacheOptionsEntry)(0xc0006a7620), (*buildflags.CacheOptionsEntry)(0xc0006a7638)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0006a73f8), (*buildflags.CacheOptionsEntry)(0xc0006a7428), (*buildflags.CacheOptionsEntry)(0xc0006a7458)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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 (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)(0xc00072f380), (*buildflags.CacheOptionsEntry)(0xc00072f398), (*buildflags.CacheOptionsEntry)(0xc00072f3b0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00072f1e8), (*buildflags.CacheOptionsEntry)(0xc00072f218), (*buildflags.CacheOptionsEntry)(0xc00072f248)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.31s)

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)(0xc000dceb28), (*buildflags.CacheOptionsEntry)(0xc000dceb40), (*buildflags.CacheOptionsEntry)(0xc000dceb58)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000dce960), (*buildflags.CacheOptionsEntry)(0xc000dce990), (*buildflags.CacheOptionsEntry)(0xc000dce9c0)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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_config627747677/buildkitd.toml --root /tmp/bktest_buildkitd3269504659 --addr unix:///tmp/bktest_buildkitd3269504659/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_config627747677/buildkitd.toml --root /tmp/bktest_buildkitd3269504659 --addr unix:///tmp/bktest_buildkitd3269504659/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 09:55:16.116000511 +0000 UTC m=+11.796991785 /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_config627747677/buildkitd.toml --root /tmp/bktest_buildkitd3269504659 --addr unix:///tmp/bktest_buildkitd3269504659/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T09:55:16Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T09:55:16Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T09:55:16Z" level=info msg="found worker \"zar8sb10r1jywo36h1s4wmn1v\", labels=map[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, 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)(0xc001fdf0e0), (*buildflags.CacheOptionsEntry)(0xc001fdf0f8), (*buildflags.CacheOptionsEntry)(0xc001fdf110)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001fdef48), (*buildflags.CacheOptionsEntry)(0xc001fdef78), (*buildflags.CacheOptionsEntry)(0xc001fdefa8)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.11s)

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)(0xc0011f8ba0), (*buildflags.CacheOptionsEntry)(0xc0011f8bb8), (*buildflags.CacheOptionsEntry)(0xc0011f8bd0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0011f8a08), (*buildflags.CacheOptionsEntry)(0xc0011f8a38), (*buildflags.CacheOptionsEntry)(0xc0011f8a68)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (0.74s)

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)(0xc0022ae2a0), (*buildflags.CacheOptionsEntry)(0xc0022ae2b8), (*buildflags.CacheOptionsEntry)(0xc0022ae2d0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0022ae108), (*buildflags.CacheOptionsEntry)(0xc0022ae138), (*buildflags.CacheOptionsEntry)(0xc0022ae168)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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.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)(0xc0006a9098), (*buildflags.CacheOptionsEntry)(0xc0006a90b0), (*buildflags.CacheOptionsEntry)(0xc0006a90c8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0006a8f00), (*buildflags.CacheOptionsEntry)(0xc0006a8f30), (*buildflags.CacheOptionsEntry)(0xc0006a8f60)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.24s)

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)(0xc000fdff20), (*buildflags.CacheOptionsEntry)(0xc000fdff38), (*buildflags.CacheOptionsEntry)(0xc000fdff50)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000fdfd88), (*buildflags.CacheOptionsEntry)(0xc000fdfdb8), (*buildflags.CacheOptionsEntry)(0xc000fdfde8)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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 (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)(0xc0018f6630), (*buildflags.CacheOptionsEntry)(0xc0018f6648), (*buildflags.CacheOptionsEntry)(0xc0018f6660)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0018f6498), (*buildflags.CacheOptionsEntry)(0xc0018f64c8), (*buildflags.CacheOptionsEntry)(0xc0018f64f8)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) Test: TestIntegration/TestBakePrint/worker=docker sandbox.go:135: stderr: /usr/bin/dockerd sandbox.go:138: > startCmd 2024-11-28 09:56:56.682514779 +0000 UTC m=+126.506319044 /usr/bin/dockerd --data-root /tmp/integration3952256994/dl62qqfhkvdpf/root --exec-root /tmp/dxr/dl62qqfhkvdpf --pidfile /tmp/integration3952256994/dl62qqfhkvdpf/docker.pid --containerd-namespace dl62qqfhkvdpf --containerd-plugins-namespace dl62qqfhkvdpfp --host unix:///tmp/docker-integration/dl62qqfhkvdpf.sock --config-file /tmp/integration3952256994/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T09:56:56.700209571Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T09:56:56.701194892Z" level=warning msg="could not change group /tmp/docker-integration/dl62qqfhkvdpf.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T09:56:56.701320157Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dl62qqfhkvdpf.sock)" sandbox.go:138: time="2024-11-28T09:56:56.701338030Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T09:56:56.701869583Z" level=info msg="started new containerd process" address=/tmp/dxr/dl62qqfhkvdpf/containerd/containerd.sock module=libcontainerd pid=20342 sandbox.go:138: time="2024-11-28T09:56:56.702151460Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dl62qqfh

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)(0xc000510288), (*buildflags.CacheOptionsEntry)(0xc0005102a0), (*buildflags.CacheOptionsEntry)(0xc0005102b8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0005100c0), (*buildflags.CacheOptionsEntry)(0xc0005100f0), (*buildflags.CacheOptionsEntry)(0xc000510120)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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 09:56:59.7454524 +0000 UTC m=+127.259380051 /usr/bin/dockerd --data-root /tmp/integration340711523/dsatxzxpvzm4q/root --exec-root /tmp/dxr/dsatxzxpvzm4q --pidfile /tmp/integration340711523/dsatxzxpvzm4q/docker.pid --containerd-namespace dsatxzxpvzm4q --containerd-plugins-namespace dsatxzxpvzm4qp --host unix:///tmp/docker-integration/dsatxzxpvzm4q.sock --config-file /tmp/integration340711523/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T09:56:59.762605359Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T09:56:59.763517978Z" level=warning msg="could not change group /tmp/docker-integration/dsatxzxpvzm4q.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T09:56:59.763627572Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dsatxzxpvzm4q.sock)" sandbox.go:138: time="2024-11-28T09:56:59.763644423Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T09:56:59.764150248Z" level=info msg="started new containerd process" address=/tmp/dxr/dsatxzxpvzm4q/containerd/containerd.sock module=libcontainerd pid=20073 sandbox.go:138: time="2024-11-28T09:56:59.76454643

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)(0xc001c43a70), (*buildflags.CacheOptionsEntry)(0xc001c43a88), (*buildflags.CacheOptionsEntry)(0xc001c43aa0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001c438d8), (*buildflags.CacheOptionsEntry)(0xc001c43908), (*buildflags.CacheOptionsEntry)(0xc001c43938)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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 09:57:01.972796859 +0000 UTC m=+126.127929673 /opt/docker-alt-26/dockerd --data-root /tmp/integration1355593353/dyaoq3vb1k38y/root --exec-root /tmp/dxr/dyaoq3vb1k38y --pidfile /tmp/integration1355593353/dyaoq3vb1k38y/docker.pid --containerd-namespace dyaoq3vb1k38y --containerd-plugins-namespace dyaoq3vb1k38yp --host unix:///tmp/docker-integration/dyaoq3vb1k38y.sock --config-file /tmp/integration1355593353/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T09:57:02.000733271Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T09:57:02.001821599Z" level=warning msg="could not change group /tmp/docker-integration/dyaoq3vb1k38y.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T09:57:02.001948958Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dyaoq3vb1k38y.sock)" sandbox.go:138: time="2024-11-28T09:57:02.001969356Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T09:57:02.002553269Z" level=info msg="started new containerd process" address=/tmp/dxr/dyaoq3vb1k38y/containerd/containerd.sock module=libcontainerd pid=20311 sandbox.go:138: time="2024-11-28T09:57:

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)(0xc000b00228), (*buildflags.CacheOptionsEntry)(0xc000b00240), (*buildflags.CacheOptionsEntry)(0xc000b00258)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000b00090), (*buildflags.CacheOptionsEntry)(0xc000b000c0), (*buildflags.CacheOptionsEntry)(0xc000b000f0)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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 09:57:11.422451868 +0000 UTC m=+135.951054483 /usr/bin/dockerd --data-root /tmp/integration60544241/da24qx7tlxq6z/root --exec-root /tmp/dxr/da24qx7tlxq6z --pidfile /tmp/integration60544241/da24qx7tlxq6z/docker.pid --containerd-namespace da24qx7tlxq6z --containerd-plugins-namespace da24qx7tlxq6zp --host unix:///tmp/docker-integration/da24qx7tlxq6z.sock --config-file /tmp/integration60544241/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T09:57:11.441954125Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T09:57:11.443047107Z" level=warning msg="could not change group /tmp/docker-integration/da24qx7tlxq6z.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T09:57:11.443175177Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/da24qx7tlxq6z.sock)" sandbox.go:138: time="2024-11-28T09:57:11.443196157Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T09:57:11.443774854Z" level=info msg="started new containerd process" address=/tmp/dxr/da24qx7tlxq6z/containerd/containerd.sock module=libcontainerd pid=20973 sandbox.go:138: time="2024-11-28T09:57:11.444248204Z" level=debug msg="created containerd monit

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)(0xc00066e498), (*buildflags.CacheOptionsEntry)(0xc00066e4b0), (*buildflags.CacheOptionsEntry)(0xc00066e4c8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00066e2d0), (*buildflags.CacheOptionsEntry)(0xc00066e300), (*buildflags.CacheOptionsEntry)(0xc00066e330)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) Test: TestIntegration/TestBakePrint/worker=docker+containerd sandbox.go:135: stderr: /usr/bin/dockerd sandbox.go:138: > startCmd 2024-11-28 09:57:18.147937505 +0000 UTC m=+141.710697101 /usr/bin/dockerd --data-root /tmp/integration2630059840/dfhnqnw3mxyxp/root --exec-root /tmp/dxr/dfhnqnw3mxyxp --pidfile /tmp/integration2630059840/dfhnqnw3mxyxp/docker.pid --containerd-namespace dfhnqnw3mxyxp --containerd-plugins-namespace dfhnqnw3mxyxpp --host unix:///tmp/docker-integration/dfhnqnw3mxyxp.sock --config-file /tmp/integration2630059840/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T09:57:18.165835787Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T09:57:18.166890585Z" level=warning msg="could not change group /tmp/docker-integration/dfhnqnw3mxyxp.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T09:57:18.167028672Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dfhnqnw3mxyxp.sock)" sandbox.go:138: time="2024-11-28T09:57:18.167049902Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T09:57:18.167599147Z" level=info msg="started new containerd process" address=/tmp/dxr/dfhnqnw3mxyxp/containerd/containerd.sock module=libcontainerd pid=21385 sandbox.go:138: time="2024-11-28T09:57:18.167974946Z" level=debug msg="created containerd

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)(0xc001d97b78), (*buildflags.CacheOptionsEntry)(0xc001d97b90), (*buildflags.CacheOptionsEntry)(0xc001d97ba8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001d979e0), (*buildflags.CacheOptionsEntry)(0xc001d97a10), (*buildflags.CacheOptionsEntry)(0xc001d97a40)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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 09:57:02.576032045 +0000 UTC m=+126.856169025 /opt/docker-alt-26/dockerd --data-root /tmp/integration3106351837/drwx6i17e95mt/root --exec-root /tmp/dxr/drwx6i17e95mt --pidfile /tmp/integration3106351837/drwx6i17e95mt/docker.pid --containerd-namespace drwx6i17e95mt --containerd-plugins-namespace drwx6i17e95mtp --host unix:///tmp/docker-integration/drwx6i17e95mt.sock --config-file /tmp/integration3106351837/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T09:57:02.603120505Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T09:57:02.604224897Z" level=warning msg="could not change group /tmp/docker-integration/drwx6i17e95mt.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T09:57:02.604354739Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/drwx6i17e95mt.sock)" sandbox.go:138: time="2024-11-28T09:57:02.604375187Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T09:57:02.605217928Z" level=info msg="started new containerd process" address=/tmp/dxr/drwx6i17e95mt/containerd/containerd.sock module=libcontainerd pid=20283 sandbox.go:138: time="2024-11-28T09:57:

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)(0xc000f8d188), (*buildflags.CacheOptionsEntry)(0xc000f8d1a0), (*buildflags.CacheOptionsEntry)(0xc000f8d1b8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000f8cfc0), (*buildflags.CacheOptionsEntry)(0xc000f8cff0), (*buildflags.CacheOptionsEntry)(0xc000f8d020)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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 09:56:51.447699852 +0000 UTC m=+117.820137848 /opt/docker-alt-26/dockerd --data-root /tmp/integration2070618097/dxwcu555io9d7/root --exec-root /tmp/dxr/dxwcu555io9d7 --pidfile /tmp/integration2070618097/dxwcu555io9d7/docker.pid --containerd-namespace dxwcu555io9d7 --containerd-plugins-namespace dxwcu555io9d7p --host unix:///tmp/docker-integration/dxwcu555io9d7.sock --config-file /tmp/integration2070618097/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T09:56:51.473999957Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T09:56:51.474994738Z" level=warning msg="could not change group /tmp/docker-integration/dxwcu555io9d7.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T09:56:51.475117336Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dxwcu555io9d7.sock)" sandbox.go:138: time="2024-11-28T09:56:51.475138265Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T09:56:51.475668231Z" level=info msg="started new containerd process" address=/tmp/dxr/dxwcu555io9d7/containerd/containerd.sock module=libcontainerd pid=18388

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)(0xc0014e6ac8), (*buildflags.CacheOptionsEntry)(0xc0014e6ae0), (*buildflags.CacheOptionsEntry)(0xc0014e6af8)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0014e6930), (*buildflags.CacheOptionsEntry)(0xc0014e6960), (*buildflags.CacheOptionsEntry)(0xc0014e6990)} 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" } @@ -15,4 +18,6 @@ (*buildflags.CacheOptionsEntry)({ - Type: (string) (len=15) "user/repo:cache", - Attrs: (map[string]string) <nil> + Type: (string) (len=8) "registry", + Attrs: (map[string]string) (len=1) { + (string) (len=3) "ref": (string) (len=15) "user/repo:cache" + } }) 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 09:57:01.055427369 +0000 UTC m=+126.042919766 /opt/docker-alt-26/dockerd --data-root /tmp/integration2119191968/dxf2i5ra2maw0/root --exec-root /tmp/dxr/dxf2i5ra2maw0 --pidfile /tmp/integration2119191968/dxf2i5ra2maw0/docker.pid --containerd-namespace dxf2i5ra2maw0 --containerd-plugins-namespace dxf2i5ra2maw0p --host unix:///tmp/docker-integration/dxf2i5ra2maw0.sock --config-file /tmp/integration2119191968/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T09:57:01.083156764Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T09:57:01.084176776Z" level=warning msg="could not change group /tmp/docker-integration/dxf2i5ra2maw0.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T09:57:01.084294776Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dxf2i5ra2maw0.sock)" sandbox.go:138: time="2024-11-28T09:57:01.084313351Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T09:57:01.084839945Z" level=info msg="started new containerd process" address=/tmp/dxr/dxf2i5ra2maw0/containerd/containerd.sock module=libcontainerd pid=19493
{Type: "gha", Attrs: map[string]string{"scope": "build"}},
{Type: "s3", Attrs: map[string]string{"region": "eu-west-1", "bucket": "mybucket"}},
{Type: "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"},
}, def.Target["build"].CacheTo)
require.Equal(t, []*buildflags.ExportEntry{
{Type: "local", Destination: "./release-out"},
{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": [
"type=gha,scope=build",
"type=s3,region=eu-west-1,bucket=mybucket",
"user/repo:cache"
],
"cache-to": [
"type=gha,scope=build,mode=max",
"type=s3,region=eu-west-1,bucket=mybucket",
"type=inline"
],
"output": [
"./release-out",
"type=registry,ref=user/app"
]
}
}
}
`, stdout.String())
}

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

0 comments on commit 7242c41

Please sign in to comment.