Repository navigation
ci: run browser unit tests in a separate job - #341809
Merged
Sandeep Somavarapu (sandy081) merged 1 commit intoOct 16, 2026
Merged
Conversation
Logan Ramos (lramos15)
force-pushed
the
lramos15/agents/split-browser-unit-tests
branch
from
October 15, 2026 16:45
702eb2c to
789e729
Compare
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
Static review identified no actionable issues; the split preserves test selection and required checks while avoiding runner-label collisions.
0 open findings
What changed in this PR
Reduces PR validation time by running browser unit tests separately from integration and smoke tests across all three platforms.
Changes:
- Splits browser tests into two parallel matrix parts and preserves required check names through gate jobs.
- Adds a Windows runner-label suffix to distinguish unit-only jobs.
| File | Description |
|---|---|
.github/workflows/pr.yml |
Adds browser test matrices and required-check gates. |
.github/workflows/pr-win32-test.yml |
Keeps Windows runner labels unique for unit-only jobs. |
🧠 Review effort: Balanced
💡 Configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Logan Ramos (lramos15)
force-pushed
the
lramos15/agents/split-browser-unit-tests
branch
from
October 15, 2026 17:06
789e729 to
01c5f36
Compare
Logan Ramos (lramos15)
marked this pull request as ready for review
October 15, 2026 18:39
Alex Ross (alexr00)
previously approved these changes
Oct 16, 2026
Base automatically changed from
lramos15/agents/shard-tests-for-faster-ci
to
main
October 16, 2026 11:08
Browser unit tests take 7-9 minutes of each <OS> / Browser job, making Linux / Browser the slowest PR job once the Electron smoke tests are sharded. Run the unit tests and the integration and smoke tests as two matrix parts, and keep the required <OS> / Browser checks with a gate job. Refs #341382 Co-authored-by: Copilot <[email protected]>
Logan Ramos (lramos15)
force-pushed
the
lramos15/agents/split-browser-unit-tests
branch
from
October 16, 2026 11:08
01c5f36 to
ead841c
Compare
Ladislau Szomoru (lszomoru)
approved these changes
Oct 16, 2026
Contributor
Sandeep Somavarapu (sandy081)
approved these changes
Oct 16, 2026
Sandeep Somavarapu (sandy081)
deleted the
lramos15/agents/split-browser-unit-tests
branch
October 16, 2026 13:31
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.
Refs #341382. Stacked on #341808.
Once #341808 shards the Electron smoke tests, Linux / Browser (~17.5 min) becomes the slowest PR job. About 9 minutes of that is browser unit tests, which run one after another with the browser integration and smoke tests. This PR runs the browser unit tests in parallel with the integration and smoke tests. The required checks keep their names.
Changes
<OS> (unit) / Browserruns the unit tests, and<OS> (integration & smoke) / Browserruns the integration and smoke tests. Coverage is the same as the single job before.browser-checks, reports the existing required<OS> / Browserchecks. A platform's check fails if either of its parts did not succeed.-unitsuffix to the WindowsJobIdrunner label, so the two Browser parts don't collide. This also renames the existing Electron-Unit label towindows-test-Electron-Unit-unit, which is harmless.Expected impact
Step timings from run 38443277116:
The new parts each add about 2 minutes of job setup, including one more macOS xlarge runner per run.
How to test
This PR's CI runs both parts and the gate job end to end.
Validation done:
actionlint -shellcheck= .github/workflows/pr.yml .github/workflows/pr-linux-test.yml .github/workflows/pr-darwin-test.yml .github/workflows/pr-win32-test.ymlon this branch, stacked on ci: shard Electron smoke tests across two jobs per platform #341808: no new findings. The only findings are 6 existing warnings about unknown self-hosted runner labels.JobIdlabel and artifact name for every Windows test job (Electron-Unit, Electron, both smoke shards, both browser parts, Remote): all unique.success; it fails onfailure,cancelledandskipped.