frontend: update lint checks to use all args instead of non-nil args #4500
Annotations
10 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:42543/library/busybox:latest
time="2024-10-03T15:35:50Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:42543"
run.go:272: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:42543/library/alpine:latest
time="2024-10-03T15:35:50Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:42543"
run.go:272: copied local:/mainline.tar to local mirror localhost:42543/buildkit_test/79vm36utkaodgbw38i81lmnca:latest
run.go:272: copied docker.io/amd64/debian:bullseye-20230109-slim@sha256:1acb06a0c31fb467eb8327ad361f1091ab265e0bf26d452dea45dcb0c0ea5e75 to local mirror localhost:41249/amd64/bullseye-20230109-slim:latest
--- FAIL: TestIntegration (0.04s)
|
Generate annotations:
frontend/dockerfile/sandbox.go#L135
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway
=== PAUSE TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway
=== CONT TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway
sandbox.go:135: stderr: /usr/bin/containerd --config /tmp/bktest_containerd1973870616/config.toml
sandbox.go:138: > StartCmd 2024-10-03 15:36:32.635921847 +0000 UTC m=+42.888245572 /usr/bin/containerd --config /tmp/bktest_containerd1973870616/config.toml
sandbox.go:138: time="2024-10-03T15:36:32Z" 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-03T15:36:32.660880544Z" level=info msg="starting containerd" revision=472731909fa34bd7bc9c087e4c27943f9835f111 version=v1.7.21
sandbox.go:138: time="2024-10-03T15:36:32.689632601Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:138: time="2024-10-03T15:36:32.689667326Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:138: time="2024-10-03T15:36:32.689714925Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1
sandbox.go:138: time="2024-10-03T15:36:32.689731666Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-03T15:36:32.689822035Z" 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-03T15:36:32.689839708Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-03T15:36:32.689857100Z" 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-03T15:36:32.689869674Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-03T15:36:32.689980461Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-03T15:36:32.690244825Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-03T15:36:32.691953204Z" 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:138: time="2024-10-03T15:36:32.692008267Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-03T15:36:32.692600817Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /tmp/bktest_containerd1973870616/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:138: time="2024-10-03T15:36:32.692617929Z" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1
sandbox.go:138: time="2024-10-03T15:36:32.692743794Z" level=info msg="loading plugin \"io.containerd.metadata.v1.bolt\"..." type=io.containerd.metadata.v1
sandbox.go:138: time="2024-10-03T15:36:32.692802173Z" level=info msg="metadata content store policy set" policy=shared
sandbox.go:138: time="2024-10-03T15:36:32.695781353Z" level=info msg="loading plugin \"io.cont
|
Generate annotations:
frontend/dockerfile/dockerfile_test.go#L8080
=== RUN TestIntegration/TestReproSourceDateEpoch/worker=containerd/frontend=gateway
=== PAUSE TestIntegration/TestReproSourceDateEpoch/worker=containerd/frontend=gateway
=== CONT TestIntegration/TestReproSourceDateEpoch/worker=containerd/frontend=gateway
dockerfile_test.go:8080: SOURCE_DATE_EPOCH=1673354096
sandbox.go:135: stdout: /usr/bin/containerd --config /tmp/bktest_containerd514631693/config.toml
sandbox.go:135: stderr: /usr/bin/containerd --config /tmp/bktest_containerd514631693/config.toml
sandbox.go:138: > StartCmd 2024-10-03 15:36:26.410298701 +0000 UTC m=+36.662622426 /usr/bin/containerd --config /tmp/bktest_containerd514631693/config.toml
sandbox.go:138: time="2024-10-03T15:36:26Z" 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-03T15:36:26.430495479Z" level=info msg="starting containerd" revision=472731909fa34bd7bc9c087e4c27943f9835f111 version=v1.7.21
sandbox.go:138: time="2024-10-03T15:36:26.464131663Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:138: time="2024-10-03T15:36:26.464185633Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:138: time="2024-10-03T15:36:26.464235547Z" level=info msg="loading plugin \"io.containerd.warning.v1.deprecations\"..." type=io.containerd.warning.v1
sandbox.go:138: time="2024-10-03T15:36:26.464313452Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-03T15:36:26.464404201Z" 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-03T15:36:26.464436602Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-03T15:36:26.464456399Z" 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-03T15:36:26.464468341Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-03T15:36:26.464569129Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-03T15:36:26.464805460Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-03T15:36:26.465971978Z" 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:138: time="2024-10-03T15:36:26.466034324Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1
sandbox.go:138: time="2024-10-03T15:36:26.466224209Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /tmp/bktest_containerd514631693/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:138: time="2024-10-03T15:36:26.466298187Z" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1
sandbox.go:138: time="2024-10-03T15:36:26.466435173Z" level=info msg="loading plugin \"io.containerd.metadata.v1.bolt\"..." type=io.containerd.metadata.v1
sandbox.go:138: time="2024-10-03T15:36:26.466540469Z" level=info msg="
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1553
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway/warntype=progress#04
dockerfile_lint_test.go:1553:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1482
/src/frontend/dockerfile/dockerfile_lint_test.go:1553
Error: Received unexpected error:
busybox:stable-musl: failed to copy: httpReadSeeker: failed open: content at http://localhost:41897/v2/library/busybox/manifests/sha256:0fc05e424940109068f4d6562b699da2563cd8521a35d7b216a5b0c51fb29281?ns=docker.io not found: not found
github.com/moby/buildkit/util/stack.Enable
/src/util/stack/stack.go:82
github.com/moby/buildkit/util/grpcerrors.FromGRPC
/src/util/grpcerrors/grpcerrors.go:204
github.com/moby/buildkit/util/grpcerrors.UnaryClientInterceptor
/src/util/grpcerrors/intercept.go:41
google.golang.org/grpc.(*ClientConn).Invoke
/src/vendor/google.golang.org/grpc/call.go:35
github.com/moby/buildkit/api/services/control.(*controlClient).Solve
/src/api/services/control/control_grpc.pb.go:88
github.com/moby/buildkit/client.(*Client).solve.func2
/src/client/solve.go:270
golang.org/x/sync/errgroup.(*Group).Go.func1
/src/vendor/golang.org/x/sync/errgroup/errgroup.go:78
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1695
failed to solve
github.com/moby/buildkit/client.(*Client).solve.func2
/src/client/solve.go:286
golang.org/x/sync/errgroup.(*Group).Go.func1
/src/vendor/golang.org/x/sync/errgroup/errgroup.go:78
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1695
Test: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway/warntype=progress#04
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway/warntype=progress#04 (0.46s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1396
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway/warntype=unmarshal#04
dockerfile_lint_test.go:1396:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1396
/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: Expected nil, but got: &lint.BuildError{Message:"busybox:stable-musl: failed to resolve source metadata for docker.io/library/busybox:stable-musl: failed to copy: httpReadSeeker: failed open: content at http://localhost:41897/v2/library/busybox/manifests/sha256:0fc05e424940109068f4d6562b699da2563cd8521a35d7b216a5b0c51fb29281?ns=docker.io not found: not found", Location:pb.Location{state:impl.MessageState{NoUnkeyedLiterals:pragma.NoUnkeyedLiterals{}, DoNotCompare:pragma.DoNotCompare{}, DoNotCopy:pragma.DoNotCopy{}, atomicMessageInfo:(*impl.MessageInfo)(nil)}, sizeCache:0, unknownFields:[]uint8(nil), SourceIndex:0, Ranges:[]*pb.Range{(*pb.Range)(0xc002a87300)}}}
Test: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway/warntype=unmarshal#04
dockerfile_lint_test.go:1434:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1434
/src/frontend/dockerfile/dockerfile_lint_test.go:1557
Error: Should be true
Test: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway/warntype=unmarshal#04
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway/warntype=unmarshal#04 (0.25s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1553
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway/warntype=progress#05
dockerfile_lint_test.go:1553:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1482
/src/frontend/dockerfile/dockerfile_lint_test.go:1553
Error: Received unexpected error:
busybox:stable-musl: failed to copy: httpReadSeeker: failed open: content at http://localhost:41897/v2/library/busybox/manifests/sha256:0fc05e424940109068f4d6562b699da2563cd8521a35d7b216a5b0c51fb29281?ns=docker.io not found: not found
github.com/moby/buildkit/util/stack.Enable
/src/util/stack/stack.go:82
github.com/moby/buildkit/util/grpcerrors.FromGRPC
/src/util/grpcerrors/grpcerrors.go:204
github.com/moby/buildkit/util/grpcerrors.UnaryClientInterceptor
/src/util/grpcerrors/intercept.go:41
google.golang.org/grpc.(*ClientConn).Invoke
/src/vendor/google.golang.org/grpc/call.go:35
github.com/moby/buildkit/api/services/control.(*controlClient).Solve
/src/api/services/control/control_grpc.pb.go:88
github.com/moby/buildkit/client.(*Client).solve.func2
/src/client/solve.go:270
golang.org/x/sync/errgroup.(*Group).Go.func1
/src/vendor/golang.org/x/sync/errgroup/errgroup.go:78
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1695
failed to solve
github.com/moby/buildkit/client.(*Client).solve.func2
/src/client/solve.go:286
golang.org/x/sync/errgroup.(*Group).Go.func1
/src/vendor/golang.org/x/sync/errgroup/errgroup.go:78
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1695
Test: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway/warntype=progress#05
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway/warntype=progress#05 (0.48s)
|
Generate annotations:
frontend/dockerfile/dockerfile_lint_test.go#L1396
=== RUN TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway/warntype=unmarshal#05
dockerfile_lint_test.go:1396:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1396
/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: Expected nil, but got: &lint.BuildError{Message:"busybox:stable-musl: failed to resolve source metadata for docker.io/library/busybox:stable-musl: failed to copy: httpReadSeeker: failed open: content at http://localhost:41897/v2/library/busybox/manifests/sha256:0fc05e424940109068f4d6562b699da2563cd8521a35d7b216a5b0c51fb29281?ns=docker.io not found: not found", Location:pb.Location{state:impl.MessageState{NoUnkeyedLiterals:pragma.NoUnkeyedLiterals{}, DoNotCompare:pragma.DoNotCompare{}, DoNotCopy:pragma.DoNotCopy{}, atomicMessageInfo:(*impl.MessageInfo)(nil)}, sizeCache:0, unknownFields:[]uint8(nil), SourceIndex:0, Ranges:[]*pb.Range{(*pb.Range)(0xc000e909c0)}}}
Test: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway/warntype=unmarshal#05
dockerfile_lint_test.go:1434:
Error Trace: /src/frontend/dockerfile/dockerfile_lint_test.go:1434
/src/frontend/dockerfile/dockerfile_lint_test.go:1557
Error: Should be true
Test: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway/warntype=unmarshal#05
--- FAIL: TestIntegration/TestInvalidDefaultArgInFrom/worker=containerd/frontend=gateway/warntype=unmarshal#05 (0.25s)
|
Generate annotations:
frontend/dockerfile/dockerfile_test.go#L8186
=== RUN TestIntegration/TestReproSourceDateEpoch/worker=containerd/frontend=gateway/CopyLink
dockerfile_test.go:8186: The digest may change depending on the BuildKit version, the snapshotter configuration, etc.
dockerfile_test.go:8214:
Error Trace: /src/frontend/dockerfile/dockerfile_test.go:8214
Error: Received unexpected error:
amd64/debian:bullseye-20230109-slim: failed to copy: httpReadSeeker: failed open: content at http://localhost:41249/v2/amd64/debian/manifests/sha256:1acb06a0c31fb467eb8327ad361f1091ab265e0bf26d452dea45dcb0c0ea5e75?ns=docker.io not found: not found
github.com/moby/buildkit/util/stack.Enable
/src/util/stack/stack.go:82
github.com/moby/buildkit/util/grpcerrors.FromGRPC
/src/util/grpcerrors/grpcerrors.go:204
github.com/moby/buildkit/util/grpcerrors.UnaryClientInterceptor
/src/util/grpcerrors/intercept.go:41
google.golang.org/grpc.(*ClientConn).Invoke
/src/vendor/google.golang.org/grpc/call.go:35
github.com/moby/buildkit/api/services/control.(*controlClient).Solve
/src/api/services/control/control_grpc.pb.go:88
github.com/moby/buildkit/client.(*Client).solve.func2
/src/client/solve.go:270
golang.org/x/sync/errgroup.(*Group).Go.func1
/src/vendor/golang.org/x/sync/errgroup/errgroup.go:78
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1695
failed to solve
github.com/moby/buildkit/client.(*Client).solve.func2
/src/client/solve.go:286
golang.org/x/sync/errgroup.(*Group).Go.func1
/src/vendor/golang.org/x/sync/errgroup/errgroup.go:78
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1695
Test: TestIntegration/TestReproSourceDateEpoch/worker=containerd/frontend=gateway/CopyLink
--- FAIL: TestIntegration/TestReproSourceDateEpoch/worker=containerd/frontend=gateway/CopyLink (2.10s)
|
Generate annotations:
frontend/dockerfile/dockerfile_test.go#L8179
=== RUN TestIntegration/TestReproSourceDateEpoch/worker=containerd/frontend=gateway/NoAdditionalLayer
dockerfile_test.go:8179:
Error Trace: /src/frontend/dockerfile/dockerfile_test.go:8179
Error: Received unexpected error:
amd64/debian:bullseye-20230109-slim: failed to copy: httpReadSeeker: failed open: content at http://localhost:41249/v2/amd64/debian/manifests/sha256:1acb06a0c31fb467eb8327ad361f1091ab265e0bf26d452dea45dcb0c0ea5e75?ns=docker.io not found: not found
github.com/moby/buildkit/util/stack.Enable
/src/util/stack/stack.go:82
github.com/moby/buildkit/util/grpcerrors.FromGRPC
/src/util/grpcerrors/grpcerrors.go:204
github.com/moby/buildkit/util/grpcerrors.UnaryClientInterceptor
/src/util/grpcerrors/intercept.go:41
google.golang.org/grpc.(*ClientConn).Invoke
/src/vendor/google.golang.org/grpc/call.go:35
github.com/moby/buildkit/api/services/control.(*controlClient).Solve
/src/api/services/control/control_grpc.pb.go:88
github.com/moby/buildkit/client.(*Client).solve.func2
/src/client/solve.go:270
golang.org/x/sync/errgroup.(*Group).Go.func1
/src/vendor/golang.org/x/sync/errgroup/errgroup.go:78
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1695
failed to solve
github.com/moby/buildkit/client.(*Client).solve.func2
/src/client/solve.go:286
golang.org/x/sync/errgroup.(*Group).Go.func1
/src/vendor/golang.org/x/sync/errgroup/errgroup.go:78
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1695
Test: TestIntegration/TestReproSourceDateEpoch/worker=containerd/frontend=gateway/NoAdditionalLayer
--- FAIL: TestIntegration/TestReproSourceDateEpoch/worker=containerd/frontend=gateway/NoAdditionalLayer (0.40s)
|
Test
Process completed with exit code 1.
|
Loading