irgaly / xcode-cache

A GitHub Action to store Xcode's Build Cache for incremental build on CI
Other
39 stars 3 forks source link

Occasional errors in cacheHttpClient when trying to upload the cache #71

Open tsal opened 4 days ago

tsal commented 4 days ago
/Users/runner/work/_actions/irgaly/xcode-cache/v1/dist/webpack:/xcode-cache/node_modules/@actions/cache/lib/internal/cacheHttpClient.js:226
                        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> (/Users/runner/work/_actions/irgaly/xcode-cache/v1/dist/webpack:/xcode-cache/node_modules/@actions/cache/lib/internal/cacheHttpClient.js:226:1)
    at ReadStream.emit (node:events:519:28)
    at emitErrorNT (node:internal/streams/destroy:169:8)
    at errorOrDestroy (node:internal/streams/destroy:2[38](https://github.com/twinspires/cdi-ios/actions/runs/11896421081/job/33148283319#step:21:38):7)
    at node:internal/fs/streams:272:9
    at FSReqCallback.wrapper [as oncomplete] (node:fs:682:5)

This appears to be related to actions/cache#596 and actions/setup-node#332

irgaly commented 2 days ago

Thank you for your report!

PR #73 will catch uncaughtException, and log it as warning.

I've released it as v1.8.1, and xcode-cache@v1 is pointing v1.8.1 now. Please check new version!