CLDSRV-955: Cache node_modules instead of yarn download cache#6227
CLDSRV-955: Cache node_modules instead of yarn download cache#6227tcarmet wants to merge 1 commit into
Conversation
Replace `cache: yarn` (which only caches the yarn download dir) with an actions/cache on node_modules keyed by the yarn.lock hash, and make the yarn install / typescript steps conditional on a cache miss. Because the git dependencies compile TypeScript at install time, a warm cache now skips the clone, tsc build and relink entirely. Applied to the setup-ci composite action (used by all functional jobs) and the lint, async-migration-report, unit-tests and cleanup-gcp-buckets jobs.
Hello tcarmet,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
❌ 2 Tests Failed:
View the top 1 failed test(s) by shortest run time
View the full list of 3 ❄️ flaky test(s)
To view more test analytics, go to the Test Analytics Dashboard |
node_modules cache - CI timing impactMeasured on a warm run of this branch (run
* Functional jobs install via the Takeaways (honest)
Note: the functional suite is independently flaky on the shared MPU abort-race teardown ( |
Speeds up CI by caching the installed dependency tree between runs instead of only the package-manager download cache. Because several dependencies compile TypeScript at install time, previous runs re-cloned, recompiled and relinked them on every job despite a "cache hit"; now a warm cache skips that work entirely and jobs reuse the prior install. This is the first of two changes tracked under CLDSRV-955 to reduce the
testsworkflow wall time; the second parallelizes the image builds.