Reduce macOS integration tests on PRs - #9612
Open
dibarbet wants to merge 1 commit into
Open
Conversation
Run focused C# and Dev Kit completion sanity coverage plus Razor cohost tests on macOS PR legs, while retaining the full matrix for non-PR builds. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 98a4b068-a5aa-4826-8abb-16e586ac6783
Contributor
There was a problem hiding this comment.
Pull request overview
This PR speeds up pull request CI by reducing the macOS integration test workload to a focused C# + Dev Kit completion sanity run while keeping the full Razor cohost suite on macOS, and leaving the full macOS matrix intact for non-PR builds.
Changes:
- Add a new macOS PR-focused integration test task that runs only the completion integration test for both C# and Dev Kit workspaces.
- Parameterize the Azure Pipelines test-matrix template so macOS can use a reduced matrix on PRs and the full matrix otherwise.
- Add a new npm script for the macOS PR integration test run.
Show a summary per file
| File | Description |
|---|---|
| tasks/tests/testTasks.ts | Adds testIntegrationMacOSPR to run a single completion integration test for both C# and Dev Kit on macOS PRs. |
| tasks/tests/testIntegrationMacOspr.ts | New task entrypoint wiring testIntegrationMacOSPR into the tasks runner. |
| package.json | Adds test:integration:macos-pr script used by the macOS PR pipeline matrix. |
| azure-pipelines/test-matrix.yml | Introduces a matrix template parameter to allow PR/non-PR matrix specialization. |
| azure-pipelines.yml | Uses a reduced macOS test matrix for PullRequest builds, full matrix otherwise. |
Copilot's findings
- Files reviewed: 5/5 changed files
- Comments generated: 1
Comment on lines
+6
to
+9
| import { testIntegrationMacOSPR } from './testTasks'; | ||
| import { runTask } from '../runTask'; | ||
|
|
||
| runTask(testIntegrationMacOSPR); |
JoeRobich
approved these changes
Aug 4, 2026
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
Recent successful PR runs showed macOS finishing last in 9 of 12 runs. The two longest macOS jobs were C# integration tests (20.5 minute median) and Dev Kit integration tests (20 minute median), roughly twice their Windows/Linux runtime.
Testing
npm run compile