[Chore] Speed up CI dependency setup - #1
Draft
openroomote-bruno[bot] wants to merge 2 commits into
Draft
openroomote-bruno[bot] wants to merge 2 commits into
openroomote-bruno[bot] wants to merge 2 commits into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Frontend CI now fingerprints the Bun lockfile, manifest,
.nvmrc, and any explicit Node version override in its dependency cache key. Jobs skipbun install --frozen-lockfileon an exact cache hit while continuing to reinstall after partial or missing restores.Why this change was made
The CI setup restored
node_modulesbut still reinstalled dependencies in every frontend job, repeating work across the test and build matrix. The cache remains centralized and immutable, and cache misses retain the existing frozen install path for correctness.Impact
A warm exact cache removes the dependency-install step from each frontend job, expected to save roughly 1-3 minutes per frontend job and reduce aggregate PR CI time by several minutes across the matrix. Cache invalidation now follows dependency and runtime changes, avoiding unsafe reuse of native modules. Workflow-level cancellation for superseded PR runs was reviewed but left for follow-up because this delivery credential cannot modify
.github/workflows; the push was rejected when that permission was required. YAML formatting checks andgit diff --checkpassed. Full GitHub Actions linting was unavailable locally becauseactionlintandyamllintare not installed.