fix(ci): include package manifests in node_modules cache keys - #2472
Conversation
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-02 05:44:50 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 4 non-blocking
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2472 +/- ##
=======================================
Coverage 95.93% 95.93%
=======================================
Files 225 225
Lines 25338 25338
Branches 9218 9218
=======================================
Hits 24308 24308
Misses 417 417
Partials 613 613 🚀 New features to boost your workflow:
|
Motivation
.nvmrcand lockfiles, allowing apackage.json-only change to reuse stale or mutatednode_modulesand skipnpm civalidation and lifecycle scripts.review-enrichmentcache, introducing the same bypass risk for that separate install.Description
.github/workflows/ci.ymlto includepackage.json, workspace manifests (apps/*/package.json,packages/*/package.json), andpackage-lock.json, and update the explanatory comment accordingly.review-enrichmentcache key to includereview-enrichment/package.jsonalongside itspackage-lock.json, and update its comment.test/unit/ci-dependency-cache.test.tsto assert the manifest-aware cache keys for both the root andreview-enrichmentcache entries and to reflect the amended comment text.Testing
npx vitest run test/unit/ci-dependency-cache.test.ts --reporter=dot, which passed (2/2 tests).git diff --check, which reported no issues in the modified files.npm run actionlintfailed in this environment due to network/setup limitations reachinggithub.comand a WASM fallback reporting the repository's custom self-hosted label; this is an environment limitation and not caused by the change.npm run test:cicould not complete here because it stops at the sameactionlintsetup failure in this environment.Codex Task