Skip to content

Commit

Permalink
printer: dedup warnings
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 Jun 25, 2024
1 parent 12b130f commit cc99059
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 1 deletion.
61 changes: 61 additions & 0 deletions tests/bake.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ var bakeTests = []func(t *testing.T, sb integration.Sandbox){
testBakeUlimits,
testBakeMetadataProvenance,
testBakeMetadataWarnings,
testBakeMetadataWarningsDedup,
testBakeMultiExporters,
testBakeLoadPush,
}
Expand Down Expand Up @@ -778,6 +779,66 @@ target "default" {
require.Len(t, md.BuildWarnings, 3)
}

func testBakeMetadataWarningsDedup(t *testing.T, sb integration.Sandbox) {
dockerfile := []byte(`
frOM busybox as base
cOpy Dockerfile .
from scratch
COPy --from=base \
/Dockerfile \
/
`)
bakefile := []byte(`
group "default" {
targets = ["base", "def"]
}
target "base" {
target = "base"
}
target "def" {
}
`)
dir := tmpdir(
t,
fstest.CreateFile("docker-bake.hcl", bakefile, 0600),
fstest.CreateFile("Dockerfile", dockerfile, 0600),
)

dirDest := t.TempDir()

cmd := buildxCmd(
sb,
withDir(dir),
withArgs("bake", "--metadata-file", filepath.Join(dirDest, "md.json"), "--set", "*.output=type=none"),
withEnv("BUILDX_METADATA_WARNINGS=true"),
)
out, err := cmd.CombinedOutput()
require.NoError(t, err, string(out))

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakeMetadataWarningsDedup/worker=remote

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=remote bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote Messages: #0 building with "integration-remote-5vfdeyjz0eze94bwqz32iyxhu" instance using remote driver #1 [internal] load local bake definitions 2024/06/25 09:14:01 http2: server connection error from localhost: connection error: PROTOCOL_ERROR 2024/06/25 09:14:01 http2: server connection error from localhost: connection error: PROTOCOL_ERROR #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found sandbox.go:133: 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_config3419941471/buildkitd.toml --root /tmp/bktest_buildkitd924958765 --addr unix:///tmp/bktest_buildkitd924958765/buildkitd.sock --debug sandbox.go:133: 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_config3419941471/buildkitd.toml --root /tmp/bktest_buildkitd924958765 --addr unix:///tmp/bktest_buildkitd924958765/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:14:01.199124593 +0000 UTC m=+6.757965808 /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_config3419941471/buildkitd.toml --root /tmp/bktest_buildkitd924958765 --addr unix:///tmp/bktest_buildkitd924958765/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:14:01Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:01Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:01Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:14:01Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:14:01Z" level=info msg="found worker \"yqrpa2a8t0f0zji6zt09h7nv5\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:3c0b06447a87 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:136: time="2024-06-25T09:14:01Z" level=info msg="found 1 workers, default=\"yqrpa2a8t0f0zji6zt09h7nv5\"" sandbox.go:136: time="2024-06-25T09:14:01Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:14:01Z" level=info msg="running server on /tmp/bktest_buildkitd924958765/buildkitd.sock" sandbox.go:136: time="2024-06-25T09:14:01Z" level=debug msg="session started" sandbox.go:136: time="2024-06-25T09:14:01Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-25T09:14:01Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown d

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakeMetadataWarningsDedup/worker=remote

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=remote bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote Messages: #0 building with "integration-remote-9nrdxcioyq8kd4g5chr0vvyoj" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s 2024/06/25 09:14:02 http2: server connection error from localhost: connection error: PROTOCOL_ERROR ERROR: failed to solve: exporter "none" could not be found sandbox.go:133: 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_config1060226574/buildkitd.toml --root /tmp/bktest_buildkitd4214411558 --addr unix:///tmp/bktest_buildkitd4214411558/buildkitd.sock --debug sandbox.go:133: 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_config1060226574/buildkitd.toml --root /tmp/bktest_buildkitd4214411558 --addr unix:///tmp/bktest_buildkitd4214411558/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:14:01.923835653 +0000 UTC m=+5.708777777 /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_config1060226574/buildkitd.toml --root /tmp/bktest_buildkitd4214411558 --addr unix:///tmp/bktest_buildkitd4214411558/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:14:01Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:14:01Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:14:01Z" level=info msg="found worker \"r8kqt1hn9yzfav4lmletirivm\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:106c371e7233 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:136: time="2024-06-25T09:14:02Z" level=info msg="found 1 workers, default=\"r8kqt1hn9yzfav4lmletirivm\"" sandbox.go:136: time="2024-06-25T09:14:02Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:14:02Z" level=info msg="running server on /tmp/bktest_buildkitd4214411558/buildkitd.sock" sandbox.go:136: time="2024-06-25T09:14:02Z" level=debug msg="session started" spanID=8efc37496f134dc0 traceID=47fd078ac3c40fd5b89b72bcdd756107 sandbox.go:136: time="2024-06-25T09:14:02Z" level=debug msg="session finished: <nil>" spanID=8efc37496f134dc0 traceID=47fd078ac3c40fd5b89b72bcdd756107 sandbox.go:136: time="2024-06-25T09:14:02Z" level=debug msg="session started" spanID=2a073141efe05ae5 traceID=47fd078ac3c40fd5b89b72bcdd756107 sandbox.go:136: time="2024-06-25T09:14:02Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = exporter \"none\" could not be found" sandbox.go:136: exporter "no

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakeMetadataWarningsDedup/worker=remote

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=remote bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote Messages: #0 building with "integration-remote-ww8t3sm5zm8mqdv7oak5p5d3r" instance using remote driver #1 [internal] load local bake definitions 2024/06/25 09:14:03 http2: server connection error from localhost: connection error: PROTOCOL_ERROR #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found sandbox.go:133: 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_config2326390737/buildkitd.toml --root /tmp/bktest_buildkitd3292144695 --addr unix:///tmp/bktest_buildkitd3292144695/buildkitd.sock --debug sandbox.go:133: 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_config2326390737/buildkitd.toml --root /tmp/bktest_buildkitd3292144695 --addr unix:///tmp/bktest_buildkitd3292144695/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:14:03.287611801 +0000 UTC m=+8.647689265 /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_config2326390737/buildkitd.toml --root /tmp/bktest_buildkitd3292144695 --addr unix:///tmp/bktest_buildkitd3292144695/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:14:03Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:03Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:03Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:14:03Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:14:03Z" level=info msg="found worker \"iil2pi156u0h6rptfi1hlnwcn\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:8613d279b0ca 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:136: time="2024-06-25T09:14:03Z" level=info msg="found 1 workers, default=\"iil2pi156u0h6rptfi1hlnwcn\"" sandbox.go:136: time="2024-06-25T09:14:03Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:14:03Z" level=info msg="running server on /tmp/bktest_buildkitd3292144695/buildkitd.sock" sandbox.go:136: time="2024-06-25T09:14:03Z" level=debug msg="session started" sandbox.go:136: time="2024-06-25T09:14:03Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-25T09:14:03Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = exporter \"none\" could not be found" sandbox.go:136: exporter "none" could not be found sandbox.go:1

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakeMetadataWarningsDedup/worker=remote

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=remote bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote Messages: #0 building with "integration-remote-truz48ivjlfhnmpnuosonb8dv" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s 2024/06/25 09:14:05 http2: server connection error from localhost: connection error: PROTOCOL_ERROR 2024/06/25 09:14:05 http2: server connection error from localhost: connection error: PROTOCOL_ERROR ERROR: failed to solve: exporter "none" could not be found sandbox.go:133: 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_config833676003/buildkitd.toml --root /tmp/bktest_buildkitd2696248543 --addr unix:///tmp/bktest_buildkitd2696248543/buildkitd.sock --debug sandbox.go:133: 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_config833676003/buildkitd.toml --root /tmp/bktest_buildkitd2696248543 --addr unix:///tmp/bktest_buildkitd2696248543/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:14:05.207419995 +0000 UTC m=+9.481299724 /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_config833676003/buildkitd.toml --root /tmp/bktest_buildkitd2696248543 --addr unix:///tmp/bktest_buildkitd2696248543/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:14:05Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:14:05Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:14:05Z" level=info msg="found worker \"lb79406vqcpgi6nlpj9znrbzw\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:39cd0e256f86 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:136: time="2024-06-25T09:14:05Z" level=info msg="found 1 workers, default=\"lb79406vqcpgi6nlpj9znrbzw\"" sandbox.go:136: time="2024-06-25T09:14:05Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:14:05Z" level=info msg="running server on /tmp/bktest_buildkitd2696248543/buildkitd.sock" sandbox.go:136: time="2024-06-25T09:14:05Z" level=debug msg="session started" spanID=5c7e43ac577dfacc traceID=d606052a1672cb271d132170a4afce21 sandbox.go:136: time="2024-06-25T09:14:05Z" level=debug msg="session finished: <nil>" spanID=5c7e43ac577dfacc traceID=d606052a1672cb271d132170a4afce21 sandbox.go:136: time="2024-06-25T09:14:05Z" level=debug msg="session started" spanID=84bd0a0c70d9d244 traceID=d606052a1672cb271d132170a4afce21 sandbox.go:136: time="2024-06-25T09:14:05Z" level=error msg="/moby.buildkit.v1.Control/Solve

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakeMetadataWarningsDedup/worker=remote

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=remote bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote Messages: #0 building with "integration-remote-4ncp3wfftw93nuso4q0dgoj57" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found sandbox.go:133: 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_config952952316/buildkitd.toml --root /tmp/bktest_buildkitd2378743944 --addr unix:///tmp/bktest_buildkitd2378743944/buildkitd.sock --debug sandbox.go:133: 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_config952952316/buildkitd.toml --root /tmp/bktest_buildkitd2378743944 --addr unix:///tmp/bktest_buildkitd2378743944/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:14:07.380445802 +0000 UTC m=+10.302816989 /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_config952952316/buildkitd.toml --root /tmp/bktest_buildkitd2378743944 --addr unix:///tmp/bktest_buildkitd2378743944/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:14:07Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:07Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:07Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:14:07Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:14:07Z" level=info msg="found worker \"99sr316xsq5goeqmz5k0zpwnm\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:822cd85c2748 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:136: time="2024-06-25T09:14:07Z" level=info msg="found 1 workers, default=\"99sr316xsq5goeqmz5k0zpwnm\"" sandbox.go:136: time="2024-06-25T09:14:07Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:14:07Z" level=info msg="running server on /tmp/bktest_buildkitd2378743944/buildkitd.sock" sandbox.go:136: time="2024-06-25T09:14:07Z" level=debug msg="session started" sandbox.go:136: time="2024-06-25T09:14:07Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-25T09:14:07Z" level=debug msg="session started" sandbox.go:136: time="2024-06-25T09:14:07Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = exporter \"none\" could not be found" sandbox.go:136: exporter "none" could not be found sandbox.go:136: 12148 v0.14.1 buildkitd --oci-worker=t

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakeMetadataWarningsDedup/worker=remote

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=remote bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote Messages: #0 building with "integration-remote-hyiysdi32rsdxrsncvbb625tt" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found sandbox.go:133: 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_config4214282812/buildkitd.toml --root /tmp/bktest_buildkitd4131378291 --addr unix:///tmp/bktest_buildkitd4131378291/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:14:07.206468862 +0000 UTC m=+6.762785542 /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_config4214282812/buildkitd.toml --root /tmp/bktest_buildkitd4131378291 --addr unix:///tmp/bktest_buildkitd4131378291/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:14:07Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:07Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:07Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:14:07Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:14:07Z" level=info msg="found worker \"xiotyut4a3lydbmywqmucb3gq\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:559f7df5ac87 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:136: time="2024-06-25T09:14:07Z" level=info msg="found 1 workers, default=\"xiotyut4a3lydbmywqmucb3gq\"" sandbox.go:136: time="2024-06-25T09:14:07Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:14:07Z" level=info msg="running server on /tmp/bktest_buildkitd4131378291/buildkitd.sock" sandbox.go:136: time="2024-06-25T09:14:07Z" level=debug msg="session started" sandbox.go:136: time="2024-06-25T09:14:07Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-25T09:14:07Z" level=debug msg="session started" sandbox.go:136: time="2024-06-25T09:14:07Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = exporter \"none\" could not be found" sandbox.go:136: exporter "none" could not be found sandbox.go:136: 9414 05213db buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config4214282812/buildkitd.toml --root /tmp/bktest_buildkitd4131378291 --addr unix:///tmp/bktest_buildkitd4131378291/buildkitd.sock --debug sandbox.go:136: github.com/moby/buildkit/worker/base.(*W

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakeMetadataWarningsDedup/worker=remote

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=remote bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote Messages: #0 building with "integration-remote-qzximst7vcxzqdu2samvuup5m" instance using remote driver #1 [internal] load local bake definitions 2024/06/25 09:14:07 http2: server connection error from localhost: connection error: PROTOCOL_ERROR #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found sandbox.go:133: 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_config2239881550/buildkitd.toml --root /tmp/bktest_buildkitd1978338602 --addr unix:///tmp/bktest_buildkitd1978338602/buildkitd.sock --debug sandbox.go:133: 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_config2239881550/buildkitd.toml --root /tmp/bktest_buildkitd1978338602 --addr unix:///tmp/bktest_buildkitd1978338602/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:14:07.115545432 +0000 UTC m=+8.181019339 /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_config2239881550/buildkitd.toml --root /tmp/bktest_buildkitd1978338602 --addr unix:///tmp/bktest_buildkitd1978338602/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:14:07Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:07Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:07Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:14:07Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:14:07Z" level=info msg="found worker \"jxubx1s7fj61vp1mprifu99fk\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:5202eccdd97b 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:136: time="2024-06-25T09:14:07Z" level=info msg="found 1 workers, default=\"jxubx1s7fj61vp1mprifu99fk\"" sandbox.go:136: time="2024-06-25T09:14:07Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:14:07Z" level=info msg="running server on /tmp/bktest_buildkitd1978338602/buildkitd.sock" sandbox.go:136: time="2024-06-25T09:14:07Z" level=debug msg="session started" sandbox.go:136: time="2024-06-25T09:14:07Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-25T09:14:07Z" level=debug msg="session started" sandbox.go:136: time="2024-06-25T09:14:07Z" level=debug msg="session started" sandbox.go:136: time="2024-06-25T09:14:07Z" level=error msg="/moby.buildkit.v1.Control/

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakeMetadataWarningsDedup/worker=remote

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=remote bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote Messages: #0 building with "integration-remote-2o5y9bp8c92aq0r6r8dv6qeu8" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found sandbox.go:133: 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_config227338324/buildkitd.toml --root /tmp/bktest_buildkitd3940626887 --addr unix:///tmp/bktest_buildkitd3940626887/buildkitd.sock --debug sandbox.go:133: 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_config227338324/buildkitd.toml --root /tmp/bktest_buildkitd3940626887 --addr unix:///tmp/bktest_buildkitd3940626887/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:14:09.135280415 +0000 UTC m=+5.258888448 /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_config227338324/buildkitd.toml --root /tmp/bktest_buildkitd3940626887 --addr unix:///tmp/bktest_buildkitd3940626887/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:14:09Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:09Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:09Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:14:09Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:14:09Z" level=info msg="found worker \"y59szsm1iam5h7aoukkn1yy05\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:67e10e90f8b5 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:136: time="2024-06-25T09:14:09Z" level=info msg="found 1 workers, default=\"y59szsm1iam5h7aoukkn1yy05\"" sandbox.go:136: time="2024-06-25T09:14:09Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:14:09Z" level=info msg="running server on /tmp/bktest_buildkitd3940626887/buildkitd.sock" sandbox.go:136: time="2024-06-25T09:14:09Z" level=debug msg="session started" sandbox.go:136: time="2024-06-25T09:14:09Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-25T09:14:09Z" level=debug msg="session started" sandbox.go:136: time="2024-06-25T09:14:09Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = exporter \"none\" could not be found" sandbox.go:136: time="2024-06-25T09:14:09Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: r

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container Messages: #0 building with "integration-container-il1rbxuivjxt4wbn6f3xx27l2" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (3.80s)

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container Messages: #0 building with "integration-container-otsjzj7j570rdu7w1qsq6nmx2" instance using docker-container driver #1 [internal] load local bake definitions 2024/06/25 09:14:16 http2: server connection error from localhost: connection error: PROTOCOL_ERROR #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (3.79s)

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container Messages: #0 building with "integration-container-nhdgg5hjon4pcglwqhaoclfb3" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s 2024/06/25 09:14:12 http2: server connection error from localhost: connection error: PROTOCOL_ERROR ERROR: failed to solve: exporter "none" could not be found --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (11.10s)

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakeMetadataWarningsDedup/worker=remote

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=remote bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote Messages: #0 building with "integration-remote-4soddvtiop0kd5j2tfbjiz9f7" instance using remote driver #1 [internal] load local bake definitions 2024/06/25 09:14:16 http2: server connection error from localhost: connection error: PROTOCOL_ERROR 2024/06/25 09:14:16 http2: server connection error from localhost: connection error: PROTOCOL_ERROR #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found sandbox.go:133: 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_config2098737664/buildkitd.toml --root /tmp/bktest_buildkitd2449462412 --addr unix:///tmp/bktest_buildkitd2449462412/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:14:15.776682511 +0000 UTC m=+10.178334684 /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_config2098737664/buildkitd.toml --root /tmp/bktest_buildkitd2449462412 --addr unix:///tmp/bktest_buildkitd2449462412/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:14:15Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:15Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:15Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:14:15Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:14:15Z" level=info msg="found worker \"tm2unp74o9l56od7j1rqd5tl7\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:6f4100939467 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:136: time="2024-06-25T09:14:15Z" level=info msg="found 1 workers, default=\"tm2unp74o9l56od7j1rqd5tl7\"" sandbox.go:136: time="2024-06-25T09:14:15Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:14:15Z" level=info msg="running server on /tmp/bktest_buildkitd2449462412/buildkitd.sock" sandbox.go:136: time="2024-06-25T09:14:15Z" level=debug msg="session started" sandbox.go:136: time="2024-06-25T09:14:15Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-25T09:14:15Z" level=debug msg="session started" sandbox.go:136: time="2024-06-25T09:14:15Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = exporter \"none\" could not be found" sandbox.go:136: exporter "none" could not be found sandbox.go:136: 10829 v0.14.1 buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buil

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakeMetadataWarningsDedup/worker=remote

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=remote bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote Messages: #0 building with "integration-remote-eum1eec22txlka94bqngpvdcj" instance using remote driver #1 [internal] load local bake definitions 2024/06/25 09:14:18 http2: server connection error from localhost: connection error: PROTOCOL_ERROR #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found View build details: docker-desktop://dashboard/build/integration-remote-eum1eec22txlka94bqngpvdcj/integration-remote-eum1eec22txlka94bqngpvdcj0/dsf6uonyy1lvv4jl8dywuk4nc sandbox.go:133: 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_config2533623538/buildkitd.toml --root /tmp/bktest_buildkitd3697075191 --addr unix:///tmp/bktest_buildkitd3697075191/buildkitd.sock --debug sandbox.go:133: 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_config2533623538/buildkitd.toml --root /tmp/bktest_buildkitd3697075191 --addr unix:///tmp/bktest_buildkitd3697075191/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:14:18.148177376 +0000 UTC m=+8.416126577 /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_config2533623538/buildkitd.toml --root /tmp/bktest_buildkitd3697075191 --addr unix:///tmp/bktest_buildkitd3697075191/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:14:18Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:14:18Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:14:18Z" level=info msg="found worker \"o77r9ly8lgayumlk7cf6f0y01\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:3dc96215dbee 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:136: time="2024-06-25T09:14:18Z" level=info msg="found 1 workers, default=\"o77r9ly8lgayumlk7cf6f0y01\"" sandbox.go:136: time="2024-06-25T09:14:18Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:14:18Z" level=info msg="running server on /tmp/bktest_buildkitd3697075191/buildkitd.sock" sandbox.go:136: time="2024-06-25T09:14:18Z" level=debug msg="session started" spanID=cce81743322e7b14 traceID=5b3b3a142fd316e1835e99b644b3e0c4 sandbox.go:136: time="2024-06-25T09:14:18Z" level=debug msg="session finished: <nil>" spanID=cce81743322e7b14 traceID=5b3b3a142fd316e1835e99b644b3e0c4 sandbox.go:136: time="2024-06-25T09:14:18Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = ex

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakeMetadataWarningsDedup/worker=remote

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=remote bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote Messages: #0 building with "integration-remote-lwya7dazlbo37qplvg6zmy0m0" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found sandbox.go:133: 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_config73809806/buildkitd.toml --root /tmp/bktest_buildkitd153702708 --addr unix:///tmp/bktest_buildkitd153702708/buildkitd.sock --debug sandbox.go:133: 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_config73809806/buildkitd.toml --root /tmp/bktest_buildkitd153702708 --addr unix:///tmp/bktest_buildkitd153702708/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:14:21.015733873 +0000 UTC m=+9.961833976 /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_config73809806/buildkitd.toml --root /tmp/bktest_buildkitd153702708 --addr unix:///tmp/bktest_buildkitd153702708/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:14:21Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:21Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:14:21Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:14:21Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:14:21Z" level=info msg="found worker \"7q8iq0t65r5qiuyd4j8uisw3o\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:4add77946ba0 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:136: time="2024-06-25T09:14:21Z" level=info msg="found 1 workers, default=\"7q8iq0t65r5qiuyd4j8uisw3o\"" sandbox.go:136: time="2024-06-25T09:14:21Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:14:21Z" level=info msg="running server on /tmp/bktest_buildkitd153702708/buildkitd.sock" sandbox.go:136: time="2024-06-25T09:14:21Z" level=debug msg="session started" sandbox.go:136: time="2024-06-25T09:14:21Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-25T09:14:21Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = exporter \"none\" could not be found" sandbox.go:136: exporter "none" could not be found sandbox.go:136: 10696 v0.14.0 buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.build

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakeMetadataWarningsDedup/worker=remote

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=remote === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=remote bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote Messages: #0 building with "integration-remote-vv6wmkt6lsf4idf1vjdg0oopg" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found sandbox.go:133: 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_config2188547256/buildkitd.toml --root /tmp/bktest_buildkitd1277834167 --addr unix:///tmp/bktest_buildkitd1277834167/buildkitd.sock --debug sandbox.go:133: 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_config2188547256/buildkitd.toml --root /tmp/bktest_buildkitd1277834167 --addr unix:///tmp/bktest_buildkitd1277834167/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:14:22.340803571 +0000 UTC m=+9.903811426 /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_config2188547256/buildkitd.toml --root /tmp/bktest_buildkitd1277834167 --addr unix:///tmp/bktest_buildkitd1277834167/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:14:22Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:14:22Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:14:22Z" level=info msg="found worker \"iwyu0gu45sc4pr8owytz0mu7o\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:c24793cabf9f 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:136: time="2024-06-25T09:14:22Z" level=info msg="found 1 workers, default=\"iwyu0gu45sc4pr8owytz0mu7o\"" sandbox.go:136: time="2024-06-25T09:14:22Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:14:22Z" level=info msg="running server on /tmp/bktest_buildkitd1277834167/buildkitd.sock" sandbox.go:136: time="2024-06-25T09:14:22Z" level=debug msg="session started" spanID=4fc3b1414a373ad6 traceID=91b87819fba1cf7ce14d40fbedbf0139 sandbox.go:136: time="2024-06-25T09:14:22Z" level=debug msg="session finished: <nil>" spanID=4fc3b1414a373ad6 traceID=91b87819fba1cf7ce14d40fbedbf0139 sandbox.go:136: time="2024-06-25T09:14:22Z" level=debug msg="session started" spanID=13b68faca336047d traceID=91b87819fba1cf7ce14d40fbedbf0139 sandbox.go:136: time="2024-06-25T09:14:22Z" level=error msg="/moby.buildkit.v1.Control/Solve returned error: rpc error: code = Unknown desc = exporter \"none\" could not be found" sandbox.go:136: exporter "none" could not be found sandbox.go:136: 11806 v0.13.1 buildkitd --oci-worker=true --containerd-worker=false --oci-worke

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container Messages: #0 building with "integration-container-vpomx8taummbltqh3ir2497k4" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s 2024/06/25 09:14:25 http2: server connection error from localhost: connection error: PROTOCOL_ERROR ERROR: failed to solve: exporter "none" could not be found --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (3.97s)

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container Messages: #0 building with "integration-container-lhj8c6srp4u20ovrrb1abbwju" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (3.72s)

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container Messages: #0 building with "integration-container-nscr3utbydhenl18dx3p9x25s" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (3.76s)

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container Messages: #0 building with "integration-container-jzsqcr7lizu1uj56ya859yaql" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (3.78s)

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container Messages: #0 building with "integration-container-q05z3uvuvg9zmcrx0atpgyb63" instance using docker-container driver #1 [internal] load local bake definitions 2024/06/25 09:14:25 http2: server connection error from localhost: connection error: PROTOCOL_ERROR 2024/06/25 09:14:25 http2: server connection error from localhost: connection error: PROTOCOL_ERROR #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (3.70s)

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container Messages: #0 building with "integration-container-yattxb6o3qzbwtaetiz5za8l7" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (4.10s)

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container Messages: #0 building with "integration-container-ri85njqcxm0p0932s5vnr8bqc" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s 2024/06/25 09:14:26 http2: server connection error from localhost: connection error: PROTOCOL_ERROR ERROR: failed to solve: exporter "none" could not be found --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (3.96s)

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container Messages: #0 building with "integration-container-qml26pbi0akkuj3cnwv84wz5n" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (3.78s)

Check failure on line 816 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container bake.go:816: Error Trace: /src/tests/bake.go:816 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:95 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:212 Error: Received unexpected error: exit status 1 Test: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container Messages: #0 building with "integration-container-j5lgjucn3h52s2ycoj1ce55w9" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: failed to solve: exporter "none" could not be found --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (3.90s)

dt, err := os.ReadFile(filepath.Join(dirDest, "md.json"))
require.NoError(t, err)

type mdT struct {
BuildWarnings []client.VertexWarning `json:"buildx.build.warnings"`
Base struct {
BuildRef string `json:"buildx.build.ref"`
} `json:"base"`
Def struct {
BuildRef string `json:"buildx.build.ref"`
} `json:"def"`
}
var md mdT
err = json.Unmarshal(dt, &md)
require.NoError(t, err)

require.NotEmpty(t, md.Base.BuildRef)
require.NotEmpty(t, md.Def.BuildRef)
require.NotEmpty(t, md.BuildWarnings)

skipNoCompatBuildKit(t, sb, ">= 0.14.0-0", "lint")
require.Len(t, md.BuildWarnings, 3)
}

