ci: Limit test runtime downloads - #333687
Draft
Dmitriy Vasyura (dmitrivMS) wants to merge 2 commits into
Draft
Conversation
Download Electron only for Electron and Remote jobs, and install only the headless Playwright browsers used by Browser jobs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Summary
Reduces test runtime downloads by installing only the binaries each PR job uses:
This is stacked on #333662 to include its split Electron unit/integration jobs. Retarget to
mainafter that PR merges.Expected impact
The current unrestricted Playwright install downloads Chromium, Chromium Headless Shell, Firefox, WebKit, FFmpeg, and platform tools in every job. On Windows that is roughly 474 MB per job. The scoped Browser install is roughly 115 MB, while Electron and Remote jobs skip Playwright browser downloads entirely.
Across the post-#333662 matrix this should avoid roughly 6 GB of downloads per PR and save approximately 15-25 seconds in each Electron/Remote job.
Validation
npm run compiletest/integration/browserdirectly--dry-runresolves only Chromium Headless Shell/FFmpeg/platform tools on Linux and Windows, plus WebKit on macOSFull
npm run hygieneremains blocked on Windows by the existingC:\C:\...\remote\package.jsonpath-resolution issue; workflow YAML is not covered by targeted hygiene.