Support OS version in platform string #5194
Annotations
6 errors
Generate annotations:
frontend/dockerfile/run.go#L273
=== RUN TestIntegration
run.go:273: copied docker.io/amd64/busybox:latest@sha256:023917ec6a886d0e8e15f28fb543515a5fcd8d938edb091e8147db4efed388ee to local mirror localhost:33835/library/busybox:latest
time="2025-01-13T20:18:18Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:33835"
run.go:273: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:33835/library/alpine:latest
time="2025-01-13T20:18:19Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:33835"
run.go:273: copied local:/mainline.tar to local mirror localhost:33835/buildkit_test/5xkhu852iv8t0edu8ysnmpjvq:latest
run.go:273: copied docker.io/amd64/debian:bullseye-20230109-slim@sha256:1acb06a0c31fb467eb8327ad361f1091ab265e0bf26d452dea45dcb0c0ea5e75 to local mirror localhost:42021/amd64/bullseye-20230109-slim:latest
--- FAIL: TestIntegration (0.04s)
|
Generate annotations:
frontend/dockerfile/dockerfile_test.go#L9564
=== 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
|
Generate annotations:
frontend/dockerfile/sandbox.go#L187
=== RUN TestIntegration/TestUndeclaredArg/worker=oci-rootless/frontend=gateway
=== PAUSE TestIntegration/TestUndeclaredArg/worker=oci-rootless/frontend=gateway
=== CONT TestIntegration/TestUndeclaredArg/worker=oci-rootless/frontend=gateway
sandbox.go:187: stdout: /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_config1044370434/buildkitd.toml --root /tmp/bktest_buildkitd1194194078 --addr unix:///tmp/bktest_buildkitd1194194078/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd1194194078/buildkitd-debug.sock --debug
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_config1044370434/buildkitd.toml --root /tmp/bktest_buildkitd1194194078 --addr unix:///tmp/bktest_buildkitd1194194078/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd1194194078/buildkitd-debug.sock --debug
sandbox.go:190: > StartCmd 2025-01-13 20:19:16.850027708 +0000 UTC m=+58.513385282 /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_config1044370434/buildkitd.toml --root /tmp/bktest_buildkitd1194194078 --addr unix:///tmp/bktest_buildkitd1194194078/buildkitd.sock --debugaddr unix:///tmp/bktest_buildkitd1194194078/buildkitd-debug.sock --debug
sandbox.go:190: warning: GOCOVERDIR not set, no coverage data emitted
sandbox.go:190: time="2025-01-13T20:19:16Z" level=debug msg="debug handlers listening at unix:///tmp/bktest_buildkitd1194194078/buildkitd-debug.sock"
sandbox.go:190: time="2025-01-13T20:19:16Z" level=info msg="auto snapshotter: using overlayfs"
sandbox.go:190: time="2025-01-13T20:19:16Z" level=debug msg="running in rootless mode"
sandbox.go:190: time="2025-01-13T20:19:16Z" level=info msg="found worker \"l0g7bhjh0okdfdc418brlpcoe\", 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:19:17Z" level=info msg="found 1 workers, default=\"l0g7bhjh0okdfdc418brlpcoe\""
sandbox.go:190: time="2025-01-13T20:19:17Z" level=warning msg="currently, only the default worker can be used."
sandbox.go:190: time="2025-01-13T20:19:17Z" level=info msg="running server on /tmp/bktest_buildkitd1194194078/buildkitd.sock"
sandbox.go:190: time="2025-01-13T20:19:17Z" level=debug msg="session started" spanID=56d8ed0795b83087 traceID=9939aa5bc6491707545a860e67b19988
sandbox.go:190: time="2025-01-13T20:19:17Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/buildkit_test/5xkhu852iv8t0edu8ysnmpjvq::pull" name=docker.io/buildkit_test/5xkhu852iv8t0edu8ysnmpjvq scope=pull
sandbox.go:190: time="2025-01-13T20:19:17Z" level=debug msg=resolving span="resolving docker.io/buildkit_test/5xkhu852iv8t0edu8ysnmpjvq:latest" spanID=32a9b866dcd66a21 traceID=b1e305793f1b44e348cb8358e0c02ef0
sandbox.go:190: time="2025-01-13T20:19:17Z" level=debug msg="do request" 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.0.0+unknown request.method=HEAD span="resolving docker.io/buildkit_test/5xkhu852iv8t0edu8ysnmpjvq:
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1645
=== RUN TestIntegration/TestUndeclaredArg/worker=oci-rootless/frontend=gateway/warntype=progress#07
dockerfile_lint_test.go:1645:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1572
/src/frontend/dockerfile/dockerfile_lint_test.go:1645
Error: Error message not equal:
expected: "failed to solve: failed to parse platform linux/${MYARCH}: \"\" is an invalid component of \"linux/\": platform specifier component must match \"^[A-Za-z0-9_-]+$\": invalid argument (did you mean MY_ARCH?)"
actual : "failed to solve: failed to parse platform linux/${MYARCH}: \"\" is an invalid component of \"linux/\": platform specifier component must match \"^[A-Za-z0-9_.-]+$\": invalid argument (did you mean MY_ARCH?)"
Test: TestIntegration/TestUndeclaredArg/worker=oci-rootless/frontend=gateway/warntype=progress#07
--- FAIL: TestIntegration/TestUndeclaredArg/worker=oci-rootless/frontend=gateway/warntype=progress#07 (0.14s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1478
=== RUN TestIntegration/TestUndeclaredArg/worker=oci-rootless/frontend=gateway/warntype=unmarshal#07
dockerfile_lint_test.go:1478:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1478
/src/frontend/gateway/grpcclient/client.go:215
/src/client/build.go:58
/src/client/solve.go:295
/src/vendor/golang.org/x/sync/errgroup/errgroup.go:78
/usr/local/go/src/runtime/asm_amd64.s:1700
Error: Not equal:
expected: "failed to parse platform linux/${MYARCH}: \"\" is an invalid component of \"linux/\": platform specifier component must match \"^[A-Za-z0-9_-]+$\": invalid argument (did you mean MY_ARCH?)"
actual : "failed to parse platform linux/${MYARCH}: \"\" is an invalid component of \"linux/\": platform specifier component must match \"^[A-Za-z0-9_.-]+$\": invalid argument (did you mean MY_ARCH?)"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-failed to parse platform linux/${MYARCH}: "" is an invalid component of "linux/": platform specifier component must match "^[A-Za-z0-9_-]+$": invalid argument (did you mean MY_ARCH?)
+failed to parse platform linux/${MYARCH}: "" is an invalid component of "linux/": platform specifier component must match "^[A-Za-z0-9_.-]+$": invalid argument (did you mean MY_ARCH?)
Test: TestIntegration/TestUndeclaredArg/worker=oci-rootless/frontend=gateway/warntype=unmarshal#07
dockerfile_lint_test.go:1518:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1518
/src/frontend/dockerfile/dockerfile_lint_test.go:1649
Error: Should be true
Test: TestIntegration/TestUndeclaredArg/worker=oci-rootless/frontend=gateway/warntype=unmarshal#07
--- FAIL: TestIntegration/TestUndeclaredArg/worker=oci-rootless/frontend=gateway/warntype=unmarshal#07 (0.03s)
|
Test
Process completed with exit code 1.
|
Loading