Conversation
…novate-config-validator
There was a problem hiding this comment.
Pull request overview
This PR adds npm caching to the lint CI workflow to improve reliability and prevent 403 errors from npm registry rate limiting that were observed during the renovate-config-validator step.
Changes:
- Added actions/cache@v5 configuration for npm dependencies before the renovate-config-validator action
- Cache stores ~/.npm directory with a key based on the runner OS
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
.github/workflows/tests.yml
Outdated
| uses: actions/cache@v5 | ||
| with: | ||
| path: ~/.npm | ||
| key: renovate-npm-${{ runner.os }} |
There was a problem hiding this comment.
Consider adding a 'restore-keys' configuration to provide a fallback mechanism. This would allow the cache to be restored from a partial key match if an exact match isn't found, which is particularly useful during dependency updates.
The Docling cache implementation at lines 121-122 demonstrates this pattern:
key: ${{ runner.os }}-docling-${{ hashFiles('uv.lock') }}
restore-keys: ${{ runner.os }}-docling-
For this npm cache, you could add:
restore-keys: |
renovate-npm-${{ runner.os }}-
This would allow the workflow to reuse a previous cache even if the key has changed, reducing the likelihood of hitting rate limits during cache misses.
| key: renovate-npm-${{ runner.os }} | |
| key: renovate-npm-${{ runner.os }} | |
| restore-keys: | | |
| renovate-npm-${{ runner.os }}- |
This reverts commit 7e3a83a.
lintworkflow got killed in this CI run by 403s:Let's add
npmcaching to speed this up and increase reliability