Repository navigation
Run the Windows unit tests on pull requests to main - #350300
Draft
Bryan Chen (bryanchen-d) wants to merge 2 commits into
Draft
Bryan Chen (bryanchen-d) wants to merge 2 commits into
Bryan Chen (bryanchen-d) wants to merge 2 commits into
Conversation
Pull requests to main now run Windows / Electron-Unit and Windows / Browser-Unit, with the same test plan as their Linux versions. They finish well within the time of the Linux jobs, and catch Windows path bugs before the merge queue. The other Windows jobs still only run in the merge queue and on pull requests to release branches. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
🟢 Approval recommended
There are no active review issues blocking the addition of Windows unit checks to main-branch pull requests.
No open issues 🎉
What changed in this PR
This PR brings Windows Electron and browser unit tests into checks for pull requests to main, catching Windows-specific regressions before the merge queue.
Changes:
- Enables the Windows workflow caller on main-branch PRs, with unit jobs controlled by the existing test-selection outputs.
- Keeps other Windows test jobs restricted to merge groups and release-branch PRs, preserving their existing coverage.
- Updates workflow assertions to verify the revised caller conditions and per-job gating.
| File | Description |
|---|---|
build/lib/test/detectChanges.test.ts |
Updates expectations for Windows workflow invocation, job gating, and runner selection. |
build/lib/test/agentHostTestSelection.test.ts |
Updates Windows integration and Agent Host E2E assertions for input-based gating. |
.github/workflows/pr.yml |
Enables Windows unit checks on main-branch PRs while retaining event restrictions for other Windows tests. |
Review effort: Balanced
…t tests As on Linux, so that the Windows unit tests stay within the time of the Linux jobs when a change runs every unit test. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This branch has not been deployed
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.
Pull requests to
mainnow runWindows / Electron-UnitandWindows / Browser-Unit. Until now these only ran in the merge queue.Why
Several Windows-only bugs this month showed up only in the merge queue, for example path handling in Copilot's
permissionHelpers,getWorktreeFilterOptionsandremoveWorktree. When that happens, the merge group fails, and so do the groups queued behind it. Running the Windows unit tests on the pull request catches these bugs before they are enqueued.In merge groups, both jobs finish about 4 minutes after the run starts. The longest Linux job on pull requests takes longer than that, so these jobs shouldn't add to the pull request's wall time.
What changes
windows-testsjob ofpr.ymlnow always runs, like the Linux test jobs.selected-unit-testsandselected-browser-unit-tests). They skip when the plan selects no test.*_affectedinput only in the merge queue and on pull requests to release branches. Pull requests tomainskip those jobs, as before. This covers integration, extension host, smoke, remote, browser integration and Agent Host E2E.Copilot - Test (Windows)andchat-lib - Test (Windows)are unchanged, and stay merge-queue only.windows-tests, so it reports the new jobs.build/lib/test/detectChanges.test.tsandbuild/lib/test/agentHostTestSelection.test.tsare updated to match the new conditions.