Dockerfile: Allow files to be excluded from cache on COPY and ADD commands #2846
Annotations
4 errors
Generate annotations:
client/run.go#L269
=== RUN TestIntegration
time="2024-02-23T21:41:13Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:39871"
time="2024-02-23T21:41:13Z" level=info msg=request digest="sha256:be691b1535726014cdf3b715ff39361b19e121ca34498a9ceea61ad776b9c215" mediatype=application/vnd.docker.image.rootfs.foreign.diff.tar size=10240 url="https://gist.github.com/cpuguy83/fcf3041e5d8fb1bb5c340915aabeebe0/raw/eebc59ee14939fc38067aa8b8dfbfba053d0af94/base.tar"
run.go:269: copied docker.io/cpuguy83/buildkit-foreign:latest to local mirror localhost:39871/cpuguy83/buildkit-foreign:latest
time="2024-02-23T21:41:15Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:39871"
run.go:269: copied docker.io/amd64/alpine:latest@sha256:25fad2a32ad1f6f510e528448ae1ec69a28ef81916a004d3629874104f8a7f70 to local mirror localhost:39871/library/alpine:latest
time="2024-02-23T21:41:16Z" level=info msg="trying next host - response was http.StatusNotFound" host="localhost:39871"
run.go:269: copied docker.io/tonistiigi/test:nolayers to local mirror localhost:39871/tonistiigi/test:nolayers
--- FAIL: TestIntegration (5.78s)
|
Generate annotations:
client/client_test.go#L4646
=== RUN TestIntegration/TestStargzLazyInlineCacheImportExport/worker=containerd-snapshotter-stargz
=== PAUSE TestIntegration/TestStargzLazyInlineCacheImportExport/worker=containerd-snapshotter-stargz
=== CONT TestIntegration/TestStargzLazyInlineCacheImportExport/worker=containerd-snapshotter-stargz
client_test.go:4646:
Error Trace: /src/client/client_test.go:4646
/src/util/testutil/integration/run.go:93
/src/util/testutil/integration/run.go:207
Error: Target error should be in err chain:
expected: "not found"
in chain:
Test: TestIntegration/TestStargzLazyInlineCacheImportExport/worker=containerd-snapshotter-stargz
Messages: unexpected error <nil> on layer {MediaType:application/vnd.oci.image.layer.v1.tar+gzip Digest:sha256:51d2d8bd60757918ba85b62a1b87d7a61a6483a7d71f9a122e71223d06582379 Size:3422723 URLs:[] Annotations:map[containerd.io/snapshot/stargz/toc.digest:sha256:e0ff81df830bfb39861775515e8ef1a8cfd969af7fafd3a47b1fc554ed8d8ca7 io.containers.estargz.uncompressed-size:7716352] Data:[] Platform:<nil> ArtifactType:} (0)
sandbox.go:128: stderr: /usr/bin/containerd-stargz-grpc --log-level debug --address /tmp/bktest_containerd_stargz_grpc1406993812/containerd-stargz-grpc.sock --root /tmp/bktest_containerd_stargz_grpc1406993812/root
sandbox.go:131: > StartCmd 2024-02-23 21:45:15.4842845 +0000 UTC m=+266.394125587 /usr/bin/containerd-stargz-grpc --log-level debug --address /tmp/bktest_containerd_stargz_grpc1406993812/containerd-stargz-grpc.sock --root /tmp/bktest_containerd_stargz_grpc1406993812/root
sandbox.go:131: {"key":"buildkit/1/tmp-3k8isdrgmngqj0r32wxbey3c7 sha256:78a822fe2a2d2c84f3de4a403188c45f623017d6a4521d23047c9fbb0801794c","level":"info","msg":"preparing filesystem mount at mountpoint=/tmp/bktest_containerd_stargz_grpc1406993812/root/snapshotter/snapshots/1/fs","parent":"","time":"2024-02-23T21:45:15.831080080Z"}
sandbox.go:131: {"key":"buildkit/1/tmp-3k8isdrgmngqj0r32wxbey3c7 sha256:78a822fe2a2d2c84f3de4a403188c45f623017d6a4521d23047c9fbb0801794c","level":"debug","mountpoint":"/tmp/bktest_containerd_stargz_grpc1406993812/root/snapshotter/snapshots/1/fs","msg":"resolving","parent":"","src":"docker.io/library/alpine:latest/sha256:31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3","time":"2024-02-23T21:45:15.831261047Z"}
sandbox.go:131: {"digest":"sha256:31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3","error":null,"key":"buildkit/1/tmp-3k8isdrgmngqj0r32wxbey3c7 sha256:78a822fe2a2d2c84f3de4a403188c45f623017d6a4521d23047c9fbb0801794c","level":"debug","mountpoint":"/tmp/bktest_containerd_stargz_grpc1406993812/root/snapshotter/snapshots/1/fs","msg":"using default handler","parent":"","ref":"docker.io/library/alpine:latest","src":"docker.io/library/alpine:latest/sha256:31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3","time":"2024-02-23T21:45:15.831447225Z"}
sandbox.go:131: {"key":"buildkit/1/tmp-3k8isdrgmngqj0r32wxbey3c7 sha256:78a822fe2a2d2c84f3de4a403188c45f623017d6a4521d23047c9fbb0801794c","level":"info","mountpoint":"/tmp/bktest_containerd_stargz_grpc1406993812/root/snapshotter/snapshots/1/fs","msg":"Received status code: 401 Unauthorized. Refreshing creds...","parent":"","src":"docker.io/library/alpine:latest/sha256:31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3","time":"2024-02-23T21:45:16.048000633Z"}
sandbox.go:131: {"error":"failed to resolve layer \"sha256:31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3\" from \"docker.io/library/alpine:latest\": 4 error(s) occurred:\n\t* gzip: invalid header\n\t* legacy: failed to get footer gzip reader: gzip: invalid header\n\t* invalid magic number\n\t* gzip: invalid header: failed to resolve target","key":"buildkit/1/tmp-3k8isdrgmngqj0r32wxbey3c7 sha256:78a822fe2a2d2c84f3de4a403188c45f623017d6a4521d23047c9fbb0801794c","level":"debug","mountpoint":"/tmp/bktest_containerd_stargz_grpc1406993812/root/snapshott
|
Generate annotations:
client/client_test.go#L4456
=== RUN TestIntegration/TestStargzLazyRegistryCacheImportExport/worker=containerd-snapshotter-stargz
=== PAUSE TestIntegration/TestStargzLazyRegistryCacheImportExport/worker=containerd-snapshotter-stargz
=== CONT TestIntegration/TestStargzLazyRegistryCacheImportExport/worker=containerd-snapshotter-stargz
client_test.go:4456:
Error Trace: /src/client/client_test.go:4456
/src/util/testutil/integration/run.go:93
/src/util/testutil/integration/run.go:207
Error: Target error should be in err chain:
expected: "not found"
in chain:
Test: TestIntegration/TestStargzLazyRegistryCacheImportExport/worker=containerd-snapshotter-stargz
Messages: unexpected error <nil> on layer {MediaType:application/vnd.oci.image.layer.v1.tar+gzip Digest:sha256:51d2d8bd60757918ba85b62a1b87d7a61a6483a7d71f9a122e71223d06582379 Size:3422723 URLs:[] Annotations:map[containerd.io/snapshot/stargz/toc.digest:sha256:e0ff81df830bfb39861775515e8ef1a8cfd969af7fafd3a47b1fc554ed8d8ca7 io.containers.estargz.uncompressed-size:7716352] Data:[] Platform:<nil> ArtifactType:} (0)
sandbox.go:128: stdout: /usr/bin/containerd-stargz-grpc --log-level debug --address /tmp/bktest_containerd_stargz_grpc1079983707/containerd-stargz-grpc.sock --root /tmp/bktest_containerd_stargz_grpc1079983707/root
sandbox.go:128: stderr: /usr/bin/containerd-stargz-grpc --log-level debug --address /tmp/bktest_containerd_stargz_grpc1079983707/containerd-stargz-grpc.sock --root /tmp/bktest_containerd_stargz_grpc1079983707/root
sandbox.go:131: > StartCmd 2024-02-23 21:42:40.421835398 +0000 UTC m=+111.331676495 /usr/bin/containerd-stargz-grpc --log-level debug --address /tmp/bktest_containerd_stargz_grpc1079983707/containerd-stargz-grpc.sock --root /tmp/bktest_containerd_stargz_grpc1079983707/root
sandbox.go:131: {"key":"buildkit/1/tmp-ynbtzarwxhqzqfnm85k5vcjfl sha256:78a822fe2a2d2c84f3de4a403188c45f623017d6a4521d23047c9fbb0801794c","level":"info","msg":"preparing filesystem mount at mountpoint=/tmp/bktest_containerd_stargz_grpc1079983707/root/snapshotter/snapshots/1/fs","parent":"","time":"2024-02-23T21:42:40.856078018Z"}
sandbox.go:131: {"key":"buildkit/1/tmp-ynbtzarwxhqzqfnm85k5vcjfl sha256:78a822fe2a2d2c84f3de4a403188c45f623017d6a4521d23047c9fbb0801794c","level":"debug","mountpoint":"/tmp/bktest_containerd_stargz_grpc1079983707/root/snapshotter/snapshots/1/fs","msg":"resolving","parent":"","src":"docker.io/library/alpine:latest/sha256:31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3","time":"2024-02-23T21:42:40.856277852Z"}
sandbox.go:131: {"digest":"sha256:31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3","error":null,"key":"buildkit/1/tmp-ynbtzarwxhqzqfnm85k5vcjfl sha256:78a822fe2a2d2c84f3de4a403188c45f623017d6a4521d23047c9fbb0801794c","level":"debug","mountpoint":"/tmp/bktest_containerd_stargz_grpc1079983707/root/snapshotter/snapshots/1/fs","msg":"using default handler","parent":"","ref":"docker.io/library/alpine:latest","src":"docker.io/library/alpine:latest/sha256:31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3","time":"2024-02-23T21:42:40.856469299Z"}
sandbox.go:131: {"key":"buildkit/1/tmp-ynbtzarwxhqzqfnm85k5vcjfl sha256:78a822fe2a2d2c84f3de4a403188c45f623017d6a4521d23047c9fbb0801794c","level":"info","mountpoint":"/tmp/bktest_containerd_stargz_grpc1079983707/root/snapshotter/snapshots/1/fs","msg":"Received status code: 401 Unauthorized. Refreshing creds...","parent":"","src":"docker.io/library/alpine:latest/sha256:31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3","time":"2024-02-23T21:42:41.059613758Z"}
sandbox.go:131: {"error":"failed to resolve layer \"sha256:31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3\" from \"docker.io/library/alpine:latest\": 4 error(s) occurred:\n\t* gzip: invalid header\n\t* legacy: failed to get footer gzip reader: gzip: invalid header\n\t* invalid magic number\n\t* gzip: invalid header: failed t
|
Test
Process completed with exit code 1.
|
Loading