NX build issues with a restored cache from Github Actions #30760
Unanswered
marellak36
asked this question in
Questions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I'm new to NX and seeking recommendations for optimizing our monorepo CI. We have NodeJS and Java packages, use GitHub Actions with managed runners, and are experiencing intermittent failures with actions/cache@v4. Specifically, we're seeing below error. What's the recommended approach for reliable caching in this setup?" My subsequent jobs are running at times, but intermittently nx build is failing due to below error. Thought it might be due to managed runners but error is not happening all the time.
My GHA logic to save cache:
.nx/cache
key: ${{ github.event.repository.name }}-dev-nx-cache-${{ github.sha }}
restore-keys: |
${{ github.event.repository.name }}-dev-nx-cache-
If i read through the documentation suggestion is to use a "NX_REJECT_UNKNOWN_LOCAL_CACHE=0." How safe is this in the context of NX to use above for prod workflow to speed up builds ?
Beta Was this translation helpful? Give feedback.
All reactions