Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 28 additions & 7 deletions commands/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ import (
"github.com/docker/buildx/util/cobrautil"
"github.com/docker/buildx/util/confutil"
"github.com/docker/buildx/util/desktop"
"github.com/docker/buildx/util/dockerutil"
"github.com/docker/buildx/util/ioset"
"github.com/docker/buildx/util/metricutil"
"github.com/docker/buildx/util/osutil"
Expand Down Expand Up @@ -321,12 +322,18 @@ func runBuild(ctx context.Context, dockerCli command.Cli, options buildOptions)
if err != nil {
return err
}

_, err = b.LoadNodes(ctx)
if err != nil {
return err
}
driverType := b.Driver

dockerUsingContainerdSnapshotter := false
if driverType == "docker" || driverType == "docker-container" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there is anything special for these drivers. For "docker" containerd support can be detected via feature flag like it is for other things not supported by graphdrivers.

For other drivers, I guess they are only affected if --load is set. If there is no --load then there is no reason to check a specific docker instance at build time, as it would be completely unused. If this feature has problems with other drivers as well on --load then I think we need to capture the image ID from moby side when we are doing docker load. So we load image into Moby, and it reports to us what is the ID of the image that was just imported (as it would be different in different Moby versions). It's quite weird though that the value of --iidfile depends on in --load is set or not.

dockerUsingContainerdSnapshotter = isDockerUsingContainerdSnapshotter(ctx, dockerCli)
}

var term bool
if _, err := console.ConsoleFromFile(os.Stderr); err == nil {
term = true
Expand Down Expand Up @@ -377,12 +384,12 @@ func runBuild(ctx context.Context, dockerCli command.Cli, options buildOptions)
case progressui.RawJSONMode:
// no additional display
case progressui.QuietMode:
fmt.Println(getImageID(resp.ExporterResponse))
fmt.Println(getImageID(resp.ExporterResponse, dockerUsingContainerdSnapshotter))
default:
desktop.PrintBuildDetails(os.Stderr, printer.BuildRefs(), term)
}
if options.imageIDFile != "" {
if err := os.WriteFile(options.imageIDFile, []byte(getImageID(resp.ExporterResponse)), 0644); err != nil {
if err := os.WriteFile(options.imageIDFile, []byte(getImageID(resp.ExporterResponse, dockerUsingContainerdSnapshotter)), 0644); err != nil {
return errors.Wrap(err, "writing image ID file")
}
}
Expand All @@ -408,12 +415,26 @@ func runBuild(ctx context.Context, dockerCli command.Cli, options buildOptions)
}

