Improve consistency of linter rules messages #5277
Annotations
9 errors
Generate annotations:
frontend/dockerfile/run.go#L272
=== RUN TestIntegration
run.go:272: copied mcr.microsoft.com/windows/nanoserver:ltsc2022 to local mirror localhost:51593/library/nanoserver:latest
time="2024-10-31T14:19:48Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:51593"
run.go:272: copied docker.io/wintools/nanoserver:ltsc2022 to local mirror localhost:51593/library/nanoserver:plus
time="2024-10-31T14:19:50Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:51593"
run.go:272: copied docker.io/wintools/nanoserver:ltsc2022 to local mirror localhost:51593/library/nanoserver:plus-busybox
run.go:272: copied mcr.microsoft.com/windows/nanoserver:ltsc2022 to local mirror localhost:52467/library/nanoserver:latest
time="2024-10-31T14:46:45Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:52467"
run.go:272: copied docker.io/wintools/nanoserver:ltsc2022 to local mirror localhost:52467/library/nanoserver:plus
time="2024-10-31T14:46:47Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:52467"
run.go:272: copied docker.io/wintools/nanoserver:ltsc2022 to local mirror localhost:52467/library/nanoserver:plus-busybox
run.go:213:
Error Trace: D:/a/buildkit/buildkit/util/testutil/integration/run.go:213
D:/a/buildkit/buildkit/util/testutil/integration/run.go:214
D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_test.go:269
Error: Should be true
Test: TestIntegration
--- FAIL: TestIntegration (1625.71s)
|
Generate annotations:
frontend/dockerfile/sandbox.go#L135
=== RUN TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin
time="2024-10-31T14:46:43Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:52467"
sandbox.go:135: stdout: D:\a\buildkit\buildkit\bin\buildkitd.exe --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr npipe:////./pipe/containerd-bktest_containerd3228743601 --containerd-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=C:\Users\RUNNER~1\AppData\Local\Temp\bktest_config1047106742\buildkitd.toml --root C:\Users\RUNNER~1\AppData\Local\Temp\bktest_buildkitd1367436284 --addr npipe:////./pipe/buildkitd-bktest_buildkitd1367436284 --debug
sandbox.go:135: stderr: D:\a\buildkit\buildkit\bin\buildkitd.exe --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr npipe:////./pipe/containerd-bktest_containerd3228743601 --containerd-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=C:\Users\RUNNER~1\AppData\Local\Temp\bktest_config1047106742\buildkitd.toml --root C:\Users\RUNNER~1\AppData\Local\Temp\bktest_buildkitd1367436284 --addr npipe:////./pipe/buildkitd-bktest_buildkitd1367436284 --debug
sandbox.go:138: > StartCmd 2024-10-31 14:46:47.7258234 +0000 UTC m=+1621.442135701 D:\a\buildkit\buildkit\bin\buildkitd.exe --containerd-worker-gc=false --containerd-worker=true --containerd-worker-addr npipe:////./pipe/containerd-bktest_containerd3228743601 --containerd-worker-labels=org.mobyproject.buildkit.worker.sandbox=true --config=C:\Users\RUNNER~1\AppData\Local\Temp\bktest_config1047106742\buildkitd.toml --root C:\Users\RUNNER~1\AppData\Local\Temp\bktest_buildkitd1367436284 --addr npipe:////./pipe/buildkitd-bktest_buildkitd1367436284 --debug
sandbox.go:138: time="2024-10-31T14:46:47Z" level=warning msg="using null network as the default"
sandbox.go:138: time="2024-10-31T14:46:47Z" level=debug msg="remote introspection plugin filters" filters="[type==io.containerd.runtime.v1 type==io.containerd.runtime.v2]"
sandbox.go:138: time="2024-10-31T14:46:47Z" level=info msg="found worker \"wnz7upia2r44zx9uk9uhvcjmy\", labels=map[org.mobyproject.buildkit.worker.containerd.namespace:buildkit org.mobyproject.buildkit.worker.containerd.uuid:fb836503-1eb5-4aed-ba38-1ab0f3f611b6 org.mobyproject.buildkit.worker.executor:containerd org.mobyproject.buildkit.worker.hostname:fv-az742-134 org.mobyproject.buildkit.worker.network: org.mobyproject.buildkit.worker.sandbox:true org.mobyproject.buildkit.worker.selinux.enabled:false org.mobyproject.buildkit.worker.snapshotter:windows], platforms=[windows/amd64]"
sandbox.go:138: time="2024-10-31T14:46:47Z" level=info msg="found 1 workers, default=\"wnz7upia2r44zx9uk9uhvcjmy\""
sandbox.go:138: time="2024-10-31T14:46:47Z" level=warning msg="currently, only the default worker can be used."
sandbox.go:138: time="2024-10-31T14:46:47Z" level=info msg="running server on //./pipe/buildkitd-bktest_buildkitd1367436284"
sandbox.go:138: time="2024-10-31T14:46:47Z" level=debug msg="session started" spanID=7eb5f6ddc2191769 traceID=8c8729804873bbfa9e88757545cf813e
sandbox.go:138: time="2024-10-31T14:46:47Z" level=debug msg="new ref for local: ypq43dct1jcv3p108u8zqp6dr" span="[internal] load build definition from Dockerfile" spanID=7d4ced64184e09fb traceID=8cb3dc5beecb14c133efb53370a01637
sandbox.go:138: time="2024-10-31T14:46:47Z" level=debug msg="Calling proc (1)"
sandbox.go:138: time="2024-10-31T14:46:47Z" level=debug msg="Calling proc (2)"
sandbox.go:138: time="2024-10-31T14:46:47Z" level=debug msg="diffcopy took: 3.7743ms" span="[internal] load build definition from Dockerfile" spanID=d0d321f72fe46d63 traceID=8cb3dc5beecb14c133efb53370a01637
sandbox.go:138: time="2024-10-31T14:46:47Z" level=debug msg="saved ypq43dct1jcv3p108u8zqp6dr as dockerfile:dockerfile:" span="[internal] load build definition from Dockerfile" spanID=7d4ced64184e09fb traceID=8cb3dc5beecb14c133efb53370a01637
sandbox.go:138: time="2024-10-31T14:46:47Z" level=debug msg="Calling proc (1)"
sandbox.g
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1645
=== RUN TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=progress#04
dockerfile_lint_test.go:1645:
Error Trace: D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1657
D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1611
D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1645
Error: Not equal:
expected: "The 'as' keyword should match the case of the 'from' keyword"
actual : "The AS keyword should match the case of the FROM keyword"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-The 'as' keyword should match the case of the 'from' keyword
+The AS keyword should match the case of the FROM keyword
Test: TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=progress#04
--- FAIL: TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=progress#04 (0.28s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1505
=== RUN TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=unmarshal#04
dockerfile_lint_test.go:1505:
Error Trace: D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1665
D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1505
D:/a/buildkit/buildkit/frontend/gateway/grpcclient/client.go:215
D:/a/buildkit/buildkit/client/build.go:58
D:/a/buildkit/buildkit/client/solve.go:295
D:/a/buildkit/buildkit/vendor/golang.org/x/sync/errgroup/errgroup.go:78
C:/hostedtoolcache/windows/go/1.22.8/x64/src/runtime/asm_amd64.s:1695
Error: Not equal:
expected: "The 'as' keyword should match the case of the 'from' keyword"
actual : "The AS keyword should match the case of the FROM keyword"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-The 'as' keyword should match the case of the 'from' keyword
+The AS keyword should match the case of the FROM keyword
Test: TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=unmarshal#04
dockerfile_lint_test.go:1518:
Error Trace: D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1518
D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1649
Error: Should be true
Test: TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=unmarshal#04
--- FAIL: TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=unmarshal#04 (0.16s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1645
=== RUN TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=progress#05
dockerfile_lint_test.go:1645:
Error Trace: D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1657
D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1611
D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1645
Error: Not equal:
expected: "The 'as' keyword should match the case of the 'from' keyword"
actual : "The AS keyword should match the case of the FROM keyword"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-The 'as' keyword should match the case of the 'from' keyword
+The AS keyword should match the case of the FROM keyword
Test: TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=progress#05
--- FAIL: TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=progress#05 (0.17s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1505
=== RUN TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=unmarshal#05
dockerfile_lint_test.go:1505:
Error Trace: D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1665
D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1505
D:/a/buildkit/buildkit/frontend/gateway/grpcclient/client.go:215
D:/a/buildkit/buildkit/client/build.go:58
D:/a/buildkit/buildkit/client/solve.go:295
D:/a/buildkit/buildkit/vendor/golang.org/x/sync/errgroup/errgroup.go:78
C:/hostedtoolcache/windows/go/1.22.8/x64/src/runtime/asm_amd64.s:1695
Error: Not equal:
expected: "The 'as' keyword should match the case of the 'from' keyword"
actual : "The AS keyword should match the case of the FROM keyword"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-The 'as' keyword should match the case of the 'from' keyword
+The AS keyword should match the case of the FROM keyword
Test: TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=unmarshal#05
dockerfile_lint_test.go:1518:
Error Trace: D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1518
D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1649
Error: Should be true
Test: TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=unmarshal#05
--- FAIL: TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=unmarshal#05 (0.19s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1645
=== RUN TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=progress#06
dockerfile_lint_test.go:1645:
Error Trace: D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1657
D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1611
D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1645
Error: Not equal:
expected: "The 'as' keyword should match the case of the 'from' keyword"
actual : "The AS keyword should match the case of the FROM keyword"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-The 'as' keyword should match the case of the 'from' keyword
+The AS keyword should match the case of the FROM keyword
Test: TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=progress#06
--- FAIL: TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=progress#06 (0.17s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1505
=== RUN TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=unmarshal#06
dockerfile_lint_test.go:1505:
Error Trace: D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1665
D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1505
D:/a/buildkit/buildkit/frontend/gateway/grpcclient/client.go:215
D:/a/buildkit/buildkit/client/build.go:58
D:/a/buildkit/buildkit/client/solve.go:295
D:/a/buildkit/buildkit/vendor/golang.org/x/sync/errgroup/errgroup.go:78
C:/hostedtoolcache/windows/go/1.22.8/x64/src/runtime/asm_amd64.s:1695
Error: Not equal:
expected: "The 'as' keyword should match the case of the 'from' keyword"
actual : "The AS keyword should match the case of the FROM keyword"
Diff:
--- Expected
+++ Actual
@@ -1 +1 @@
-The 'as' keyword should match the case of the 'from' keyword
+The AS keyword should match the case of the FROM keyword
Test: TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=unmarshal#06
dockerfile_lint_test.go:1518:
Error Trace: D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1518
D:/a/buildkit/buildkit/frontend/dockerfile/dockerfile_lint_test.go:1649
Error: Should be true
Test: TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=unmarshal#06
--- FAIL: TestIntegration/TestRuleCheckOption/worker=containerd/frontend=builtin/warntype=unmarshal#06 (0.14s)
|
Test
Process completed with exit code 1.
|
Loading