Skip to content

Commit

Permalink
bake: handle implicit attributes
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
  • Loading branch information
crazy-max committed Nov 28, 2024
1 parent 71c7889 commit 22ca6d3
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 9 deletions.
135 changes: 135 additions & 0 deletions tests/bake.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (

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

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

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

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

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

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

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

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (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)(0xc00205a260), (*buildflags.CacheOptionsEntry)(0xc00205a280), (*buildflags.CacheOptionsEntry)(0xc00205a2a0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00205a160), (*buildflags.CacheOptionsEntry)(0xc00205a180), (*buildflags.CacheOptionsEntry)(0xc00205a1c0)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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_config3799747790/buildkitd.toml --root /tmp/bktest_buildkitd309399096 --addr unix:///tmp/bktest_buildkitd309399096/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_config3799747790/buildkitd.toml --root /tmp/bktest_buildkitd309399096 --addr unix:///tmp/bktest_buildkitd309399096/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 10:52:23.561943058 +0000 UTC m=+7.725007922 /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_config3799747790/buildkitd.toml --root /tmp/bktest_buildkitd309399096 --addr unix:///tmp/bktest_buildkitd309399096/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T10:52:23Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T10:52:23Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T10:52:23Z" level=info msg="found worker \"qlxr2dm4k6r2vhtdnc4kymguv\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:c4d807adba0c org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]" sandbox.go:138: time="2024-11-28T10:52:23Z" level=info msg="found 1 workers, default=\"qlxr2dm4k6r2vhtdnc4kymguv\"" sandbox.go:138: time="2024-11-28T10:52:23Z" level=warning msg="currently, only the default worker can be used." sandbox.go:138: time="2024-11-28T10:52:23Z" level=info msg="running server on /tmp/bktest_buildkitd309399096/buildkitd.sock" --- FAIL: TestIntegration/TestBakePrint/worker=remote (0.36s)

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)(0xc000137c00), (*buildflags.CacheOptionsEntry)(0xc000137c20), (*buildflags.CacheOptionsEntry)(0xc000137c40)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000137b00), (*buildflags.CacheOptionsEntry)(0xc000137b20), (*buildflags.CacheOptionsEntry)(0xc000137b60)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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_config1792034893/buildkitd.toml --root /tmp/bktest_buildkitd2923285304 --addr unix:///tmp/bktest_buildkitd2923285304/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_config1792034893/buildkitd.toml --root /tmp/bktest_buildkitd2923285304 --addr unix:///tmp/bktest_buildkitd2923285304/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 10:52:24.189765789 +0000 UTC m=+8.878594496 /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_config1792034893/buildkitd.toml --root /tmp/bktest_buildkitd2923285304 --addr unix:///tmp/bktest_buildkitd2923285304/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T10:52:24Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T10:52:24Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T10:52:24Z" level=info msg="found worker \"u44nqbdrxq6j9tje21u61e4tm\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:2b5552759cd7 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]" sandbox.go:138: time="2024-11-28T10:52:24Z" level=info msg="found 1 workers, default=\"u44nqbdrxq6j9tje21u61e4tm\"" sandbox.go:138: time="2024-11-28T10:52:24Z" level=warning msg="currently, only the default worker can be used." sandbox.go:138: time="2024-11-28T10:52:24Z" level=info msg="running server on /tmp/bktest_buildkitd2923285304/buildkitd.sock" --- FAIL: TestIntegration/TestBakePrint/worker=remote (0.39s)

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)(0xc00114d680), (*buildflags.CacheOptionsEntry)(0xc00114d6a0), (*buildflags.CacheOptionsEntry)(0xc00114d6c0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00114d580), (*buildflags.CacheOptionsEntry)(0xc00114d5a0), (*buildflags.CacheOptionsEntry)(0xc00114d5e0)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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_config977196802/buildkitd.toml --root /tmp/bktest_buildkitd3706082247 --addr unix:///tmp/bktest_buildkitd3706082247/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_config977196802/buildkitd.toml --root /tmp/bktest_buildkitd3706082247 --addr unix:///tmp/bktest_buildkitd3706082247/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 10:52:26.774878015 +0000 UTC m=+8.395244356 /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_config977196802/buildkitd.toml --root /tmp/bktest_buildkitd3706082247 --addr unix:///tmp/bktest_buildkitd3706082247/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T10:52:26Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T10:52:26Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T10:52:26Z" level=info msg="found worker \"43s8wmd39djgzjgsty57wihel\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:4f31baee3d94 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]" sandbox.go:138: time="2024-11-28T10:52:26Z" level=info msg="found 1 workers, default=\"43s8wmd39djgzjgsty57wihel\"" sandbox.go:138: time="2024-11-28T10:52:26Z" level=warning msg="currently, only the default worker can be used." sandbox.go:138: time="2024-11-28T10:52:26Z" level=info msg="running server on /tmp/bktest_buildkitd3706082247/buildkitd.sock" --- FAIL: TestIntegration/TestBakePrint/worker=remote (0.32s)

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)(0xc001030ce0), (*buildflags.CacheOptionsEntry)(0xc001030d40), (*buildflags.CacheOptionsEntry)(0xc001030dc0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001030be0), (*buildflags.CacheOptionsEntry)(0xc001030c00), (*buildflags.CacheOptionsEntry)(0xc001030c40)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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_config1901249607/buildkitd.toml --root /tmp/bktest_buildkitd843883462 --addr unix:///tmp/bktest_buildkitd843883462/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_config1901249607/buildkitd.toml --root /tmp/bktest_buildkitd843883462 --addr unix:///tmp/bktest_buildkitd843883462/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 10:52:28.644286036 +0000 UTC m=+9.544940159 /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_config1901249607/buildkitd.toml --root /tmp/bktest_buildkitd843883462 --addr unix:///tmp/bktest_buildkitd843883462/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T10:52:28Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T10:52:28Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T10:52:28Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T10:52:28Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T10:52:28Z" level=info msg="found worker \"ipepjp340rmpgedhjtstnrwi3\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:f34be6628a28 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/mips64le linux/mips64 linux/arm/v7 linux/arm/v6]" sandbox.go:138: time="2024-11-28T10:52:28Z" level=info msg="found 1 workers, default=\"ipepjp340rmpgedhjtstnrwi3\"" sandbox.go:138: time="2024-11-28T10:52:28Z" level=warning msg="currently, only the default worker can be used." sandbox.go:138: time="2024-11-28T10:52:28Z" level=info msg="running server on /tmp/bktest_buildkitd843883462/buildkitd.sock"

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)(0xc002061e80), (*buildflags.CacheOptionsEntry)(0xc002061ea0), (*buildflags.CacheOptionsEntry)(0xc002061ec0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc002061d80), (*buildflags.CacheOptionsEntry)(0xc002061da0), (*buildflags.CacheOptionsEntry)(0xc002061de0)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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_config2829398401/buildkitd.toml --root /tmp/bktest_buildkitd2813296326 --addr unix:///tmp/bktest_buildkitd2813296326/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_config2829398401/buildkitd.toml --root /tmp/bktest_buildkitd2813296326 --addr unix:///tmp/bktest_buildkitd2813296326/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 10:52:31.719003727 +0000 UTC m=+9.123437905 /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_config2829398401/buildkitd.toml --root /tmp/bktest_buildkitd2813296326 --addr unix:///tmp/bktest_buildkitd2813296326/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T10:52:31Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T10:52:31Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T10:52:31Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T10:52:31Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T10:52:31Z" level=info msg="found worker \"9q7zuggtaaxg602dfv8sw765h\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:2c853ea2fa9e org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/mips64le linux/mips64 linux/arm/v7 linux/arm/v6]" sandbox.go:138: time="2024-11-28T10:52:31Z" level=info msg="found 1 workers, default=\"9q7zuggtaaxg602dfv8sw765h\"" sandbox.go:138: time="2024-11-28T10:52:31Z" level=warning msg="currently, only the default worker can be used." sandbox.go:138: time="2024-11-28T10:52:31Z" level=info msg="running server on /tmp/bktest_buildkitd2813296326/buildkit

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)(0xc001e749a0), (*buildflags.CacheOptionsEntry)(0xc001e749c0), (*buildflags.CacheOptionsEntry)(0xc001e749e0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001e748a0), (*buildflags.CacheOptionsEntry)(0xc001e748c0), (*buildflags.CacheOptionsEntry)(0xc001e74900)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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_config1897781170/buildkitd.toml --root /tmp/bktest_buildkitd3776898956 --addr unix:///tmp/bktest_buildkitd3776898956/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_config1897781170/buildkitd.toml --root /tmp/bktest_buildkitd3776898956 --addr unix:///tmp/bktest_buildkitd3776898956/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 10:52:29.341680567 +0000 UTC m=+9.158244508 /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_config1897781170/buildkitd.toml --root /tmp/bktest_buildkitd3776898956 --addr unix:///tmp/bktest_buildkitd3776898956/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T10:52:29Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T10:52:29Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T10:52:29Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T10:52:29Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T10:52:29Z" level=info msg="found worker \"2yrujthiwzxhrp3wkix8qad60\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:ed22c97a0e37 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/mips64le linux/mips64 linux/arm/v7 linux/arm/v6]" sandbox.go:138: time="2024-11-28T10:52:29Z" level=info msg="found 1 workers, default=\"2yrujthiwzxhrp3wkix8qad60\"" sandbox.go:138: time="2024-11-28T10:52:29Z" level=warning msg="currently, only the default worker can be used." sandbox.go:138: time="2024-11-28T10:52:29Z" level=info msg="running server on /tmp/bktest_buildkitd3776898956/buildkit

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)(0xc001998700), (*buildflags.CacheOptionsEntry)(0xc001998720), (*buildflags.CacheOptionsEntry)(0xc001998740)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001998600), (*buildflags.CacheOptionsEntry)(0xc001998620), (*buildflags.CacheOptionsEntry)(0xc001998660)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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_config1919890479/buildkitd.toml --root /tmp/bktest_buildkitd3072832019 --addr unix:///tmp/bktest_buildkitd3072832019/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_config1919890479/buildkitd.toml --root /tmp/bktest_buildkitd3072832019 --addr unix:///tmp/bktest_buildkitd3072832019/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 10:52:35.047302799 +0000 UTC m=+11.362736724 /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_config1919890479/buildkitd.toml --root /tmp/bktest_buildkitd3072832019 --addr unix:///tmp/bktest_buildkitd3072832019/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T10:52:35Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T10:52:35Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T10:52:35Z" level=info msg="found worker \"l1cij2o7ngrukwavcuvkdi2ax\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:813c35095584 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]" sandbox.go:138: time="2024-11-28T10:52:35Z" level=info msg="found 1 workers, default=\"l1cij2o7ngrukwavcuvkdi2ax\"" sandbox.go:138: time="2024-11-28T10:52:35Z" level=warning msg="currently, only the default worker can be used." sandbox.go:138: time="2024-11-28T10:52:35Z" level=info msg="running server on /tmp/bktest_buildkitd3072832019/buildkitd.sock" --- FAIL: TestIntegration/TestBakePrint/worker=remote (0.33s)

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)(0xc0023210e0), (*buildflags.CacheOptionsEntry)(0xc002321100), (*buildflags.CacheOptionsEntry)(0xc002321120)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc002320fe0), (*buildflags.CacheOptionsEntry)(0xc002321000), (*buildflags.CacheOptionsEntry)(0xc002321040)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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_config485907536/buildkitd.toml --root /tmp/bktest_buildkitd2801728784 --addr unix:///tmp/bktest_buildkitd2801728784/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_config485907536/buildkitd.toml --root /tmp/bktest_buildkitd2801728784 --addr unix:///tmp/bktest_buildkitd2801728784/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 10:52:36.121377485 +0000 UTC m=+11.054980020 /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_config485907536/buildkitd.toml --root /tmp/bktest_buildkitd2801728784 --addr unix:///tmp/bktest_buildkitd2801728784/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T10:52:36Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T10:52:36Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:138: time="2024-11-28T10:52:36Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T10:52:36Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T10:52:36Z" level=info msg="found worker \"yc3rh7c2l3yuuqk8navx2wkhh\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:99771217e279 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/mips64le linux/mips64 linux/arm/v7 linux/arm/v6]" sandbox.go:138: time="2024-11-28T10:52:36Z" level=info msg="found 1 workers, default=\"yc3rh7c2l3yuuqk8navx2wkhh\"" sandbox.go:138: time="2024-11-28T10:52:36Z" level=warning msg="currently, only the default worker can be used." sandbox.go:138: time="2024-11-28T10:52:36Z" level=info msg="running server on /tmp/bktest_buildkitd2801728784/buildkitd.

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)(0xc000e96d00), (*buildflags.CacheOptionsEntry)(0xc000e96d20), (*buildflags.CacheOptionsEntry)(0xc000e96d40)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000e96b40), (*buildflags.CacheOptionsEntry)(0xc000e96bc0), (*buildflags.CacheOptionsEntry)(0xc000e96c00)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.07s)

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)(0xc0008af900), (*buildflags.CacheOptionsEntry)(0xc0008af920), (*buildflags.CacheOptionsEntry)(0xc0008af9a0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0008af6c0), (*buildflags.CacheOptionsEntry)(0xc0008af6e0), (*buildflags.CacheOptionsEntry)(0xc0008af7a0)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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_config1752337515/buildkitd.toml --root /tmp/bktest_buildkitd2795972305 --addr unix:///tmp/bktest_buildkitd2795972305/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_config1752337515/buildkitd.toml --root /tmp/bktest_buildkitd2795972305 --addr unix:///tmp/bktest_buildkitd2795972305/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 10:52:40.473929188 +0000 UTC m=+10.381805055 /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_config1752337515/buildkitd.toml --root /tmp/bktest_buildkitd2795972305 --addr unix:///tmp/bktest_buildkitd2795972305/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T10:52:40Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T10:52:40Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T10:52:40Z" level=info msg="found worker \"y5jp6oqwaytoxb1a3l8398muk\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:c2f4227e6460 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]" sandbox.go:138: time="2024-11-28T10:52:40Z" level=info msg="found 1 workers, default=\"y5jp6oqwaytoxb1a3l8398muk\"" sandbox.go:138: time="2024-11-28T10:52:40Z" level=warning msg="currently, only the default worker can be used." sandbox.go:138: time="2024-11-28T10:52:40Z" level=info msg="running server on /tmp/bktest_buildkitd2795972305/buildkitd.sock" --- FAIL: TestIntegration/TestBakePrint/worker=remote (0.57s)

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)(0xc0001376a0), (*buildflags.CacheOptionsEntry)(0xc000137840), (*buildflags.CacheOptionsEntry)(0xc000137860)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000137380), (*buildflags.CacheOptionsEntry)(0xc0001373a0), (*buildflags.CacheOptionsEntry)(0xc000137500)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.27s)

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)(0xc002194e80), (*buildflags.CacheOptionsEntry)(0xc002194ea0), (*buildflags.CacheOptionsEntry)(0xc002194ec0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc002194d80), (*buildflags.CacheOptionsEntry)(0xc002194da0), (*buildflags.CacheOptionsEntry)(0xc002194de0)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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 (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)(0xc001d79e00), (*buildflags.CacheOptionsEntry)(0xc001d79e20), (*buildflags.CacheOptionsEntry)(0xc001d79e40)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001d79d00), (*buildflags.CacheOptionsEntry)(0xc001d79d20), (*buildflags.CacheOptionsEntry)(0xc001d79d60)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (0.70s)

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)(0xc0014cf260), (*buildflags.CacheOptionsEntry)(0xc0014cf280), (*buildflags.CacheOptionsEntry)(0xc0014cf2a0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0014cf140), (*buildflags.CacheOptionsEntry)(0xc0014cf160), (*buildflags.CacheOptionsEntry)(0xc0014cf1a0)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.27s)

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)(0xc000a5ec60), (*buildflags.CacheOptionsEntry)(0xc000a5ec80), (*buildflags.CacheOptionsEntry)(0xc000a5eca0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000a5e9c0), (*buildflags.CacheOptionsEntry)(0xc000a5eaa0), (*buildflags.CacheOptionsEntry)(0xc000a5eb00)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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_config1243922173/buildkitd.toml --root /tmp/bktest_buildkitd3138164345 --addr unix:///tmp/bktest_buildkitd3138164345/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_config1243922173/buildkitd.toml --root /tmp/bktest_buildkitd3138164345 --addr unix:///tmp/bktest_buildkitd3138164345/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 10:52:55.629229348 +0000 UTC m=+5.936514627 /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_config1243922173/buildkitd.toml --root /tmp/bktest_buildkitd3138164345 --addr unix:///tmp/bktest_buildkitd3138164345/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T10:52:55Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T10:52:55Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T10:52:55Z" level=info msg="found worker \"qabb4tjglaqk2zcnkchy8y4k9\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:9c4036f5a887 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]" sandbox.go:138: time="2024-11-28T10:52:55Z" level=info msg="found 1 workers, default=\"qabb4tjglaqk2zcnkchy8y4k9\"" sandbox.go:138: time="2024-11-28T10:52:55Z" level=warning msg="currently, only the default worker can be used." sandbox.go:138: time="2024-11-28T10:52:55Z" level=info msg="running server on /tmp/bktest_buildkitd3138164345/buildkitd.sock" --- FAIL: TestIntegration/TestBakePrint/worker=remote (0.45s)

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)(0xc00167cc80), (*buildflags.CacheOptionsEntry)(0xc00167cca0), (*buildflags.CacheOptionsEntry)(0xc00167ccc0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00167cb80), (*buildflags.CacheOptionsEntry)(0xc00167cba0), (*buildflags.CacheOptionsEntry)(0xc00167cbe0)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.17s)

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (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)(0xc000391680), (*buildflags.CacheOptionsEntry)(0xc0003916a0), (*buildflags.CacheOptionsEntry)(0xc0003916c0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0003914e0), (*buildflags.CacheOptionsEntry)(0xc000391500), (*buildflags.CacheOptionsEntry)(0xc000391560)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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 (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)(0xc001ed1c60), (*buildflags.CacheOptionsEntry)(0xc001ed1c80), (*buildflags.CacheOptionsEntry)(0xc001ed1ca0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001ed1b60), (*buildflags.CacheOptionsEntry)(0xc001ed1b80), (*buildflags.CacheOptionsEntry)(0xc001ed1bc0)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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_config1201259105/buildkitd.toml --root /tmp/bktest_buildkitd1837174534 --addr unix:///tmp/bktest_buildkitd1837174534/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_config1201259105/buildkitd.toml --root /tmp/bktest_buildkitd1837174534 --addr unix:///tmp/bktest_buildkitd1837174534/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 10:53:08.574975091 +0000 UTC m=+10.189683842 /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_config1201259105/buildkitd.toml --root /tmp/bktest_buildkitd1837174534 --addr unix:///tmp/bktest_buildkitd1837174534/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T10:53:08Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T10:53:08Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T10:53:08Z" level=info msg="found worker \"d8kh7omnbzsty8g736j28cdrr\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:9fedf454f2cf org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]" sandbox.go:138: time="2024-11-28T10:53:08Z" level=info msg="found 1 workers, default=\"d8kh7omnbzsty8g736j28cdrr\"" sandbox.go:138: time="2024-11-28T10:53:08Z" level=warning msg="currently, only the default worker can be used." sandbox.go:138: time="2024-11-28T10:53:08Z" level=info msg="running server on /tmp/bktest_buildkitd1837174534/buildkitd.sock" --- FAIL: TestIntegration/TestBakePrint/worker=remote (0.35s)

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)(0xc0015a0800), (*buildflags.CacheOptionsEntry)(0xc0015a0820), (*buildflags.CacheOptionsEntry)(0xc0015a0840)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0015a0700), (*buildflags.CacheOptionsEntry)(0xc0015a0720), (*buildflags.CacheOptionsEntry)(0xc0015a0760)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.09s)

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)(0xc000e7f640), (*buildflags.CacheOptionsEntry)(0xc000e7f660), (*buildflags.CacheOptionsEntry)(0xc000e7f680)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc000e7f540), (*buildflags.CacheOptionsEntry)(0xc000e7f560), (*buildflags.CacheOptionsEntry)(0xc000e7f5a0)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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_config3081947151/buildkitd.toml --root /tmp/bktest_buildkitd3850510184 --addr unix:///tmp/bktest_buildkitd3850510184/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_config3081947151/buildkitd.toml --root /tmp/bktest_buildkitd3850510184 --addr unix:///tmp/bktest_buildkitd3850510184/buildkitd.sock --debug sandbox.go:138: > StartCmd 2024-11-28 10:53:11.753039163 +0000 UTC m=+11.368035226 /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_config3081947151/buildkitd.toml --root /tmp/bktest_buildkitd3850510184 --addr unix:///tmp/bktest_buildkitd3850510184/buildkitd.sock --debug sandbox.go:138: time="2024-11-28T10:53:11Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:138: time="2024-11-28T10:53:11Z" level=warning msg="using host network as the default" sandbox.go:138: time="2024-11-28T10:53:11Z" level=info msg="found worker \"t7aj85tofs46g2v6bgbxldw9q\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:eda67f827a52 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]" sandbox.go:138: time="2024-11-28T10:53:11Z" level=info msg="found 1 workers, default=\"t7aj85tofs46g2v6bgbxldw9q\"" sandbox.go:138: time="2024-11-28T10:53:11Z" level=warning msg="currently, only the default worker can be used." sandbox.go:138: time="2024-11-28T10:53:11Z" level=info msg="running server on /tmp/bktest_buildkitd3850510184/buildkitd.sock" --- FAIL: TestIntegration/TestBakePrint/worker=remote (0.43s)

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)(0xc0014ac4e0), (*buildflags.CacheOptionsEntry)(0xc0014ac500), (*buildflags.CacheOptionsEntry)(0xc0014ac520)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0014ac2e0), (*buildflags.CacheOptionsEntry)(0xc0014ac300), (*buildflags.CacheOptionsEntry)(0xc0014ac360)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.27s)

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)(0xc0017a93a0), (*buildflags.CacheOptionsEntry)(0xc0017a93c0), (*buildflags.CacheOptionsEntry)(0xc0017a93e0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0017a92a0), (*buildflags.CacheOptionsEntry)(0xc0017a92c0), (*buildflags.CacheOptionsEntry)(0xc0017a9300)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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 (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)(0xc00078e940), (*buildflags.CacheOptionsEntry)(0xc00078e9c0), (*buildflags.CacheOptionsEntry)(0xc00078ea40)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00078e780), (*buildflags.CacheOptionsEntry)(0xc00078e7a0), (*buildflags.CacheOptionsEntry)(0xc00078e840)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.36s)

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