// getImageID returns the image ID - the digest of the image config
func getImageID(resp map[string]string) string {
dgst := resp[exptypes.ExporterImageDigestKey]
if v, ok := resp[exptypes.ExporterImageConfigDigestKey]; ok {
dgst = v
func getImageID(resp map[string]string, dockerUsingContainerdSnapshotter bool) string {
if dockerUsingContainerdSnapshotter {
// If Docker is using the containerd snapshotter, use the image digest, not
// the image config digest. See https://github.com/moby/moby/issues/45458.
return resp[exptypes.ExporterImageDigestKey]
} else {
return resp[exptypes.ExporterImageConfigDigestKey]
}
return dgst
}

func isDockerUsingContainerdSnapshotter(ctx context.Context, dockerCli command.Cli) bool {
usingContainerdSnapshotter := false

docker := dockerutil.NewClient(dockerCli)
features := docker.Features(ctx, "")
if features[dockerutil.OCIImporter] {
usingContainerdSnapshotter = true
}

return usingContainerdSnapshotter
}

func runBasicBuild(ctx context.Context, dockerCli command.Cli, opts *controllerapi.BuildOptions, printer *progress.Printer) (*client.SolveResponse, *build.Inputs, error) {
Expand Down
14 changes: 14 additions & 0 deletions driver/docker-container/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,20 @@ func (d *Driver) IsMobyDriver() bool {
return false
}

func (d *Driver) UsesContainerdSnapshotter(ctx context.Context) bool {
var containerdSnapshotter bool
if c, err := d.Client(ctx); err == nil {
workers, _ := c.ListWorkers(ctx)
for _, w := range workers {
if _, ok := w.Labels["org.mobyproject.buildkit.worker.snapshotter"]; ok {
containerdSnapshotter = true
}
}
c.Close()
}
return containerdSnapshotter
}

func (d *Driver) Config() driver.InitConfig {
return d.InitConfig
}
Expand Down
25 changes: 15 additions & 10 deletions driver/docker/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,7 @@ type features struct {

func (d *Driver) Features(ctx context.Context) map[driver.Feature]bool {
d.features.once.Do(func() {
var useContainerdSnapshotter bool
if c, err := d.Client(ctx); err == nil {
workers, _ := c.ListWorkers(ctx)
for _, w := range workers {
if _, ok := w.Labels["org.mobyproject.buildkit.worker.snapshotter"]; ok {
useContainerdSnapshotter = true
}
}
c.Close()
}
useContainerdSnapshotter := d.UsesContainerdSnapshotter(ctx)
d.features.list = map[driver.Feature]bool{
driver.OCIExporter: useContainerdSnapshotter,
driver.DockerExporter: useContainerdSnapshotter,
Expand Down Expand Up @@ -144,6 +135,20 @@ func (d *Driver) IsMobyDriver() bool {
return true
}

func (d *Driver) UsesContainerdSnapshotter(ctx context.Context) bool {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you just define a new Feature for this. Seems lot of duplication and extra unnecessary requests.

var containerdSnapshotter bool
if c, err := d.Client(ctx); err == nil {
workers, _ := c.ListWorkers(ctx)
for _, w := range workers {
if _, ok := w.Labels["org.mobyproject.buildkit.worker.snapshotter"]; ok {
containerdSnapshotter = true
}
}
c.Close()
}
return containerdSnapshotter
}

func (d *Driver) Config() driver.InitConfig {
return d.InitConfig
}
1 change: 1 addition & 0 deletions driver/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ type Driver interface {
Features(ctx context.Context) map[Feature]bool
HostGatewayIP(ctx context.Context) (net.IP, error)
IsMobyDriver() bool
UsesContainerdSnapshotter(ctx context.Context) bool
Config() InitConfig
}

Expand Down
4 changes: 4 additions & 0 deletions driver/kubernetes/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ func (d *Driver) IsMobyDriver() bool {
return false
}

func (d *Driver) UsesContainerdSnapshotter(ctx context.Context) bool {
return false
}

func (d *Driver) Config() driver.InitConfig {
return d.InitConfig
}
Expand Down
4 changes: 4 additions & 0 deletions driver/remote/driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,10 @@ func (d *Driver) IsMobyDriver() bool {
return false
}

func (d *Driver) UsesContainerdSnapshotter(ctx context.Context) bool {
return false
}

func (d *Driver) Config() driver.InitConfig {
return d.InitConfig
}
15 changes: 3 additions & 12 deletions tests/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -399,18 +399,9 @@

require.Equal(t, dgst.String(), strings.TrimSpace(stdout.String()))

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

type mdT struct {
ConfigDigest string `json:"containerimage.config.digest"`
}
var md mdT
err = json.Unmarshal(dt, &md)
require.NoError(t, err)

require.NotEmpty(t, md.ConfigDigest)
require.Equal(t, dgst, digest.Digest(md.ConfigDigest))
// verify the image ID is the correct one
cmd = dockerCmd(sb, withArgs("run", imageID))
require.NoError(t, cmd.Run())

Check failure on line 404 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestImageIDOutput/worker=remote

=== RUN TestIntegration/TestImageIDOutput/worker=remote === PAUSE TestIntegration/TestImageIDOutput/worker=remote === CONT TestIntegration/TestImageIDOutput/worker=remote build.go:404: Error Trace: /src/tests/build.go:404 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:103 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:245 Error: Received unexpected error: exit status 125 Test: TestIntegration/TestImageIDOutput/worker=remote sandbox.go:202: 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_config3730777103/buildkitd.toml --root /tmp/bktest_buildkitd2502516896 --addr unix:///tmp/bktest_buildkitd2502516896/buildkitd.sock --debug sandbox.go:202: 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_config3730777103/buildkitd.toml --root /tmp/bktest_buildkitd2502516896 --addr unix:///tmp/bktest_buildkitd2502516896/buildkitd.sock --debug sandbox.go:205: > StartCmd 2025-04-18 17:34:23.078653061 +0000 UTC m=+8.282226302 /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_config3730777103/buildkitd.toml --root /tmp/bktest_buildkitd2502516896 --addr unix:///tmp/bktest_buildkitd2502516896/buildkitd.sock --debug sandbox.go:205: time="2025-04-18T17:34:23Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:205: time="2025-04-18T17:34:23Z" level=warning msg="using host network as the default" sandbox.go:205: time="2025-04-18T17:34:23Z" level=info msg="found worker \"ifnhfhhjlxinu5avt58rs9e2m\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:68a2391e0ade 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/loong64 linux/arm/v7 linux/arm/v6]" sandbox.go:205: time="2025-04-18T17:34:23Z" level=info msg="found 1 workers, default=\"ifnhfhhjlxinu5avt58rs9e2m\"" sandbox.go:205: time="2025-04-18T17:34:23Z" level=warning msg="currently, only the default worker can be used." sandbox.go:205: time="2025-04-18T17:34:23Z" level=info msg="running server on /tmp/bktest_buildkitd2502516896/buildkitd.sock" sandbox.go:205: time="2025-04-18T17:34:23Z" level=debug msg="session started" spanID=fb97bd50916c3d40 traceID=f16c0daf5775f691e30628335e6e7caa sandbox.go:205: time="2025-04-18T17:34:23Z" level=debug msg="session finished: <nil>" spanID=fb97bd50916c3d40 traceID=f16c0daf5775f691e30628335e6e7caa sandbox.go:205: time="2025-04-18T17:34:23Z" level=debug msg="session started" spanID=de9b60ba257ba59e traceID=48a79a7a855e2c787e91f773c8e8e211 sandbox.go:205: time="2025-04-18T17:34:23Z" level=debug msg="resolve exporter docker with map[]" spanID=8bd6b749dd7ed04f traceID=e4dc296520f364cfc4ea0f9d56186af9 sandbox.go:205: time="2025-04-18T17:34:23Z" level=debug msg="new ref for local: wps2hfpuxnz8odc9e1wdt344j" span="[internal] load build definition from Dockerfile" spanID=be34443aa34849cd traceID=b139304ec33b9cac535fda7d3ffb650b sandbox.go:205: time="2025-04-18T17:34:23Z" level=debug msg="diffcopy took: 2.22655ms" span="[internal] load build definition from Dockerfile" spanID=4f79fb3300cd82c9 traceID=b139304ec33b9cac535fda7d3ffb650b sandbox.go:205: time="2025-04-18T17:34:23Z" level=debug msg="saved wps2hfpuxnz8odc9e1wdt344j as dockerfile:dockerfile:001:2a968e917b9b45b

Check failure on line 404 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestImageIDOutput/worker=remote

=== RUN TestIntegration/TestImageIDOutput/worker=remote === PAUSE TestIntegration/TestImageIDOutput/worker=remote === CONT TestIntegration/TestImageIDOutput/worker=remote build.go:404: Error Trace: /src/tests/build.go:404 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:103 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:245 Error: Received unexpected error: exit status 125 Test: TestIntegration/TestImageIDOutput/worker=remote sandbox.go:202: 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_config834332841/buildkitd.toml --root /tmp/bktest_buildkitd2731967627 --addr unix:///tmp/bktest_buildkitd2731967627/buildkitd.sock --debug sandbox.go:202: 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_config834332841/buildkitd.toml --root /tmp/bktest_buildkitd2731967627 --addr unix:///tmp/bktest_buildkitd2731967627/buildkitd.sock --debug sandbox.go:205: > StartCmd 2025-04-18 17:34:29.522766088 +0000 UTC m=+14.121555732 /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_config834332841/buildkitd.toml --root /tmp/bktest_buildkitd2731967627 --addr unix:///tmp/bktest_buildkitd2731967627/buildkitd.sock --debug sandbox.go:205: time="2025-04-18T17:34:29Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd2731967627/buildkitd-debug.sock" sandbox.go:205: time="2025-04-18T17:34:29Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:205: time="2025-04-18T17:34:29Z" level=warning msg="using host network as the default" sandbox.go:205: time="2025-04-18T17:34:29Z" level=info msg="found worker \"vfyiooxxiegw1gwdl80qkgajf\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:1c4333fbbc21 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/loong64 linux/arm/v7 linux/arm/v6]" sandbox.go:205: time="2025-04-18T17:34:29Z" level=info msg="found 1 workers, default=\"vfyiooxxiegw1gwdl80qkgajf\"" sandbox.go:205: time="2025-04-18T17:34:29Z" level=warning msg="currently, only the default worker can be used." sandbox.go:205: time="2025-04-18T17:34:29Z" level=info msg="running server on /tmp/bktest_buildkitd2731967627/buildkitd.sock" sandbox.go:205: time="2025-04-18T17:34:29Z" level=debug msg="session started" spanID=228a7bd2014e5255 traceID=d9ef8e715b5bee39e1af2dcf517cad87 sandbox.go:205: time="2025-04-18T17:34:29Z" level=debug msg="session finished: <nil>" spanID=228a7bd2014e5255 traceID=d9ef8e715b5bee39e1af2dcf517cad87 sandbox.go:205: time="2025-04-18T17:34:29Z" level=debug msg="resolve exporter docker with map[]" spanID=aec55a83cb274458 traceID=d9ef8e715b5bee39e1af2dcf517cad87 sandbox.go:205: time="2025-04-18T17:34:29Z" level=debug msg="session started" spanID=7f164ad1f9f9d916 traceID=d9ef8e715b5bee39e1af2dcf517cad87 sandbox.go:205: time="2025-04-18T17:34:29Z" level=debug msg="new ref for local: w6evtnv8jl3zv8dd6h434qp6v" span="[internal] load build definition from Dockerfile" spanID=c276939964d7eff3 traceID=d9ef8e715b5bee39e1af2dcf517cad87 sandbox.go:205: time="2025-04-18T17:34:29Z" level=debug msg="diffcopy took: 2.133111ms" span="[internal] load build definition from Dockerfile" spanID=bb60843d8e03dd6d traceID=d9ef8e715b5bee39e1af2

Check failure on line 404 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestImageIDOutput/worker=remote

=== RUN TestIntegration/TestImageIDOutput/worker=remote === PAUSE TestIntegration/TestImageIDOutput/worker=remote === CONT TestIntegration/TestImageIDOutput/worker=remote build.go:404: Error Trace: /src/tests/build.go:404 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:103 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:245 Error: Received unexpected error: exit status 125 Test: TestIntegration/TestImageIDOutput/worker=remote sandbox.go:202: 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_config56663694/buildkitd.toml --root /tmp/bktest_buildkitd2535118404 --addr unix:///tmp/bktest_buildkitd2535118404/buildkitd.sock --debug sandbox.go:202: 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_config56663694/buildkitd.toml --root /tmp/bktest_buildkitd2535118404 --addr unix:///tmp/bktest_buildkitd2535118404/buildkitd.sock --debug sandbox.go:205: > StartCmd 2025-04-18 17:34:31.792871221 +0000 UTC m=+13.836238929 /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_config56663694/buildkitd.toml --root /tmp/bktest_buildkitd2535118404 --addr unix:///tmp/bktest_buildkitd2535118404/buildkitd.sock --debug sandbox.go:205: time="2025-04-18T17:34:31Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd2535118404/buildkitd-debug.sock" sandbox.go:205: time="2025-04-18T17:34:31Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:205: time="2025-04-18T17:34:31Z" level=warning msg="using host network as the default" sandbox.go:205: time="2025-04-18T17:34:31Z" level=info msg="found worker \"9r6ti62sccohpdm7g4nrzpa9j\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:e872b68485a4 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/loong64 linux/arm/v7 linux/arm/v6]" sandbox.go:205: time="2025-04-18T17:34:31Z" level=info msg="found 1 workers, default=\"9r6ti62sccohpdm7g4nrzpa9j\"" sandbox.go:205: time="2025-04-18T17:34:31Z" level=warning msg="currently, only the default worker can be used." sandbox.go:205: time="2025-04-18T17:34:31Z" level=info msg="running server on /tmp/bktest_buildkitd2535118404/buildkitd.sock" sandbox.go:205: time="2025-04-18T17:34:31Z" level=debug msg="session started" spanID=95565224f36d30eb traceID=6c9deeb94a14798bd40a9fdb599deec5 sandbox.go:205: time="2025-04-18T17:34:31Z" level=debug msg="session finished: <nil>" spanID=95565224f36d30eb traceID=6c9deeb94a14798bd40a9fdb599deec5 sandbox.go:205: time="2025-04-18T17:34:31Z" level=debug msg="resolve exporter docker with map[]" spanID=2f1f52e21a4d1d24 traceID=9a191105371d10f757ce9778e5323f59 sandbox.go:205: time="2025-04-18T17:34:31Z" level=debug msg="session started" spanID=fcd0e2980665f647 traceID=98b7f750273ad0cf2be868b848160ddf sandbox.go:205: time="2025-04-18T17:34:31Z" level=debug msg="new ref for local: wvtv3iolopkodml8a80o18v0s" span="[internal] load build definition from Dockerfile" spanID=71606064495115c1 traceID=b5bb30e9e22a7791ae461c4c824f3256 sandbox.go:205: time="2025-04-18T17:34:32Z" level=debug msg="diffcopy took: 3.803716ms" span="[internal] load build definition from Dockerfile" spanID=a3224fabca790e02 traceID=b5bb30e9e22a7791ae461c4c

Check failure on line 404 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestImageIDOutput/worker=remote

=== RUN TestIntegration/TestImageIDOutput/worker=remote === PAUSE TestIntegration/TestImageIDOutput/worker=remote === CONT TestIntegration/TestImageIDOutput/worker=remote build.go:404: Error Trace: /src/tests/build.go:404 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:103 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:245 Error: Received unexpected error: exit status 125 Test: TestIntegration/TestImageIDOutput/worker=remote sandbox.go:202: 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_config2062168692/buildkitd.toml --root /tmp/bktest_buildkitd47177947 --addr unix:///tmp/bktest_buildkitd47177947/buildkitd.sock --debug sandbox.go:202: 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_config2062168692/buildkitd.toml --root /tmp/bktest_buildkitd47177947 --addr unix:///tmp/bktest_buildkitd47177947/buildkitd.sock --debug sandbox.go:205: > StartCmd 2025-04-18 17:34:30.195450899 +0000 UTC m=+13.832187173 /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_config2062168692/buildkitd.toml --root /tmp/bktest_buildkitd47177947 --addr unix:///tmp/bktest_buildkitd47177947/buildkitd.sock --debug sandbox.go:205: time="2025-04-18T17:34:30Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:205: time="2025-04-18T17:34:30Z" level=warning msg="using host network as the default" sandbox.go:205: time="2025-04-18T17:34:30Z" level=info msg="found worker \"qemhf3io99sgefq0ibjlqfvzu\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:9fb30c3eb5fc 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/loong64 linux/arm/v7 linux/arm/v6]" sandbox.go:205: time="2025-04-18T17:34:30Z" level=info msg="found 1 workers, default=\"qemhf3io99sgefq0ibjlqfvzu\"" sandbox.go:205: time="2025-04-18T17:34:30Z" level=warning msg="currently, only the default worker can be used." sandbox.go:205: time="2025-04-18T17:34:30Z" level=info msg="running server on /tmp/bktest_buildkitd47177947/buildkitd.sock" sandbox.go:205: time="2025-04-18T17:34:30Z" level=debug msg="session started" spanID=4c11c27bc4272545 traceID=f5f5be809b114e3c22e7c8299f57d66f sandbox.go:205: time="2025-04-18T17:34:30Z" level=debug msg="session finished: <nil>" spanID=4c11c27bc4272545 traceID=f5f5be809b114e3c22e7c8299f57d66f sandbox.go:205: time="2025-04-18T17:34:30Z" level=debug msg="session started" spanID=c5f0fc20ec7538d2 traceID=f5f5be809b114e3c22e7c8299f57d66f sandbox.go:205: time="2025-04-18T17:34:30Z" level=debug msg="resolve exporter docker with map[]" spanID=0e97318d167fe2b1 traceID=f5f5be809b114e3c22e7c8299f57d66f sandbox.go:205: time="2025-04-18T17:34:30Z" level=debug msg="new ref for local: pt3ndkkri3xz9anfi5nxmitq5" span="[internal] load build definition from Dockerfile" spanID=016056ab7d59c737 traceID=f5f5be809b114e3c22e7c8299f57d66f sandbox.go:205: time="2025-04-18T17:34:30Z" level=debug msg="diffcopy took: 1.907062ms" span="[internal] load build definition from Dockerfile" spanID=822015528a5477bb traceID=f5f5be809b114e3c22e7c8299f57d66f sandbox.go:205: time="2025-04-18T17:34:30Z" level=debug msg="saved pt3ndkkri3xz9anfi5nxmitq5 as dockerfile:dockerfile:001:8de2c65a3b4b22d7" span="[in

Check failure on line 404 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestImageIDOutput/worker=remote

=== RUN TestIntegration/TestImageIDOutput/worker=remote === PAUSE TestIntegration/TestImageIDOutput/worker=remote === CONT TestIntegration/TestImageIDOutput/worker=remote build.go:404: Error Trace: /src/tests/build.go:404 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:103 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:245 Error: Received unexpected error: exit status 125 Test: TestIntegration/TestImageIDOutput/worker=remote sandbox.go:202: 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_config4153856717/buildkitd.toml --root /tmp/bktest_buildkitd1644011836 --addr unix:///tmp/bktest_buildkitd1644011836/buildkitd.sock --debug sandbox.go:202: 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_config4153856717/buildkitd.toml --root /tmp/bktest_buildkitd1644011836 --addr unix:///tmp/bktest_buildkitd1644011836/buildkitd.sock --debug sandbox.go:205: > StartCmd 2025-04-18 17:34:32.211216073 +0000 UTC m=+13.988956361 /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_config4153856717/buildkitd.toml --root /tmp/bktest_buildkitd1644011836 --addr unix:///tmp/bktest_buildkitd1644011836/buildkitd.sock --debug sandbox.go:205: time="2025-04-18T17:34:32Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd1644011836/buildkitd-debug.sock" sandbox.go:205: time="2025-04-18T17:34:32Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:205: time="2025-04-18T17:34:32Z" level=warning msg="using host network as the default" sandbox.go:205: time="2025-04-18T17:34:32Z" level=info msg="found worker \"pz6dilscalhwf6fqxrcd75d67\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:2cb89ae66017 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/loong64 linux/arm/v7 linux/arm/v6]" sandbox.go:205: time="2025-04-18T17:34:32Z" level=info msg="found 1 workers, default=\"pz6dilscalhwf6fqxrcd75d67\"" sandbox.go:205: time="2025-04-18T17:34:32Z" level=warning msg="currently, only the default worker can be used." sandbox.go:205: time="2025-04-18T17:34:32Z" level=info msg="running server on /tmp/bktest_buildkitd1644011836/buildkitd.sock" sandbox.go:205: time="2025-04-18T17:34:32Z" level=debug msg="session started" spanID=3060064e6a4f4563 traceID=666ad5c2fcf57e34e3b5c33b1a9b1039 sandbox.go:205: time="2025-04-18T17:34:32Z" level=debug msg="session finished: <nil>" spanID=3060064e6a4f4563 traceID=666ad5c2fcf57e34e3b5c33b1a9b1039 sandbox.go:205: time="2025-04-18T17:34:32Z" level=debug msg="session started" spanID=9e0de54b8d4a2f3f traceID=b4eaa640ef5fd6d28f1872e88d50be36 sandbox.go:205: time="2025-04-18T17:34:32Z" level=debug msg="resolve exporter docker with map[]" spanID=bc048c80a8026d0e traceID=7377c70eb7e2e65c7545ad9fd760e401 sandbox.go:205: time="2025-04-18T17:34:32Z" level=debug msg="new ref for local: rcppeaudiyjoucltblek68g8e" span="[internal] load build definition from Dockerfile" spanID=1b9634517f464796 traceID=49345102fec7ee377f1b474a9127ec60 sandbox.go:205: time="2025-04-18T17:34:32Z" level=debug msg="diffcopy took: 7.006434ms" span="[internal] load build definition from Dockerfile" spanID=77a8efca1bcf1894 traceID=49345102fec7ee377f

Check failure on line 404 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestImageIDOutput/worker=remote

=== RUN TestIntegration/TestImageIDOutput/worker=remote === PAUSE TestIntegration/TestImageIDOutput/worker=remote === CONT TestIntegration/TestImageIDOutput/worker=remote build.go:404: Error Trace: /src/tests/build.go:404 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:103 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:245 Error: Received unexpected error: exit status 125 Test: TestIntegration/TestImageIDOutput/worker=remote sandbox.go:202: 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_config1230762014/buildkitd.toml --root /tmp/bktest_buildkitd3076319811 --addr unix:///tmp/bktest_buildkitd3076319811/buildkitd.sock --debug sandbox.go:202: 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_config1230762014/buildkitd.toml --root /tmp/bktest_buildkitd3076319811 --addr unix:///tmp/bktest_buildkitd3076319811/buildkitd.sock --debug sandbox.go:205: > StartCmd 2025-04-18 17:34:30.675007242 +0000 UTC m=+10.412307885 /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_config1230762014/buildkitd.toml --root /tmp/bktest_buildkitd3076319811 --addr unix:///tmp/bktest_buildkitd3076319811/buildkitd.sock --debug sandbox.go:205: time="2025-04-18T17:34:30Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd3076319811/buildkitd-debug.sock" sandbox.go:205: time="2025-04-18T17:34:30Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:205: time="2025-04-18T17:34:30Z" level=warning msg="using host network as the default" sandbox.go:205: time="2025-04-18T17:34:30Z" level=info msg="found worker \"bmr37rilsooaau8k5bt5foy28\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:70911ebbff69 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/loong64 linux/arm/v7 linux/arm/v6]" sandbox.go:205: time="2025-04-18T17:34:30Z" level=info msg="found 1 workers, default=\"bmr37rilsooaau8k5bt5foy28\"" sandbox.go:205: time="2025-04-18T17:34:30Z" level=warning msg="currently, only the default worker can be used." sandbox.go:205: time="2025-04-18T17:34:30Z" level=info msg="running server on /tmp/bktest_buildkitd3076319811/buildkitd.sock" sandbox.go:205: time="2025-04-18T17:34:30Z" level=debug msg="session started" spanID=b79d5265a46dfbb5 traceID=a9c65ec94589b6ac3ca004f77cad9e8b sandbox.go:205: time="2025-04-18T17:34:30Z" level=debug msg="session finished: <nil>" spanID=b79d5265a46dfbb5 traceID=a9c65ec94589b6ac3ca004f77cad9e8b sandbox.go:205: time="2025-04-18T17:34:30Z" level=debug msg="resolve exporter docker with map[]" spanID=aee21b349e5233d5 traceID=a9c65ec94589b6ac3ca004f77cad9e8b sandbox.go:205: time="2025-04-18T17:34:30Z" level=debug msg="session started" spanID=b4a731c154da6e04 traceID=a9c65ec94589b6ac3ca004f77cad9e8b sandbox.go:205: time="2025-04-18T17:34:30Z" level=debug msg="new ref for local: zniy4az64qxj3ffp9r5844fng" span="[internal] load build definition from Dockerfile" spanID=cab87aa4a877cdee traceID=a9c65ec94589b6ac3ca004f77cad9e8b sandbox.go:205: time="2025-04-18T17:34:30Z" level=debug msg="diffcopy took: 4.376018ms" span="[internal] load build definition from Dockerfile" spanID=d40d8602b15e65b9 traceID=a9c65ec94589b6ac3c

Check failure on line 404 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestImageIDOutput/worker=remote

=== RUN TestIntegration/TestImageIDOutput/worker=remote === PAUSE TestIntegration/TestImageIDOutput/worker=remote === CONT TestIntegration/TestImageIDOutput/worker=remote build.go:404: Error Trace: /src/tests/build.go:404 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:103 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:245 Error: Received unexpected error: exit status 125 Test: TestIntegration/TestImageIDOutput/worker=remote sandbox.go:202: 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_config2443922303/buildkitd.toml --root /tmp/bktest_buildkitd3303760152 --addr unix:///tmp/bktest_buildkitd3303760152/buildkitd.sock --debug sandbox.go:202: 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_config2443922303/buildkitd.toml --root /tmp/bktest_buildkitd3303760152 --addr unix:///tmp/bktest_buildkitd3303760152/buildkitd.sock --debug sandbox.go:205: > StartCmd 2025-04-18 17:34:42.723277124 +0000 UTC m=+18.744154003 /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_config2443922303/buildkitd.toml --root /tmp/bktest_buildkitd3303760152 --addr unix:///tmp/bktest_buildkitd3303760152/buildkitd.sock --debug sandbox.go:205: time="2025-04-18T17:34:42Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd3303760152/buildkitd-debug.sock" sandbox.go:205: time="2025-04-18T17:34:42Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:205: time="2025-04-18T17:34:42Z" level=warning msg="using host network as the default" sandbox.go:205: time="2025-04-18T17:34:42Z" level=info msg="found worker \"qcxrucydf58ppkgh4dpqxovd1\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:7c3317302b20 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/loong64 linux/arm/v7 linux/arm/v6]" sandbox.go:205: time="2025-04-18T17:34:42Z" level=info msg="found 1 workers, default=\"qcxrucydf58ppkgh4dpqxovd1\"" sandbox.go:205: time="2025-04-18T17:34:42Z" level=warning msg="currently, only the default worker can be used." sandbox.go:205: time="2025-04-18T17:34:42Z" level=info msg="running server on /tmp/bktest_buildkitd3303760152/buildkitd.sock" sandbox.go:205: time="2025-04-18T17:34:42Z" level=debug msg="session started" spanID=fdba516236686833 traceID=825455b2fc0df1d0180870881b0c6f85 sandbox.go:205: time="2025-04-18T17:34:42Z" level=debug msg="session finished: <nil>" spanID=fdba516236686833 traceID=825455b2fc0df1d0180870881b0c6f85 sandbox.go:205: time="2025-04-18T17:34:42Z" level=debug msg="session started" spanID=16ac7001725386a0 traceID=8405117f0b37d239ea0be972906a11cd sandbox.go:205: time="2025-04-18T17:34:42Z" level=debug msg="resolve exporter docker with map[]" spanID=30bc9b5f1078f5b6 traceID=c77acb1766d284dd23a4479c9d60c551 sandbox.go:205: time="2025-04-18T17:34:42Z" level=debug msg="new ref for local: thu66bdd021nm3dpp4eizcdsn" span="[internal] load build definition from Dockerfile" spanID=8ac32b3b12e59cd0 traceID=8717c6af7b62f5b0d2df70a4254e82b1 sandbox.go:205: time="2025-04-18T17:34:42Z" level=debug msg="diffcopy took: 3.359377ms" span="[internal] load build definition from Dockerfile" spanID=3da3fb610abe67dc traceID=8717c6af7b62f5b0d2

Check failure on line 404 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestImageIDOutput/worker=remote

=== RUN TestIntegration/TestImageIDOutput/worker=remote === PAUSE TestIntegration/TestImageIDOutput/worker=remote === CONT TestIntegration/TestImageIDOutput/worker=remote build.go:404: Error Trace: /src/tests/build.go:404 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:103 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:245 Error: Received unexpected error: exit status 125 Test: TestIntegration/TestImageIDOutput/worker=remote sandbox.go:202: 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_config1195242575/buildkitd.toml --root /tmp/bktest_buildkitd2617991082 --addr unix:///tmp/bktest_buildkitd2617991082/buildkitd.sock --debug sandbox.go:202: 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_config1195242575/buildkitd.toml --root /tmp/bktest_buildkitd2617991082 --addr unix:///tmp/bktest_buildkitd2617991082/buildkitd.sock --debug sandbox.go:205: > StartCmd 2025-04-18 17:34:37.521399281 +0000 UTC m=+14.549783582 /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_config1195242575/buildkitd.toml --root /tmp/bktest_buildkitd2617991082 --addr unix:///tmp/bktest_buildkitd2617991082/buildkitd.sock --debug sandbox.go:205: time="2025-04-18T17:34:37Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd2617991082/buildkitd-debug.sock" sandbox.go:205: time="2025-04-18T17:34:37Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:205: time="2025-04-18T17:34:37Z" level=warning msg="using host network as the default" sandbox.go:205: time="2025-04-18T17:34:37Z" level=info msg="found worker \"0wlxd2bi8c4jnbyqicml2l5x3\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:cab360a029a5 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/loong64 linux/arm/v7 linux/arm/v6]" sandbox.go:205: time="2025-04-18T17:34:37Z" level=info msg="found 1 workers, default=\"0wlxd2bi8c4jnbyqicml2l5x3\"" sandbox.go:205: time="2025-04-18T17:34:37Z" level=warning msg="currently, only the default worker can be used." sandbox.go:205: time="2025-04-18T17:34:37Z" level=info msg="running server on /tmp/bktest_buildkitd2617991082/buildkitd.sock" sandbox.go:205: time="2025-04-18T17:34:37Z" level=debug msg="session started" spanID=473f6039ff48d851 traceID=ef39c4579104d444f4b968772896bbec sandbox.go:205: time="2025-04-18T17:34:37Z" level=debug msg="session finished: <nil>" spanID=473f6039ff48d851 traceID=ef39c4579104d444f4b968772896bbec sandbox.go:205: time="2025-04-18T17:34:37Z" level=debug msg="session started" spanID=917aa72df7170885 traceID=a9146466950004f10b74c0d90d013a89 sandbox.go:205: time="2025-04-18T17:34:37Z" level=debug msg="resolve exporter docker with map[]" spanID=c17ee67023be80f7 traceID=f22d2762aab3a14d77d255a8eee2e9dd sandbox.go:205: time="2025-04-18T17:34:37Z" level=debug msg="new ref for local: ic79q51r9nr4mj6whuaexptlg" span="[internal] load build definition from Dockerfile" spanID=f7c3d0d00ebd51b8 traceID=61afaa8890f74ec42dec13746913899b sandbox.go:205: time="2025-04-18T17:34:37Z" level=debug msg="diffcopy took: 2.642864ms" span="[internal] load build definition from Dockerfile" spanID=416925d3a8c4d451 traceID=61afaa8890f74ec42d

Check failure on line 404 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestImageIDOutput/worker=remote

=== RUN TestIntegration/TestImageIDOutput/worker=remote === PAUSE TestIntegration/TestImageIDOutput/worker=remote === CONT TestIntegration/TestImageIDOutput/worker=remote build.go:404: Error Trace: /src/tests/build.go:404 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:103 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:245 Error: Received unexpected error: exit status 125 Test: TestIntegration/TestImageIDOutput/worker=remote sandbox.go:202: 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_config3638023616/buildkitd.toml --root /tmp/bktest_buildkitd1668162114 --addr unix:///tmp/bktest_buildkitd1668162114/buildkitd.sock --debug sandbox.go:202: 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_config3638023616/buildkitd.toml --root /tmp/bktest_buildkitd1668162114 --addr unix:///tmp/bktest_buildkitd1668162114/buildkitd.sock --debug sandbox.go:205: > StartCmd 2025-04-18 17:34:41.416011413 +0000 UTC m=+17.444385801 /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_config3638023616/buildkitd.toml --root /tmp/bktest_buildkitd1668162114 --addr unix:///tmp/bktest_buildkitd1668162114/buildkitd.sock --debug sandbox.go:205: time="2025-04-18T17:34:41Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd1668162114/buildkitd-debug.sock" sandbox.go:205: time="2025-04-18T17:34:41Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:205: time="2025-04-18T17:34:41Z" level=warning msg="using host network as the default" sandbox.go:205: time="2025-04-18T17:34:41Z" level=info msg="found worker \"ms9wi0p4ytl0fysds7jkvl599\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:16244e79481c 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/loong64 linux/arm/v7 linux/arm/v6]" sandbox.go:205: time="2025-04-18T17:34:41Z" level=info msg="found 1 workers, default=\"ms9wi0p4ytl0fysds7jkvl599\"" sandbox.go:205: time="2025-04-18T17:34:41Z" level=warning msg="currently, only the default worker can be used." sandbox.go:205: time="2025-04-18T17:34:41Z" level=info msg="running server on /tmp/bktest_buildkitd1668162114/buildkitd.sock" sandbox.go:205: time="2025-04-18T17:34:41Z" level=debug msg="session started" spanID=c9348b408cb7f46d traceID=b05c2868666537f8c883e7e8347d085d sandbox.go:205: time="2025-04-18T17:34:41Z" level=debug msg="session finished: <nil>" spanID=c9348b408cb7f46d traceID=b05c2868666537f8c883e7e8347d085d sandbox.go:205: time="2025-04-18T17:34:41Z" level=debug msg="resolve exporter docker with map[]" spanID=acd9a70a568dd129 traceID=b05c2868666537f8c883e7e8347d085d sandbox.go:205: time="2025-04-18T17:34:41Z" level=debug msg="session started" spanID=649debfbd498a72b traceID=b05c2868666537f8c883e7e8347d085d sandbox.go:205: time="2025-04-18T17:34:41Z" level=debug msg="new ref for local: hwtvj97wkno22u6426auat58f" span="[internal] load build definition from Dockerfile" spanID=8ba8141ab4fbeadb traceID=b05c2868666537f8c883e7e8347d085d sandbox.go:205: time="2025-04-18T17:34:41Z" level=debug msg="diffcopy took: 2.74183ms" span="[internal] load build definition from Dockerfile" spanID=71aef3e5ddd324c3 traceID=b05c2868666537f8c88

Check failure on line 404 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestImageIDOutput/worker=remote

=== RUN TestIntegration/TestImageIDOutput/worker=remote === PAUSE TestIntegration/TestImageIDOutput/worker=remote === CONT TestIntegration/TestImageIDOutput/worker=remote build.go:404: Error Trace: /src/tests/build.go:404 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:103 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:245 Error: Received unexpected error: exit status 125 Test: TestIntegration/TestImageIDOutput/worker=remote sandbox.go:202: 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_config3382140208/buildkitd.toml --root /tmp/bktest_buildkitd2415545928 --addr unix:///tmp/bktest_buildkitd2415545928/buildkitd.sock --debug sandbox.go:205: > StartCmd 2025-04-18 17:34:43.068498196 +0000 UTC m=+18.070020786 /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_config3382140208/buildkitd.toml --root /tmp/bktest_buildkitd2415545928 --addr unix:///tmp/bktest_buildkitd2415545928/buildkitd.sock --debug sandbox.go:205: time="2025-04-18T17:34:43Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd2415545928/buildkitd-debug.sock" sandbox.go:205: time="2025-04-18T17:34:43Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:205: time="2025-04-18T17:34:43Z" level=warning msg="using host network as the default" sandbox.go:205: time="2025-04-18T17:34:43Z" level=info msg="found worker \"ib95pzhfspuhi9yfbfj6pl3l0\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:03e0d48bfefe 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/loong64 linux/arm/v7 linux/arm/v6]" sandbox.go:205: time="2025-04-18T17:34:43Z" level=info msg="found 1 workers, default=\"ib95pzhfspuhi9yfbfj6pl3l0\"" sandbox.go:205: time="2025-04-18T17:34:43Z" level=warning msg="currently, only the default worker can be used." sandbox.go:205: time="2025-04-18T17:34:43Z" level=info msg="running server on /tmp/bktest_buildkitd2415545928/buildkitd.sock" sandbox.go:205: time="2025-04-18T17:34:43Z" level=debug msg="session started" spanID=f7cccd874359974c traceID=e82eceeccdd1b492cfad1a9d0041ecbd sandbox.go:205: time="2025-04-18T17:34:43Z" level=debug msg="session finished: <nil>" spanID=f7cccd874359974c traceID=e82eceeccdd1b492cfad1a9d0041ecbd sandbox.go:205: time="2025-04-18T17:34:43Z" level=debug msg="session started" spanID=cb1a9f45a8172bea traceID=e82eceeccdd1b492cfad1a9d0041ecbd sandbox.go:205: time="2025-04-18T17:34:43Z" level=debug msg="resolve exporter docker with map[]" spanID=f484ae4564e7d469 traceID=e82eceeccdd1b492cfad1a9d0041ecbd sandbox.go:205: time="2025-04-18T17:34:43Z" level=debug msg="new ref for local: rwy79tkj77e33pqpvpqf38i46" span="[internal] load build definition from Dockerfile" spanID=c1da302823eb590a traceID=e82eceeccdd1b492cfad1a9d0041ecbd sandbox.go:205: time="2025-04-18T17:34:43Z" level=debug msg="diffcopy took: 3.575247ms" span="[internal] load build definition from Dockerfile" spanID=6bf71984f34d5aed traceID=e82eceeccdd1b492cfad1a9d0041ecbd sandbox.go:205: time="2025-04-18T17:34:43Z" level=debug msg="saved rwy79tkj77e33pqpvpqf38i46 as dockerfile:dockerfile:001:354804ea3f477fed" span="[internal] load build definition from Dockerfile" spanID=c1da302823eb590a traceID=e82eceeccdd1b492cfad1a9d0041ecbd sandbox.go:205: time="2025-04-18T17:34:43Z" level=debug

Check failure on line 404 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestImageIDOutput/worker=remote

=== RUN TestIntegration/TestImageIDOutput/worker=remote === PAUSE TestIntegration/TestImageIDOutput/worker=remote === CONT TestIntegration/TestImageIDOutput/worker=remote build.go:404: Error Trace: /src/tests/build.go:404 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:103 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:245 Error: Received unexpected error: exit status 125 Test: TestIntegration/TestImageIDOutput/worker=remote sandbox.go:202: 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_config2367352877/buildkitd.toml --root /tmp/bktest_buildkitd1248384092 --addr unix:///tmp/bktest_buildkitd1248384092/buildkitd.sock --debug sandbox.go:202: 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_config2367352877/buildkitd.toml --root /tmp/bktest_buildkitd1248384092 --addr unix:///tmp/bktest_buildkitd1248384092/buildkitd.sock --debug sandbox.go:205: > StartCmd 2025-04-18 17:34:44.804539671 +0000 UTC m=+18.860722807 /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_config2367352877/buildkitd.toml --root /tmp/bktest_buildkitd1248384092 --addr unix:///tmp/bktest_buildkitd1248384092/buildkitd.sock --debug sandbox.go:205: time="2025-04-18T17:34:44Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd1248384092/buildkitd-debug.sock" sandbox.go:205: time="2025-04-18T17:34:44Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:205: time="2025-04-18T17:34:44Z" level=warning msg="using host network as the default" sandbox.go:205: time="2025-04-18T17:34:44Z" level=info msg="found worker \"mg9fr2l5wrxm9htkd1d4b6wga\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:e3304670f71f 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/loong64 linux/arm/v7 linux/arm/v6]" sandbox.go:205: time="2025-04-18T17:34:44Z" level=info msg="found 1 workers, default=\"mg9fr2l5wrxm9htkd1d4b6wga\"" sandbox.go:205: time="2025-04-18T17:34:44Z" level=warning msg="currently, only the default worker can be used." sandbox.go:205: time="2025-04-18T17:34:44Z" level=info msg="running server on /tmp/bktest_buildkitd1248384092/buildkitd.sock" sandbox.go:205: time="2025-04-18T17:34:44Z" level=debug msg="session started" spanID=3e024101a2522d32 traceID=83252b597da4a3dcbf3b0ece56654fc5 sandbox.go:205: time="2025-04-18T17:34:44Z" level=debug msg="session finished: <nil>" spanID=3e024101a2522d32 traceID=83252b597da4a3dcbf3b0ece56654fc5 sandbox.go:205: time="2025-04-18T17:34:44Z" level=debug msg="session started" spanID=3111e98fb3bece76 traceID=83252b597da4a3dcbf3b0ece56654fc5 sandbox.go:205: time="2025-04-18T17:34:44Z" level=debug msg="resolve exporter docker with map[]" spanID=1c533de3a7833f7e traceID=83252b597da4a3dcbf3b0ece56654fc5 sandbox.go:205: time="2025-04-18T17:34:45Z" level=debug msg="new ref for local: mpba58px9esbsqvve0s9l3n3v" span="[internal] load build definition from Dockerfile" spanID=338b0d72a2ec2b20 traceID=83252b597da4a3dcbf3b0ece56654fc5 sandbox.go:205: time="2025-04-18T17:34:45Z" level=debug msg="diffcopy took: 3.370991ms" span="[internal] load build definition from Dockerfile" spanID=006746cc3abc03b4 traceID=83252b597da4a3dcbf

Check failure on line 404 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestImageIDOutput/worker=remote

=== RUN TestIntegration/TestImageIDOutput/worker=remote === PAUSE TestIntegration/TestImageIDOutput/worker=remote === CONT TestIntegration/TestImageIDOutput/worker=remote build.go:404: Error Trace: /src/tests/build.go:404 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:103 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:245 Error: Received unexpected error: exit status 125 Test: TestIntegration/TestImageIDOutput/worker=remote sandbox.go:202: 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_config1762751799/buildkitd.toml --root /tmp/bktest_buildkitd2290957566 --addr unix:///tmp/bktest_buildkitd2290957566/buildkitd.sock --debug sandbox.go:202: 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_config1762751799/buildkitd.toml --root /tmp/bktest_buildkitd2290957566 --addr unix:///tmp/bktest_buildkitd2290957566/buildkitd.sock --debug sandbox.go:205: > StartCmd 2025-04-18 17:34:44.746350545 +0000 UTC m=+14.182523455 /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_config1762751799/buildkitd.toml --root /tmp/bktest_buildkitd2290957566 --addr unix:///tmp/bktest_buildkitd2290957566/buildkitd.sock --debug sandbox.go:205: time="2025-04-18T17:34:44Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd2290957566/buildkitd-debug.sock" sandbox.go:205: time="2025-04-18T17:34:44Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:205: time="2025-04-18T17:34:44Z" level=warning msg="using host network as the default" sandbox.go:205: time="2025-04-18T17:34:44Z" level=info msg="found worker \"pj6kbfaopv6v7rv4tbxyw2mqe\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:16b356087e91 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/loong64 linux/arm/v7 linux/arm/v6]" sandbox.go:205: time="2025-04-18T17:34:44Z" level=info msg="found 1 workers, default=\"pj6kbfaopv6v7rv4tbxyw2mqe\"" sandbox.go:205: time="2025-04-18T17:34:44Z" level=warning msg="currently, only the default worker can be used." sandbox.go:205: time="2025-04-18T17:34:44Z" level=info msg="running server on /tmp/bktest_buildkitd2290957566/buildkitd.sock" sandbox.go:205: time="2025-04-18T17:34:44Z" level=debug msg="session started" spanID=9a5a0e27b7e9efeb traceID=da8832bf22ee763a8853a01606477b69 sandbox.go:205: time="2025-04-18T17:34:44Z" level=debug msg="session finished: <nil>" spanID=9a5a0e27b7e9efeb traceID=da8832bf22ee763a8853a01606477b69 sandbox.go:205: time="2025-04-18T17:34:44Z" level=debug msg="session started" spanID=4ad1ee4addad8122 traceID=d7e41b3d8875eaaac9f5fac20a33ef43 sandbox.go:205: time="2025-04-18T17:34:44Z" level=debug msg="resolve exporter docker with map[]" spanID=db61ed1b2a7cd000 traceID=8d80ccde86d570f330e12664d42f1856 sandbox.go:205: time="2025-04-18T17:34:44Z" level=debug msg="new ref for local: cry2ofpe776969grbqtpotle1" span="[internal] load build definition from Dockerfile" spanID=d808760fbaa909cc traceID=6af26aa67af94fbabbd86c2d14073361 sandbox.go:205: time="2025-04-18T17:34:44Z" level=debug msg="diffcopy took: 2.251016ms" span="[internal] load build definition from Dockerfile" spanID=dcddd847377658d6 traceID=6af26aa67af94fbabb
}

func testBuildMobyFromLocalImage(t *testing.T, sb integration.Sandbox) {
Expand Down
Loading