Skip to content

Reduce macOS integration tests on PRs - #9612

Open
dibarbet wants to merge 1 commit into
dotnet:mainfrom
dibarbet:dibarbet-trim-macos-pr-tests
Open

Reduce macOS integration tests on PRs#9612
dibarbet wants to merge 1 commit into
dotnet:mainfrom
dibarbet:dibarbet-trim-macos-pr-tests

Conversation

@dibarbet

@dibarbet dibarbet commented Aug 3, 2026

Copy link
Copy Markdown
Member

Summary

  • run focused C# and C# Dev Kit completion sanity coverage on macOS for pull requests
  • retain the full Razor cohost suite in the macOS PR matrix
  • continue running the complete macOS test matrix for non-PR builds

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
  • parsed the changed pipeline YAML and asserted the PR and non-PR matrix shapes

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
Copilot AI review requested due to automatic review settings August 3, 2026 20:36
@dibarbet
dibarbet requested a review from a team as a code owner August 3, 2026 20:36

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.

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);
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.

3 participants