GitHub Actions / test-integration (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)(0xc0003ef060), (*buildflags.CacheOptionsEntry)(0xc0003ef080), (*buildflags.CacheOptionsEntry)(0xc0003ef0a0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0003eef60), (*buildflags.CacheOptionsEntry)(0xc0003eef80), (*buildflags.CacheOptionsEntry)(0xc0003eefc0)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> Test: TestIntegration/TestBakePrint/worker=docker-container --- FAIL: TestIntegration/TestBakePrint/worker=docker-container (1.15s)

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakePrint/worker=docker+containerd@26.1 === PAUSE TestIntegration/TestBakePrint/worker=docker+containerd@26.1 === CONT TestIntegration/TestBakePrint/worker=docker+containerd@26.1 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)(0xc0000598e0), (*buildflags.CacheOptionsEntry)(0xc000059900), (*buildflags.CacheOptionsEntry)(0xc000059980)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0000596c0), (*buildflags.CacheOptionsEntry)(0xc000059740), (*buildflags.CacheOptionsEntry)(0xc000059800)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> Test: TestIntegration/TestBakePrint/worker=docker+containerd@26.1 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 10:54:02.434325201 +0000 UTC m=+105.707038970 /opt/docker-alt-26/dockerd --data-root /tmp/integration344494337/dz64lhlw7wdzd/root --exec-root /tmp/dxr/dz64lhlw7wdzd --pidfile /tmp/integration344494337/dz64lhlw7wdzd/docker.pid --containerd-namespace dz64lhlw7wdzd --containerd-plugins-namespace dz64lhlw7wdzdp --host unix:///tmp/docker-integration/dz64lhlw7wdzd.sock --config-file /tmp/integration344494337/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T10:54:02.459052436Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T10:54:02.460069320Z" level=warning msg="could not change group /tmp/docker-integration/dz64lhlw7wdzd.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T10:54:02.460219592Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dz64lhlw7wdzd.sock)" sandbox.go:138: time="2024-11-28T10:54:02.460239670Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T10:54:02.460925632Z" level=info msg="started new containerd process" address=/tmp/dxr/dz64lhlw7wdzd/containerd/containerd.sock module=libcontainerd pid=17653 sandbox.go:138: time="2024-11-28T10:54:02.461273447Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dz64lhlw7wdzd/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T10:54:02.461418577Z" level=debug msg="2024/11/28 10:54:02 WARNING: [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dz64lhlw7wdzd/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connection error: desc = \"transport: Error while dialing: dial unix /tmp/dxr/dz64lhlw7wdzd/containerd/containerd.sock: connect: no such file or directory\"" library=grpc sandbox.go:138: time="2024-11-28T10:54:02.472941301Z" level=info msg="starting containerd" revision=926c9586fe4a6236699318391cd44976a98e31f1 version=v1.7.15 sandbox.go:138: time="2024-11-28T10:54:02.486286976Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:138: time="2024-11-28T1

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)(0xc000179380), (*buildflags.CacheOptionsEntry)(0xc0001793c0), (*buildflags.CacheOptionsEntry)(0xc000179420)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0001791a0), (*buildflags.CacheOptionsEntry)(0xc0001791c0), (*buildflags.CacheOptionsEntry)(0xc000179260)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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 10:53:42.32400183 +0000 UTC m=+77.447681848 /usr/bin/dockerd --data-root /tmp/integration1860636/durhfoncqv2hn/root --exec-root /tmp/dxr/durhfoncqv2hn --pidfile /tmp/integration1860636/durhfoncqv2hn/docker.pid --containerd-namespace durhfoncqv2hn --containerd-plugins-namespace durhfoncqv2hnp --host unix:///tmp/docker-integration/durhfoncqv2hn.sock --config-file /tmp/integration1860636/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T10:53:42.342010175Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T10:53:42.342981511Z" level=warning msg="could not change group /tmp/docker-integration/durhfoncqv2hn.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T10:53:42.343105543Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/durhfoncqv2hn.sock)" sandbox.go:138: time="2024-11-28T10:53:42.343130470Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T10:53:42.343688171Z" level=info msg="started new containerd process" address=/tmp/dxr/durhfoncqv2hn/containerd/containerd.sock module=libcontainerd pid=15237 sandbox.go:138: time="2024-11-28T10:53:42.344222461Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/durhfoncqv2hn/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T10:53:42.344419892Z" level=debug msg="2024/11/28 10:53:42 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/durhfoncqv2hn/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connection error: desc = \"transport: Error while dialing: dial unix /tmp/dxr/durhfoncqv2hn/containerd/containerd.sock: connect: no such file or directory\"" library=grpc sandbox.go:138: time="2024-11-28T10:53:42.355322212Z" level=info msg="starting containerd" revision=7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c version=v1.7.22 sandbox.go:138: time="2024-11-28T10:53:42.368301028Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:138: time="2024-11-28T10:53:42.368331975Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.contai

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakePrint/worker=docker@26.1

