frontend: update lint checks to use all args instead of non-nil args #4487
Annotations
9 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:45537/library/busybox:latest
time="2024-10-03T06:35:27Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:45537"
run.go:272: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:45537/library/alpine:latest
time="2024-10-03T06:35:27Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:45537"
run.go:272: copied local:/mainline.tar to local mirror localhost:45537/buildkit_test/dpdglcqb77rautn5sf38fny5e:latest
run.go:272: copied docker.io/amd64/debian:bullseye-20230109-slim@sha256:1acb06a0c31fb467eb8327ad361f1091ab265e0bf26d452dea45dcb0c0ea5e75 to local mirror localhost:38955/amd64/bullseye-20230109-slim:latest
--- FAIL: TestIntegration (0.04s)
|
Generate annotations:
frontend/dockerfile/sandbox.go#L135
=== RUN TestIntegration/TestDefaultEnvWithArgs/worker=oci-snapshotter-stargz/frontend=gateway
=== PAUSE TestIntegration/TestDefaultEnvWithArgs/worker=oci-snapshotter-stargz/frontend=gateway
=== CONT TestIntegration/TestDefaultEnvWithArgs/worker=oci-snapshotter-stargz/frontend=gateway
sandbox.go:135: 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_config3815303368/buildkitd.toml --root /tmp/bktest_buildkitd3527932043 --addr unix:///tmp/bktest_buildkitd3527932043/buildkitd.sock --debug
sandbox.go:135: 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_config3815303368/buildkitd.toml --root /tmp/bktest_buildkitd3527932043 --addr unix:///tmp/bktest_buildkitd3527932043/buildkitd.sock --debug
sandbox.go:138: > StartCmd 2024-10-03 06:35:45.111164094 +0000 UTC m=+17.939684301 /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_config3815303368/buildkitd.toml --root /tmp/bktest_buildkitd3527932043 --addr unix:///tmp/bktest_buildkitd3527932043/buildkitd.sock --debug
sandbox.go:138: time="2024-10-03T06:35:45Z" level=warning msg="failed to get disk size: no such file or directory"
sandbox.go:138: time="2024-10-03T06:35:45Z" level=warning msg="failed to get disk size: no such file or directory"
sandbox.go:138: time="2024-10-03T06:35:45Z" level=debug msg="could not read \"/tmp/bktest_buildkitd3527932043/net/cni\" for cleanup: open /tmp/bktest_buildkitd3527932043/net/cni: no such file or directory"
sandbox.go:138: time="2024-10-03T06:35:45Z" level=debug msg="creating new network namespace kfzvmui641zyv6643v2lqbosa"
sandbox.go:138: time="2024-10-03T06:35:45Z" level=debug msg="finished creating network namespace kfzvmui641zyv6643v2lqbosa"
sandbox.go:138: time="2024-10-03T06:35:45Z" level=debug msg="finished setting up network namespace kfzvmui641zyv6643v2lqbosa"
sandbox.go:138: time="2024-10-03T06:35:45Z" level=info msg="found worker \"qqym7fwg52nxo6vp8ywz8tms4\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:1926eb6cde6e 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:138: time="2024-10-03T06:35:45Z" level=info msg="found 1 workers, default=\"qqym7fwg52nxo6vp8ywz8tms4\""
sandbox.go:138: time="2024-10-03T06:35:45Z" level=warning msg="currently, only the default worker can be used."
sandbox.go:138: time="2024-10-03T06:35:45Z" level=info msg="running server on /tmp/bktest_buildkitd3527932043/buildkitd.sock"
sandbox.go:138: time="2024-10-03T06:35:45Z" level=debug msg="session started" spanID=6170b60b3cb46567 traceID=2c0d6eb460bd3134fe7ee35d3ba98fcd
sandbox.go:138: time="2024-10-03T06:35:45Z" level=debug msg="resolve exporter local with map[]" spanID=fb88451d06004674 traceID=4a704386e58b89224451fc749182d13e
sandbox.go:138: time="2024-10-03T06:35:45Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/buildkit_test/dpdglcqb77rautn5sf38fny5e::pull" name=docker.io/buildkit_test/dpdglcqb77rautn5sf38fny5e scope=pull
sandbox.go:138: time="2024-10-03T06:35:45Z" level=debug msg=resolving span="resolving docker.io/buildkit_test/dpdglcqb77rautn5sf38fny5e:latest" spanID=ca4303dbaa05f79a traceID=4a704386e58b89224451fc749182d13e
sandbox.go:138: time="2024-10-03T06:35:45Z" level
|
Generate annotations:
frontend/dockerfile/sandbox.go#L135
=== RUN TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway
=== PAUSE TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway
=== CONT TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway
sandbox.go:135: 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_config2018558281/buildkitd.toml --root /tmp/bktest_buildkitd4041912977 --addr unix:///tmp/bktest_buildkitd4041912977/buildkitd.sock --debug
sandbox.go:135: 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_config2018558281/buildkitd.toml --root /tmp/bktest_buildkitd4041912977 --addr unix:///tmp/bktest_buildkitd4041912977/buildkitd.sock --debug
sandbox.go:138: > StartCmd 2024-10-03 06:36:06.406157639 +0000 UTC m=+39.234677896 /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_config2018558281/buildkitd.toml --root /tmp/bktest_buildkitd4041912977 --addr unix:///tmp/bktest_buildkitd4041912977/buildkitd.sock --debug
sandbox.go:138: time="2024-10-03T06:36:06Z" level=warning msg="failed to get disk size: no such file or directory"
sandbox.go:138: time="2024-10-03T06:36:06Z" level=warning msg="failed to get disk size: no such file or directory"
sandbox.go:138: time="2024-10-03T06:36:06Z" level=debug msg="could not read \"/tmp/bktest_buildkitd4041912977/net/cni\" for cleanup: open /tmp/bktest_buildkitd4041912977/net/cni: no such file or directory"
sandbox.go:138: time="2024-10-03T06:36:06Z" level=debug msg="creating new network namespace t1q0lpg0jndfncn3j7d9u6pl3"
sandbox.go:138: time="2024-10-03T06:36:06Z" level=debug msg="finished creating network namespace t1q0lpg0jndfncn3j7d9u6pl3"
sandbox.go:138: time="2024-10-03T06:36:06Z" level=debug msg="finished setting up network namespace t1q0lpg0jndfncn3j7d9u6pl3"
sandbox.go:138: time="2024-10-03T06:36:06Z" level=info msg="found worker \"59xckjwm0c72kperdqqevqwtz\", labels=map[org.mobyproject.buildkit.worker.executor:oci org.mobyproject.buildkit.worker.hostname:1926eb6cde6e 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:138: time="2024-10-03T06:36:06Z" level=info msg="found 1 workers, default=\"59xckjwm0c72kperdqqevqwtz\""
sandbox.go:138: time="2024-10-03T06:36:06Z" level=warning msg="currently, only the default worker can be used."
sandbox.go:138: time="2024-10-03T06:36:06Z" level=info msg="running server on /tmp/bktest_buildkitd4041912977/buildkitd.sock"
sandbox.go:138: time="2024-10-03T06:36:06Z" level=debug msg="session started" spanID=9a7ff8fbac647f63 traceID=d6153bd25d7fbc2dea6f67483b24a86c
sandbox.go:138: time="2024-10-03T06:36:06Z" level=debug msg="checked for cached auth handler namespace" cached=false key="docker.io/buildkit_test/dpdglcqb77rautn5sf38fny5e::pull" name=docker.io/buildkit_test/dpdglcqb77rautn5sf38fny5e scope=pull
sandbox.go:138: time="2024-10-03T06:36:06Z" level=debug msg=resolving span="resolving docker.io/buildkit_test/dpdglcqb77rautn5sf38fny5e:latest" spanID=d83d82429761e708 traceID=9959e65f301cdd5257970cfe052a81e4
sandbox.go:138: time="2024-10-03T06:36:06Z" 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.
|
Generate annotations:
frontend/dockerfile/dockerfile_test.go#L399
=== RUN TestIntegration/TestDefaultEnvWithArgs/worker=oci-snapshotter-stargz/frontend=gateway/empty
dockerfile_test.go:399:
Error Trace: /src/frontend/dockerfile/dockerfile_test.go:399
Error: Not equal:
expected: "my_arg=def_val my_arg=def_val my_arg=d"
actual : "my_arg= my_arg= my_arg="
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-my_arg=def_val my_arg=def_val my_arg=d
+my_arg= my_arg= my_arg=
Test: TestIntegration/TestDefaultEnvWithArgs/worker=oci-snapshotter-stargz/frontend=gateway/empty
--- FAIL: TestIntegration/TestDefaultEnvWithArgs/worker=oci-snapshotter-stargz/frontend=gateway/empty (0.29s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1544
=== RUN TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway/warntype=progress#03
dockerfile_lint_test.go:1544:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1495
/src/frontend/dockerfile/dockerfile_lint_test.go:1544
Error: Not equal:
expected: 0
actual : 1
Test: TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway/warntype=progress#03
--- FAIL: TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway/warntype=progress#03 (0.17s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1406
=== RUN TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway/warntype=unmarshal#03
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: 0
actual : 1
Test: TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway/warntype=unmarshal#03
dockerfile_lint_test.go:1432:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1432
/src/frontend/dockerfile/dockerfile_lint_test.go:1548
Error: Should be true
Test: TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway/warntype=unmarshal#03
--- FAIL: TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway/warntype=unmarshal#03 (0.04s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1544
=== RUN TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway/warntype=progress#04
dockerfile_lint_test.go:1544:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1495
/src/frontend/dockerfile/dockerfile_lint_test.go:1544
Error: Not equal:
expected: 0
actual : 1
Test: TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway/warntype=progress#04
--- FAIL: TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway/warntype=progress#04 (0.26s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1406
=== RUN TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway/warntype=unmarshal#04
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: 0
actual : 1
Test: TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway/warntype=unmarshal#04
dockerfile_lint_test.go:1432:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1432
/src/frontend/dockerfile/dockerfile_lint_test.go:1548
Error: Should be true
Test: TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway/warntype=unmarshal#04
--- FAIL: TestIntegration/TestUndeclaredArg/worker=oci-snapshotter-stargz/frontend=gateway/warntype=unmarshal#04 (0.04s)
|
Test
Process completed with exit code 1.
|
Loading