Support OS version in platform string #5194
Annotations
6 errors and 1 warning
Generate annotations:
frontend/dockerfile/run.go#L273
=== RUN TestIntegration
run.go:273: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:44957/library/alpine:latest
time="2025-01-13T20:18:17Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:44957"
run.go:273: copied local:/mainline.tar to local mirror localhost:44957/buildkit_test/yrqa0zwng4ce3ggb59bqt45aq:latest
time="2025-01-13T20:18:17Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:44957"
run.go:273: copied docker.io/amd64/busybox:latest@sha256:023917ec6a886d0e8e15f28fb543515a5fcd8d938edb091e8147db4efed388ee to local mirror localhost:44957/library/busybox:latest
run.go:273: copied docker.io/amd64/debian:bullseye-20230109-slim@sha256:1acb06a0c31fb467eb8327ad361f1091ab265e0bf26d452dea45dcb0c0ea5e75 to local mirror localhost:37927/amd64/bullseye-20230109-slim:latest
--- FAIL: TestIntegration (0.03s)
|
Generate annotations:
frontend/dockerfile/dockerfile_test.go#L9564
=== 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
|
Generate annotations:
frontend/dockerfile/sandbox.go#L187
=== RUN TestIntegration/TestUndeclaredArg/worker=containerd-1.6/frontend=gateway
=== PAUSE TestIntegration/TestUndeclaredArg/worker=containerd-1.6/frontend=gateway
=== CONT TestIntegration/TestUndeclaredArg/worker=containerd-1.6/frontend=gateway
sandbox.go:187: stdout: /opt/containerd-alt-16/bin/containerd --config /tmp/bktest_containerd1118157233/config.toml
sandbox.go:187: stderr: /opt/containerd-alt-16/bin/containerd --config /tmp/bktest_containerd1118157233/config.toml
sandbox.go:190: > StartCmd 2025-01-13 20:18:39.12170037 +0000 UTC m=+22.109690956 /opt/containerd-alt-16/bin/containerd --config /tmp/bktest_containerd1118157233/config.toml
sandbox.go:190: time="2025-01-13T20:18:39.137645663Z" level=info msg="starting containerd" revision=88c3d9bc5b5a193f40b7c14fa996d23532d6f956 version=v1.6.36
sandbox.go:190: time="2025-01-13T20:18:39.151623974Z" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1
sandbox.go:190: time="2025-01-13T20:18:39.151767561Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1
sandbox.go:190: time="2025-01-13T20:18:39.151794933Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured"
sandbox.go:190: time="2025-01-13T20:18:39.151812094Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1
sandbox.go:190: time="2025-01-13T20:18:39.151904707Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1
sandbox.go:190: time="2025-01-13T20:18:39.152126511Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1
sandbox.go:190: time="2025-01-13T20:18:39.152892581Z" 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:39.152915003Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1
sandbox.go:190: time="2025-01-13T20:18:39.153120446Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /tmp/bktest_containerd1118157233/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:39.153138549Z" level=info msg="loading plugin \"io.containerd.metadata.v1.bolt\"..." type=io.containerd.metadata.v1
sandbox.go:190: time="2025-01-13T20:18:39.153205675Z" level=warning msg="could not use snapshotter devmapper in metadata plugin" error="devmapper not configured"
sandbox.go:190: time="2025-01-13T20:18:39.153223358Z" level=info msg="metadata content store policy set" policy=shared
sandbox.go:190: time="2025-01-13T20:18:39.155215272Z" level=info msg="loading plugin \"io.containerd.differ.v1.walking\"..." type=io.containerd.differ.v1
sandbox.go:190: time="2025-01-13T20:18:39.155234829Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:190: time="2025-01-13T20:18:39.155243425Z" level=info msg="loading plugin \"io.containerd.gc.v1.scheduler\"..." type=io.containerd.gc.v1
sandbox.go:190: time="2025-01-13T20:18:39.155274944Z" level=info msg="loading plugin \"io.containerd.runtime.v1.linux\"..." type=io.containerd.runtime.v1
sandbox.go:190: time="2025-01-13T20:18:39.155457885Z" level=info msg="loading plugin \"io.containerd.runtime.v2.task\"..." type=io.containerd.runtime.v2
sandbox.go:190: time="2025-01-13T20:18:39.155595922Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:190: time="2025-01-13T20:18:39.155
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1645
=== RUN TestIntegration/TestUndeclaredArg/worker=containerd-1.6/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=containerd-1.6/frontend=gateway/warntype=progress#07
--- FAIL: TestIntegration/TestUndeclaredArg/worker=containerd-1.6/frontend=gateway/warntype=progress#07 (0.26s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1478
=== RUN TestIntegration/TestUndeclaredArg/worker=containerd-1.6/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=containerd-1.6/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=containerd-1.6/frontend=gateway/warntype=unmarshal#07
--- FAIL: TestIntegration/TestUndeclaredArg/worker=containerd-1.6/frontend=gateway/warntype=unmarshal#07 (0.04s)
|
Test
Process completed with exit code 1.
|
Set up Docker Buildx
Failed to restore: Cache service responded with 429
|
Loading