-
Notifications
You must be signed in to change notification settings - Fork 843
Transient 429 error fail upload cache cause workflow failure #543
Copy link
Copy link
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Description:
We are using this workflow to setup Java environment. Occasionally, the workflow fails at Post step:
Post job cleanup.
/usr/bin/tar --posix --use-compress-program zstdmt -cf cache.tzst --exclude cache.tzst -P -C /runner/_work/beam/beam --files-from manifest.txt
Warning: Failed to save: Cache service responded with 429 during upload chunk.
/runner/_work/_actions/actions/setup-java/v3.8.0/dist/cleanup/index.js:401
throw new Error(`Cache upload failed because file read failed with ${error.message}`);
^
Error: Cache upload failed because file read failed with EBADF: bad file descriptor, read
at ReadStream.<anonymous> (/runner/_work/_actions/actions/setup-java/v3.8.0/dist/cleanup/index.js:401:31)
at ReadStream.emit (node:events:513:28)
at emitErrorNT (node:internal/streams/destroy:157:8)
at errorOrDestroy (node:internal/streams/destroy:220:7)
at node:internal/fs/streams:262:9
at FSReqCallback.wrapper [as oncomplete] (node:fs:671:5)
Example run: https://github.com/apache/beam/actions/runs/6307333506/job/17123805683?pr=28079
A solution could be ignore this transient error similar to here: coursier/cache-action#131
Task version:
3.8.0 - search that not found similar issue reported to this repo before and not found a fix in recent versions
Platform:
- Ubuntu
- macOS
- Windows
Runner type:
- Hosted
- Self-hosted
Repro steps:
https://github.com/apache/beam/actions/runs/6307333506/job/17123805683?pr=28079
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working