frontend: update lint checks to use all args instead of non-nil args #4523
Annotations
11 errors
Generate annotations:
frontend/dockerfile/run.go#L272
=== RUN TestIntegration
run.go:272: copied docker.io/amd64/busybox:latest@sha256:023917ec6a886d0e8e15f28fb543515a5fcd8d938edb091e8147db4efed388ee to local mirror localhost:43913/library/busybox:latest
time="2024-10-04T22:28:07Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:43913"
run.go:272: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:43913/library/alpine:latest
time="2024-10-04T22:28:07Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:43913"
run.go:272: copied local:/mainline.tar to local mirror localhost:43913/buildkit_test/hyrkdc2t6cl4jz84eq3la25s3:latest
run.go:272: copied docker.io/amd64/debian:bullseye-20230109-slim@sha256:1acb06a0c31fb467eb8327ad361f1091ab265e0bf26d452dea45dcb0c0ea5e75 to local mirror localhost:35993/amd64/bullseye-20230109-slim:latest
--- FAIL: TestIntegration (0.04s)
|
Generate annotations:
frontend/dockerfile/sandbox.go#L135
=== RUN TestIntegration/TestUndeclaredArg/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway
=== PAUSE TestIntegration/TestUndeclaredArg/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway
=== CONT TestIntegration/TestUndeclaredArg/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway
sandbox.go:135: 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_config776854611/buildkitd.toml --root /tmp/bktest_buildkitd3870446637 --addr unix:///tmp/bktest_buildkitd3870446637/buildkitd.sock --debug
sandbox.go:135: 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_config776854611/buildkitd.toml --root /tmp/bktest_buildkitd3870446637 --addr unix:///tmp/bktest_buildkitd3870446637/buildkitd.sock --debug
sandbox.go:138: > StartCmd 2024-10-04 22:28:19.721655444 +0000 UTC m=+12.438478673 /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_config776854611/buildkitd.toml --root /tmp/bktest_buildkitd3870446637 --addr unix:///tmp/bktest_buildkitd3870446637/buildkitd.sock --debug
sandbox.go:138: warning: GOCOVERDIR not set, no coverage data emitted
sandbox.go:138: time="2024-10-04T22:28:19Z" level=warning msg="failed to get disk size: no such file or directory"
sandbox.go:138: time="2024-10-04T22:28:19Z" level=warning msg="failed to get disk size: no such file or directory"
sandbox.go:138: time="2024-10-04T22:28:19Z" level=info msg="auto snapshotter: using overlayfs"
sandbox.go:138: time="2024-10-04T22:28:19Z" level=debug msg="running in rootless mode"
sandbox.go:138: time="2024-10-04T22:28:19Z" level=info msg="found worker \"k9xb5ftgl6o4w1s3u8wkcgbrv\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:74f49d580a87 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:138: time="2024-10-04T22:28:19Z" level=info msg="found 1 workers, default=\"k9xb5ftgl6o4w1s3u8wkcgbrv\""
sandbox.go:138: time="2024-10-04T22:28:19Z" level=warning msg="currently, only the default worker can be used."
sandbox.go:138: time="2024-10-04T22:28:19Z" level=info msg="running server on /tmp/bktest_buildkitd3870446637/buildkitd.sock"
sandbox.go:138: time="2024-10-04T22:28:19Z" level=debug msg="session started" spanID=69aca8fe2e2a7040 traceID=6e4c82b9bcd899b2df02460d602e8b17
sandbox.go:138: time="2024-10-04T22:28:19Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/buildkit_test/hyrkdc2t6cl4jz84eq3la25s3::pull" name=docker.io/buildkit_test/hyrkdc2t6cl4jz84eq3la25s3 scope=pull
sandbox.go:138: time="2024-10-04T22:28:19Z" level=debug msg=resolving span="resolving docker.io/buildkit_test/hyrkdc2t6cl4jz84eq3la25s3:latest" spanID=0888e798e6d790e6 traceID=447506d2ea27b5985bab3e0a3c43b2b3
sandbox.go:138: time="2024-10-04T22:28:19Z" 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.ind
|
Generate annotations:
frontend/dockerfile/sandbox.go#L135
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway
=== PAUSE TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway
=== CONT TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway
sandbox.go:135: 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_config2025918252/buildkitd.toml --root /tmp/bktest_buildkitd3720774228 --addr unix:///tmp/bktest_buildkitd3720774228/buildkitd.sock --debug
sandbox.go:138: > StartCmd 2024-10-04 22:28:16.173259243 +0000 UTC m=+8.890082452 /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_config2025918252/buildkitd.toml --root /tmp/bktest_buildkitd3720774228 --addr unix:///tmp/bktest_buildkitd3720774228/buildkitd.sock --debug
sandbox.go:138: warning: GOCOVERDIR not set, no coverage data emitted
sandbox.go:138: time="2024-10-04T22:28:16Z" level=warning msg="failed to get disk size: no such file or directory"
sandbox.go:138: time="2024-10-04T22:28:16Z" level=warning msg="failed to get disk size: no such file or directory"
sandbox.go:138: time="2024-10-04T22:28:16Z" level=info msg="auto snapshotter: using overlayfs"
sandbox.go:138: time="2024-10-04T22:28:16Z" level=debug msg="running in rootless mode"
sandbox.go:138: time="2024-10-04T22:28:16Z" level=info msg="found worker \"rs7er65n2tszgutc482hrn0z0\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:74f49d580a87 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:138: time="2024-10-04T22:28:16Z" level=info msg="found 1 workers, default=\"rs7er65n2tszgutc482hrn0z0\""
sandbox.go:138: time="2024-10-04T22:28:16Z" level=warning msg="currently, only the default worker can be used."
sandbox.go:138: time="2024-10-04T22:28:16Z" level=info msg="running server on /tmp/bktest_buildkitd3720774228/buildkitd.sock"
sandbox.go:138: time="2024-10-04T22:28:16Z" level=debug msg="session started" spanID=82a782a7c9a7fd1a traceID=d4493371b6446a8017a4615c320877e2
sandbox.go:138: time="2024-10-04T22:28:16Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/buildkit_test/hyrkdc2t6cl4jz84eq3la25s3::pull" name=docker.io/buildkit_test/hyrkdc2t6cl4jz84eq3la25s3 scope=pull
sandbox.go:138: time="2024-10-04T22:28:16Z" level=debug msg=resolving span="resolving docker.io/buildkit_test/hyrkdc2t6cl4jz84eq3la25s3:latest" spanID=4aa1db222727ee1a traceID=87a570a9d3bcc847e6c2ffd39fd108ae
sandbox.go:138: time="2024-10-04T22:28:16Z" 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/hyrkdc2t6cl4jz84eq3la25s3:latest" spanID=4aa1db222727ee1a traceID=87a570a9d3bcc847e6c2ffd39fd108ae
sandbox.go:138: time="2024-10-04T22:28:16Z" level=debug msg="fetch response received" response.header.content-length=482 response.header.content-type=application/vnd.oci.image.manifest.v
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1554
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=progress
dockerfile_lint_test.go:1554: expected 1 warnings, received:
dockerfile_lint_test.go:1554:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1505
/src/frontend/dockerfile/dockerfile_lint_test.go:1554
Error: Not equal:
expected: 1
actual : 0
Test: TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=progress
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=progress (0.57s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1406
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=unmarshal
dockerfile_lint_test.go:1406:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1406
/src/frontend/gateway/grpcclient/client.go:216
/src/client/build.go:58
/src/client/solve.go:296
/src/vendor/golang.org/x/sync/errgroup/errgroup.go:78
/usr/local/go/src/runtime/asm_amd64.s:1695
Error: Not equal:
expected: 1
actual : 0
Test: TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=unmarshal
dockerfile_lint_test.go:1432:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1432
/src/frontend/dockerfile/dockerfile_lint_test.go:1558
Error: Should be true
Test: TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=unmarshal
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=unmarshal (0.05s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1554
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=progress#01
dockerfile_lint_test.go:1554: expected 1 warnings, received:
dockerfile_lint_test.go:1554:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1505
/src/frontend/dockerfile/dockerfile_lint_test.go:1554
Error: Not equal:
expected: 1
actual : 0
Test: TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=progress#01
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=progress#01 (0.20s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1406
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=unmarshal#01
dockerfile_lint_test.go:1406:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1406
/src/frontend/gateway/grpcclient/client.go:216
/src/client/build.go:58
/src/client/solve.go:296
/src/vendor/golang.org/x/sync/errgroup/errgroup.go:78
/usr/local/go/src/runtime/asm_amd64.s:1695
Error: Not equal:
expected: 1
actual : 0
Test: TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=unmarshal#01
dockerfile_lint_test.go:1432:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1432
/src/frontend/dockerfile/dockerfile_lint_test.go:1558
Error: Should be true
Test: TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=unmarshal#01
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=unmarshal#01 (0.05s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1554
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=progress#02
dockerfile_lint_test.go:1554: expected 1 warnings, received:
dockerfile_lint_test.go:1554:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1505
/src/frontend/dockerfile/dockerfile_lint_test.go:1554
Error: Not equal:
expected: 1
actual : 0
Test: TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=progress#02
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=progress#02 (0.18s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1406
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=unmarshal#02
dockerfile_lint_test.go:1406:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1406
/src/frontend/gateway/grpcclient/client.go:216
/src/client/build.go:58
/src/client/solve.go:296
/src/vendor/golang.org/x/sync/errgroup/errgroup.go:78
/usr/local/go/src/runtime/asm_amd64.s:1695
Error: Not equal:
expected: 1
actual : 0
Test: TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=unmarshal#02
dockerfile_lint_test.go:1432:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1432
/src/frontend/dockerfile/dockerfile_lint_test.go:1558
Error: Should be true
Test: TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=unmarshal#02
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=unmarshal#02 (0.05s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1554
=== RUN TestIntegration/TestUndeclaredArg/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=progress#06
dockerfile_lint_test.go:1554:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1565
/src/frontend/dockerfile/dockerfile_lint_test.go:1520
/src/frontend/dockerfile/dockerfile_lint_test.go:1554
Error: Not equal:
expected: "UndefinedArgInFrom: FROM argument 'BULIDPLATFORM' is not declared (did you mean BUILDPLATFORM?) (line 2)"
actual : "UndefinedArgInFrom: FROM argument 'BULIDPLATFORM' is not declared (line 2)"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-UndefinedArgInFrom: FROM argument 'BULIDPLATFORM' is not declared (did you mean BUILDPLATFORM?) (line 2)
+UndefinedArgInFrom: FROM argument 'BULIDPLATFORM' is not declared (line 2)
Test: TestIntegration/TestUndeclaredArg/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=progress#06
--- FAIL: TestIntegration/TestUndeclaredArg/worker=oci-rootless-slirp4netns-detachnetns/frontend=gateway/warntype=progress#06 (0.14s)
|
Test
Process completed with exit code 1.
|
Loading