Remove globals & refactor into structs #165
Annotations
10 errors and 1 warning
Generate annotations:
frontend/dockerfile/dockerfile_test.go#L1811
=== RUN TestIntegration/TestCmdShell/worker=containerd-snapshotter-stargz/frontend=client
=== PAUSE TestIntegration/TestCmdShell/worker=containerd-snapshotter-stargz/frontend=client
=== CONT TestIntegration/TestCmdShell/worker=containerd-snapshotter-stargz/frontend=client
dockerfile_test.go:1811:
Error Trace: /src/frontend/dockerfile/dockerfile_test.go:1811
/src/util/testutil/integration/run.go:91
/src/util/testutil/integration/run.go:205
Error: Not equal:
expected: []string(nil)
actual : []string{"test"}
Diff:
--- Expected
+++ Actual
@@ -1,2 +1,4 @@
-([]string) <nil>
+([]string) (len=1) {
+ (string) (len=4) "test"
+}
Test: TestIntegration/TestCmdShell/worker=containerd-snapshotter-stargz/frontend=client
sandbox.go:128: stdout: /usr/bin/containerd --config /tmp/bktest_containerd1406812979/config.toml
sandbox.go:128: stderr: /usr/bin/containerd --config /tmp/bktest_containerd1406812979/config.toml
sandbox.go:131: > StartCmd 2024-03-21 23:28:58.221321847 +0000 UTC m=+2.761076736 /usr/bin/containerd --config /tmp/bktest_containerd1406812979/config.toml
sandbox.go:131: time="2024-03-21T23:28:58Z" level=warning msg="containerd config version `1` has been deprecated and will be removed in containerd v2.0, please switch to version `2`, see https://github.com/containerd/containerd/blob/main/docs/PLUGINS.md#version-header"
sandbox.go:131: time="2024-03-21T23:28:58.246234452Z" level=info msg="starting containerd" revision=8c087663b0233f6e6e2f4515cee61d49f14746a8 version=v1.7.7
sandbox.go:131: time="2024-03-21T23:28:58.272901970Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:131: time="2024-03-21T23:28:58.272934270Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:131: time="2024-03-21T23:28:58.272994944Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." type=io.containerd.snapshotter.v1
sandbox.go:131: time="2024-03-21T23:28:58.273113746Z" 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:131: time="2024-03-21T23:28:58.273139214Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1
sandbox.go:131: time="2024-03-21T23:28:58.273156686Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured"
sandbox.go:131: time="2024-03-21T23:28:58.273175511Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1
sandbox.go:131: time="2024-03-21T23:28:58.273298501Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1
sandbox.go:131: time="2024-03-21T23:28:58.273568116Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1
sandbox.go:131: time="2024-03-21T23:28:58.274385976Z" 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:131: time="2024-03-21T23:28:58.274416833Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1
sandbox.go:131: time="2024-03-21T23:28:58.274607911Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /tmp/bktest_contain
|
Generate annotations:
frontend/dockerfile/dockerfile_mount_test.go#L132
=== RUN TestIntegration/TestMountInvalid/worker=containerd-snapshotter-stargz/frontend=client
=== PAUSE TestIntegration/TestMountInvalid/worker=containerd-snapshotter-stargz/frontend=client
=== CONT TestIntegration/TestMountInvalid/worker=containerd-snapshotter-stargz/frontend=client
dockerfile_mount_test.go:132:
Error Trace: /src/frontend/dockerfile/dockerfile_mount_test.go:132
/src/util/testutil/integration/run.go:91
/src/util/testutil/integration/run.go:205
Error: "failed to solve: dockerfile parse error on line 3: unknown flag: mont (did you mean mount?)" does not contain "unexpected key 'typ'"
Test: TestIntegration/TestMountInvalid/worker=containerd-snapshotter-stargz/frontend=client
sandbox.go:128: stdout: /usr/bin/containerd-stargz-grpc --log-level debug --address /tmp/bktest_containerd_stargz_grpc395865990/containerd-stargz-grpc.sock --root /tmp/bktest_containerd_stargz_grpc395865990/root
sandbox.go:128: stderr: /usr/bin/containerd-stargz-grpc --log-level debug --address /tmp/bktest_containerd_stargz_grpc395865990/containerd-stargz-grpc.sock --root /tmp/bktest_containerd_stargz_grpc395865990/root
sandbox.go:131: > StartCmd 2024-03-21 23:28:58.582792307 +0000 UTC m=+3.122547196 /usr/bin/containerd-stargz-grpc --log-level debug --address /tmp/bktest_containerd_stargz_grpc395865990/containerd-stargz-grpc.sock --root /tmp/bktest_containerd_stargz_grpc395865990/root
sandbox.go:131: {"key":"buildkit/1/n1y5k7vhhtcb80kb79y4frsqu","level":"debug","msg":"checking layer availability","time":"2024-03-21T23:28:58.983429839Z"}
sandbox.go:131: {"key":"buildkit/1/n1y5k7vhhtcb80kb79y4frsqu","level":"debug","mount-point":"/tmp/bktest_containerd_stargz_grpc395865990/root/snapshotter/snapshots/1/fs","msg":"layer is normal snapshot(overlayfs)","time":"2024-03-21T23:28:58.983607571Z"}
sandbox.go:131: {"key":"buildkit/1/n1y5k7vhhtcb80kb79y4frsqu","level":"debug","msg":"checking layer availability","time":"2024-03-21T23:28:58.988997259Z"}
sandbox.go:131: {"key":"buildkit/1/n1y5k7vhhtcb80kb79y4frsqu","level":"debug","mount-point":"/tmp/bktest_containerd_stargz_grpc395865990/root/snapshotter/snapshots/1/fs","msg":"layer is normal snapshot(overlayfs)","time":"2024-03-21T23:28:58.989066028Z"}
sandbox.go:128: stdout: /usr/bin/containerd --config /tmp/bktest_containerd4160595954/config.toml
sandbox.go:128: stderr: /usr/bin/containerd --config /tmp/bktest_containerd4160595954/config.toml
sandbox.go:131: > StartCmd 2024-03-21 23:28:58.68965107 +0000 UTC m=+3.229405959 /usr/bin/containerd --config /tmp/bktest_containerd4160595954/config.toml
sandbox.go:131: time="2024-03-21T23:28:58Z" level=warning msg="containerd config version `1` has been deprecated and will be removed in containerd v2.0, please switch to version `2`, see https://github.com/containerd/containerd/blob/main/docs/PLUGINS.md#version-header"
sandbox.go:131: time="2024-03-21T23:28:58.712144670Z" level=info msg="starting containerd" revision=8c087663b0233f6e6e2f4515cee61d49f14746a8 version=v1.7.7
sandbox.go:131: time="2024-03-21T23:28:58.758051372Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:131: time="2024-03-21T23:28:58.758173280Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:131: time="2024-03-21T23:28:58.758254642Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." type=io.containerd.snapshotter.v1
sandbox.go:131: time="2024-03-21T23:28:58.758432565Z" 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:131: time="2024-03-21T23:28:58.758474694Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1
sandbox.go:131: time="2024-03-21T23:28:58.758501414Z" level=warning msg="failed
|
Generate annotations:
frontend/dockerfile/dockerfile_mount_test.go#L132
=== RUN TestIntegration/TestMountInvalid/worker=containerd-snapshotter-stargz/frontend=builtin
=== PAUSE TestIntegration/TestMountInvalid/worker=containerd-snapshotter-stargz/frontend=builtin
=== CONT TestIntegration/TestMountInvalid/worker=containerd-snapshotter-stargz/frontend=builtin
dockerfile_mount_test.go:132:
Error Trace: /src/frontend/dockerfile/dockerfile_mount_test.go:132
/src/util/testutil/integration/run.go:91
/src/util/testutil/integration/run.go:205
Error: "failed to solve: dockerfile parse error on line 3: unknown flag: mont (did you mean mount?)" does not contain "unexpected key 'typ'"
Test: TestIntegration/TestMountInvalid/worker=containerd-snapshotter-stargz/frontend=builtin
sandbox.go:128: stdout: /usr/bin/containerd-stargz-grpc --log-level debug --address /tmp/bktest_containerd_stargz_grpc2264536743/containerd-stargz-grpc.sock --root /tmp/bktest_containerd_stargz_grpc2264536743/root
sandbox.go:128: stderr: /usr/bin/containerd-stargz-grpc --log-level debug --address /tmp/bktest_containerd_stargz_grpc2264536743/containerd-stargz-grpc.sock --root /tmp/bktest_containerd_stargz_grpc2264536743/root
sandbox.go:131: > StartCmd 2024-03-21 23:28:58.066829957 +0000 UTC m=+2.606584876 /usr/bin/containerd-stargz-grpc --log-level debug --address /tmp/bktest_containerd_stargz_grpc2264536743/containerd-stargz-grpc.sock --root /tmp/bktest_containerd_stargz_grpc2264536743/root
sandbox.go:131: {"key":"buildkit/1/x2p7pdcz3nxxrif39jn0e2odc","level":"debug","msg":"checking layer availability","time":"2024-03-21T23:28:58.541771339Z"}
sandbox.go:131: {"key":"buildkit/1/x2p7pdcz3nxxrif39jn0e2odc","level":"debug","mount-point":"/tmp/bktest_containerd_stargz_grpc2264536743/root/snapshotter/snapshots/1/fs","msg":"layer is normal snapshot(overlayfs)","time":"2024-03-21T23:28:58.541948370Z"}
sandbox.go:131: {"key":"buildkit/1/x2p7pdcz3nxxrif39jn0e2odc","level":"debug","msg":"checking layer availability","time":"2024-03-21T23:28:58.547779938Z"}
sandbox.go:131: {"key":"buildkit/1/x2p7pdcz3nxxrif39jn0e2odc","level":"debug","mount-point":"/tmp/bktest_containerd_stargz_grpc2264536743/root/snapshotter/snapshots/1/fs","msg":"layer is normal snapshot(overlayfs)","time":"2024-03-21T23:28:58.547842595Z"}
sandbox.go:128: stdout: /usr/bin/containerd --config /tmp/bktest_containerd2754763782/config.toml
sandbox.go:128: stderr: /usr/bin/containerd --config /tmp/bktest_containerd2754763782/config.toml
sandbox.go:131: > StartCmd 2024-03-21 23:28:58.218950926 +0000 UTC m=+2.758705835 /usr/bin/containerd --config /tmp/bktest_containerd2754763782/config.toml
sandbox.go:131: time="2024-03-21T23:28:58Z" level=warning msg="containerd config version `1` has been deprecated and will be removed in containerd v2.0, please switch to version `2`, see https://github.com/containerd/containerd/blob/main/docs/PLUGINS.md#version-header"
sandbox.go:131: time="2024-03-21T23:28:58.239576602Z" level=info msg="starting containerd" revision=8c087663b0233f6e6e2f4515cee61d49f14746a8 version=v1.7.7
sandbox.go:131: time="2024-03-21T23:28:58.266047572Z" level=info msg="loading plugin \"io.containerd.event.v1.exchange\"..." type=io.containerd.event.v1
sandbox.go:131: time="2024-03-21T23:28:58.266170853Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1
sandbox.go:131: time="2024-03-21T23:28:58.266578726Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.blockfile\"..." type=io.containerd.snapshotter.v1
sandbox.go:131: time="2024-03-21T23:28:58.266732273Z" 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:131: time="2024-03-21T23:28:58.266777097Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1
sandbox.go:131: time="2024-03-21T23:28:58.266806362Z" level=warning
|
Generate annotations:
frontend/dockerfile/dockerfile_test.go#L6560
=== RUN TestIntegration/TestReproSourceDateEpoch/worker=containerd-snapshotter-stargz/frontend=client
=== PAUSE TestIntegration/TestReproSourceDateEpoch/worker=containerd-snapshotter-stargz/frontend=client
=== CONT TestIntegration/TestReproSourceDateEpoch/worker=containerd-snapshotter-stargz/frontend=client
dockerfile_test.go:6560: SOURCE_DATE_EPOCH=1673354096
dockerfile_test.go:6621:
Error Trace: /src/frontend/dockerfile/dockerfile_test.go:6621
/src/util/testutil/integration/run.go:91
/src/util/testutil/integration/run.go:205
Error: Received unexpected error:
rpc error: code = Unavailable desc = error reading from server: EOF
failed to receive status
github.com/moby/buildkit/client.(*Client).solve.func4
/src/client/solve.go:335
golang.org/x/sync/errgroup.(*Group).Go.func1
/src/vendor/golang.org/x/sync/errgroup/errgroup.go:75
runtime.goexit
/usr/local/go/src/runtime/asm_amd64.s:1650
Test: TestIntegration/TestReproSourceDateEpoch/worker=containerd-snapshotter-stargz/frontend=client
sandbox.go:128: stdout: /usr/bin/containerd-stargz-grpc --log-level debug --address /tmp/bktest_containerd_stargz_grpc2963960026/containerd-stargz-grpc.sock --root /tmp/bktest_containerd_stargz_grpc2963960026/root
sandbox.go:128: stderr: /usr/bin/containerd-stargz-grpc --log-level debug --address /tmp/bktest_containerd_stargz_grpc2963960026/containerd-stargz-grpc.sock --root /tmp/bktest_containerd_stargz_grpc2963960026/root
sandbox.go:131: > StartCmd 2024-03-21 23:28:58.067203416 +0000 UTC m=+2.606958345 /usr/bin/containerd-stargz-grpc --log-level debug --address /tmp/bktest_containerd_stargz_grpc2963960026/containerd-stargz-grpc.sock --root /tmp/bktest_containerd_stargz_grpc2963960026/root
sandbox.go:131: {"key":"buildkit/1/3l4pmnxuxy6i1xv8e2tajirf2","level":"debug","msg":"checking layer availability","time":"2024-03-21T23:28:58.603601944Z"}
sandbox.go:131: {"key":"buildkit/1/3l4pmnxuxy6i1xv8e2tajirf2","level":"debug","mount-point":"/tmp/bktest_containerd_stargz_grpc2963960026/root/snapshotter/snapshots/1/fs","msg":"layer is normal snapshot(overlayfs)","time":"2024-03-21T23:28:58.603707702Z"}
sandbox.go:131: {"key":"buildkit/1/3l4pmnxuxy6i1xv8e2tajirf2","level":"debug","msg":"checking layer availability","time":"2024-03-21T23:28:58.609803444Z"}
sandbox.go:131: {"key":"buildkit/1/3l4pmnxuxy6i1xv8e2tajirf2","level":"debug","mount-point":"/tmp/bktest_containerd_stargz_grpc2963960026/root/snapshotter/snapshots/1/fs","msg":"layer is normal snapshot(overlayfs)","time":"2024-03-21T23:28:58.609862554Z"}
sandbox.go:131: {"key":"buildkit/2/qwqh9s1izqwd2iaknonm9ydie","level":"debug","msg":"checking layer availability","time":"2024-03-21T23:28:59.137211361Z"}
sandbox.go:131: {"key":"buildkit/2/qwqh9s1izqwd2iaknonm9ydie","level":"debug","mount-point":"/tmp/bktest_containerd_stargz_grpc2963960026/root/snapshotter/snapshots/2/fs","msg":"layer is normal snapshot(overlayfs)","time":"2024-03-21T23:28:59.137273227Z"}
sandbox.go:131: {"key":"buildkit/2/qwqh9s1izqwd2iaknonm9ydie","level":"debug","msg":"checking layer availability","time":"2024-03-21T23:28:59.142376241Z"}
sandbox.go:131: {"key":"buildkit/2/qwqh9s1izqwd2iaknonm9ydie","level":"debug","mount-point":"/tmp/bktest_containerd_stargz_grpc2963960026/root/snapshotter/snapshots/2/fs","msg":"layer is normal snapshot(overlayfs)","time":"2024-03-21T23:28:59.142429120Z"}
sandbox.go:131: {"key":"buildkit/3/tmp-toy35nvphhj8tvug5ouv4r0x5 sha256:67a4178b7d47beb6a1f697a593bd0c6841c67eb0da00f2badefb05fd30671490","level":"info","msg":"preparing filesystem mount at mountpoint=/tmp/bktest_containerd_stargz_grpc2963960026/root/snapshotter/snapshots/3/fs","parent":"","time":"2024-03-21T23:28:59.176040087Z"}
sandbox.go:131: {"key":"buildkit/3/tmp-toy35nvphhj8tvug5ouv4r0x5 sha256:67a4178b7d47beb6a1f
|
Generate annotations:
frontend/dockerfile/dockerfile_addchecksum_test.go#L93
=== RUN TestIntegration/TestAddChecksum/worker=containerd-snapshotter-stargz/frontend=builtin/DigestMismatch
dockerfile_addchecksum_test.go:93:
Error Trace: /src/frontend/dockerfile/dockerfile_addchecksum_test.go:93
Error: An error is expected but got nil.
Test: TestIntegration/TestAddChecksum/worker=containerd-snapshotter-stargz/frontend=builtin/DigestMismatch
Messages: digest mismatch
--- FAIL: TestIntegration/TestAddChecksum/worker=containerd-snapshotter-stargz/frontend=builtin/DigestMismatch (0.02s)
|
Generate annotations:
frontend/dockerfile/dockerfile_addchecksum_test.go#L110
=== RUN TestIntegration/TestAddChecksum/worker=containerd-snapshotter-stargz/frontend=builtin/DigestWithKnownButUnsupportedAlgoName
dockerfile_addchecksum_test.go:110:
Error Trace: /src/frontend/dockerfile/dockerfile_addchecksum_test.go:110
Error: An error is expected but got nil.
Test: TestIntegration/TestAddChecksum/worker=containerd-snapshotter-stargz/frontend=builtin/DigestWithKnownButUnsupportedAlgoName
Messages: unsupported digest algorithm
--- FAIL: TestIntegration/TestAddChecksum/worker=containerd-snapshotter-stargz/frontend=builtin/DigestWithKnownButUnsupportedAlgoName (0.03s)
|
Generate annotations:
frontend/dockerfile/dockerfile_addchecksum_test.go#L127
=== RUN TestIntegration/TestAddChecksum/worker=containerd-snapshotter-stargz/frontend=builtin/DigestWithUnknownAlgoName
dockerfile_addchecksum_test.go:127:
Error Trace: /src/frontend/dockerfile/dockerfile_addchecksum_test.go:127
Error: An error is expected but got nil.
Test: TestIntegration/TestAddChecksum/worker=containerd-snapshotter-stargz/frontend=builtin/DigestWithUnknownAlgoName
Messages: unsupported digest algorithm
--- FAIL: TestIntegration/TestAddChecksum/worker=containerd-snapshotter-stargz/frontend=builtin/DigestWithUnknownAlgoName (0.02s)
|
Generate annotations:
frontend/dockerfile/dockerfile_addchecksum_test.go#L144
=== RUN TestIntegration/TestAddChecksum/worker=containerd-snapshotter-stargz/frontend=builtin/DigestWithoutAlgoName
dockerfile_addchecksum_test.go:144:
Error Trace: /src/frontend/dockerfile/dockerfile_addchecksum_test.go:144
Error: An error is expected but got nil.
Test: TestIntegration/TestAddChecksum/worker=containerd-snapshotter-stargz/frontend=builtin/DigestWithoutAlgoName
Messages: invalid checksum digest format
--- FAIL: TestIntegration/TestAddChecksum/worker=containerd-snapshotter-stargz/frontend=builtin/DigestWithoutAlgoName (0.02s)
|
Generate annotations:
frontend/dockerfile/dockerfile_addchecksum_test.go#L163
=== RUN TestIntegration/TestAddChecksum/worker=containerd-snapshotter-stargz/frontend=builtin/NonHTTPSource
dockerfile_addchecksum_test.go:163:
Error Trace: /src/frontend/dockerfile/dockerfile_addchecksum_test.go:163
Error: An error is expected but got nil.
Test: TestIntegration/TestAddChecksum/worker=containerd-snapshotter-stargz/frontend=builtin/NonHTTPSource
Messages: checksum can't be specified for non-HTTP sources
--- FAIL: TestIntegration/TestAddChecksum/worker=containerd-snapshotter-stargz/frontend=builtin/NonHTTPSource (0.02s)
|
Test
Process completed with exit code 1.
|
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: codecov/codecov-action@v3, actions/github-script@v6, actions/upload-artifact@v3. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.
|
Loading