Skip to content

Commit

Permalink
printer: dedup warnings
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Jun 25, 2024
1 parent e159134 commit cd71d9a
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 1 deletion.
67 changes: 67 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 @@ -784,6 +785,72 @@ 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()

outFlag := "default.output=type=docker"
if sb.DockerAddress() == "" {
// there is no Docker atm to load the image
outFlag += ",dest=" + dirDest + "/image.tar"
}

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

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-m7ysvgzi8dcpywpuvoz8x5qim" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' 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_config2563502469/buildkitd.toml --root /tmp/bktest_buildkitd4146295633 --addr unix:///tmp/bktest_buildkitd4146295633/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_config2563502469/buildkitd.toml --root /tmp/bktest_buildkitd4146295633 --addr unix:///tmp/bktest_buildkitd4146295633/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:04:33.233175974 +0000 UTC m=+8.148058851 /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_config2563502469/buildkitd.toml --root /tmp/bktest_buildkitd4146295633 --addr unix:///tmp/bktest_buildkitd4146295633/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:04:33Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:33Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:33Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:04:33Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:04:33Z" level=info msg="found worker \"v0tejloelprvw5pv3io6dvbnl\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:e97bffe04af2 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:04:33Z" level=info msg="found 1 workers, default=\"v0tejloelprvw5pv3io6dvbnl\"" sandbox.go:136: time="2024-06-25T09:04:33Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:04:33Z" level=info msg="running server on /tmp/bktest_buildkitd4146295633/buildkitd.sock" --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote (0.29s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-ude2lyfacwvzd2llg8z5z8i2f" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' 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_config1513565978/buildkitd.toml --root /tmp/bktest_buildkitd2371231986 --addr unix:///tmp/bktest_buildkitd2371231986/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_config1513565978/buildkitd.toml --root /tmp/bktest_buildkitd2371231986 --addr unix:///tmp/bktest_buildkitd2371231986/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:04:32.860647261 +0000 UTC m=+6.248594222 /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_config1513565978/buildkitd.toml --root /tmp/bktest_buildkitd2371231986 --addr unix:///tmp/bktest_buildkitd2371231986/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:04:32Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:32Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:32Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:04:32Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:04:32Z" level=info msg="found worker \"r9au3j3vc2lif4r2pb3susprs\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:e188fa41fdb0 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:04:33Z" level=info msg="found 1 workers, default=\"r9au3j3vc2lif4r2pb3susprs\"" sandbox.go:136: time="2024-06-25T09:04:33Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:04:33Z" level=info msg="running server on /tmp/bktest_buildkitd2371231986/buildkitd.sock" --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote (0.34s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-spesom3giauj5dxiybpknlsfu" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' 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_config688878450/buildkitd.toml --root /tmp/bktest_buildkitd1638688934 --addr unix:///tmp/bktest_buildkitd1638688934/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_config688878450/buildkitd.toml --root /tmp/bktest_buildkitd1638688934 --addr unix:///tmp/bktest_buildkitd1638688934/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:04:34.515126508 +0000 UTC m=+8.894009282 /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_config688878450/buildkitd.toml --root /tmp/bktest_buildkitd1638688934 --addr unix:///tmp/bktest_buildkitd1638688934/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:04:34Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:04:34Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:04:34Z" level=info msg="found worker \"iyik4erewj0qb3y7liq2fyrxk\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:c3e760cf34ab 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:04:34Z" level=info msg="found 1 workers, default=\"iyik4erewj0qb3y7liq2fyrxk\"" sandbox.go:136: time="2024-06-25T09:04:34Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:04:34Z" level=info msg="running server on /tmp/bktest_buildkitd1638688934/buildkitd.sock" --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote (0.43s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-ttfjok8nws7gqyoqpbxq6n83k" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' 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_config2952646861/buildkitd.toml --root /tmp/bktest_buildkitd46306443 --addr unix:///tmp/bktest_buildkitd46306443/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_config2952646861/buildkitd.toml --root /tmp/bktest_buildkitd46306443 --addr unix:///tmp/bktest_buildkitd46306443/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:04:35.424993529 +0000 UTC m=+5.136476931 /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_config2952646861/buildkitd.toml --root /tmp/bktest_buildkitd46306443 --addr unix:///tmp/bktest_buildkitd46306443/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:04:35Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:35Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:35Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:04:35Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:04:35Z" level=info msg="found worker \"5ayag6ui41020334xs0macvd3\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:857132d078d4 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:04:35Z" level=info msg="found 1 workers, default=\"5ayag6ui41020334xs0macvd3\"" sandbox.go:136: time="2024-06-25T09:04:35Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:04:35Z" level=info msg="running server on /tmp/bktest_buildkitd46306443/buildkitd.sock" --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote (0.32s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-gxoovnqtqpq8f492fccmueza2" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' 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_config836349433/buildkitd.toml --root /tmp/bktest_buildkitd283857277 --addr unix:///tmp/bktest_buildkitd283857277/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_config836349433/buildkitd.toml --root /tmp/bktest_buildkitd283857277 --addr unix:///tmp/bktest_buildkitd283857277/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:04:37.91317712 +0000 UTC m=+9.160478487 /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_config836349433/buildkitd.toml --root /tmp/bktest_buildkitd283857277 --addr unix:///tmp/bktest_buildkitd283857277/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:04:37Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:37Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:38Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:04:38Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:04:38Z" level=info msg="found worker \"9o43c2g92ai5z8ds26y2j698q\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:4129a3d54a5d 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:04:38Z" level=info msg="found 1 workers, default=\"9o43c2g92ai5z8ds26y2j698q\"" sandbox.go:136: time="2024-06-25T09:04:38Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:04:38Z" level=info msg="running server on /tmp/bktest_buildkitd283857277/buildkitd.sock" --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote (0.35s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-jrxt3tjlwjruc43e4ug5gz55a" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' 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_config676148472/buildkitd.toml --root /tmp/bktest_buildkitd73386376 --addr unix:///tmp/bktest_buildkitd73386376/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:04:40.797633994 +0000 UTC m=+9.900946179 /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_config676148472/buildkitd.toml --root /tmp/bktest_buildkitd73386376 --addr unix:///tmp/bktest_buildkitd73386376/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:04:40Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:40Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:40Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:04:40Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:04:40Z" level=info msg="found worker \"wk8qxfk76hmshmqksxaswkuni\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:02613995e211 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:04:40Z" level=info msg="found 1 workers, default=\"wk8qxfk76hmshmqksxaswkuni\"" sandbox.go:136: time="2024-06-25T09:04:40Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:04:40Z" level=info msg="running server on /tmp/bktest_buildkitd73386376/buildkitd.sock" 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_config676148472/buildkitd.toml --root /tmp/bktest_buildkitd73386376 --addr unix:///tmp/bktest_buildkitd73386376/buildkitd.sock --debug --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote (0.50s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-3rqd3g496ijw9fjoeu2bqxgo4" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' 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_config3626769491/buildkitd.toml --root /tmp/bktest_buildkitd768215943 --addr unix:///tmp/bktest_buildkitd768215943/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_config3626769491/buildkitd.toml --root /tmp/bktest_buildkitd768215943 --addr unix:///tmp/bktest_buildkitd768215943/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:04:42.09774377 +0000 UTC m=+12.297448425 /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_config3626769491/buildkitd.toml --root /tmp/bktest_buildkitd768215943 --addr unix:///tmp/bktest_buildkitd768215943/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:04:42Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:04:42Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:04:42Z" level=info msg="found worker \"wrni0tmcjiubhtb7s6nhcnh6k\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:a0891427644c 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:04:42Z" level=info msg="found 1 workers, default=\"wrni0tmcjiubhtb7s6nhcnh6k\"" sandbox.go:136: time="2024-06-25T09:04:42Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:04:42Z" level=info msg="running server on /tmp/bktest_buildkitd768215943/buildkitd.sock" --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote (0.44s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-rfg4co455824ctr2m943vvny2" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' 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_config2581551999/buildkitd.toml --root /tmp/bktest_buildkitd1012746331 --addr unix:///tmp/bktest_buildkitd1012746331/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_config2581551999/buildkitd.toml --root /tmp/bktest_buildkitd1012746331 --addr unix:///tmp/bktest_buildkitd1012746331/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:04:42.298180993 +0000 UTC m=+9.199336973 /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_config2581551999/buildkitd.toml --root /tmp/bktest_buildkitd1012746331 --addr unix:///tmp/bktest_buildkitd1012746331/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:04:42Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:42Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:42Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:04:42Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:04:42Z" level=info msg="found worker \"xar6bf7h7sazl16bmis3unfh2\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:7f34c1ae879e 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:04:42Z" level=info msg="found 1 workers, default=\"xar6bf7h7sazl16bmis3unfh2\"" sandbox.go:136: time="2024-06-25T09:04:42Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:04:42Z" level=info msg="running server on /tmp/bktest_buildkitd1012746331/buildkitd.sock" --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote (0.25s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-sr6yzctsgbmnbv03snhauyo8t" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' 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_config664749375/buildkitd.toml --root /tmp/bktest_buildkitd2484233202 --addr unix:///tmp/bktest_buildkitd2484233202/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_config664749375/buildkitd.toml --root /tmp/bktest_buildkitd2484233202 --addr unix:///tmp/bktest_buildkitd2484233202/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:04:35.962478108 +0000 UTC m=+4.641393300 /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_config664749375/buildkitd.toml --root /tmp/bktest_buildkitd2484233202 --addr unix:///tmp/bktest_buildkitd2484233202/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:04:36Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:04:36Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:04:36Z" level=info msg="found worker \"hxxic9a0k4j3e9q9jjzwunvsn\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:07b50e193972 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:04:36Z" level=info msg="found 1 workers, default=\"hxxic9a0k4j3e9q9jjzwunvsn\"" sandbox.go:136: time="2024-06-25T09:04:36Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:04:36Z" level=info msg="running server on /tmp/bktest_buildkitd2484233202/buildkitd.sock" --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote (0.53s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-plt9gks5md9z45le6e2abkanj" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' 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_config3652085627/buildkitd.toml --root /tmp/bktest_buildkitd1127986238 --addr unix:///tmp/bktest_buildkitd1127986238/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_config3652085627/buildkitd.toml --root /tmp/bktest_buildkitd1127986238 --addr unix:///tmp/bktest_buildkitd1127986238/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:04:41.78320644 +0000 UTC m=+8.549973721 /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_config3652085627/buildkitd.toml --root /tmp/bktest_buildkitd1127986238 --addr unix:///tmp/bktest_buildkitd1127986238/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:04:41Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:04:41Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:04:41Z" level=info msg="found worker \"v88haf0nvsx6244jewk3khshi\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:f21587b7e286 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:04:41Z" level=info msg="found 1 workers, default=\"v88haf0nvsx6244jewk3khshi\"" sandbox.go:136: time="2024-06-25T09:04:41Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:04:41Z" level=info msg="running server on /tmp/bktest_buildkitd1127986238/buildkitd.sock" --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote (0.55s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-jpub97x0n3da8swbnv0jbhc69" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' 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_config3888180989/buildkitd.toml --root /tmp/bktest_buildkitd1721534437 --addr unix:///tmp/bktest_buildkitd1721534437/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_config3888180989/buildkitd.toml --root /tmp/bktest_buildkitd1721534437 --addr unix:///tmp/bktest_buildkitd1721534437/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:04:48.928346904 +0000 UTC m=+10.645162140 /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_config3888180989/buildkitd.toml --root /tmp/bktest_buildkitd1721534437 --addr unix:///tmp/bktest_buildkitd1721534437/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:04:48Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:48Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:48Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:04:48Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:04:49Z" level=info msg="found worker \"cw0g8g7x0cw9jsupvbu5my1dd\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:cec7ed926c3a 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:04:49Z" level=info msg="found 1 workers, default=\"cw0g8g7x0cw9jsupvbu5my1dd\"" sandbox.go:136: time="2024-06-25T09:04:49Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:04:49Z" level=info msg="running server on /tmp/bktest_buildkitd1721534437/buildkitd.sock" --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote (0.24s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-kns2qgl1b114yjtqwrv2r8tu0" instance using remote driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' 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_config1536387057/buildkitd.toml --root /tmp/bktest_buildkitd58907034 --addr unix:///tmp/bktest_buildkitd58907034/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_config1536387057/buildkitd.toml --root /tmp/bktest_buildkitd58907034 --addr unix:///tmp/bktest_buildkitd58907034/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-25 09:04:46.471945366 +0000 UTC m=+4.823406287 /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_config1536387057/buildkitd.toml --root /tmp/bktest_buildkitd58907034 --addr unix:///tmp/bktest_buildkitd58907034/buildkitd.sock --debug sandbox.go:136: time="2024-06-25T09:04:46Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:46Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-25T09:04:46Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-25T09:04:46Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-25T09:04:46Z" level=info msg="found worker \"lrr0o8j227x6ptdpp5ctep4za\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:24f9d6b11408 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:04:46Z" level=info msg="found 1 workers, default=\"lrr0o8j227x6ptdpp5ctep4za\"" sandbox.go:136: time="2024-06-25T09:04:46Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-25T09:04:46Z" level=info msg="running server on /tmp/bktest_buildkitd58907034/buildkitd.sock" --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=remote (0.40s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-03725xuyuql8jfw60vh00d3zl" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (1.01s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-krtq5jswbkl1lj801du28brp1" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (0.66s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-2ha12gyy65pyrih13on451zfi" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (0.81s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-21bzxebpev850mvokewpw6dwm" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (0.69s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-xhfdqfln0yrr543ze1qqbp64q" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (0.87s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-kozidiijef12m346g4y1a9pip" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (0.78s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-n3i2zll0u3urrisp7fxd7lktu" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (1.12s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-y3gl4sdx4qdfhmbcop6r9q2ti" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (0.77s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-1axyad8qbu9vgeekwnoe95oum" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (0.87s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-pbm846ed4o3fqsr7gqcbvg3ae" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (7.43s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-p4kdzy36g2l5dule4dgpdg2sh" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (0.67s)

Check failure on line 828 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:828: Error Trace: /src/tests/bake.go:828 /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-omtqkv9nnodm5vpznogoz9qi8" instance using docker-container driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' --- FAIL: TestIntegration/TestBakeMetadataWarningsDedup/worker=docker-container (0.78s)

Check failure on line 828 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakeMetadataWarningsDedup/worker=docker

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker bake.go:828: Error Trace: /src/tests/bake.go:828 /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 Messages: #0 building with "integration-j8louyi3kvaivc3cwnntan9g1" instance using docker driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' sandbox.go:133: stdout: /usr/bin/dockerd sandbox.go:133: stderr: /usr/bin/dockerd sandbox.go:136: > startCmd 2024-06-25 09:06:37.502937991 +0000 UTC m=+128.798326480 /usr/bin/dockerd --data-root /tmp/integration15075225/dv9ijw5kpkofk/root --exec-root /tmp/dxr/dv9ijw5kpkofk --pidfile /tmp/integration15075225/dv9ijw5kpkofk/docker.pid --containerd-namespace dv9ijw5kpkofk --containerd-plugins-namespace dv9ijw5kpkofkp --host unix:///tmp/docker-integration/dv9ijw5kpkofk.sock --config-file /tmp/integration15075225/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:136: time="2024-06-25T09:06:37.522451817Z" level=info msg="Starting up" sandbox.go:136: time="2024-06-25T09:06:37.523469729Z" level=warning msg="could not change group /tmp/docker-integration/dv9ijw5kpkofk.sock to docker: group docker not found" sandbox.go:136: time="2024-06-25T09:06:37.523585133Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dv9ijw5kpkofk.sock)" sandbox.go:136: time="2024-06-25T09:06:37.523601955Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:136: time="2024-06-25T09:06:37.524160204Z" level=info msg="started new containerd process" address=/tmp/dxr/dv9ijw5kpkofk/containerd/containerd.sock module=libcontainerd pid=18819 sandbox.go:136: time="2024-06-25T09:06:37.524549278Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dv9ijw5kpkofk/containerd/containerd.sock module=libcontainerd sandbox.go:136: time="2024-06-25T09:06:37.525066153Z" level=debug msg="2024/06/25 09:06:37 WARNING: [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dv9ijw5kpkofk/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/dv9ijw5kpkofk/containerd/containerd.sock: connect: no such file or directory\"" library=grpc sandbox.go:136: time="2024-06-25T09:06:37.537434230Z" level=info msg="starting containerd" revision=ae71819c4f5e67bb4d5ae76a6b735f29cc25774e version=v1.7.18 sandbox.go:136: time="2024-06-25T09:06:37.550649013Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:136: time="2024-06-25T09:06:37.550671274Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1 sandbox.go:136: time="2024-06-25T09:06:37.550705849Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1 sandbox.go:136: time="2024-06-25T09:06:37.550716449Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." type=io.containerd.snapshotter.v1 sandbox.go:136: time="2024-06-25T09:06:37.550820121Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." error="no scratch file generator: skip plugin" type=io.containerd.snapsh

Check failure on line 828 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker+containerd === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker+containerd === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker+containerd bake.go:828: Error Trace: /src/tests/bake.go:828 /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+containerd Messages: #0 building with "integration-4qgfxxbiltptc3xd001orurv9" instance using docker driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' sandbox.go:133: stdout: /usr/bin/dockerd sandbox.go:133: stderr: /usr/bin/dockerd sandbox.go:136: > startCmd 2024-06-25 09:05:22.460422546 +0000 UTC m=+55.655528107 /usr/bin/dockerd --data-root /tmp/integration269416651/dr87sqzm3xm87/root --exec-root /tmp/dxr/dr87sqzm3xm87 --pidfile /tmp/integration269416651/dr87sqzm3xm87/docker.pid --containerd-namespace dr87sqzm3xm87 --containerd-plugins-namespace dr87sqzm3xm87p --host unix:///tmp/docker-integration/dr87sqzm3xm87.sock --config-file /tmp/integration269416651/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:136: time="2024-06-25T09:05:22.480648942Z" level=info msg="Starting up" sandbox.go:136: time="2024-06-25T09:05:22.481660832Z" level=warning msg="could not change group /tmp/docker-integration/dr87sqzm3xm87.sock to docker: group docker not found" sandbox.go:136: time="2024-06-25T09:05:22.481769393Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dr87sqzm3xm87.sock)" sandbox.go:136: time="2024-06-25T09:05:22.481785353Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:136: time="2024-06-25T09:05:22.482356135Z" level=info msg="started new containerd process" address=/tmp/dxr/dr87sqzm3xm87/containerd/containerd.sock module=libcontainerd pid=12172 sandbox.go:136: time="2024-06-25T09:05:22.482742132Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dr87sqzm3xm87/containerd/containerd.sock module=libcontainerd sandbox.go:136: time="2024-06-25T09:05:22.482895285Z" level=debug msg="2024/06/25 09:05:22 WARNING: [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dr87sqzm3xm87/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/dr87sqzm3xm87/containerd/containerd.sock: connect: no such file or directory\"" library=grpc sandbox.go:136: time="2024-06-25T09:05:22.494008342Z" level=info msg="starting containerd" revision=ae71819c4f5e67bb4d5ae76a6b735f29cc25774e version=v1.7.18 sandbox.go:136: time="2024-06-25T09:05:22.507067614Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:136: time="2024-06-25T09:05:22.507090797Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1 sandbox.go:136: time="2024-06-25T09:05:22.507125180Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1 sandbox.go:136: time="2024-06-25T09:05:22.507145198Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." type=io.containerd.snapshotter.v1 sandbox.go:136: time="2024-06-25T09:05:22.507243500Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." error="no scratch file gen

Check failure on line 828 in tests/bake.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBakeMetadataWarningsDedup/worker=docker

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker bake.go:828: Error Trace: /src/tests/bake.go:828 /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 Messages: #0 building with "integration-i5wir7ebhufizl51c0ru8i738" instance using docker driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' sandbox.go:133: stdout: /usr/bin/dockerd sandbox.go:133: stderr: /usr/bin/dockerd sandbox.go:136: > startCmd 2024-06-25 09:06:29.991130759 +0000 UTC m=+116.793421253 /usr/bin/dockerd --data-root /tmp/integration2393859091/dpzy3d26wu496/root --exec-root /tmp/dxr/dpzy3d26wu496 --pidfile /tmp/integration2393859091/dpzy3d26wu496/docker.pid --containerd-namespace dpzy3d26wu496 --containerd-plugins-namespace dpzy3d26wu496p --host unix:///tmp/docker-integration/dpzy3d26wu496.sock --config-file /tmp/integration2393859091/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:136: time="2024-06-25T09:06:30.012279588Z" level=info msg="Starting up" sandbox.go:136: time="2024-06-25T09:06:30.013335434Z" level=warning msg="could not change group /tmp/docker-integration/dpzy3d26wu496.sock to docker: group docker not found" sandbox.go:136: time="2024-06-25T09:06:30.013462663Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/dpzy3d26wu496.sock)" sandbox.go:136: time="2024-06-25T09:06:30.013481629Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:136: time="2024-06-25T09:06:30.014072437Z" level=info msg="started new containerd process" address=/tmp/dxr/dpzy3d26wu496/containerd/containerd.sock module=libcontainerd pid=17720 sandbox.go:136: time="2024-06-25T09:06:30.014499791Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/dpzy3d26wu496/containerd/containerd.sock module=libcontainerd sandbox.go:136: time="2024-06-25T09:06:30.014679393Z" level=debug msg="2024/06/25 09:06:30 WARNING: [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/dpzy3d26wu496/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/dpzy3d26wu496/containerd/containerd.sock: connect: no such file or directory\"" library=grpc sandbox.go:136: time="2024-06-25T09:06:30.028556109Z" level=info msg="starting containerd" revision=ae71819c4f5e67bb4d5ae76a6b735f29cc25774e version=v1.7.18 sandbox.go:136: time="2024-06-25T09:06:30.043038965Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:136: time="2024-06-25T09:06:30.043079441Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1 sandbox.go:136: time="2024-06-25T09:06:30.043124195Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1 sandbox.go:136: time="2024-06-25T09:06:30.043154873Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." type=io.containerd.snapshotter.v1 sandbox.go:136: time="2024-06-25T09:06:30.043271362Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." error="no scratch file generator: skip plugin" type=io.containerd.

Check failure on line 828 in tests/bake.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBakeMetadataWarningsDedup/worker=docker+containerd === PAUSE TestIntegration/TestBakeMetadataWarningsDedup/worker=docker+containerd === CONT TestIntegration/TestBakeMetadataWarningsDedup/worker=docker+containerd bake.go:828: Error Trace: /src/tests/bake.go:828 /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+containerd Messages: #0 building with "integration-tdpmgxdwn33w41lh6f09w7rxo" instance using docker driver #1 [internal] load local bake definitions #1 reading docker-bake.hcl 102B / 102B done #1 DONE 0.0s ERROR: could not find any target matching 'default' sandbox.go:133: stderr: /usr/bin/dockerd sandbox.go:136: > startCmd 2024-06-25 09:05:35.124270733 +0000 UTC m=+55.093599383 /usr/bin/dockerd --data-root /tmp/integration597351994/deh4821drj75t/root --exec-root /tmp/dxr/deh4821drj75t --pidfile /tmp/integration597351994/deh4821drj75t/docker.pid --containerd-namespace deh4821drj75t --containerd-plugins-namespace deh4821drj75tp --host unix:///tmp/docker-integration/deh4821drj75t.sock --config-file /tmp/integration597351994/daemon.json --userland-proxy=false --tls=false --debug sandbox.go:136: time="2024-06-25T09:05:35.144107010Z" level=info msg="Starting up" sandbox.go:136: time="2024-06-25T09:05:35.145160585Z" level=warning msg="could not change group /tmp/docker-integration/deh4821drj75t.sock to docker: group docker not found" sandbox.go:136: time="2024-06-25T09:05:35.145270512Z" level=debug msg="Listener created for HTTP on unix (/tmp/docker-integration/deh4821drj75t.sock)" sandbox.go:136: time="2024-06-25T09:05:35.145287123Z" level=info msg="containerd not running, starting managed containerd" sandbox.go:136: time="2024-06-25T09:05:35.145842471Z" level=info msg="started new containerd process" address=/tmp/dxr/deh4821drj75t/containerd/containerd.sock module=libcontainerd pid=11961 sandbox.go:136: time="2024-06-25T09:05:35.146161061Z" level=debug msg="created containerd monitoring client" address=/tmp/dxr/deh4821drj75t/containerd/containerd.sock module=libcontainerd sandbox.go:136: time="2024-06-25T09:05:35.146346909Z" level=debug msg="2024/06/25 09:05:35 WARNING: [core] [Channel #1 SubChannel #2] grpc: addrConn.createTransport failed to connect to {Addr: \"/tmp/dxr/deh4821drj75t/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/deh4821drj75t/containerd/containerd.sock: connect: no such file or directory\"" library=grpc sandbox.go:136: time="2024-06-25T09:05:35.159709270Z" level=info msg="starting containerd" revision=ae71819c4f5e67bb4d5ae76a6b735f29cc25774e version=v1.7.18 sandbox.go:136: time="2024-06-25T09:05:35.172906843Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:136: time="2024-06-25T09:05:35.172953711Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1 sandbox.go:136: time="2024-06-25T09:05:35.172984149Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1 sandbox.go:136: time="2024-06-25T09:05:35.173002994Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." type=io.containerd.snapshotter.v1 sandbox.go:136: time="2024-06-25T09:05:35.173082645Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." error="no scratch file generator: skip plugin" type=io.containerd.snaps

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 cd71d9a

Please sign in to comment.