=== RUN TestIntegration/TestBakePrint/worker=docker@26.1 === PAUSE TestIntegration/TestBakePrint/worker=docker@26.1 === CONT TestIntegration/TestBakePrint/worker=docker@26.1 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)(0xc002351cc0), (*buildflags.CacheOptionsEntry)(0xc002351ce0), (*buildflags.CacheOptionsEntry)(0xc002351d00)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc002351bc0), (*buildflags.CacheOptionsEntry)(0xc002351be0), (*buildflags.CacheOptionsEntry)(0xc002351c20)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> Test: TestIntegration/TestBakePrint/worker=docker@26.1 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 10:54:50.019532575 +0000 UTC m=+145.944023763 /opt/docker-alt-26/dockerd --data-root /tmp/integration2593004666/dbo8owwohe6fb/root --exec-root /tmp/dxr/dbo8owwohe6fb --pidfile /tmp/integration2593004666/dbo8owwohe6fb/docker.pid --containerd-namespace dbo8owwohe6fb --containerd-plugins-namespace dbo8owwohe6fbp --host unix:///tmp/docker-integration/dbo8owwohe6fb.sock --config-file /tmp/integration2593004666/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T10:54:50.044182170Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T10:54:50.045265967Z" level=warning msg="could not change group /tmp/docker-integration/dbo8owwohe6fb.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T10:54:50.045388086Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dbo8owwohe6fb.sock)" sandbox.go:138: time="2024-11-28T10:54:50.045408234Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T10:54:50.045935806Z" level=info msg="started new containerd process" address=/tmp/dxr/dbo8owwohe6fb/containerd/containerd.sock module=libcontainerd pid=21851 sandbox.go:138: time="2024-11-28T10:54:50.046303707Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dbo8owwohe6fb/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T10:54:50.046439629Z" level=debug msg="2024/11/28 10:54:50 WARNING: [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dbo8owwohe6fb/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connection error: desc = \"transport: Error while dialing: dial unix /tmp/dxr/dbo8owwohe6fb/containerd/containerd.sock: connect: no such file or directory\"" library=grpc sandbox.go:138: time="2024-11-28T10:54:50.057950133Z" level=info msg="starting containerd" revision=926c9586fe4a6236699318391cd44976a98e31f1 version=v1.7.15 sandbox.go:138: time="2024-11-28T10:54:50.070793556Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:138: time="2024-11-28T10:54:50.070818823Z" level=info msg="loadi

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)(0xc001fdcc60), (*buildflags.CacheOptionsEntry)(0xc001fdcc80), (*buildflags.CacheOptionsEntry)(0xc001fdcca0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001fdcb60), (*buildflags.CacheOptionsEntry)(0xc001fdcb80), (*buildflags.CacheOptionsEntry)(0xc001fdcbc0)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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 10:54:36.430168148 +0000 UTC m=+129.804857403 /usr/bin/dockerd --data-root /tmp/integration1625322236/do3zntejsp2a9/root --exec-root /tmp/dxr/do3zntejsp2a9 --pidfile /tmp/integration1625322236/do3zntejsp2a9/docker.pid --containerd-namespace do3zntejsp2a9 --containerd-plugins-namespace do3zntejsp2a9p --host unix:///tmp/docker-integration/do3zntejsp2a9.sock --config-file /tmp/integration1625322236/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T10:54:36.448418671Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T10:54:36.449637583Z" level=warning msg="could not change group /tmp/docker-integration/do3zntejsp2a9.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T10:54:36.449751547Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/do3zntejsp2a9.sock)" sandbox.go:138: time="2024-11-28T10:54:36.449767928Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T10:54:36.450294054Z" level=info msg="started new containerd process" address=/tmp/dxr/do3zntejsp2a9/containerd/containerd.sock module=libcontainerd pid=20367 sandbox.go:138: time="2024-11-28T10:54:36.450694295Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/do3zntejsp2a9/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T10:54:36.450848277Z" level=debug msg="2024/11/28 10:54:36 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/do3zntejsp2a9/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connection error: desc = \"transport: Error while dialing: dial unix /tmp/dxr/do3zntejsp2a9/containerd/containerd.sock: connect: no such file or directory\"" library=grpc sandbox.go:138: time="2024-11-28T10:54:36.461298412Z" level=info msg="starting containerd" revision=7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c version=v1.7.22 sandbox.go:138: time="2024-11-28T10:54:36.473960663Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:138: time="2024-11-28T10:54:36.473994176Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." typ

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakePrint/worker=docker+containerd@26.1 === PAUSE TestIntegration/TestBakePrint/worker=docker+containerd@26.1 === CONT TestIntegration/TestBakePrint/worker=docker+containerd@26.1 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)(0xc0010122c0), (*buildflags.CacheOptionsEntry)(0xc0010122e0), (*buildflags.CacheOptionsEntry)(0xc001012300)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001012020), (*buildflags.CacheOptionsEntry)(0xc001012040), (*buildflags.CacheOptionsEntry)(0xc001012140)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> Test: TestIntegration/TestBakePrint/worker=docker+containerd@26.1 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 10:54:57.149491215 +0000 UTC m=+127.154038914 /opt/docker-alt-26/dockerd --data-root /tmp/integration2249841061/dquifp3y162x8/root --exec-root /tmp/dxr/dquifp3y162x8 --pidfile /tmp/integration2249841061/dquifp3y162x8/docker.pid --containerd-namespace dquifp3y162x8 --containerd-plugins-namespace dquifp3y162x8p --host unix:///tmp/docker-integration/dquifp3y162x8.sock --config-file /tmp/integration2249841061/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T10:54:57.173903158Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T10:54:57.175596795Z" level=warning msg="could not change group /tmp/docker-integration/dquifp3y162x8.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T10:54:57.175755769Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dquifp3y162x8.sock)" sandbox.go:138: time="2024-11-28T10:54:57.175773522Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T10:54:57.177050171Z" level=info msg="started new containerd process" address=/tmp/dxr/dquifp3y162x8/containerd/containerd.sock module=libcontainerd pid=19509 sandbox.go:138: time="2024-11-28T10:54:57.177675319Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dquifp3y162x8/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T10:54:57.177862599Z" level=debug msg="2024/11/28 10:54:57 WARNING: [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dquifp3y162x8/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connection error: desc = \"transport: Error while dialing: dial unix /tmp/dxr/dquifp3y162x8/containerd/containerd.sock: connect: no such file or directory\"" library=grpc sandbox.go:138: time="2024-11-28T10:54:57.188860879Z" level=info msg="starting containerd" revision=926c9586fe4a6236699318391cd44976a98e31f1 version=v1.7.15 sandbox.go:138: time="2024-11-28T10:54:57.202215489Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:138: time="2024-11-2

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)(0xc001f063a0), (*buildflags.CacheOptionsEntry)(0xc001f063c0), (*buildflags.CacheOptionsEntry)(0xc001f063e0)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc001f06280), (*buildflags.CacheOptionsEntry)(0xc001f062a0), (*buildflags.CacheOptionsEntry)(0xc001f062e0)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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 10:54:59.876707397 +0000 UTC m=+126.607028936 /usr/bin/dockerd --data-root /tmp/integration3397570469/dzil1ot7lmb7c/root --exec-root /tmp/dxr/dzil1ot7lmb7c --pidfile /tmp/integration3397570469/dzil1ot7lmb7c/docker.pid --containerd-namespace dzil1ot7lmb7c --containerd-plugins-namespace dzil1ot7lmb7cp --host unix:///tmp/docker-integration/dzil1ot7lmb7c.sock --config-file /tmp/integration3397570469/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T10:54:59.897155587Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T10:54:59.898194595Z" level=warning msg="could not change group /tmp/docker-integration/dzil1ot7lmb7c.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T10:54:59.898336682Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dzil1ot7lmb7c.sock)" sandbox.go:138: time="2024-11-28T10:54:59.898354185Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T10:54:59.898880572Z" level=info msg="started new containerd process" address=/tmp/dxr/dzil1ot7lmb7c/containerd/containerd.sock module=libcontainerd pid=20081 sandbox.go:138: time="2024-11-28T10:54:59.899263450Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dzil1ot7lmb7c/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T10:54:59.899422363Z" level=debug msg="2024/11/28 10:54:59 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dzil1ot7lmb7c/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connection error: desc = \"transport: Error while dialing: dial unix /tmp/dxr/dzil1ot7lmb7c/containerd/containerd.sock: connect: no such file or directory\"" library=grpc sandbox.go:138: time="2024-11-28T10:54:59.909698368Z" level=info msg="starting containerd" revision=7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c version=v1.7.22 sandbox.go:138: time="2024-11-28T10:54:59.923206227Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:138: time="2024-11-28T10:54:59.923229090Z" level=info msg="loading plug

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)(0xc000349680), (*buildflags.CacheOptionsEntry)(0xc000349700), (*buildflags.CacheOptionsEntry)(0xc000349720)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc0003494e0), (*buildflags.CacheOptionsEntry)(0xc000349500), (*buildflags.CacheOptionsEntry)(0xc000349560)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> 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 10:55:05.096081039 +0000 UTC m=+129.248994915 /usr/bin/dockerd --data-root /tmp/integration1371176433/dmf2jvvyrlvqr/root --exec-root /tmp/dxr/dmf2jvvyrlvqr --pidfile /tmp/integration1371176433/dmf2jvvyrlvqr/docker.pid --containerd-namespace dmf2jvvyrlvqr --containerd-plugins-namespace dmf2jvvyrlvqrp --host unix:///tmp/docker-integration/dmf2jvvyrlvqr.sock --config-file /tmp/integration1371176433/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T10:55:05.113940925Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T10:55:05.114967415Z" level=warning msg="could not change group /tmp/docker-integration/dmf2jvvyrlvqr.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T10:55:05.115134586Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dmf2jvvyrlvqr.sock)" sandbox.go:138: time="2024-11-28T10:55:05.115154082Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T10:55:05.115701056Z" level=info msg="started new containerd process" address=/tmp/dxr/dmf2jvvyrlvqr/containerd/containerd.sock module=libcontainerd pid=20103 sandbox.go:138: time="2024-11-28T10:55:05.116122941Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dmf2jvvyrlvqr/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T10:55:05.116306806Z" level=debug msg="2024/11/28 10:55:05 WARNING: [core] [Channel #1 SubChannel #2]grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dmf2jvvyrlvqr/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connection error: desc = \"transport: Error while dialing: dial unix /tmp/dxr/dmf2jvvyrlvqr/containerd/containerd.sock: connect: no such file or directory\"" library=grpc sandbox.go:138: time="2024-11-28T10:55:05.126969699Z" level=info msg="starting containerd" revision=7f7fdf5fed64eb6a7caf99b3e12efcf9d60e311c version=v1.7.22 sandbox.go:138: time="2024-11-28T10:55:05.139842305Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:138: time="2024-11-28T10:55:05.139870888Z" level=info msg="loading plug

