-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(core): gracefully handle errors when writing the latest output hash cache files #6959
Conversation
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/nrwl/nx-dev/7s44TAfKXvMDhPwwPDinPQzpDsR3 [Deployment for f6b611e canceled] |
@minijus thanks for contributing! A |
@leosvelperez Nx local cache solution is written in a way that it never considers failures of atomic fs operations. Usually, that never happens - especially on single dev machine. However, using local cache on CI where cache directory is mounted is another story. In our case we mount NFS based cache volume to CI builds. There are many parallel reads/writes to that directory and sometimes they fail. Ideally cache implementation should be written in a way that failure to read/write cache would not impact the run itself, instead it would fallback to running actual task. |
@minijus I agree, I didn't say otherwise :) Applying this fix is not in doubt, but we might be hiding another issue looking at your comment here where you say |
We have started seeing this failures only on 12.9 (there were no failures on 12.8). The difference is that 12.9 adds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for contributing!
Instead of failing the task run process it will allow the process to continue. Fixes of #6957
This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request. |
Instead of failing the task run process it will allow the process to continue.
Fixes of #6957