Skip to content

ci: run browser unit tests in a separate job - #341809

Merged
Sandeep Somavarapu (sandy081) merged 1 commit into
mainfrom
lramos15/agents/split-browser-unit-tests
Oct 16, 2026
Merged

Sandeep Somavarapu (sandy081) merged 1 commit into
mainfrom
lramos15/agents/split-browser-unit-tests

Conversation

@lramos15

@lramos15 Logan Ramos (lramos15) commented Oct 15, 2026 •

Copy link
Copy Markdown
Member

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

  • Matrix parts: each platform's browser tests run as a two-part matrix. <OS> (unit) / Browser runs the unit tests, and <OS> (integration & smoke) / Browser runs the integration and smoke tests. Coverage is the same as the single job before.
  • Gate job: a matrix gate job, browser-checks, reports the existing required <OS> / Browser checks. A platform's check fails if either of its parts did not succeed.
  • Windows runner label: unit-only jobs add a -unit suffix to the Windows JobId runner label, so the two Browser parts don't collide. This also renames the existing Electron-Unit label to windows-test-Electron-Unit-unit, which is harmless.

Expected impact

Step timings from run 38443277116:

Platform Browser job today Unit part Integration & smoke part
Linux ~17.5 min ~11 min ~8.5 min
Windows ~16 min ~9.5 min ~9 min
macOS ~13.7 min ~8.5 min ~7 min

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.yml on 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.
  • Computed the Windows JobId label and artifact name for every Windows test job (Electron-Unit, Electron, both smoke shards, both browser parts, Remote): all unique.
  • The gate step passes only when the parts' result is success; it fails on failure, cancelled and skipped.

@lramos15 Logan Ramos (lramos15) changed the title lramos15/agents/split browser unit tests ci: run browser unit tests in a separate job Oct 15, 2026
Copilot AI balanced review requested due to automatic review settings October 15, 2026 16:45
@lramos15
Logan Ramos (lramos15) force-pushed the lramos15/agents/split-browser-unit-tests branch from 702eb2c to 789e729 Compare October 15, 2026 16:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 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.

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]>
@github-actions

Copy link
Copy Markdown
Contributor

Screenshot Changes

Base: 4d18028d Current: 0fbad7c9

Changed (1)

sessions/sessionToolbar/sessionToolbar/SubmenuOpen/Light
Before After
before after

@sandy081
Sandeep Somavarapu (sandy081) merged commit 45fa01d into main Oct 16, 2026
48 checks passed
@sandy081
Sandeep Somavarapu (sandy081) deleted the lramos15/agents/split-browser-unit-tests branch October 16, 2026 13:31
@vs-code-engineering vs-code-engineering Bot added this to the 1.143.0 milestone Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants