Repository navigation
perf(ci): Reuse integration dependency installs within test workers - #26720
Conversation
Optional E2E testsSome optional checks were not successful. They do not block the merge. 6 not successful, 56 successful. See the run.
Successful checks
|
size-limit report 📦Compared: adf11c3 (PR test merge using develop at d6653bb) Against: d6653bb (develop) · base run #67480 ✅ Baseline matches: this diff contains only this PR's changes.
|
b108739 to
708f250
Compare
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
708f250 to
75a3fab
Compare
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 75a3fab. Configure here.
Co-Authored-By: OpenAI Codex <codex@openai.com>
| return installation; | ||
| } | ||
|
|
||
| const NPM_INSTALL_MAX_RETRIES = 3; |
There was a problem hiding this comment.
from here on downwards this was just moved to this file as is
Co-Authored-By: OpenAI Codex <codex@openai.com>
mydea
left a comment
There was a problem hiding this comment.
seems a bit complicated, but this was already complicated before xD and the savings seem worth it 👍

What
Reuse identical fixture dependency installations within each Linux CI test worker. Install once per dependency set, then copy into separate scenario directories; custom-setup cases retain fresh installs, and copy failures fall back to a fresh install.
So this does not key on individual dependencies but rather reuses the whole node_modules and package-lock.json in case two scenarios share the exact same dependencies.
Why
Our integration tests install a lot of dependencies and many of these get installed over and over again. This PR implements an in-runner cache to avoid duplicate installs in a CI run. I also tested a persistent GitHub runner cache. In theory this should be even faster because we also save installs across CI runs. However, I did not observe a notable speedup beyond the current approach at the cost of a >2GB cache entry for one dependency set and a lot more added complexity to keep this up to date and not explode in size.
Benchmark on the same
developbase (41856af), with reuse disabled → enabled:Average jobs improved by 4–14s, and slowest test steps by 7–26s. Baseline → reuse, first attempt. Single runs; job durations exclude queues and the shared build.