Skip to content

[Chore] Speed up frontend CI dependency setup - #2

Draft
openroomote-bruno[bot] wants to merge 1 commit into
masterfrom
chore/speed-up-ci-1dkuclk0tf3yt
Draft

[Chore] Speed up frontend CI dependency setup#2
openroomote-bruno[bot] wants to merge 1 commit into
masterfrom
chore/speed-up-ci-1dkuclk0tf3yt

Conversation

@openroomote-bruno

Copy link
Copy Markdown

​Created by Roomote. View the task or mention @roomote for follow-up asks.

What changed

Make the shared frontend CI setup reuse exact dependency caches keyed by the bun.lock hash, and skip bun install when that exact cache is restored.

Why this change was made

Frontend lint, type-check, and test jobs all repeat dependency setup. The existing weekly cache was restored but still followed by an unconditional install, leaving the largest safe cache win unused.

Impact

Most frontend CI jobs should avoid dependency resolution and package installation on exact cache hits, while cache misses and fallback restores still run bun install --frozen-lockfile. This preserves correctness for changed lockfiles and keeps the cache-generator's unpatched dependency invariant intact.

Expected savings are roughly the duration of a Bun dependency install per frontend job on exact cache hits, typically tens of seconds to a few minutes depending on runner and cache state. This deliberately does not change test sharding, runner sizes, or workflow boundaries; those are higher-risk optimizations that need timing data and separate validation.

Validation was limited to git diff --check and static inspection because actionlint, yq, and a configured YAML parser were unavailable in the sandbox.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant