Repository navigation
perf(ci): reuse Node and pnpm installations within jobs - #27127
Merged
Merged
Conversation
Contributor
size-limit report 📦Compared: a3f7e22 (PR test merge using develop at 0e3e86c) Against: 0e3e86c (develop) · base run #68733 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 1 not successful, 64 successful. See the run.
Successful checks
|
Member
Author
|
@sentry-junior review |
nicohrubec
marked this pull request as ready for review
December 3, 2026 14:20
javascript-sdk-gitflow
Bot
requested review from
Lms24,
RulaKhaled and
timfish
December 3, 2026 14:21
Co-Authored-By: OpenAI Codex <codex@openai.com>
nicohrubec
force-pushed
the
feat/reuse-ci-runtime-installations
branch
from
December 3, 2026 14:50
e3143a9 to
254315b
Compare
timfish
approved these changes
Dec 3, 2026
timfish
approved these changes
Dec 3, 2026
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
Reuse Node and pnpm installations already available in the job.
Why
E2E jobs build SDK packages locally, then prepare the test application. Both actions set up Node and pnpm, but they run on the same runner: the installations from SDK preparation are still on disk when app preparation starts.
I have been observing some rate limiting on our cache restore and this saves around 600 cache restores per run so hopefully that improves this situation.
Skip the second GitHub cache restore and reuse those files instead:
Node version selection still runs, including switching to the app’s version when needed. Separate jobs still restore from GitHub’s cache as usual. This reduces duplicate cache requests without changing test coverage or parallelism.