Skip to content

Commit

Permalink
WIP: Support OS version in platform string
Browse files Browse the repository at this point in the history
This allows platforms following the new `platforms.FormatAll` function,
which allows for setting the `OSVersion` field of the platform with
`<os>(<ver>)/<arch>`.

Signed-off-by: Brian Goff <[email protected]>
  • Loading branch information
cpuguy83 committed Jan 13, 2025
1 parent 4c68785 commit 3713196
Show file tree
Hide file tree
Showing 25 changed files with 381 additions and 178 deletions.
16 changes: 15 additions & 1 deletion client/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10414,7 +10414,7 @@ func testFrontendVerifyPlatforms(t *testing.T, sb integration.Sandbox) {
require.NoError(t, err)

warnings = wc.wait()
require.Len(t, warnings, 0)
require.Len(t, warnings, 0, warningsListOutput(warnings))

frontend = func(ctx context.Context, c gateway.Client) (*gateway.Result, error) {
res := gateway.NewResult()
Expand Down Expand Up @@ -11011,3 +11011,17 @@ func testRunValidExitCodes(t *testing.T, sb integration.Sandbox) {
require.Error(t, err)
require.ErrorContains(t, err, "exit code: 0")
}

type warningsListOutput []*VertexWarning

func (w warningsListOutput) String() string {
if len(w) == 0 {
return ""
}
var b strings.Builder

for _, warn := range w {
_, _ = b.Write(warn.Short)
}
return b.String()
}
2 changes: 1 addition & 1 deletion client/llb/imagemetaresolver/resolver.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ func (imr *imageMetaResolver) ResolveImageConfig(ctx context.Context, ref string

func (imr *imageMetaResolver) key(ref string, platform *ocispecs.Platform) string {
if platform != nil {
ref += platforms.Format(*platform)
ref += platforms.FormatAll(*platform)
}
return ref
}
Expand Down
2 changes: 1 addition & 1 deletion exporter/containerimage/annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ func (ag AnnotationsGroup) Platform(p *ocispecs.Platform) *Annotations {

ps := []string{""}
if p != nil {
ps = append(ps, platforms.Format(*p))
ps = append(ps, platforms.FormatAll(*p))
}

for _, a := range ag {
Expand Down
2 changes: 1 addition & 1 deletion exporter/containerimage/exptypes/annotations.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (k AnnotationKey) PlatformString() string {
if k.Platform == nil {
return ""
}
return platforms.Format(*k.Platform)
return platforms.FormatAll(*k.Platform)
}

func AnnotationIndexKey(key string) string {
Expand Down
2 changes: 1 addition & 1 deletion exporter/containerimage/exptypes/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func ParsePlatforms(meta map[string][]byte) (Platforms, error) {
}
}
p = platforms.Normalize(p)
pk := platforms.Format(p)
pk := platforms.FormatAll(p)
ps := Platforms{
Platforms: []Platform{{ID: pk, Platform: p}},
}
Expand Down
32 changes: 24 additions & 8 deletions exporter/verifier/platforms.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ func CheckInvalidPlatforms[T comparable](ctx context.Context, res *result.Result
})
}
p = platforms.Normalize(p)
_, ok := reqMap[platforms.Format(p)]
formatted := platforms.FormatAll(p)
_, ok := reqMap[formatted]
if ok {
warnings = append(warnings, client.VertexWarning{
Short: []byte(fmt.Sprintf("Duplicate platform result requested %q", v)),
})
}
reqMap[platforms.Format(p)] = struct{}{}
reqMap[formatted] = struct{}{}
reqList = append(reqList, exptypes.Platform{Platform: p})
}

Expand All @@ -62,10 +63,25 @@ func CheckInvalidPlatforms[T comparable](ctx context.Context, res *result.Result

if len(reqMap) == 1 && len(ps.Platforms) == 1 {
pp := platforms.Normalize(ps.Platforms[0].Platform)
if _, ok := reqMap[platforms.Format(pp)]; !ok {
return []client.VertexWarning{{
Short: []byte(fmt.Sprintf("Requested platform %q does not match result platform %q", req.Platforms[0], platforms.Format(pp))),
}}, nil
if _, ok := reqMap[platforms.FormatAll(pp)]; !ok {
// The requested platform will often not have an OSVersion on it, but the
// resulting platform may have one.
// This should not be considered a mismatch, so check again after clearing
// the OSVersion from the returned platform.
reqP, err := platforms.Parse(req.Platforms[0])
if err != nil {
return nil, err
}
reqP = platforms.Normalize(reqP)
if reqP.OSVersion == "" && reqP.OSVersion != pp.OSVersion {
pp.OSVersion = ""
}

if _, ok := reqMap[platforms.FormatAll(pp)]; !ok {
return []client.VertexWarning{{
Short: []byte(fmt.Sprintf("Requested platform %q does not match result platform %q", req.Platforms[0], platforms.FormatAll(pp))),
}}, nil
}
}
return nil, nil
}
Expand All @@ -81,7 +97,7 @@ func CheckInvalidPlatforms[T comparable](ctx context.Context, res *result.Result
if !mismatch {
for _, p := range ps.Platforms {
pp := platforms.Normalize(p.Platform)
if _, ok := reqMap[platforms.Format(pp)]; !ok {
if _, ok := reqMap[platforms.FormatAll(pp)]; !ok {
mismatch = true
break
}
Expand All @@ -100,7 +116,7 @@ func CheckInvalidPlatforms[T comparable](ctx context.Context, res *result.Result
func platformsString(ps []exptypes.Platform) string {
var ss []string
for _, p := range ps {
ss = append(ss, platforms.Format(platforms.Normalize(p.Platform)))
ss = append(ss, platforms.FormatAll(platforms.Normalize(p.Platform)))
}
sort.Strings(ss)
return strings.Join(ss, ",")
Expand Down
2 changes: 1 addition & 1 deletion frontend/dockerfile/builder/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func Build(ctx context.Context, c client.Client) (_ *client.Result, err error) {
if platform != nil {
p = *platform
}
scanTargets.Store(platforms.Format(platforms.Normalize(p)), scanTarget)
scanTargets.Store(platforms.FormatAll(platforms.Normalize(p)), scanTarget)

return ref, img, baseImg, nil
})
Expand Down
10 changes: 5 additions & 5 deletions frontend/dockerfile/dockerfile2llb/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,7 @@ func toDispatchState(ctx context.Context, dt []byte, opt ConvertOpt) (*dispatchS
if reachable {
prefix := "["
if opt.MultiPlatformRequested && platform != nil {
prefix += platforms.Format(*platform) + " "
prefix += platforms.FormatAll(*platform) + " "
}
prefix += "internal]"
mutRef, dgst, dt, err := metaResolver.ResolveImageConfig(ctx, d.stage.BaseName, sourceresolver.Opt{
Expand Down Expand Up @@ -2110,7 +2110,7 @@ func prefixCommand(ds *dispatchState, str string, prefixPlatform bool, platform
}
out := "["
if prefixPlatform && platform != nil {
out += platforms.Format(*platform) + formatTargetPlatform(*platform, platformFromEnv(env)) + " "
out += platforms.FormatAll(*platform) + formatTargetPlatform(*platform, platformFromEnv(env)) + " "
}
if ds.stageName != "" {
out += ds.stageName + " "
Expand Down Expand Up @@ -2144,7 +2144,7 @@ func formatTargetPlatform(base ocispecs.Platform, target *ocispecs.Platform) str
return "->" + archVariant
}
if p.OS != base.OS {
return "->" + platforms.Format(p)
return "->" + platforms.FormatAll(p)
}
return ""
}
Expand Down Expand Up @@ -2491,8 +2491,8 @@ func wrapSuggestAny(err error, keys map[string]struct{}, options []string) error

func validateBaseImagePlatform(name string, expected, actual ocispecs.Platform, location []parser.Range, lint *linter.Linter) {
if expected.OS != actual.OS || expected.Architecture != actual.Architecture {
expectedStr := platforms.Format(platforms.Normalize(expected))
actualStr := platforms.Format(platforms.Normalize(actual))
expectedStr := platforms.FormatAll(platforms.Normalize(expected))
actualStr := platforms.FormatAll(platforms.Normalize(actual))
msg := linter.RuleInvalidBaseImagePlatform.Format(name, expectedStr, actualStr)
lint.Run(&linter.RuleInvalidBaseImagePlatform, location, msg)
}
Expand Down
2 changes: 2 additions & 0 deletions frontend/dockerfile/dockerfile2llb/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,12 @@ func defaultArgs(po *platformOpt, overrides map[string]string, target string) *l
s := [...][2]string{
{"BUILDPLATFORM", platforms.Format(bp)},
{"BUILDOS", bp.OS},
{"BUILDOSVERSION", bp.OSVersion},
{"BUILDARCH", bp.Architecture},
{"BUILDVARIANT", bp.Variant},
{"TARGETPLATFORM", platforms.Format(tp)},
{"TARGETOS", tp.OS},
{"TARGETOSVERSION", tp.OSVersion},
{"TARGETARCH", tp.Architecture},
{"TARGETVARIANT", tp.Variant},
{"TARGETSTAGE", target},
Expand Down
139 changes: 139 additions & 0 deletions frontend/dockerfile/dockerfile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ var allTests = integration.TestFuncs(
testStepNames,
testPowershellInDefaultPathOnWindows,
testOCILayoutMultiname,
testPlatformWithOSVersion,
)

// Tests that depend on the `security.*` entitlements
Expand Down Expand Up @@ -9425,6 +9426,144 @@ COPY Dockerfile /foo
}
}

func testPlatformWithOSVersion(t *testing.T, sb integration.Sandbox) {
// This test cannot be run on Windows currently due to `FROM scratch` and
// layer formatting not being supported on Windows.
integration.SkipOnPlatform(t, "windows")

ctx := sb.Context()

c, err := client.New(ctx, sb.Address())
require.NoError(t, err)
defer c.Close()

f := getFrontend(t, sb)
p1 := ocispecs.Platform{
OS: "foo",
OSVersion: "1.2.3",
Architecture: "bar",
}
p2 := ocispecs.Platform{
OS: "foo",
OSVersion: "1.1.0",
Architecture: "bar",
}

p1Str := platforms.FormatAll(p1)
p2Str := platforms.FormatAll(p2)

registry, err := sb.NewRegistry()
if errors.Is(err, integration.ErrRequirements) {
t.Skip(err.Error())
}
require.NoError(t, err)
target := registry + "/buildkit/testplatformwithosversion:latest"

dockerfile := []byte(`
ARG TARGETOS TARGETOSVERSION TARGETARCH
FROM --platform=${TARGETOS}(${TARGETOSVERSION})/${TARGETARCH} ` + target + ` AS reg
FROM scratch AS base
ARG TARGETOSVERSION
COPY <<EOF /osversion
${TARGETOSVERSION}
EOF
`)

destDir := t.TempDir()
dir := integration.Tmpdir(
t,
fstest.CreateFile("Dockerfile", dockerfile, 0600),
)

// build the base target as a multi-platform image and push to the registry
_, err = f.Solve(sb.Context(), c, client.SolveOpt{
FrontendAttrs: map[string]string{
"platform": p1Str + "," + p2Str,
"target": "base",
},
Exports: []client.ExportEntry{
{
Type: client.ExporterLocal,
OutputDir: destDir,
},
{
Type: client.ExporterImage,
Attrs: map[string]string{
"name": target,
"push": "true",
},
},
},

LocalMounts: map[string]fsutil.FS{
dockerui.DefaultLocalNameDockerfile: dir,
dockerui.DefaultLocalNameContext: dir,
},
}, nil)

require.NoError(t, err)

dt, err := os.ReadFile(filepath.Join(destDir, strings.Replace(p1Str, "/", "_", 1), "osversion"))
require.NoError(t, err)
require.Equal(t, p1.OSVersion+"\n", string(dt))

dt, err = os.ReadFile(filepath.Join(destDir, strings.Replace(p2Str, "/", "_", 1), "osversion"))
require.NoError(t, err)
require.Equal(t, p2.OSVersion+"\n", string(dt))

// Now build the "reg" target, which should pull the base image from the registry
// This should select the image with the requested os version.
destDir = t.TempDir()
_, err = f.Solve(sb.Context(), c, client.SolveOpt{
FrontendAttrs: map[string]string{
"platform": p1Str,
"target": "reg",
},
Exports: []client.ExportEntry{
{
Type: client.ExporterLocal,
OutputDir: destDir,
},
},

LocalMounts: map[string]fsutil.FS{
dockerui.DefaultLocalNameDockerfile: dir,
dockerui.DefaultLocalNameContext: dir,
},
}, nil)
require.NoError(t, err)

dt, err = os.ReadFile(filepath.Join(destDir, "osversion"))
require.NoError(t, err)
require.Equal(t, p1.OSVersion+"\n", string(dt))

// And again with the other os version
destDir = t.TempDir()
_, err = f.Solve(sb.Context(), c, client.SolveOpt{
FrontendAttrs: map[string]string{
"platform": p2Str,
"target": "reg",
},
Exports: []client.ExportEntry{
{
Type: client.ExporterLocal,
OutputDir: destDir,
},
},

LocalMounts: map[string]fsutil.FS{
dockerui.DefaultLocalNameDockerfile: dir,
dockerui.DefaultLocalNameContext: dir,
},
}, nil)
require.NoError(t, err)

dt, err = os.ReadFile(filepath.Join(destDir, "osversion"))
require.NoError(t, err)
require.Equal(t, p2.OSVersion+"\n", string(dt))

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (oci-snapshotter-stargz, ./frontend/dockerfile, integration)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=oci-snapshotter-stargz/frontend=builtin

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=oci-snapshotter-stargz/frontend=builtin === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=oci-snapshotter-stargz/frontend=builtin === CONT TestIntegration/TestPlatformWithOSVersion/worker=oci-snapshotter-stargz/frontend=builtin dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=oci-snapshotter-stargz/frontend=builtin sandbox.go:187: stdout: /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker-snapshotter=stargz --config=/tmp/bktest_config503564543/buildkitd.toml --root /tmp/bktest_buildkitd2741769134 --addr unix:///tmp/bktest_buildkitd2741769134/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd2741769134/buildkitd-debug.sock --debug sandbox.go:187: stderr: /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker-snapshotter=stargz --config=/tmp/bktest_config503564543/buildkitd.toml --root /tmp/bktest_buildkitd2741769134 --addr unix:///tmp/bktest_buildkitd2741769134/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd2741769134/buildkitd-debug.sock --debug sandbox.go:190: > StartCmd 2025-01-13 20:13:02.941220393 +0000 UTC m=+5.797679238 /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker-snapshotter=stargz --config=/tmp/bktest_config503564543/buildkitd.toml --root /tmp/bktest_buildkitd2741769134 --addr unix:///tmp/bktest_buildkitd2741769134/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd2741769134/buildkitd-debug.sock --debug sandbox.go:190: time="2025-01-13T20:13:02Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd2741769134/buildkitd-debug.sock" sandbox.go:190: time="2025-01-13T20:13:02Z" level=debug msg="could not read \"/tmp/bktest_buildkitd2741769134/net/cni\" for cleanup: open /tmp/bktest_buildkitd2741769134/net/cni: no such file or directory" sandbox.go:190: time="2025-01-13T20:13:02Z" level=debug msg="creating new network namespace 9wfi2rdwu1pf0ilt2y2a0nnnb" sandbox.go:190: time="2025-01-13T20:13:02Z" level=debug msg="finished creating network namespace 9wfi2rdwu1pf0ilt2y2a0nnnb" sandbox.go:190: time="2025-01-13T20:13:03Z" level=debug msg="finished setting up network namespace 9wfi2rdwu1pf0ilt2y2a0nnnb" sandbox.go:190: time="2025-01-13T20:13:03Z" level=info msg="found worker \"unibfkmuibkm0645yrlefeosv\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:cb18b0252ed8 org.mobyproject.buildkit.worker.network:cni 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:stargz], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]" sandbox.go:190: time="2025-01-13T20:13:03Z" level=info msg="found 1 workers, default=\"unibfkmuibkm0645yrlefeosv\"" sandbox.go:190: time="2025-01-13T20:13:03Z" level=warning msg="currently, only the default worker can be used." sandbox.go:190: time="2025-01-13T20:13:03Z" level=info msg="running server on /tmp/bktest_buildkitd2741769134/buil

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (oci-snapshotter-stargz, ./frontend/dockerfile, integration)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=oci-snapshotter-stargz/frontend=client

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=oci-snapshotter-stargz/frontend=client === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=oci-snapshotter-stargz/frontend=client === CONT TestIntegration/TestPlatformWithOSVersion/worker=oci-snapshotter-stargz/frontend=client dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=oci-snapshotter-stargz/frontend=client sandbox.go:187: stdout: /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker-snapshotter=stargz --config=/tmp/bktest_config2358264747/buildkitd.toml --root /tmp/bktest_buildkitd1076366848 --addr unix:///tmp/bktest_buildkitd1076366848/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd1076366848/buildkitd-debug.sock --debug sandbox.go:187: stderr: /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker-snapshotter=stargz --config=/tmp/bktest_config2358264747/buildkitd.toml --root /tmp/bktest_buildkitd1076366848 --addr unix:///tmp/bktest_buildkitd1076366848/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd1076366848/buildkitd-debug.sock --debug sandbox.go:190: > StartCmd 2025-01-13 20:13:02.529661259 +0000 UTC m=+5.386120105 /usr/bin/buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker-snapshotter=stargz --config=/tmp/bktest_config2358264747/buildkitd.toml --root /tmp/bktest_buildkitd1076366848 --addr unix:///tmp/bktest_buildkitd1076366848/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd1076366848/buildkitd-debug.sock --debug sandbox.go:190: time="2025-01-13T20:13:02Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd1076366848/buildkitd-debug.sock" sandbox.go:190: time="2025-01-13T20:13:02Z" level=debug msg="could not read \"/tmp/bktest_buildkitd1076366848/net/cni\" for cleanup: open /tmp/bktest_buildkitd1076366848/net/cni: no such file or directory" sandbox.go:190: time="2025-01-13T20:13:02Z" level=debug msg="creating new network namespace zpni9vwjiuuul7si80cp821t4" sandbox.go:190: time="2025-01-13T20:13:02Z" level=debug msg="finished creating network namespace zpni9vwjiuuul7si80cp821t4" sandbox.go:190: time="2025-01-13T20:13:02Z" level=debug msg="finished setting up network namespace zpni9vwjiuuul7si80cp821t4" sandbox.go:190: time="2025-01-13T20:13:02Z" level=info msg="found worker \"ogx7jxzpxwnnfr9mkut02r0wj\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:cb18b0252ed8 org.mobyproject.buildkit.worker.network:cni 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:stargz], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]" sandbox.go:190: time="2025-01-13T20:13:02Z" level=info msg="found 1 workers, default=\"ogx7jxzpxwnnfr9mkut02r0wj\"" sandbox.go:190: time="2025-01-13T20:13:02Z" level=warning msg="currently, only the default worker can be used." sandbox.go:190: time="2025-01-13T20:13:02Z" level=info msg="running server on /tmp/bktest_buildkitd1076366848/build

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (oci, ./frontend/dockerfile, integration)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=oci/frontend=builtin

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=oci/frontend=builtin === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=oci/frontend=builtin === CONT TestIntegration/TestPlatformWithOSVersion/worker=oci/frontend=builtin dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=oci/frontend=builtin sandbox.go:187: 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_config1042448481/buildkitd.toml --root /tmp/bktest_buildkitd531701908 --addr unix:///tmp/bktest_buildkitd531701908/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd531701908/buildkitd-debug.sock --debug sandbox.go:187: 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_config1042448481/buildkitd.toml --root /tmp/bktest_buildkitd531701908 --addr unix:///tmp/bktest_buildkitd531701908/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd531701908/buildkitd-debug.sock --debug sandbox.go:190: > StartCmd 2025-01-13 20:13:38.136369642 +0000 UTC m=+42.011316457 /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_config1042448481/buildkitd.toml --root /tmp/bktest_buildkitd531701908 --addr unix:///tmp/bktest_buildkitd531701908/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd531701908/buildkitd-debug.sock --debug sandbox.go:190: time="2025-01-13T20:13:38Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd531701908/buildkitd-debug.sock" sandbox.go:190: time="2025-01-13T20:13:38Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:190: time="2025-01-13T20:13:38Z" level=debug msg="could not read \"/tmp/bktest_buildkitd531701908/net/cni\" for cleanup: open /tmp/bktest_buildkitd531701908/net/cni: no such file or directory" sandbox.go:190: time="2025-01-13T20:13:38Z" level=debug msg="creating new network namespace 5a8ikl72ekfh2og8x2lcpjeop" sandbox.go:190: time="2025-01-13T20:13:38Z" level=debug msg="finished creating network namespace 5a8ikl72ekfh2og8x2lcpjeop" sandbox.go:190: time="2025-01-13T20:13:38Z" level=debug msg="finished setting up network namespace 5a8ikl72ekfh2og8x2lcpjeop" sandbox.go:190: time="2025-01-13T20:13:38Z" level=info msg="found worker \"sctzijvcm7ye3jlk5cwp4acan\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:0d71b5668eab org.mobyproject.buildkit.worker.network:cni org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]" sandbox.go:190: time="2025-01-13T20:13:38Z" level=info msg="found 1 workers, default=\"sctzijvcm7ye3jlk5cwp4acan\"" sandbox.go:190: time="2025-01-13T20:13:38Z" level=warning msg="currently, only the default worker can be used." sandbox.go:190: time="2025-01-13T20:13:38Z" level=info msg="running server on /tmp/bktest_buildkitd531701908/buildkitd.sock" sandbox.go:190: time="2025-01-13T20:13:38Z" level=debug msg="se

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (oci, ./frontend/dockerfile, integration)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=oci/frontend=client

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=oci/frontend=client === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=oci/frontend=client === CONT TestIntegration/TestPlatformWithOSVersion/worker=oci/frontend=client dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=oci/frontend=client sandbox.go:187: 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_config2123870718/buildkitd.toml --root /tmp/bktest_buildkitd2085034592 --addr unix:///tmp/bktest_buildkitd2085034592/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd2085034592/buildkitd-debug.sock --debug sandbox.go:187: 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_config2123870718/buildkitd.toml --root /tmp/bktest_buildkitd2085034592 --addr unix:///tmp/bktest_buildkitd2085034592/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd2085034592/buildkitd-debug.sock --debug sandbox.go:190: > StartCmd 2025-01-13 20:13:37.574610494 +0000 UTC m=+41.449557299 /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_config2123870718/buildkitd.toml --root /tmp/bktest_buildkitd2085034592 --addr unix:///tmp/bktest_buildkitd2085034592/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd2085034592/buildkitd-debug.sock --debug sandbox.go:190: time="2025-01-13T20:13:37Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd2085034592/buildkitd-debug.sock" sandbox.go:190: time="2025-01-13T20:13:37Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:190: time="2025-01-13T20:13:37Z" level=debug msg="could not read \"/tmp/bktest_buildkitd2085034592/net/cni\" for cleanup: open /tmp/bktest_buildkitd2085034592/net/cni: no such file or directory" sandbox.go:190: time="2025-01-13T20:13:37Z" level=debug msg="creating new network namespace 0wyskk7yw84r0odpaj678c4hr" sandbox.go:190: time="2025-01-13T20:13:37Z" level=debug msg="finished creating network namespace 0wyskk7yw84r0odpaj678c4hr" sandbox.go:190: time="2025-01-13T20:13:37Z" level=debug msg="finished setting up network namespace 0wyskk7yw84r0odpaj678c4hr" sandbox.go:190: time="2025-01-13T20:13:37Z" level=info msg="found worker \"snbdtzri49lqheoav9avkhb41\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:0d71b5668eab org.mobyproject.buildkit.worker.network:cni org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]" sandbox.go:190: time="2025-01-13T20:13:37Z" level=info msg="found 1 workers, default=\"snbdtzri49lqheoav9avkhb41\"" sandbox.go:190: time="2025-01-13T20:13:37Z" level=warning msg="currently, only the default worker can be used." sandbox.go:190: time="2025-01-13T20:13:37Z" level=info msg="running server on /tmp/bktest_buildkitd2085034592/buildkitd.sock" sandbox.go:190: time="2025-01-13T20:13:37Z" level=debu

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (containerd-rootless, ./frontend/dockerfile, integration)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=containerd-rootless/frontend=builtin

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=containerd-rootless/frontend=builtin === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=containerd-rootless/frontend=builtin === CONT TestIntegration/TestPlatformWithOSVersion/worker=containerd-rootless/frontend=builtin dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=containerd-rootless/frontend=builtin sandbox.go:187: stdout: /usr/bin/sudo -u #1000 -i -- exec nsenter -U --preserve-credentials -m -t 13518 buildkitd --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr /tmp/bktest_containerd3104185119/containerd.sock --containerd-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker=false --containerd-worker-snapshotter=native --containerd-worker-snapshotter=native --config=/tmp/bktest_config834999801/buildkitd.toml --root /tmp/bktest_buildkitd1867804130 --addr unix:///tmp/bktest_buildkitd1867804130/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd1867804130/buildkitd-debug.sock --debug sandbox.go:187: stderr: /usr/bin/sudo -u #1000 -i -- exec nsenter -U --preserve-credentials -m -t 13518 buildkitd --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr /tmp/bktest_containerd3104185119/containerd.sock --containerd-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker=false --containerd-worker-snapshotter=native --containerd-worker-snapshotter=native --config=/tmp/bktest_config834999801/buildkitd.toml --root /tmp/bktest_buildkitd1867804130 --addr unix:///tmp/bktest_buildkitd1867804130/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd1867804130/buildkitd-debug.sock --debug sandbox.go:190: > StartCmd 2025-01-13 20:13:03.822048921 +0000 UTC m=+6.673699630 /usr/bin/sudo -u #1000 -i -- exec nsenter -U --preserve-credentials -m -t 13518 buildkitd --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr /tmp/bktest_containerd3104185119/containerd.sock --containerd-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker=false --containerd-worker-snapshotter=native --containerd-worker-snapshotter=native --config=/tmp/bktest_config834999801/buildkitd.toml --root /tmp/bktest_buildkitd1867804130 --addr unix:///tmp/bktest_buildkitd1867804130/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd1867804130/buildkitd-debug.sock --debug sandbox.go:190: warning: GOCOVERDIR not set, no coverage data emitted sandbox.go:190: time="2025-01-13T20:13:03Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd1867804130/buildkitd-debug.sock" sandbox.go:190: time="2025-01-13T20:13:03Z" level=debug msg="running in rootless mode" sandbox.go:190: time="2025-01-13T20:13:03Z" level=debug msg="remote introspection plugin filters" filters="[type==io.containerd.runtime.v1 type==io.containerd.runtime.v2]" sandbox.go:190: time="2025-01-13T20:13:03Z" level=info msg="found worker \"q9yc7wlbdklx0266dtlhemw84\", labels=map[org.mobyproject.buildkit.worker.containerd.namespace:buildkit org.mobyproject.buildkit.worker.containerd.uuid:4f2c7bad-7dbc-4652-8c49-9df3400c7b3d org.mobyproject.buildkit.worker.executor:containerd org.mobyproject.buildkit.worker.hostname:91d3ad4b93bf org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:native], platforms=[linux/amd64 linux/amd64/v2 linux/am

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (containerd-rootless, ./frontend/dockerfile, integration)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=containerd-rootless/frontend=client

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=containerd-rootless/frontend=client === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=containerd-rootless/frontend=client === CONT TestIntegration/TestPlatformWithOSVersion/worker=containerd-rootless/frontend=client dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=containerd-rootless/frontend=client sandbox.go:187: stdout: /usr/bin/sudo -u #1000 -i CONTAINERD_ROOTLESS_ROOTLESSKIT_STATE_DIR=/tmp/bktest_containerd51561558/rootlesskit-containerd CONTAINERD_ROOTLESS_ROOTLESSKIT_NET=host CONTAINERD_ROOTLESS_ROOTLESSKIT_PORT_DRIVER=none CONTAINERD_ROOTLESS_ROOTLESSKIT_FLAGS=--mtu=0 containerd-rootless.sh -c /tmp/bktest_containerd51561558/config.toml sandbox.go:187: stderr: /usr/bin/sudo -u #1000 -i CONTAINERD_ROOTLESS_ROOTLESSKIT_STATE_DIR=/tmp/bktest_containerd51561558/rootlesskit-containerd CONTAINERD_ROOTLESS_ROOTLESSKIT_NET=host CONTAINERD_ROOTLESS_ROOTLESSKIT_PORT_DRIVER=none CONTAINERD_ROOTLESS_ROOTLESSKIT_FLAGS=--mtu=0 containerd-rootless.sh -c /tmp/bktest_containerd51561558/config.toml sandbox.go:190: > StartCmd 2025-01-13 20:13:03.196561516 +0000 UTC m=+6.048212175 /usr/bin/sudo -u #1000 -i CONTAINERD_ROOTLESS_ROOTLESSKIT_STATE_DIR=/tmp/bktest_containerd51561558/rootlesskit-containerd CONTAINERD_ROOTLESS_ROOTLESSKIT_NET=host CONTAINERD_ROOTLESS_ROOTLESSKIT_PORT_DRIVER=none CONTAINERD_ROOTLESS_ROOTLESSKIT_FLAGS=--mtu=0 containerd-rootless.sh -c /tmp/bktest_containerd51561558/config.toml sandbox.go:190: time="2025-01-13T20:13:03.284376099Z" level=info msg="starting containerd" revision= version=2.0.0+unknown sandbox.go:190: time="2025-01-13T20:13:03.293156821Z" level=warning msg="Configuration migrated from version 2, use `containerd config migrate` to avoid migration" t="2.846µs" sandbox.go:190: time="2025-01-13T20:13:03.293182459Z" level=info msg="loading plugin" id=io.containerd.image-verifier.v1.bindir type=io.containerd.image-verifier.v1 sandbox.go:190: time="2025-01-13T20:13:03.293203599Z" level=info msg="loading plugin" id=io.containerd.internal.v1.opt type=io.containerd.internal.v1 sandbox.go:190: time="2025-01-13T20:13:03.293237432Z" level=warning msg="failed to load plugin" error="mkdir /opt/containerd: permission denied" id=io.containerd.internal.v1.opt type=io.containerd.internal.v1 sandbox.go:190: time="2025-01-13T20:13:03.293250586Z" level=info msg="loading plugin" id=io.containerd.warning.v1.deprecations type=io.containerd.warning.v1 sandbox.go:190: time="2025-01-13T20:13:03.293263170Z" level=info msg="loading plugin" id=io.containerd.content.v1.content type=io.containerd.content.v1 sandbox.go:190: time="2025-01-13T20:13:03.293292825Z" level=info msg="loading plugin" id=io.containerd.snapshotter.v1.blockfile type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:03.293375439Z" level=info msg="skip loading plugin" error="no scratch file generator: skip plugin" id=io.containerd.snapshotter.v1.blockfile type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:03.293390778Z" level=info msg="loading plugin" id=io.containerd.snapshotter.v1.devmapper type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:03.293403872Z" level=info msg="skip loading plugin" error="devmapper not configured: skip plugin" id=io.containerd.snapshotter.v1.devmapper type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:03.293414913Z" level

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (containerd-1.6, ./frontend/dockerfile, integration)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.6/frontend=builtin

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.6/frontend=builtin === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.6/frontend=builtin === CONT TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.6/frontend=builtin dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.6/frontend=builtin sandbox.go:187: stderr: /opt/containerd-alt-16/bin/containerd --config /tmp/bktest_containerd2586347994/config.toml sandbox.go:190: > StartCmd 2025-01-13 20:13:39.280151717 +0000 UTC m=+41.915686767 /opt/containerd-alt-16/bin/containerd --config /tmp/bktest_containerd2586347994/config.toml sandbox.go:190: time="2025-01-13T20:13:39.331486046Z" level=info msg="starting containerd" revision=88c3d9bc5b5a193f40b7c14fa996d23532d6f956 version=v1.6.36 sandbox.go:190: time="2025-01-13T20:13:39.368649330Z" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1 sandbox.go:190: time="2025-01-13T20:13:39.369615005Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:39.369684185Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured" sandbox.go:190: time="2025-01-13T20:13:39.369717417Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:39.369880854Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:39.370547651Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:39.372856255Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.aufs\"..." error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: can't change directory to '/lib/modules': No such file or directory\\n\"): skip plugin" type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:39.372911119Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:39.373364791Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /tmp/bktest_containerd2586347994/root/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:39.373406750Z" level=info msg="loading plugin \"io.containerd.metadata.v1.bolt\"..." type=io.containerd.metadata.v1 sandbox.go:190: time="2025-01-13T20:13:39.373628096Z" level=warning msg="could not use snapshotter devmapper in metadata plugin" error="devmapper not configured" sandbox.go:190: time="2025-01-13T20:13:39.373668261Z" level=info msg="metadata content store policy set" policy=shared sandbox.go:190: time="2025-01-13T20:13:39.376280814Z" level=info msg="loading plugin \"io.containerd.differ.v1.walking\"..." type=io.containerd.differ.v1 sandbox.go:190: time="2025-01-13T20:13:39.376323725Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:190: time="2025-01-13T20:13:39.376347850Z" level=info msg="l

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (containerd-1.6, ./frontend/dockerfile, integration)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.6/frontend=client

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.6/frontend=client === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.6/frontend=client === CONT TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.6/frontend=client dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.6/frontend=client sandbox.go:187: stdout: /usr/bin/buildkitd --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr /tmp/bktest_containerd2388366776/containerd.sock --containerd-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker=false --config=/tmp/bktest_config3092120526/buildkitd.toml --root /tmp/bktest_buildkitd142807439 --addr unix:///tmp/bktest_buildkitd142807439/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd142807439/buildkitd-debug.sock --debug sandbox.go:187: stderr: /usr/bin/buildkitd --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr /tmp/bktest_containerd2388366776/containerd.sock --containerd-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker=false --config=/tmp/bktest_config3092120526/buildkitd.toml --root /tmp/bktest_buildkitd142807439 --addr unix:///tmp/bktest_buildkitd142807439/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd142807439/buildkitd-debug.sock --debug sandbox.go:190: > StartCmd 2025-01-13 20:13:38.605370625 +0000 UTC m=+41.240905665 /usr/bin/buildkitd --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr /tmp/bktest_containerd2388366776/containerd.sock --containerd-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker=false --config=/tmp/bktest_config3092120526/buildkitd.toml --root /tmp/bktest_buildkitd142807439 --addr unix:///tmp/bktest_buildkitd142807439/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd142807439/buildkitd-debug.sock --debug sandbox.go:190: time="2025-01-13T20:13:38Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd142807439/buildkitd-debug.sock" sandbox.go:190: time="2025-01-13T20:13:38Z" level=debug msg="could not read \"/tmp/bktest_buildkitd142807439/net/cni\" for cleanup: open /tmp/bktest_buildkitd142807439/net/cni: no such file or directory" sandbox.go:190: time="2025-01-13T20:13:38Z" level=debug msg="creating new network namespace cbghnozqh9nw6vx0aqrz3zp4w" sandbox.go:190: time="2025-01-13T20:13:38Z" level=debug msg="finished creating network namespace cbghnozqh9nw6vx0aqrz3zp4w" sandbox.go:190: time="2025-01-13T20:13:38Z" level=debug msg="finished setting up network namespace cbghnozqh9nw6vx0aqrz3zp4w" sandbox.go:190: time="2025-01-13T20:13:38Z" level=debug msg="remote introspection plugin filters" filters="[type==io.containerd.runtime.v1 type==io.containerd.runtime.v2]" sandbox.go:190: time="2025-01-13T20:13:38Z" level=info msg="found worker \"khk2iqpk1l2c152rr1g2la2sb\", labels=map[org.mobyproject.buildkit.worker.containerd.namespace:buildkit org.mobyproject.buildkit.worker.containerd.uuid:1d95c46f-c0ba-46b0-9999-508855227d81 org.mobyproject.buildkit.worker.executor:containerd org.mobyproject.buildkit.worker.hostname:1d5c67a72054 org.mobyproject.buildkit.worker.network:cni 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 linu

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (containerd, ./frontend/dockerfile, integration)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=containerd/frontend=builtin

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=containerd/frontend=builtin === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=containerd/frontend=builtin === CONT TestIntegration/TestPlatformWithOSVersion/worker=containerd/frontend=builtin dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=containerd/frontend=builtin sandbox.go:187: stderr: /usr/bin/buildkitd --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr /tmp/bktest_containerd1204887953/containerd.sock --containerd-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker=false --config=/tmp/bktest_config453992967/buildkitd.toml --root /tmp/bktest_buildkitd4117581418 --addr unix:///tmp/bktest_buildkitd4117581418/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd4117581418/buildkitd-debug.sock --debug sandbox.go:190: > StartCmd 2025-01-13 20:13:24.037478725 +0000 UTC m=+26.088188723 /usr/bin/buildkitd --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr /tmp/bktest_containerd1204887953/containerd.sock --containerd-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker=false --config=/tmp/bktest_config453992967/buildkitd.toml --root /tmp/bktest_buildkitd4117581418 --addr unix:///tmp/bktest_buildkitd4117581418/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd4117581418/buildkitd-debug.sock --debug sandbox.go:190: time="2025-01-13T20:13:24Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd4117581418/buildkitd-debug.sock" sandbox.go:190: time="2025-01-13T20:13:24Z" level=debug msg="could not read \"/tmp/bktest_buildkitd4117581418/net/cni\" for cleanup: open /tmp/bktest_buildkitd4117581418/net/cni: no such file or directory" sandbox.go:190: time="2025-01-13T20:13:24Z" level=debug msg="creating new network namespace sw2ao41s93xagcdk7z8g4tj6o" sandbox.go:190: time="2025-01-13T20:13:24Z" level=debug msg="finished creating network namespace sw2ao41s93xagcdk7z8g4tj6o" sandbox.go:190: time="2025-01-13T20:13:24Z" level=debug msg="finished setting up network namespace sw2ao41s93xagcdk7z8g4tj6o" sandbox.go:190: time="2025-01-13T20:13:24Z" level=debug msg="remote introspection plugin filters" filters="[type==io.containerd.runtime.v1 type==io.containerd.runtime.v2]" sandbox.go:190: time="2025-01-13T20:13:24Z" level=info msg="found worker \"j16fvcy1hbeixc7jot6we6da8\", labels=map[org.mobyproject.buildkit.worker.containerd.namespace:buildkit org.mobyproject.buildkit.worker.containerd.uuid:7cd74bb4-ca6f-45ec-b84a-0cb0e047a42a org.mobyproject.buildkit.worker.executor:containerd org.mobyproject.buildkit.worker.hostname:054969b9576c org.mobyproject.buildkit.worker.network:cni org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]" sandbox.go:190: time="2025-01-13T20:13:24Z" level=info msg="found 1 workers, default=\"j16fvcy1hbeixc7jot6we6da8\"" sandbox.go:190: time="2025-01-13T20:13:24Z" level=warning msg="currently, only the default worker can be used." sandbox.go:190: time="2025-01-13T20:13:24Z" level=info msg="running server on /tmp/bktest_buildkitd4117581418/buildkitd.sock" sandbox.go:190: time="2025-01-13T20:13:24Z" level=debug msg="resolve exporter local w

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (containerd, ./frontend/dockerfile, integration)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=containerd/frontend=client

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=containerd/frontend=client === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=containerd/frontend=client === CONT TestIntegration/TestPlatformWithOSVersion/worker=containerd/frontend=client dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=containerd/frontend=client sandbox.go:187: stdout: /usr/bin/containerd --config /tmp/bktest_containerd1273034128/config.toml sandbox.go:187: stderr: /usr/bin/containerd --config /tmp/bktest_containerd1273034128/config.toml sandbox.go:190: > StartCmd 2025-01-13 20:13:23.759479036 +0000 UTC m=+25.810189044 /usr/bin/containerd --config /tmp/bktest_containerd1273034128/config.toml sandbox.go:190: time="2025-01-13T20:13:23.776131672Z" level=info msg="starting containerd" revision= version=2.0.0+unknown sandbox.go:190: time="2025-01-13T20:13:23.785407662Z" level=warning msg="Configuration migrated from version 2, use `containerd config migrate` to avoid migration" t="3.236µs" sandbox.go:190: time="2025-01-13T20:13:23.785465620Z" level=info msg="loading plugin" id=io.containerd.image-verifier.v1.bindir type=io.containerd.image-verifier.v1 sandbox.go:190: time="2025-01-13T20:13:23.785489885Z" level=info msg="loading plugin" id=io.containerd.internal.v1.opt type=io.containerd.internal.v1 sandbox.go:190: time="2025-01-13T20:13:23.785542142Z" level=info msg="loading plugin" id=io.containerd.warning.v1.deprecations type=io.containerd.warning.v1 sandbox.go:190: time="2025-01-13T20:13:23.785563422Z" level=info msg="loading plugin" id=io.containerd.content.v1.content type=io.containerd.content.v1 sandbox.go:190: time="2025-01-13T20:13:23.785593698Z" level=info msg="loading plugin" id=io.containerd.snapshotter.v1.blockfile type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:23.785843911Z" level=info msg="skip loading plugin" error="no scratch file generator: skip plugin" id=io.containerd.snapshotter.v1.blockfile type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:23.785865441Z" level=info msg="loading plugin" id=io.containerd.snapshotter.v1.devmapper type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:23.785879517Z" level=info msg="skip loading plugin" error="devmapper not configured: skip plugin" id=io.containerd.snapshotter.v1.devmapper type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:23.785891699Z" level=info msg="loading plugin" id=io.containerd.snapshotter.v1.native type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:23.785999059Z" level=info msg="loading plugin" id=io.containerd.snapshotter.v1.overlayfs type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:23.786273268Z" level=info msg="loading plugin" id=io.containerd.snapshotter.v1.zfs type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:23.786315197Z" level=info msg="skip loading plugin" error="lstat /tmp/bktest_containerd1273034128/root/io.containerd.snapshotter.v1.zfs: no such file or directory: skip plugin" id=io.containerd.snapshotter.v1.zfs type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:13:23.786329974Z" level=info msg="loading plugin" id=io.containerd.event.v1.exchange type=io.containerd.event.v1 sandbox.go:190: time="2025-01-13T20:13:23.786552670Z" level=info msg="loading plugin" id=io.containerd.monitor.task.v1.cgroups type=io

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (oci-rootless, ./frontend/dockerfile, dockerfile)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=oci-rootless/frontend=gateway

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=oci-rootless/frontend=gateway === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=oci-rootless/frontend=gateway === CONT TestIntegration/TestPlatformWithOSVersion/worker=oci-rootless/frontend=gateway dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=oci-rootless/frontend=gateway sandbox.go:187: stderr: /usr/bin/sudo -u #1000 -i -- exec rootlesskit buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config4249787993/buildkitd.toml --root /tmp/bktest_buildkitd2408888690 --addr unix:///tmp/bktest_buildkitd2408888690/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd2408888690/buildkitd-debug.sock --debug sandbox.go:190: > StartCmd 2025-01-13 20:18:25.8800503 +0000 UTC m=+7.543407873 /usr/bin/sudo -u #1000 -i -- exec rootlesskit buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config4249787993/buildkitd.toml --root /tmp/bktest_buildkitd2408888690 --addr unix:///tmp/bktest_buildkitd2408888690/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd2408888690/buildkitd-debug.sock --debug sandbox.go:190: warning: GOCOVERDIR not set, no coverage data emitted sandbox.go:190: time="2025-01-13T20:18:25Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd2408888690/buildkitd-debug.sock" sandbox.go:190: time="2025-01-13T20:18:25Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:190: time="2025-01-13T20:18:25Z" level=debug msg="running in rootless mode" sandbox.go:190: time="2025-01-13T20:18:26Z" level=info msg="found worker \"jde4bm5oiknzqnh89tz71whh5\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:639db0f651a2 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]" sandbox.go:190: time="2025-01-13T20:18:26Z" level=info msg="found 1 workers, default=\"jde4bm5oiknzqnh89tz71whh5\"" sandbox.go:190: time="2025-01-13T20:18:26Z" level=warning msg="currently, only the default worker can be used." sandbox.go:190: time="2025-01-13T20:18:26Z" level=info msg="running server on /tmp/bktest_buildkitd2408888690/buildkitd.sock" sandbox.go:190: time="2025-01-13T20:18:26Z" level=debug msg="session started" spanID=e98622e59df54f98 traceID=da2409c5fb5f4e41198ba23c3ee36a0f sandbox.go:190: time="2025-01-13T20:18:26Z" level=debug msg="resolve exporter local with map[]" spanID=b735608b0059b17f traceID=d6de99969db1a94629df8c7e70d614a1 sandbox.go:190: time="2025-01-13T20:18:26Z" level=debug msg="resolve exporter image with map[name:localhost:34739/buildkit/testplatformwithosversion:latest push:true]" spanID=b735608b0059b17f traceID=d6de99969db1a94629df8c7e70d614a1 sandbox.go:190: time="2025-01-13T20:18:26Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/buildkit_test/5xkhu852iv8t0edu8ysnmpjvq::pull" name=docker.io/buildkit_test/5xkhu852iv8t0edu8ysnmp

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (oci-rootless-slirp4netns-detachnetns, ./frontend/dockerfile, dockerfile)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway === CONT TestIntegration/TestPlatformWithOSVersion/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway sandbox.go:187: stdout: /usr/bin/sudo -u #1000 -i -- exec rootlesskit --net=slirp4netns --copy-up=/etc --disable-host-loopback --detach-netns buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config1143044108/buildkitd.toml --root /tmp/bktest_buildkitd4216390946 --addr unix:///tmp/bktest_buildkitd4216390946/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd4216390946/buildkitd-debug.sock --debug sandbox.go:187: stderr: /usr/bin/sudo -u #1000 -i -- exec rootlesskit --net=slirp4netns --copy-up=/etc --disable-host-loopback --detach-netns buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config1143044108/buildkitd.toml --root /tmp/bktest_buildkitd4216390946 --addr unix:///tmp/bktest_buildkitd4216390946/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd4216390946/buildkitd-debug.sock --debug sandbox.go:190: > StartCmd 2025-01-13 20:18:30.398739318 +0000 UTC m=+8.086623461 /usr/bin/sudo -u #1000 -i -- exec rootlesskit --net=slirp4netns --copy-up=/etc --disable-host-loopback --detach-netns buildkitd --oci-worker=true --containerd-worker=false --oci-worker-gc=false --oci-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=/tmp/bktest_config1143044108/buildkitd.toml --root /tmp/bktest_buildkitd4216390946 --addr unix:///tmp/bktest_buildkitd4216390946/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd4216390946/buildkitd-debug.sock --debug sandbox.go:190: warning: GOCOVERDIR not set, no coverage data emitted sandbox.go:190: time="2025-01-13T20:18:30Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd4216390946/buildkitd-debug.sock" sandbox.go:190: time="2025-01-13T20:18:30Z" level=info msg="auto snapshotter: using overlayfs" sandbox.go:190: time="2025-01-13T20:18:30Z" level=debug msg="running in rootless mode" sandbox.go:190: time="2025-01-13T20:18:30Z" level=info msg="found worker \"hd09chlwlwzreddbhdx32lkpy\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:90de18196206 org.mobyproject.buildkit.worker.network:host org.mobyproject.buildkit.worker.oci.process-mode:sandbox org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:overlayfs], platforms=[linux/amd64 linux/amd64/v2 linux/amd64/v3 linux/arm64 linux/riscv64 linux/ppc64le linux/s390x linux/386 linux/arm/v7 linux/arm/v6]" sandbox.go:190: time="2025-01-13T20:18:30Z" level=info msg="found 1 workers, default=\"hd09chlwlwzreddbhdx32lkpy\"" sandbox.go:190: time="2025-01-13T20:18:30Z" level=warning msg="currently, only the default worker can be used." sandbox.go:190: time="2025-01-13T20:18:30Z" level=info msg="running server on /tmp/bktest_buildkitd4216390946/buildkitd.sock" sandbox.go:190: t

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (containerd-1.7, ./frontend/dockerfile, integration)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.7/frontend=client

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.7/frontend=client === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.7/frontend=client === CONT TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.7/frontend=client dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.7/frontend=client sandbox.go:187: stdout: /opt/containerd-alt-17/bin/containerd --config /tmp/bktest_containerd1973837527/config.toml sandbox.go:187: stderr: /opt/containerd-alt-17/bin/containerd --config /tmp/bktest_containerd1973837527/config.toml sandbox.go:190: > StartCmd 2025-01-13 20:18:12.074216864 +0000 UTC m=+16.680711310 /opt/containerd-alt-17/bin/containerd --config /tmp/bktest_containerd1973837527/config.toml sandbox.go:190: time="2025-01-13T20:18:12.113509253Z" level=info msg="starting containerd" revision=57f17b0a6295a39009d861b89e3b3b87b005ca27 version=v1.7.23 sandbox.go:190: time="2025-01-13T20:18:12.149826201Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:190: time="2025-01-13T20:18:12.149861738Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1 sandbox.go:190: time="2025-01-13T20:18:12.149904808Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1 sandbox.go:190: time="2025-01-13T20:18:12.149921258Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:12.150001528Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." error="no scratch file generator: skip plugin" type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:12.150017918Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:12.150034609Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." error="devmapper not configured: skip plugin" type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:12.150046712Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:12.150148351Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:12.150369603Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:12.153260017Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.aufs\"..." error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: can't change directory to '/lib/modules': No such file or directory\\n\"): skip plugin" type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:12.153290504Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:12.153503170Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /tmp/bktest_containerd1973837527/root/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plu

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (containerd-1.7, ./frontend/dockerfile, integration)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.7/frontend=builtin

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.7/frontend=builtin === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.7/frontend=builtin === CONT TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.7/frontend=builtin dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.7/frontend=builtin sandbox.go:187: stdout: /opt/containerd-alt-17/bin/containerd --config /tmp/bktest_containerd411275555/config.toml sandbox.go:187: stderr: /opt/containerd-alt-17/bin/containerd --config /tmp/bktest_containerd411275555/config.toml sandbox.go:190: > StartCmd 2025-01-13 20:18:11.915058569 +0000 UTC m=+16.521552994 /opt/containerd-alt-17/bin/containerd --config /tmp/bktest_containerd411275555/config.toml sandbox.go:190: time="2025-01-13T20:18:11.940934941Z" level=info msg="starting containerd" revision=57f17b0a6295a39009d861b89e3b3b87b005ca27 version=v1.7.23 sandbox.go:190: time="2025-01-13T20:18:11.991550361Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:190: time="2025-01-13T20:18:11.991588603Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1 sandbox.go:190: time="2025-01-13T20:18:11.991656779Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1 sandbox.go:190: time="2025-01-13T20:18:11.991677418Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:11.991767566Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." error="no scratch file generator: skip plugin" type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:11.991786942Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:11.991804344Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." error="devmapper not configured: skip plugin" type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:11.991816687Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:11.991978378Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:11.992278577Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:11.995221517Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.aufs\"..." error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: can't change directory to '/lib/modules': No such file or directory\\n\"): skip plugin" type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:11.995251873Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:11.995454982Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /tmp/bktest_containerd411275555/root/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plu

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (containerd-1.7, ./frontend/dockerfile, dockerfile)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.7/frontend=gateway

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.7/frontend=gateway === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.7/frontend=gateway === CONT TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.7/frontend=gateway dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.7/frontend=gateway sandbox.go:187: stdout: /opt/containerd-alt-17/bin/containerd --config /tmp/bktest_containerd726269692/config.toml sandbox.go:187: stderr: /opt/containerd-alt-17/bin/containerd --config /tmp/bktest_containerd726269692/config.toml sandbox.go:190: > StartCmd 2025-01-13 20:19:33.251069026 +0000 UTC m=+82.837110153 /opt/containerd-alt-17/bin/containerd --config /tmp/bktest_containerd726269692/config.toml sandbox.go:190: time="2025-01-13T20:19:33.277854327Z" level=info msg="starting containerd" revision=57f17b0a6295a39009d861b89e3b3b87b005ca27 version=v1.7.23 sandbox.go:190: time="2025-01-13T20:19:33.311264154Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1 sandbox.go:190: time="2025-01-13T20:19:33.311291776Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1 sandbox.go:190: time="2025-01-13T20:19:33.311375914Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1 sandbox.go:190: time="2025-01-13T20:19:33.311395921Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:19:33.311494195Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." error="no scratch file generator: skip plugin" type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:19:33.311513301Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:19:33.311529892Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." error="devmapper not configured: skip plugin" type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:19:33.311541935Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:19:33.311735227Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:19:33.312043546Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:19:33.313034925Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.aufs\"..." error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: can't change directory to '/lib/modules': No such file or directory\\n\"): skip plugin" type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:19:33.313101279Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:19:33.313338965Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /tmp/bktest_containerd726269692/root/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plu

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (containerd-1.6, ./frontend/dockerfile, dockerfile)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.6/frontend=gateway

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.6/frontend=gateway === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.6/frontend=gateway === CONT TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.6/frontend=gateway dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=containerd-1.6/frontend=gateway sandbox.go:187: stdout: /opt/containerd-alt-16/bin/containerd --config /tmp/bktest_containerd778689832/config.toml sandbox.go:187: stderr: /opt/containerd-alt-16/bin/containerd --config /tmp/bktest_containerd778689832/config.toml sandbox.go:190: > StartCmd 2025-01-13 20:18:55.135142445 +0000 UTC m=+38.123133020 /opt/containerd-alt-16/bin/containerd --config /tmp/bktest_containerd778689832/config.toml sandbox.go:190: time="2025-01-13T20:18:55.158819186Z" level=info msg="starting containerd" revision=88c3d9bc5b5a193f40b7c14fa996d23532d6f956 version=v1.6.36 sandbox.go:190: time="2025-01-13T20:18:55.181657867Z" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1 sandbox.go:190: time="2025-01-13T20:18:55.181823436Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:55.181864974Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured" sandbox.go:190: time="2025-01-13T20:18:55.181887005Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:55.181986611Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:55.182219776Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:55.182986414Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.aufs\"..." error="aufs is not supported (modprobe aufs failed: exit status 1 \"modprobe: can't change directory to '/lib/modules': No such file or directory\\n\"): skip plugin" type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:55.183009928Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:55.183195073Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /tmp/bktest_containerd778689832/root/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1 sandbox.go:190: time="2025-01-13T20:18:55.183213317Z" level=info msg="loading plugin \"io.containerd.metadata.v1.bolt\"..." type=io.containerd.metadata.v1 sandbox.go:190: time="2025-01-13T20:18:55.183277206Z" level=warning msg="could not use snapshotter devmapper in metadata plugin" error="devmapper not configured" sandbox.go:190: time="2025-01-13T20:18:55.183293587Z" level=info msg="metadata content store policy set" policy=shared sandbox.go:190: time="2025-01-13T20:18:55.185212560Z" level=info msg="loading plugin \"io.containerd.differ.v1.walking\"..." type=io.containerd.differ.v1 sandbox.go:190: time="2025-01-13T20:18:55.185249449Z" level=info msg="loading plugin \"io.containerd.event.v1.ex

Check failure on line 9564 in frontend/dockerfile/dockerfile_test.go

View workflow job for this annotation

GitHub Actions / test / run (containerd, ./frontend/dockerfile, dockerfile)

Failed: frontend/dockerfile/TestIntegration/TestPlatformWithOSVersion/worker=containerd/frontend=gateway

=== RUN TestIntegration/TestPlatformWithOSVersion/worker=containerd/frontend=gateway === PAUSE TestIntegration/TestPlatformWithOSVersion/worker=containerd/frontend=gateway === CONT TestIntegration/TestPlatformWithOSVersion/worker=containerd/frontend=gateway dockerfile_test.go:9564: Error Trace: /src/frontend/dockerfile/dockerfile_test.go:9564 /src/util/testutil/integration/run.go:98 /src/util/testutil/integration/run.go:212 Error: Not equal: expected: "1.1.0\n" actual : "1.2.3\n" Diff: --- Expected +++ Actual @@ -1,2 +1,2 @@ -1.1.0 +1.2.3 Test: TestIntegration/TestPlatformWithOSVersion/worker=containerd/frontend=gateway sandbox.go:187: stdout: /usr/bin/buildkitd --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr /tmp/bktest_containerd3058962477/containerd.sock --containerd-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker=false --config=/tmp/bktest_config553990093/buildkitd.toml --root /tmp/bktest_buildkitd774883957 --addr unix:///tmp/bktest_buildkitd774883957/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd774883957/buildkitd-debug.sock --debug sandbox.go:187: stderr: /usr/bin/buildkitd --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr /tmp/bktest_containerd3058962477/containerd.sock --containerd-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker=false --config=/tmp/bktest_config553990093/buildkitd.toml --root /tmp/bktest_buildkitd774883957 --addr unix:///tmp/bktest_buildkitd774883957/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd774883957/buildkitd-debug.sock --debug sandbox.go:190: > StartCmd 2025-01-13 20:19:23.351282033 +0000 UTC m=+63.884912816 /usr/bin/buildkitd --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr /tmp/bktest_containerd3058962477/containerd.sock --containerd-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --oci-worker=false --config=/tmp/bktest_config553990093/buildkitd.toml --root /tmp/bktest_buildkitd774883957 --addr unix:///tmp/bktest_buildkitd774883957/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd774883957/buildkitd-debug.sock --debug sandbox.go:190: time="2025-01-13T20:19:23Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd774883957/buildkitd-debug.sock" sandbox.go:190: time="2025-01-13T20:19:23Z" level=debug msg="could not read \"/tmp/bktest_buildkitd774883957/net/cni\" for cleanup: open /tmp/bktest_buildkitd774883957/net/cni: no such file or directory" sandbox.go:190: time="2025-01-13T20:19:23Z" level=debug msg="creating new network namespace opnmyt8gelw3nrls2gn6wzw79" sandbox.go:190: time="2025-01-13T20:19:23Z" level=debug msg="finished creating network namespace opnmyt8gelw3nrls2gn6wzw79" sandbox.go:190: time="2025-01-13T20:19:23Z" level=debug msg="finished setting up network namespace opnmyt8gelw3nrls2gn6wzw79" sandbox.go:190: time="2025-01-13T20:19:23Z" level=debug msg="remote introspection plugin filters" filters="[type==io.containerd.runtime.v1 type==io.containerd.runtime.v2]" sandbox.go:190: time="2025-01-13T20:19:23Z" level=info msg="found worker \"u6i242ivr3fzjq1cno8ht4yiq\", labels=map[org.mobyproject.buildkit.worker.containerd.namespace:buildkit org.mobyproject.buildkit.worker.containerd.uuid:32957138-bb3a-40c0-90a0-ee983efa9a13 org.mobyproject.buildkit.worker.executor:containerd org.mobyproject.buildkit.worker.hostname:3dd5b57c5647 org.mobyproject.buildkit.worker.network:cni 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/3
}

func runShell(dir string, cmds ...string) error {
for _, args := range cmds {
var cmd *exec.Cmd
Expand Down
2 changes: 1 addition & 1 deletion frontend/dockerui/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ func (bc *Client) Build(ctx context.Context, fn BuildFunc) (*ResultBuilder, erro
}

p = platforms.Normalize(p)
k := platforms.Format(p)
k := platforms.FormatAll(p)

if bc.MultiPlatformRequested {
res.AddRef(k, ref)
Expand Down
2 changes: 1 addition & 1 deletion frontend/dockerui/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ func (bc *Client) NamedContext(ctx context.Context, name string, opt ContextOpt)
if opt.Platform != nil {
pp = *opt.Platform
}
pname := name + "::" + platforms.Format(platforms.Normalize(pp))
pname := name + "::" + platforms.FormatAll(platforms.Normalize(pp))
st, img, err := bc.namedContext(ctx, name, pname, opt)
if err != nil || st != nil {
return st, img, err
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require (
github.com/containerd/go-runc v1.1.0
github.com/containerd/log v0.1.0
github.com/containerd/nydus-snapshotter v0.14.0
github.com/containerd/platforms v0.2.1
github.com/containerd/platforms v1.0.0-rc.1
github.com/containerd/stargz-snapshotter v0.15.1
github.com/containerd/stargz-snapshotter/estargz v0.15.1
github.com/containerd/typeurl/v2 v2.2.3
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ github.com/containerd/log v0.1.0 h1:TCJt7ioM2cr/tfR8GPbGf9/VRAX8D2B4PjzCpfX540I=
github.com/containerd/log v0.1.0/go.mod h1:VRRf09a7mHDIRezVKTRCrOq78v577GXq3bSa3EhrzVo=
github.com/containerd/nydus-snapshotter v0.14.0 h1:6/eAi6d7MjaeLLuMO8Udfe5GVsDudmrDNO4SGETMBco=
github.com/containerd/nydus-snapshotter v0.14.0/go.mod h1:TT4jv2SnIDxEBu4H2YOvWQHPOap031ydTaHTuvc5VQk=
github.com/containerd/platforms v0.2.1 h1:zvwtM3rz2YHPQsF2CHYM8+KtB5dvhISiXh5ZpSBQv6A=
github.com/containerd/platforms v0.2.1/go.mod h1:XHCb+2/hzowdiut9rkudds9bE5yJ7npe7dG/wG+uFPw=
github.com/containerd/platforms v1.0.0-rc.1 h1:83KIq4yy1erSRgOVHNk1HYdPvzdJ5CnsWaRoJX4C41E=
github.com/containerd/platforms v1.0.0-rc.1/go.mod h1:J71L7B+aiM5SdIEqmd9wp6THLVRzJGXfNuWCZCllLA4=
github.com/containerd/stargz-snapshotter v0.15.1 h1:fpsP4kf/Z4n2EYnU0WT8ZCE3eiKDwikDhL6VwxIlgeA=
github.com/containerd/stargz-snapshotter v0.15.1/go.mod h1:74D+J1m1RMXytLmWxegXWhtOSRHPWZKpKc2NdK3S+us=
github.com/containerd/stargz-snapshotter/estargz v0.15.1 h1:eXJjw9RbkLFgioVaTG+G/ZW/0kEe2oEKCdS/ZxIyoCU=
Expand Down
4 changes: 2 additions & 2 deletions solver/llbsolver/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,9 @@ func (b *llbBridge) ResolveSourceMetadata(ctx context.Context, op *pb.SourceOp,
}
id := op.Identifier
if opt.Platform != nil {
id += platforms.Format(*opt.Platform)
id += platforms.FormatAll(*opt.Platform)
} else {
id += platforms.Format(platforms.DefaultSpec())
id += platforms.FormatAll(platforms.DefaultSpec())
}
pol, err := loadSourcePolicy(b.builder)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion source/containerimage/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ func (is *Source) ResolveImageConfig(ctx context.Context, ref string, opt source
err error
)
if platform := opt.Platform; platform != nil {
key += platforms.Format(*platform)
key += platforms.FormatAll(*platform)
}

switch is.ResolverType {
Expand Down
Loading

0 comments on commit 3713196

Please sign in to comment.