Skip to content

Commit

Permalink
build: fix localstate for remote context and stdin
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Jun 28, 2024
1 parent d4b112a commit a106f33
Show file tree
Hide file tree
Showing 4 changed files with 174 additions and 23 deletions.
40 changes: 20 additions & 20 deletions build/localstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,29 +15,29 @@ func saveLocalState(so *client.SolveOpt, target string, opts Options, node build
}
lp := opts.Inputs.ContextPath
dp := opts.Inputs.DockerfilePath
if lp != "" || dp != "" {
if lp != "" {
lp, err = filepath.Abs(lp)
if err != nil {
return err
}
}
if dp != "" {
dp, err = filepath.Abs(dp)
if err != nil {
return err
}
if dp != "" && !IsRemoteURL(lp) && lp != "-" && dp != "-" {
dp, err = filepath.Abs(dp)
if err != nil {
return err
}
l, err := localstate.New(configDir)
}
if lp != "" && !IsRemoteURL(lp) && lp != "-" {
lp, err = filepath.Abs(lp)
if err != nil {
return err
}
return l.SaveRef(node.Builder, node.Name, so.Ref, localstate.State{
Target: target,
LocalPath: lp,
DockerfilePath: dp,
GroupRef: opts.GroupRef,
})
}
return nil
if lp == "" && dp == "" {
return nil
}
l, err := localstate.New(configDir)
if err != nil {
return err
}
return l.SaveRef(node.Builder, node.Name, so.Ref, localstate.State{
Target: target,
LocalPath: lp,
DockerfilePath: dp,
GroupRef: opts.GroupRef,
})
}
5 changes: 3 additions & 2 deletions localstate/localstate.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,10 @@ const (
type State struct {
// Target is the name of the invoked target (default if empty)
Target string
// LocalPath is the absolute path to the context
// LocalPath is the absolute path to the context or remote context
LocalPath string
// DockerfilePath is the absolute path to the Dockerfile
// DockerfilePath is the absolute path to the Dockerfile or relative if
// context is remote
DockerfilePath string
// GroupRef is the ref of the state group that this ref belongs to
GroupRef string `json:",omitempty"`
Expand Down
143 changes: 143 additions & 0 deletions tests/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/containerd/containerd/platforms"
"github.com/containerd/continuity/fs/fstest"
"github.com/creack/pty"
"github.com/docker/buildx/localstate"
"github.com/docker/buildx/util/gitutil"
"github.com/moby/buildkit/client"
"github.com/moby/buildkit/frontend/subrequests/lint"
Expand Down Expand Up @@ -44,6 +45,9 @@ var buildTests = []func(t *testing.T, sb integration.Sandbox){
testBuild,
testBuildStdin,
testBuildRemote,
testBuildLocalState,
testBuildLocalStateStdin,
testBuildLocalStateRemote,
testImageIDOutput,
testBuildLocalExport,
testBuildRegistryExport,
Expand Down Expand Up @@ -122,6 +126,145 @@ COPY foo /foo
require.FileExists(t, filepath.Join(dirDest, "foo"))
}

func testBuildLocalState(t *testing.T, sb integration.Sandbox) {
dockerfile := []byte(`
FROM busybox:latest AS base
COPY foo /etc/foo
RUN cp /etc/foo /etc/bar
FROM scratch
COPY --from=base /etc/bar /bar
`)
dir := tmpdir(
t,
fstest.CreateFile("build.Dockerfile", dockerfile, 0600),
fstest.CreateFile("foo", []byte("foo"), 0600),
)

out, err := buildCmd(sb, withDir(dir), withArgs(
"-f", "build.Dockerfile",
"--metadata-file", filepath.Join(dir, "md.json"),
".",
))
require.NoError(t, err, out)

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

type mdT struct {
BuildRef string `json:"buildx.build.ref"`
}
var md mdT
err = json.Unmarshal(dt, &md)
require.NoError(t, err)

ls, err := localstate.New(buildxConfig(sb))
require.NoError(t, err)

refParts := strings.Split(md.BuildRef, "/")
require.Len(t, refParts, 3)

ref, err := ls.ReadRef(refParts[0], refParts[1], refParts[2])
require.NoError(t, err)
require.NotNil(t, ref)
require.DirExists(t, ref.LocalPath)
require.FileExists(t, ref.DockerfilePath)
}

func testBuildLocalStateStdin(t *testing.T, sb integration.Sandbox) {
dockerfile := []byte(`
FROM busybox:latest AS base
COPY foo /etc/foo
RUN cp /etc/foo /etc/bar
FROM scratch
COPY --from=base /etc/bar /bar
`)
dir := tmpdir(
t,
fstest.CreateFile("foo", []byte("foo"), 0600),
)

cmd := buildxCmd(sb, withDir(dir), withArgs("build", "--progress=quiet", "--metadata-file", filepath.Join(dir, "md.json"), "-f-", dir))
cmd.Stdin = bytes.NewReader(dockerfile)
out, err := cmd.CombinedOutput()
require.NoError(t, err, string(out))

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

type mdT struct {
BuildRef string `json:"buildx.build.ref"`
}
var md mdT
err = json.Unmarshal(dt, &md)
require.NoError(t, err)

ls, err := localstate.New(buildxConfig(sb))
require.NoError(t, err)

refParts := strings.Split(md.BuildRef, "/")
require.Len(t, refParts, 3)

ref, err := ls.ReadRef(refParts[0], refParts[1], refParts[2])
require.NoError(t, err)
require.NotNil(t, ref)
require.DirExists(t, ref.LocalPath)
require.Equal(t, "-", ref.DockerfilePath)
}

func testBuildLocalStateRemote(t *testing.T, sb integration.Sandbox) {
dockerfile := []byte(`
FROM busybox:latest
COPY foo /foo
`)
dir := tmpdir(
t,
fstest.CreateFile("build.Dockerfile", dockerfile, 0600),
fstest.CreateFile("foo", []byte("foo"), 0600),
)
dirDest := t.TempDir()

git, err := gitutil.New(gitutil.WithWorkingDir(dir))
require.NoError(t, err)

gitutil.GitInit(git, t)
gitutil.GitAdd(git, t, "build.Dockerfile", "foo")
gitutil.GitCommit(git, t, "initial commit")
addr := gitutil.GitServeHTTP(git, t)

out, err := buildCmd(sb, withDir(dir), withArgs(
"-f", "build.Dockerfile",
"--metadata-file", filepath.Join(dirDest, "md.json"),
"--output", "type=local,dest="+dirDest,
addr,
))
require.NoError(t, err, out)
require.FileExists(t, filepath.Join(dirDest, "foo"))

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

type mdT struct {
BuildRef string `json:"buildx.build.ref"`
}
var md mdT
err = json.Unmarshal(dt, &md)
require.NoError(t, err)

ls, err := localstate.New(buildxConfig(sb))
require.NoError(t, err)

refParts := strings.Split(md.BuildRef, "/")
require.Len(t, refParts, 3)

ref, err := ls.ReadRef(refParts[0], refParts[1], refParts[2])
require.NoError(t, err)
require.NotNil(t, ref)
require.Empty(t, addr)

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBuildLocalStateRemote/worker=remote

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=remote === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=remote === CONT TestIntegration/TestBuildLocalStateRemote/worker=remote build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:39313/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=remote 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_config1684729886/buildkitd.toml --root /tmp/bktest_buildkitd2366516571 --addr unix:///tmp/bktest_buildkitd2366516571/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_config1684729886/buildkitd.toml --root /tmp/bktest_buildkitd2366516571 --addr unix:///tmp/bktest_buildkitd2366516571/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-28 12:55:31.872382124 +0000 UTC m=+8.397128824 /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_config1684729886/buildkitd.toml --root /tmp/bktest_buildkitd2366516571 --addr unix:///tmp/bktest_buildkitd2366516571/buildkitd.sock --debug sandbox.go:136: time="2024-06-28T12:55:31Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:31Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:31Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-28T12:55:31Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-28T12:55:31Z" level=info msg="found worker \"s50i2dig7nc54eufd91lgn9lj\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:eeabae1ed2ff 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-28T12:55:32Z" level=info msg="found 1 workers, default=\"s50i2dig7nc54eufd91lgn9lj\"" sandbox.go:136: time="2024-06-28T12:55:32Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-28T12:55:32Z" level=info msg="running server on /tmp/bktest_buildkitd2366516571/buildkitd.sock" sandbox.go:136: time="2024-06-28T12:55:32Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:55:32Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-28T12:55:32Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:55:32Z" level=debug msg="resolve exporter local with map[]" sandbox.go:136: time="2024-06-28T12:55:32Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/library/busybox::pull" name=docker.io/library/busybox scope=pull sandbox.go:136: time="2024-06-28T12:55:32Z" level=debug msg=resolving host="localhost:37655" sandbox.go:136: time="2024-06-28T12:55:32Z" level=debug msg="do request" host="localhost:37655" request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.i

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBuildLocalStateRemote/worker=remote

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=remote === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=remote === CONT TestIntegration/TestBuildLocalStateRemote/worker=remote build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:39385/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=remote 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_config4238276557/buildkitd.toml --root /tmp/bktest_buildkitd3043474275 --addr unix:///tmp/bktest_buildkitd3043474275/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_config4238276557/buildkitd.toml --root /tmp/bktest_buildkitd3043474275 --addr unix:///tmp/bktest_buildkitd3043474275/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-28 12:55:36.315021493 +0000 UTC m=+11.641602235 /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_config4238276557/buildkitd.toml --root /tmp/bktest_buildkitd3043474275 --addr unix:///tmp/bktest_buildkitd3043474275/buildkitd.sock --debug sandbox.go:136: time="2024-06-28T12:55:36Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:36Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:36Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-28T12:55:36Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-28T12:55:36Z" level=info msg="found worker \"xph5f8tabv7zqjlzqqz3nnztv\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:57d3816728d1 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-28T12:55:36Z" level=info msg="found 1 workers, default=\"xph5f8tabv7zqjlzqqz3nnztv\"" sandbox.go:136: time="2024-06-28T12:55:36Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-28T12:55:36Z" level=info msg="running server on /tmp/bktest_buildkitd3043474275/buildkitd.sock" sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="resolve exporter local with map[]" sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/library/busybox::pull" name=docker.io/library/busybox scope=pull sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg=resolving host="localhost:45855" sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="do request" host="localhost:45855" request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBuildLocalStateRemote/worker=remote

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=remote === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=remote === CONT TestIntegration/TestBuildLocalStateRemote/worker=remote build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:46635/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=remote 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_config237586405/buildkitd.toml --root /tmp/bktest_buildkitd2921879803 --addr unix:///tmp/bktest_buildkitd2921879803/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_config237586405/buildkitd.toml --root /tmp/bktest_buildkitd2921879803 --addr unix:///tmp/bktest_buildkitd2921879803/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-28 12:55:36.38009782 +0000 UTC m=+10.534876068 /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_config237586405/buildkitd.toml --root /tmp/bktest_buildkitd2921879803 --addr unix:///tmp/bktest_buildkitd2921879803/buildkitd.sock --debug sandbox.go:136: time="2024-06-28T12:55:36Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:36Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:36Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-28T12:55:36Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-28T12:55:36Z" level=info msg="found worker \"fczzcvbghg28crkghh7t1ncq0\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:ab79e0b836fe 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-28T12:55:36Z" level=info msg="found 1 workers, default=\"fczzcvbghg28crkghh7t1ncq0\"" sandbox.go:136: time="2024-06-28T12:55:36Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-28T12:55:36Z" level=info msg="running server on /tmp/bktest_buildkitd2921879803/buildkitd.sock" sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="resolve exporter local with map[]" sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/library/busybox::pull" name=docker.io/library/busybox scope=pull sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg=resolving host="localhost:38743" sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="do request" host="localhost:38743" request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.imag

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBuildLocalStateRemote/worker=remote

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=remote === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=remote === CONT TestIntegration/TestBuildLocalStateRemote/worker=remote build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:44789/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=remote 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_config3786843615/buildkitd.toml --root /tmp/bktest_buildkitd1867244219 --addr unix:///tmp/bktest_buildkitd1867244219/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_config3786843615/buildkitd.toml --root /tmp/bktest_buildkitd1867244219 --addr unix:///tmp/bktest_buildkitd1867244219/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-28 12:55:37.454604435 +0000 UTC m=+10.248296878 /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_config3786843615/buildkitd.toml --root /tmp/bktest_buildkitd1867244219 --addr unix:///tmp/bktest_buildkitd1867244219/buildkitd.sock --debug sandbox.go:136: time="2024-06-28T12:55:37Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:37Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:37Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-28T12:55:37Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-28T12:55:37Z" level=info msg="found worker \"pefvd2af68uihlgmmy1zuuz6c\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:35fc71160b80 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-28T12:55:37Z" level=info msg="found 1 workers, default=\"pefvd2af68uihlgmmy1zuuz6c\"" sandbox.go:136: time="2024-06-28T12:55:37Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-28T12:55:37Z" level=info msg="running server on /tmp/bktest_buildkitd1867244219/buildkitd.sock" sandbox.go:136: time="2024-06-28T12:55:37Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:55:37Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-28T12:55:37Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:55:37Z" level=debug msg="resolve exporter local with map[]" sandbox.go:136: time="2024-06-28T12:55:37Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/library/busybox::pull" name=docker.io/library/busybox scope=pull sandbox.go:136: time="2024-06-28T12:55:37Z" level=debug msg=resolving host="localhost:43919" sandbox.go:136: time="2024-06-28T12:55:37Z" level=debug msg="do request" host="localhost:43919" request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBuildLocalStateRemote/worker=remote

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=remote === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=remote === CONT TestIntegration/TestBuildLocalStateRemote/worker=remote build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:45719/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=remote 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_config1493867535/buildkitd.toml --root /tmp/bktest_buildkitd3687239708 --addr unix:///tmp/bktest_buildkitd3687239708/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_config1493867535/buildkitd.toml --root /tmp/bktest_buildkitd3687239708 --addr unix:///tmp/bktest_buildkitd3687239708/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-28 12:55:33.469931839 +0000 UTC m=+7.880149285 /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_config1493867535/buildkitd.toml --root /tmp/bktest_buildkitd3687239708 --addr unix:///tmp/bktest_buildkitd3687239708/buildkitd.sock --debug sandbox.go:136: time="2024-06-28T12:55:33Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-28T12:55:33Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-28T12:55:33Z" level=info msg="found worker \"ydxd0wukvgxce6qv93jgep9t2\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:1696bf5e3dd7 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-28T12:55:33Z" level=info msg="found 1 workers, default=\"ydxd0wukvgxce6qv93jgep9t2\"" sandbox.go:136: time="2024-06-28T12:55:33Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-28T12:55:33Z" level=info msg="running server on /tmp/bktest_buildkitd3687239708/buildkitd.sock" sandbox.go:136: time="2024-06-28T12:55:33Z" level=debug msg="session started" spanID=6dac4c021bdd05f7 traceID=a498da37dd809e68a3546196d892774f sandbox.go:136: time="2024-06-28T12:55:33Z" level=debug msg="session finished: <nil>" spanID=6dac4c021bdd05f7 traceID=a498da37dd809e68a3546196d892774f sandbox.go:136: time="2024-06-28T12:55:33Z" level=debug msg="session started" spanID=20d1e14788676b46 traceID=47a5efa84d39a37cc504ddc1c8acfaaa sandbox.go:136: time="2024-06-28T12:55:34Z" level=debug msg=resolving host="localhost:34385" spanID=41ca13b8d549c804 traceID=7ad57d5a09eb83a048291d8bf7e8c5e5 sandbox.go:136: time="2024-06-28T12:55:34Z" level=debug msg="do request" host="localhost:34385" request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=buildkit/v0.12 request.method=HEAD spanID=41ca13b8d549c804 traceID=7ad57d5a09eb83a048291d8bf7e8c5e5 url="http://localhost:34385/v2/library/busybox/manifests/latest?ns=docker.io" sandbox.go:136: time="2024-06-28T12:55:34Z" le

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBuildLocalStateRemote/worker=remote

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=remote === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=remote === CONT TestIntegration/TestBuildLocalStateRemote/worker=remote build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:40337/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=remote 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_config2598942894/buildkitd.toml --root /tmp/bktest_buildkitd714560919 --addr unix:///tmp/bktest_buildkitd714560919/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_config2598942894/buildkitd.toml --root /tmp/bktest_buildkitd714560919 --addr unix:///tmp/bktest_buildkitd714560919/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-28 12:55:35.477397032 +0000 UTC m=+10.479640606 /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_config2598942894/buildkitd.toml --root /tmp/bktest_buildkitd714560919 --addr unix:///tmp/bktest_buildkitd714560919/buildkitd.sock --debug sandbox.go:136: time="2024-06-28T12:55:35Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:35Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:35Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-28T12:55:35Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-28T12:55:35Z" level=info msg="found worker \"of0ac3z19mzz7vsyj1o7rl0tg\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:f4f76cedec78 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-28T12:55:35Z" level=info msg="found 1 workers, default=\"of0ac3z19mzz7vsyj1o7rl0tg\"" sandbox.go:136: time="2024-06-28T12:55:35Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-28T12:55:35Z" level=info msg="running server on /tmp/bktest_buildkitd714560919/buildkitd.sock" sandbox.go:136: time="2024-06-28T12:55:35Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:55:35Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-28T12:55:35Z" level=debug msg="resolve exporter local with map[]" sandbox.go:136: time="2024-06-28T12:55:35Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:55:35Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/library/busybox::pull" name=docker.io/library/busybox scope=pull sandbox.go:136: time="2024-06-28T12:55:35Z" level=debug msg=resolving host="localhost:36459" sandbox.go:136: time="2024-06-28T12:55:35Z" level=debug msg="do request" host="localhost:36459" request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.i

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBuildLocalStateRemote/worker=remote

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=remote === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=remote === CONT TestIntegration/TestBuildLocalStateRemote/worker=remote build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:39643/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=remote 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_config21834865/buildkitd.toml --root /tmp/bktest_buildkitd3966257768 --addr unix:///tmp/bktest_buildkitd3966257768/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_config21834865/buildkitd.toml --root /tmp/bktest_buildkitd3966257768 --addr unix:///tmp/bktest_buildkitd3966257768/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-28 12:55:38.916484271 +0000 UTC m=+13.173092139 /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_config21834865/buildkitd.toml --root /tmp/bktest_buildkitd3966257768 --addr unix:///tmp/bktest_buildkitd3966257768/buildkitd.sock --debug sandbox.go:136: time="2024-06-28T12:55:39Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-28T12:55:39Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-28T12:55:39Z" level=info msg="found worker \"khvtx0q2dx2orn78uvdof5ucf\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:846caf17e525 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-28T12:55:39Z" level=info msg="found 1 workers, default=\"khvtx0q2dx2orn78uvdof5ucf\"" sandbox.go:136: time="2024-06-28T12:55:39Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-28T12:55:39Z" level=info msg="running server on /tmp/bktest_buildkitd3966257768/buildkitd.sock" sandbox.go:136: time="2024-06-28T12:55:39Z" level=debug msg="session started" spanID=5732a601fef54987 traceID=a7476311e3468e22bf44b614d848d08e sandbox.go:136: time="2024-06-28T12:55:39Z" level=debug msg="session finished: <nil>" spanID=5732a601fef54987 traceID=a7476311e3468e22bf44b614d848d08e sandbox.go:136: time="2024-06-28T12:55:39Z" level=debug msg="session started" spanID=7584f42bc0e4074f traceID=a7476311e3468e22bf44b614d848d08e sandbox.go:136: time="2024-06-28T12:55:39Z" level=debug msg=resolving host="localhost:35541" spanID=004a5968a31eeb6b traceID=a7476311e3468e22bf44b614d848d08e sandbox.go:136: time="2024-06-28T12:55:39Z" level=debug msg="do request" host="localhost:35541" request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=buildkit/v0.12 request.method=HEAD spanID=004a5968a31eeb6b traceID=a7476311e3468e22bf44b614d848d08e url="http://localhost:35541/v2/library/busybox/manifests/latest?ns=docker.io" sandbox.go:136: time="2024-06-28T12:55:39Z" level=d

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBuildLocalStateRemote/worker=remote

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=remote === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=remote === CONT TestIntegration/TestBuildLocalStateRemote/worker=remote build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:43149/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=remote 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_config3727261315/buildkitd.toml --root /tmp/bktest_buildkitd2434222954 --addr unix:///tmp/bktest_buildkitd2434222954/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_config3727261315/buildkitd.toml --root /tmp/bktest_buildkitd2434222954 --addr unix:///tmp/bktest_buildkitd2434222954/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-28 12:55:37.27499928 +0000 UTC m=+7.040613794 /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_config3727261315/buildkitd.toml --root /tmp/bktest_buildkitd2434222954 --addr unix:///tmp/bktest_buildkitd2434222954/buildkitd.sock --debug sandbox.go:136: time="2024-06-28T12:55:37Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:37Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:37Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-28T12:55:37Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-28T12:55:37Z" level=info msg="found worker \"5jo4871s2efhgwfsxlxblb4ny\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:307b20ea5edf 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-28T12:55:37Z" level=info msg="found 1 workers, default=\"5jo4871s2efhgwfsxlxblb4ny\"" sandbox.go:136: time="2024-06-28T12:55:37Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-28T12:55:37Z" level=info msg="running server on /tmp/bktest_buildkitd2434222954/buildkitd.sock" sandbox.go:136: time="2024-06-28T12:55:37Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:55:37Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-28T12:55:37Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:55:37Z" level=debug msg="resolve exporter local with map[]" sandbox.go:136: time="2024-06-28T12:55:37Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/library/busybox::pull" name=docker.io/library/busybox scope=pull sandbox.go:136: time="2024-06-28T12:55:37Z" level=debug msg=resolving host="localhost:34221" sandbox.go:136: time="2024-06-28T12:55:37Z" level=debug msg="do request" host="localhost:34221" request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.im

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBuildLocalStateRemote/worker=remote

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=remote === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=remote === CONT TestIntegration/TestBuildLocalStateRemote/worker=remote build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:38361/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=remote 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_config2620415096/buildkitd.toml --root /tmp/bktest_buildkitd3423108679 --addr unix:///tmp/bktest_buildkitd3423108679/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-28 12:55:36.427717674 +0000 UTC m=+10.920327082 /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_config2620415096/buildkitd.toml --root /tmp/bktest_buildkitd3423108679 --addr unix:///tmp/bktest_buildkitd3423108679/buildkitd.sock --debug sandbox.go:136: time="2024-06-28T12:55:36Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:36Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:36Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-28T12:55:36Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-28T12:55:36Z" level=info msg="found worker \"xs0v9p49jezp5yk0jtoiuuv3d\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:cc80dfa733ca 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-28T12:55:36Z" level=info msg="found 1 workers, default=\"xs0v9p49jezp5yk0jtoiuuv3d\"" sandbox.go:136: time="2024-06-28T12:55:36Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-28T12:55:36Z" level=info msg="running server on /tmp/bktest_buildkitd3423108679/buildkitd.sock" sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="session started" spanID=e83b3c627fa97a99 traceID=71c3fd9ab8da409172d3313baf12bcb3 sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="session finished: <nil>" spanID=e83b3c627fa97a99 traceID=71c3fd9ab8da409172d3313baf12bcb3 sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="session started" spanID=27a47c91df0c003f traceID=71c3fd9ab8da409172d3313baf12bcb3 sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/library/busybox::pull" name=docker.io/library/busybox scope=pull sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg=resolving host="localhost:34521" sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="do request" host="localhost:34521" request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=buildkit/v0.13 request.method=HEAD url="http://localhost:34521/v2/library/busybox/manifests/latest?ns=docker.io" sandbox.go:136: time="2024-06-28T12:55:36Z" level=debug msg="fetch response

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=docker-container === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=docker-container === CONT TestIntegration/TestBuildLocalStateRemote/worker=docker-container build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:40761/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=docker-container --- FAIL: TestIntegration/TestBuildLocalStateRemote/worker=docker-container (1.41s)

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=docker-container === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=docker-container === CONT TestIntegration/TestBuildLocalStateRemote/worker=docker-container build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:43423/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=docker-container --- FAIL: TestIntegration/TestBuildLocalStateRemote/worker=docker-container (1.56s)

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=docker-container === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=docker-container === CONT TestIntegration/TestBuildLocalStateRemote/worker=docker-container build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:42247/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=docker-container --- FAIL: TestIntegration/TestBuildLocalStateRemote/worker=docker-container (2.07s)

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=docker-container === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=docker-container === CONT TestIntegration/TestBuildLocalStateRemote/worker=docker-container build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:43349/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=docker-container --- FAIL: TestIntegration/TestBuildLocalStateRemote/worker=docker-container (1.90s)

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=docker-container === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=docker-container === CONT TestIntegration/TestBuildLocalStateRemote/worker=docker-container build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:39185/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=docker-container --- FAIL: TestIntegration/TestBuildLocalStateRemote/worker=docker-container (2.02s)

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=docker-container === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=docker-container === CONT TestIntegration/TestBuildLocalStateRemote/worker=docker-container build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:44297/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=docker-container --- FAIL: TestIntegration/TestBuildLocalStateRemote/worker=docker-container (1.78s)

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBuildLocalStateRemote/worker=remote

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=remote === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=remote === CONT TestIntegration/TestBuildLocalStateRemote/worker=remote build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:34779/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=remote 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_config2033009623/buildkitd.toml --root /tmp/bktest_buildkitd3792757136 --addr unix:///tmp/bktest_buildkitd3792757136/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-28 12:55:52.460782286 +0000 UTC m=+16.928143494 /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_config2033009623/buildkitd.toml --root /tmp/bktest_buildkitd3792757136 --addr unix:///tmp/bktest_buildkitd3792757136/buildkitd.sock --debug sandbox.go:136: time="2024-06-28T12:55:52Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:52Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:52Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-28T12:55:52Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-28T12:55:52Z" level=info msg="found worker \"zj2atsmvvhcgygkewbpn2bxov\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:14e572bc79d3 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-28T12:55:52Z" level=info msg="found 1 workers, default=\"zj2atsmvvhcgygkewbpn2bxov\"" sandbox.go:136: time="2024-06-28T12:55:52Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-28T12:55:52Z" level=info msg="running server on /tmp/bktest_buildkitd3792757136/buildkitd.sock" sandbox.go:136: time="2024-06-28T12:55:52Z" level=debug msg="session started" spanID=4187f39c7ac2058c traceID=aa364265749dadff171f3ed9f4c1ecf3 sandbox.go:136: time="2024-06-28T12:55:52Z" level=debug msg="session finished: <nil>" spanID=4187f39c7ac2058c traceID=aa364265749dadff171f3ed9f4c1ecf3 sandbox.go:136: time="2024-06-28T12:55:52Z" level=debug msg="session started" spanID=14274049f4323d3b traceID=0b35f0d82fabf16d91b8f02baa747552 sandbox.go:136: time="2024-06-28T12:55:53Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/library/busybox::pull" name=docker.io/library/busybox scope=pull sandbox.go:136: time="2024-06-28T12:55:53Z" level=debug msg=resolving host="localhost:40019" sandbox.go:136: time="2024-06-28T12:55:53Z" level=debug msg="do request" host="localhost:40019" request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.index.v1+json, */*" request.header.user-agent=buildkit/v0.13 request.method=HEAD url="http://localhost:40019/v2/library/busybox/manifests/latest?ns=docker.io" sandbox.go:136: time="2024-06-28T12:55:53Z" level=debug msg="fetch response

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBuildLocalStateRemote/worker=remote

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=remote === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=remote === CONT TestIntegration/TestBuildLocalStateRemote/worker=remote build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:46107/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=remote 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_config3680184989/buildkitd.toml --root /tmp/bktest_buildkitd151983593 --addr unix:///tmp/bktest_buildkitd151983593/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_config3680184989/buildkitd.toml --root /tmp/bktest_buildkitd151983593 --addr unix:///tmp/bktest_buildkitd151983593/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-28 12:55:59.124200037 +0000 UTC m=+10.897139321 /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_config3680184989/buildkitd.toml --root /tmp/bktest_buildkitd151983593 --addr unix:///tmp/bktest_buildkitd151983593/buildkitd.sock --debug sandbox.go:136: time="2024-06-28T12:55:59Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:59Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:55:59Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-28T12:55:59Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-28T12:55:59Z" level=info msg="found worker \"8415ykmlm3or4qk48293t93gi\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:a72090f9c1c7 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-28T12:55:59Z" level=info msg="found 1 workers, default=\"8415ykmlm3or4qk48293t93gi\"" sandbox.go:136: time="2024-06-28T12:55:59Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-28T12:55:59Z" level=info msg="running server on /tmp/bktest_buildkitd151983593/buildkitd.sock" sandbox.go:136: time="2024-06-28T12:55:59Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:55:59Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-28T12:55:59Z" level=debug msg="resolve exporter local with map[]" sandbox.go:136: time="2024-06-28T12:55:59Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:55:59Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/library/busybox::pull" name=docker.io/library/busybox scope=pull sandbox.go:136: time="2024-06-28T12:55:59Z" level=debug msg=resolving host="localhost:38109" sandbox.go:136: time="2024-06-28T12:55:59Z" level=debug msg="do request" host="localhost:38109" request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.image.i

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

Failed: tests/TestIntegration/TestBuildLocalStateRemote/worker=remote

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=remote === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=remote === CONT TestIntegration/TestBuildLocalStateRemote/worker=remote build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:36947/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=remote 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_config1374226522/buildkitd.toml --root /tmp/bktest_buildkitd3805176695 --addr unix:///tmp/bktest_buildkitd3805176695/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_config1374226522/buildkitd.toml --root /tmp/bktest_buildkitd3805176695 --addr unix:///tmp/bktest_buildkitd3805176695/buildkitd.sock --debug sandbox.go:136: > StartCmd 2024-06-28 12:56:01.669206571 +0000 UTC m=+13.310901980 /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_config1374226522/buildkitd.toml --root /tmp/bktest_buildkitd3805176695 --addr unix:///tmp/bktest_buildkitd3805176695/buildkitd.sock --debug sandbox.go:136: time="2024-06-28T12:56:01Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:56:01Z" level=warning msg="failed to get disk size: no such file or directory" sandbox.go:136: time="2024-06-28T12:56:01Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:136: time="2024-06-28T12:56:01Z" level=warning msg="using host network as the default" sandbox.go:136: time="2024-06-28T12:56:01Z" level=info msg="found worker \"iavgn0v416l9kdryy2hnpb2ni\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:3ad108510942 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-28T12:56:01Z" level=info msg="found 1 workers, default=\"iavgn0v416l9kdryy2hnpb2ni\"" sandbox.go:136: time="2024-06-28T12:56:01Z" level=warning msg="currently, only the default worker can be used." sandbox.go:136: time="2024-06-28T12:56:01Z" level=info msg="running server on /tmp/bktest_buildkitd3805176695/buildkitd.sock" sandbox.go:136: time="2024-06-28T12:56:01Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:56:01Z" level=debug msg="session finished: <nil>" sandbox.go:136: time="2024-06-28T12:56:01Z" level=debug msg="session started" sandbox.go:136: time="2024-06-28T12:56:01Z" level=debug msg="resolve exporter local with map[]" sandbox.go:136: time="2024-06-28T12:56:02Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/library/busybox::pull" name=docker.io/library/busybox scope=pull sandbox.go:136: time="2024-06-28T12:56:02Z" level=debug msg=resolving host="localhost:36069" sandbox.go:136: time="2024-06-28T12:56:02Z" level=debug msg="do request" host="localhost:36069" request.header.accept="application/vnd.docker.distribution.manifest.v2+json, application/vnd.docker.distribution.manifest.list.v2+json, application/vnd.oci.image.manifest.v1+json, application/vnd.oci.

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=docker-container === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=docker-container === CONT TestIntegration/TestBuildLocalStateRemote/worker=docker-container build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:35423/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=docker-container --- FAIL: TestIntegration/TestBuildLocalStateRemote/worker=docker-container (2.06s)

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=docker-container === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=docker-container === CONT TestIntegration/TestBuildLocalStateRemote/worker=docker-container build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:41369/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=docker-container --- FAIL: TestIntegration/TestBuildLocalStateRemote/worker=docker-container (1.69s)

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=docker-container === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=docker-container === CONT TestIntegration/TestBuildLocalStateRemote/worker=docker-container build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:42477/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=docker-container --- FAIL: TestIntegration/TestBuildLocalStateRemote/worker=docker-container (1.63s)

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=docker-container === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=docker-container === CONT TestIntegration/TestBuildLocalStateRemote/worker=docker-container build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:33707/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=docker-container --- FAIL: TestIntegration/TestBuildLocalStateRemote/worker=docker-container (1.94s)

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=docker-container === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=docker-container === CONT TestIntegration/TestBuildLocalStateRemote/worker=docker-container build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:35891/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=docker-container --- FAIL: TestIntegration/TestBuildLocalStateRemote/worker=docker-container (1.64s)

Check failure on line 264 in tests/build.go

View workflow job for this annotation

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

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

=== RUN TestIntegration/TestBuildLocalStateRemote/worker=docker-container === PAUSE TestIntegration/TestBuildLocalStateRemote/worker=docker-container === CONT TestIntegration/TestBuildLocalStateRemote/worker=docker-container build.go:264: Error Trace: /src/tests/build.go:264 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:96 /src/vendor/github.com/moby/buildkit/util/testutil/integration/run.go:211 Error: Should be empty, but was http://127.0.0.1:45833/test.git Test: TestIntegration/TestBuildLocalStateRemote/worker=docker-container --- FAIL: TestIntegration/TestBuildLocalStateRemote/worker=docker-container (1.65s)
require.Equal(t, "build.Dockerfile", ref.DockerfilePath)
}

func testBuildLocalExport(t *testing.T, sb integration.Sandbox) {
dir := createTestProject(t)
out, err := buildCmd(sb, withArgs(fmt.Sprintf("--output=type=local,dest=%s/result", dir), dir))
Expand Down
9 changes: 8 additions & 1 deletion tests/integration.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ func buildxCmd(sb integration.Sandbox, opts ...cmdOpt) *exec.Cmd {

if builder := sb.Address(); builder != "" {
cmd.Env = append(cmd.Env,
"BUILDX_CONFIG=/tmp/buildx-"+builder,
"BUILDX_CONFIG="+buildxConfig(sb),
"BUILDX_BUILDER="+builder,
)
}
Expand Down Expand Up @@ -86,6 +86,13 @@ func dockerCmd(sb integration.Sandbox, opts ...cmdOpt) *exec.Cmd {
return cmd
}

func buildxConfig(sb integration.Sandbox) string {
if builder := sb.Address(); builder != "" {
return "/tmp/buildx-" + builder
}
return ""
}

func isMobyWorker(sb integration.Sandbox) bool {
name, hasFeature := driverName(sb.Name())
return name == "docker" && !hasFeature
Expand Down

0 comments on commit a106f33

Please sign in to comment.