frontend: update lint checks to use all args instead of non-nil args #4524
Annotations
11 errors
Generate annotations:
frontend/dockerfile/run.go#L272
=== RUN TestIntegration
run.go:272: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:36333/library/alpine:latest
time="2024-10-04T22:42:27Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:36333"
run.go:272: copied docker.io/amd64/busybox:latest@sha256:023917ec6a886d0e8e15f28fb543515a5fcd8d938edb091e8147db4efed388ee to local mirror localhost:36333/library/busybox:latest
run.go:272: copied docker.io/amd64/debian:bullseye-20230109-slim@sha256:1acb06a0c31fb467eb8327ad361f1091ab265e0bf26d452dea45dcb0c0ea5e75 to local mirror localhost:39813/amd64/bullseye-20230109-slim:latest
--- FAIL: TestIntegration (0.06s)
|
Generate annotations:
frontend/dockerfile/sandbox.go#L135
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=builtin
=== PAUSE TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=builtin
=== CONT TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=builtin
sandbox.go:135: stderr: /usr/bin/sudo -u #1000 -i -- exec nsenter -U --preserve-credentials -m -t 56601 buildkitd --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr /tmp/bktest_containerd3666884596/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_config3258383236/buildkitd.toml --root /tmp/bktest_buildkitd1600554362 --addr unix:///tmp/bktest_buildkitd1600554362/buildkitd.sock --debug
sandbox.go:138: > StartCmd 2024-10-04 22:43:40.088957423 +0000 UTC m=+72.840277717 /usr/bin/sudo -u #1000 -i -- exec nsenter -U --preserve-credentials -m -t 56601 buildkitd --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr /tmp/bktest_containerd3666884596/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_config3258383236/buildkitd.toml --root /tmp/bktest_buildkitd1600554362 --addr unix:///tmp/bktest_buildkitd1600554362/buildkitd.sock --debug
sandbox.go:138: warning: GOCOVERDIR not set, no coverage data emitted
sandbox.go:138: time="2024-10-04T22:43:40Z" level=warning msg="failed to get disk size: no such file or directory"
sandbox.go:138: time="2024-10-04T22:43:40Z" level=warning msg="failed to get disk size: no such file or directory"
sandbox.go:138: time="2024-10-04T22:43:40Z" level=debug msg="running in rootless mode"
sandbox.go:138: time="2024-10-04T22:43:40Z" level=debug msg="remote introspection plugin filters" filters="[type==io.containerd.runtime.v1 type==io.containerd.runtime.v2]"
sandbox.go:138: time="2024-10-04T22:43:40Z" level=info msg="found worker \"1d5gjmerycwt47v4zyr52n2x0\", labels=map[org.mobyproject.buildkit.worker.containerd.namespace:buildkit org.mobyproject.buildkit.worker.containerd.uuid:2eb6d568-e142-4890-8306-3c7f914dd675 org.mobyproject.buildkit.worker.executor:containerd org.mobyproject.buildkit.worker.hostname:df0439ee0753 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/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:43:40Z" level=info msg="found 1 workers, default=\"1d5gjmerycwt47v4zyr52n2x0\""
sandbox.go:138: time="2024-10-04T22:43:40Z" level=warning msg="currently, only the default worker can be used."
sandbox.go:138: time="2024-10-04T22:43:40Z" level=info msg="running server on /tmp/bktest_buildkitd1600554362/buildkitd.sock"
sandbox.go:138: time="2024-10-04T22:43:40Z" level=debug msg="session started" spanID=2e591b2553b7e049 traceID=dd645e2e7daee970bb852e265006be0c
sandbox.go:138: time="2024-10-04T22:43:40Z" level=debug msg="new ref for local: olk0y6628jimcn86365sabbe8" span="[internal] load build definition from Dockerfile" spanID=7e87a88b3055e250 traceID=e16575dc11bec8af6773ab3a6c2a72bf
sandbox.go:138: time="2024-10-04T22:43:40Z" level=debug msg="diffcopy took: 3.38473ms" span="[internal] load build definition from Dockerfile" spanID=40da8559fdfa4cd6 traceID=e16575dc11bec8af6773ab3a6c2a72bf
sandbox.go:138: time="2024-10-04T22:43:40Z" level=debug msg="saved olk0y6628jimcn86365sabbe8 as dockerfile:dockerfile:" span="[internal] load build definition from Dockerfile" spanID=7e87a88b3055e250 traceID=e16575dc11bec8af6773ab3a6c2a72bf
sandbox.go:138: time="2024-10-04T22:43:40Z" level=debug msg="checked for cached auth handler n
|
Generate annotations:
frontend/dockerfile/sandbox.go#L135
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=client
=== PAUSE TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=client
=== CONT TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=client
sandbox.go:135: stdout: /usr/bin/sudo -u #1000 -i CONTAINERD_ROOTLESS_ROOTLESSKIT_STATE_DIR=/tmp/bktest_containerd104735704/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_containerd104735704/config.toml
sandbox.go:135: stderr: /usr/bin/sudo -u #1000 -i CONTAINERD_ROOTLESS_ROOTLESSKIT_STATE_DIR=/tmp/bktest_containerd104735704/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_containerd104735704/config.toml
sandbox.go:138: > StartCmd 2024-10-04 22:43:39.619623677 +0000 UTC m=+72.370943980 /usr/bin/sudo -u #1000 -i CONTAINERD_ROOTLESS_ROOTLESSKIT_STATE_DIR=/tmp/bktest_containerd104735704/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_containerd104735704/config.toml
sandbox.go:138: time="2024-10-04T22:43:39Z" level=warning msg="containerd config version `1` has been deprecated and will be converted on each startup in containerd v2.0, use `containerd config migrate` after upgrading to containerd 2.0 to avoid conversion on startup"
sandbox.go:138: time="2024-10-04T22:43:39.683914841Z" level=info msg="starting containerd" revision=472731909fa34bd7bc9c087e4c27943f9835f111 version=v1.7.21
sandbox.go:138: time="2024-10-04T22:43:39.708146372Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:138: time="2024-10-04T22:43:39.708279379Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:138: time="2024-10-04T22:43:39.708348027Z" level=warning msg="failed to load plugin io.containerd.internal.v1.opt" error="mkdir /opt/containerd: permission denied"
sandbox.go:138: time="2024-10-04T22:43:39.708379515Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1
sandbox.go:138: time="2024-10-04T22:43:39.708414280Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-04T22:43:39.708515498Z" 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:138: time="2024-10-04T22:43:39.708551454Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-04T22:43:39.708589094Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." error="devmapper not configured: skip plugin" type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-04T22:43:39.708615243Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-04T22:43:39.708732020Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-04T22:43:39.709049359Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-04T22:43:39.709792539Z" 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 plu
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1554
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=client/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=containerd-rootless/frontend=client/warntype=progress
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=client/warntype=progress (0.19s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1406
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=client/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=containerd-rootless/frontend=client/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=containerd-rootless/frontend=client/warntype=unmarshal
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=client/warntype=unmarshal (0.06s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1554
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=client/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=containerd-rootless/frontend=client/warntype=progress#01
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=client/warntype=progress#01 (0.10s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1406
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=client/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=containerd-rootless/frontend=client/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=containerd-rootless/frontend=client/warntype=unmarshal#01
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=client/warntype=unmarshal#01 (0.05s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1554
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=builtin/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=containerd-rootless/frontend=builtin/warntype=progress
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=builtin/warntype=progress (0.17s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1554
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=client/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=containerd-rootless/frontend=client/warntype=progress#02
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=client/warntype=progress#02 (0.09s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1406
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=client/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=containerd-rootless/frontend=client/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=containerd-rootless/frontend=client/warntype=unmarshal#02
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd-rootless/frontend=client/warntype=unmarshal#02 (0.05s)
|
Test
Process completed with exit code 1.
|
Loading