Repository navigation
Shard MVC template tests on Helix - #69898
Merged
Merged
Conversation
Co-authored-by: Copilot <[email protected]>
Contributor
|
Hey @dotnet/aspnet-build, looks like this PR is something you want to take a look at. |
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Filter handling can select incorrect tests, exclude guaranteed quarantine tests, and silently accept empty shards.
3 open findings
What changed in this PR
Adds opt-in Helix sharding to split MVC template tests across two work items per existing queue.
Changes:
- Defines Blazor/Web API and MVC/Razor Pages shards.
- Propagates filters through work-item generation and platform runners.
- Adds discovery checks and combines execution filters with quarantine filtering.
| File | Description |
|---|---|
| src/ProjectTemplates/test/Templates.Mvc.Tests/Templates.Mvc.Tests.csproj | Defines two template-test shards. |
| eng/tools/RepoTasks/BatchHelixWorkItems.cs | Preserves filter metadata in batch commands. |
| eng/tools/HelixTestRunner/TestRunner.cs | Applies filters and expands discovery checks. |
| eng/tools/HelixTestRunner/HelixTestRunnerOptions.cs | Adds the filter option. |
| eng/targets/Helix.targets | Creates separate, non-batched filtered work items. |
| eng/helix/content/runtests.sh | Forwards filters on Unix. |
| eng/helix/content/runtests.cmd | Forwards filters on Windows. |
🧠 Review effort: Balanced
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
Co-authored-by: Copilot <[email protected]>
halter73
approved these changes
Oct 16, 2026
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 22:24 — with
GitHub Actions
Inactive
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 22:25 — with
GitHub Actions
Inactive
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 22:25 — with
GitHub Actions
Inactive
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 22:27 — with
GitHub Actions
Inactive
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 22:28 — with
GitHub Actions
Inactive
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 22:28 — with
GitHub Actions
Inactive
Contributor
|
✅ No documentation PR was created. Confidence that documentation is needed: 2% No docs needed: CI/test infrastructure change (Helix test sharding). Signals showed no_signal and the file list is complete. Documentation surfaces considered
|
wtgodbe
temporarily deployed
to
copilot-pat-pool
October 16, 2026 22:29 — with
GitHub Actions
Inactive
wtgodbe
added a commit
that referenced
this pull request
Nov 4, 2026
Backport to release/11.0, retaining existing project references. (cherry picked from commit 74c0be6) Co-authored-by: Copilot <[email protected]>
This branch was previously 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.


Shard MVC template tests on Helix
Important
Estimated critical-path reduction: about 23 minutes per run. A recent 51.7-minute Windows MVC work item is expected to fall to roughly 29 minutes, saving approximately 25–28% of the template pipeline's typical 82–92 minute wall time, before queueing variance.
Shard MVC template tests on Helix
Description
Adds opt-in per-project Helix test filters and uses them to split
Templates.Mvc.Testsinto two work items on every existing queue:Filtered work items are not batched with other assemblies. The shard filter is applied during discovery and execution, and execution combines the quarantine predicate with the union of the shard and the guaranteed
AlwaysTestTests.SuccessfulTestsclass. Non-quarantined filtered runs also inspect the xUnit results and fail unless at least one non-guaranteed shard test ran, preventing stale selectors from silently dropping coverage. Projects withoutHelixTestSharditems retain their existing single-work-item behavior.The estimate assumes the slower 23.9-minute shard carries approximately the same fixed overhead as the existing 51.7-minute work item. Because the shards run in parallel, this reduces the dominant Windows work item to roughly 29 minutes; actual pipeline savings will vary with Helix queueing and other work items.
Validation:
HelixTestRunnerandRepoTasksbuilt successfully with zero warnings.!.git diff --checkpassed.