Check failure on line 123 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakePrint/worker=docker@26.1

=== RUN TestIntegration/TestBakePrint/worker=docker@26.1 === PAUSE TestIntegration/TestBakePrint/worker=docker@26.1 === CONT TestIntegration/TestBakePrint/worker=docker@26.1 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)(0xc00014f640), (*buildflags.CacheOptionsEntry)(0xc00014f6a0), (*buildflags.CacheOptionsEntry)(0xc001036020)} actual : []*buildflags.CacheOptionsEntry{(*buildflags.CacheOptionsEntry)(0xc00014f3c0), (*buildflags.CacheOptionsEntry)(0xc00014f480), (*buildflags.CacheOptionsEntry)(0xc00014f4c0)} Diff: --- Expected +++ Actual @@ -17,4 +17,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" + }, ImplicitAttrs: (map[string]string) <nil> Test: TestIntegration/TestBakePrint/worker=docker@26.1 sandbox.go:135: stderr: /opt/docker-alt-26/dockerd sandbox.go:138: > startCmd 2024-11-28 10:54:58.240215176 +0000 UTC m=+112.498891924 /opt/docker-alt-26/dockerd --data-root /tmp/integration569366437/dz6gjz6p57z2v/root --exec-root /tmp/dxr/dz6gjz6p57z2v --pidfile /tmp/integration569366437/dz6gjz6p57z2v/docker.pid --containerd-namespace dz6gjz6p57z2v --containerd-plugins-namespace dz6gjz6p57z2vp --host unix:///tmp/docker-integration/dz6gjz6p57z2v.sock --config-file /tmp/integration569366437/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:138: time="2024-11-28T10:54:58.266310222Z" level=info msg="Starting up" sandbox.go:138: time="2024-11-28T10:54:58.267406832Z" level=warning msg="could not change group /tmp/docker-integration/dz6gjz6p57z2v.sock to docker: group docker not found" sandbox.go:138: time="2024-11-28T10:54:58.267544459Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dz6gjz6p57z2v.sock)" sandbox.go:138: time="2024-11-28T10:54:58.267560689Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:138: time="2024-11-28T10:54:58.268085747Z" level=info msg="started new containerd process" address=/tmp/dxr/dz6gjz6p57z2v/containerd/containerd.sock module=libcontainerd pid=17826 sandbox.go:138: time="2024-11-28T10:54:58.268490303Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dz6gjz6p57z2v/containerd/containerd.sock module=libcontainerd sandbox.go:138: time="2024-11-28T10:54:58.268650546Z" level=debug msg="2024/11/28 10:54:58 WARNING: [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dz6gjz6p57z2v/containerd/containerd.sock\", ServerName: \"localhost\", Attributes: {\"<%!p(networktype.keyType=grpc.internal.transport.networktype)>\": \"unix\" }, }. Err: connection error: desc = \"transport: Error while dialing: dial unix /tmp/dxr/dz6gjz6p57z2v/containerd/containerd.sock: connect: no such file or directory\"" library=grpc sandbox.go:138: time="2024-11-28T10:54:58.279992490Z" level=info msg="starting containerd" revision=926c9586fe4a6236699318391cd44976a98e31f1 version=v1.7.15 sandbox.go:138: time="2024-11-28T10:54:58.292880441Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:138: time="2024-11-28T10:54:58.292911038Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.co
{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": [
{
"scope": "build",
"type": "gha"
},
{
"bucket": "mybucket",
"region": "eu-west-1",
"type": "s3"
},
{
"ref": "user/repo:cache",
"type": "registry"
}
],
"cache-to": [
{
"mode": "max",
"scope": "build",
"token": "foo",
"type": "gha"
},
{
"bucket": "mybucket",
"region": "eu-west-1",
"type": "s3"
},
{
"type": "inline"
}
],
"output": [
{
"dest": "./release-out",
"type": "local"
},
{
"ref": "user/app",
"type": "registry"
}
]
}
}
}
`, stdout.String())
}

func testBakePrintConsistency(t *testing.T, sb integration.Sandbox) {
testCases := []struct {
name string
f string
Expand Down
22 changes: 13 additions & 9 deletions util/buildflags/cache.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,9 @@ import (
)

type CacheOptionsEntry struct {
Type string `json:"type"`
Attrs map[string]string `json:"attrs,omitempty"`
Type string `json:"type"`
Attrs map[string]string `json:"attrs,omitempty"`
ImplicitAttrs map[string]string `json:"-"`
}

func (e *CacheOptionsEntry) Equal(other *CacheOptionsEntry) bool {
Expand Down Expand Up @@ -46,9 +47,11 @@ func (e *CacheOptionsEntry) String() string {
}

func (e *CacheOptionsEntry) ToPB() *controllerapi.CacheOptionsEntry {
attrs := maps.Clone(e.Attrs)
maps.Copy(attrs, e.ImplicitAttrs)
return &controllerapi.CacheOptionsEntry{
Type: e.Type,
Attrs: maps.Clone(e.Attrs),
Attrs: attrs,
}
}

Expand Down Expand Up @@ -79,7 +82,7 @@ func (e *CacheOptionsEntry) IsActive() bool {
if e.Type != "gha" {
return true
}
return e.Attrs["token"] != "" && e.Attrs["url"] != ""
return (e.Attrs["token"] != "" || e.ImplicitAttrs["token"] != "") && (e.Attrs["url"] != "" || e.ImplicitAttrs["url"] != "")
}

func (e *CacheOptionsEntry) UnmarshalText(text []byte) error {
Expand All @@ -97,6 +100,7 @@ func (e *CacheOptionsEntry) UnmarshalText(text []byte) error {

e.Type = ""
e.Attrs = map[string]string{}
e.ImplicitAttrs = map[string]string{}

for _, field := range fields {
parts := strings.SplitN(field, "=", 2)
Expand Down Expand Up @@ -162,12 +166,12 @@ func addGithubToken(ci *CacheOptionsEntry) {
}
if _, ok := ci.Attrs["token"]; !ok {
if v, ok := os.LookupEnv("ACTIONS_RUNTIME_TOKEN"); ok {
ci.Attrs["token"] = v
ci.ImplicitAttrs["token"] = v
}
}
if _, ok := ci.Attrs["url"]; !ok {
if v, ok := os.LookupEnv("ACTIONS_CACHE_URL"); ok {
ci.Attrs["url"] = v
ci.ImplicitAttrs["url"] = v
}
}
}
Expand All @@ -192,12 +196,12 @@ func addAwsCredentials(ci *CacheOptionsEntry) {
return
}
if !okAccessKeyID && credentials.AccessKeyID != "" {
ci.Attrs["access_key_id"] = credentials.AccessKeyID
ci.ImplicitAttrs["access_key_id"] = credentials.AccessKeyID
}
if !okSecretAccessKey && credentials.SecretAccessKey != "" {
ci.Attrs["secret_access_key"] = credentials.SecretAccessKey
ci.ImplicitAttrs["secret_access_key"] = credentials.SecretAccessKey
}
if _, ok := ci.Attrs["session_token"]; !ok && credentials.SessionToken != "" {
ci.Attrs["session_token"] = credentials.SessionToken
ci.ImplicitAttrs["session_token"] = credentials.SessionToken
}
}

0 comments on commit 22ca6d3

Please sign in to comment.