func testBakeMultiExporters(t *testing.T, sb integration.Sandbox) {
if !isDockerContainerWorker(sb) {
t.Skip("only testing with docker-container worker")
Expand Down
37 changes: 36 additions & 1 deletion util/progress/printer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ package progress

import (
"context"
"crypto/sha256"
"encoding/hex"
"os"
"sync"

Expand Down Expand Up @@ -58,7 +60,7 @@ func (p *Printer) Write(s *client.SolveStatus) {
}

func (p *Printer) Warnings() []client.VertexWarning {
return p.warnings
return dedupWarnings(p.warnings)
}

func (p *Printer) ValidateLogSource(dgst digest.Digest, v interface{}) bool {
Expand Down Expand Up @@ -184,3 +186,36 @@ func WithOnClose(onclose func()) PrinterOpt {
opt.onclose = onclose
}
}

func dedupWarnings(inp []client.VertexWarning) []client.VertexWarning {
m := make(map[string]client.VertexWarning)
for _, w := range inp {
h := sha256.New()
h.Write(w.Short)
h.Write([]byte{0})
for _, d := range w.Detail {
h.Write(d)
h.Write([]byte{0})
}
h.Write([]byte(w.URL))
h.Write([]byte{0})
for _, r := range w.Range {
h.Write([]byte(r.String()))
h.Write([]byte{0})
}
if w.SourceInfo != nil {
h.Write([]byte(w.SourceInfo.Filename))
h.Write([]byte(w.SourceInfo.Data))
}
h.Write([]byte{0})
hkey := hex.EncodeToString(h.Sum(nil))
if _, ok := m[hkey]; !ok {
m[hkey] = w
}
}
res := make([]client.VertexWarning, 0, len(m))
for _, w := range m {
res = append(res, w)
}
return res
}

0 comments on commit cc99059

Please sign in to comment.