ci: fix workflows permission and xargs errors#52308
Conversation
92c4d53 to
73db0e2
Compare
|
Looks like GitHub's actions also need to be updated; depending on a deprecated Node function? Run actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c
Found 5 artifact(s)
Filtering artifacts by pattern 'test-reports-unit-arm64-*'
Preparing to download the following artifacts:
- test-reports-unit-arm64-graphdriver (ID: 6272996576, Size: [1128029](tel:1128029), Expected Digest: sha256:9cb057dcef456ec932f6804ee56f4556fc72881431ece8b54dd83f51c8ece62a)
Redirecting to blob download url: https://productionresultssa15.blob.core.windows.net/actions-results/d5a940b6-09c8-4fd8-84bb-4f65b7c4c415/workflow-job-run-61f99edd-7985-5bf5-bd2f-b529e1786830/artifacts/2f98545b7aa470f5a4ea836f2318ef9c05c8389df614d6c5a710bc70ea9662d7.zip
Starting download of artifact to: /tmp/reports
(node:2247) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
(Use `node --trace-deprecation ...` to show where the warning was created)
SHA256 digest of downloaded artifact is 9cb057dcef456ec932f6804ee56f4556fc72881431ece8b54dd83f51c8ece62a
Artifact download completed successfully.
Total of 1 artifact(s) downloaded
Download artifact has finished successfully |
dd30769 to
26675f3
Compare
Which commit caused this? |
|
Haven't been able to find so far! |
|
Oh! I think I may have found it; https://github.com/moby/moby/pull/52277/changes#diff-330839eedc4108104b0a7505d3b129c76ee75a739d4ab4b858f15ec9cdfaba3dR511 - t.Run("engine restart shouldnt kill alive containers", func(t *testing.T) {
+ t.Run("engine restart shouldn't kill alive containers", func(t *testing.T) {Which is ironic because I left a comment on another test, but mostly for easier selection; #52277 (comment) |
|
Let me open a PR with that test-name changed to see if that also makes the problem go away |
|
Opened a PR to rename that test to verify if I'm correct; we should still merge this PR as well to avoid the problem, and probably look if we can make the directory names avoid having these characters; |
|
Needs a rebase |
Fix the exclusion / prune options to prevent trying to search for files
within test-daemon data-directories;
find: ‘bundles/test-integration/TestInspectGraphDriverAPIBC/v1.51/containerd/d6bc175e4a6c2/root’: Permission denied
find: ‘bundles/test-integration/TestInspectGraphDriverAPIBC/vCurrent/graphdriver/dd9fc09e8b137/root’: Permission denied
find: ‘bundles/test-integration/TestInspectGraphDriverAPIBC/vCurrent/containerd/df3728c6d8381/root’: Permission denied
find: ‘bundles/test-integration/TestSecretCreateResolve/df7a41973ce2d/root’: Permission denied
find: ‘bundles/test-integration/TestRestartUserlandProxyUnder2MSL/d6d5230a763ad/root’: Permission denied
find: ‘bundles/test-integration/TestServiceWithPredefinedNetwork/de313d0ffd62f/root’: Permission denied
[...]
Signed-off-by: Sebastiaan van Stijn <[email protected]>
It's failing; possibly due to files containing special chars or quotes, which get mis-interpreted by xargs; ``` find: ‘bundles/test-integration/TestInspectGraphDriverAPIBC/v1.51/containerd/d6bc175e4a6c2/root’: Permission denied find: ‘bundles/test-integration/TestInspectGraphDriverAPIBC/vCurrent/graphdriver/dd9fc09e8b137/root’: Permission denied find: ‘bundles/test-integration/TestInspectGraphDriverAPIBC/vCurrent/containerd/df3728c6d8381/root’: Permission denied find: ‘bundles/test-integration/TestSecretCreateResolve/df7a41973ce2d/root’: Permission denied find: ‘bundles/test-integration/TestRestartUserlandProxyUnder2MSL/d6d5230a763ad/root’: Permission denied find: ‘bundles/test-integration/TestServiceWithPredefinedNetwork/de313d0ffd62f/root’: Permission denied [...] xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option ``` Even when fixing, it's possible that xargs may call tar multiple times if the list of files is too long. - use `-print0` to produce a null-terminated list - skip xargs, and let tar itself handle the files to add Signed-off-by: Sebastiaan van Stijn <[email protected]>
c1253ab to
9c084ca
Compare
|
Rebased 👍 |
xargs: unmatched single quote; by default quotes are special to xargs unless you use the -0 option#52300ci: fix workflow permission errors
Fix the exclusion / prune options to prevent trying to search for files
within test-daemon data-directories;
ci: skip using xargs
It's failing; possibly due to files containing special chars or quotes,
which get mis-interpreted by xargs;
Even when fixing, it's possible that xargs may call tar multiple times if the
list of files is too long.
-print0to produce a null-terminated list- Human readable description for the release notes
- A picture of a cute animal (not mandatory but encouraged)