Repository navigation
[release/11.0] Shard MVC template tests on Helix - #70285
Merged
wtgodbe merged 1 commit intoNov 4, 2026
Merged
Conversation
Backport to release/11.0, retaining existing project references. (cherry picked from commit 74c0be6) Co-authored-by: Copilot <[email protected]>
Contributor
There was a problem hiding this comment.
🔵 Needs a closer look
The backport changes shared Helix command generation and Windows/Unix launchers, but pinned release/11.0 SDK CI and live Helix validation remain outstanding and are not covered by the isolated harness.
No open issues 🎉
What changed in this PR
Backports #69898 to release/11.0, splitting MVC template tests into parallel Helix work items to reduce pipeline duration while preserving existing project references and default behavior for unsharded projects.
Changes:
- Defines two nonbatched shards: Blazor/Web API and MVC/Razor Pages.
- Passes shard filters through work-item generation, platform scripts, test discovery, and execution.
- Preserves quarantine and sentinel handling, and rejects nonquarantined filtered runs with missing, invalid, or sentinel-only results.
| File | Description |
|---|---|
| src/ProjectTemplates/test/Templates.Mvc.Tests/Templates.Mvc.Tests.csproj | Defines the two MVC template test shards. |
| eng/tools/RepoTasks/BatchHelixWorkItems.cs | Validates filter consistency and forwards filters in batch commands. |
| eng/tools/HelixTestRunner/TestRunner.cs | Applies filters and validates discovery and shard results. |
| eng/tools/HelixTestRunner/HelixTestRunnerOptions.cs | Adds the optional test-filter argument. |
| eng/targets/Helix.targets | Generates filtered, nonbatched shard work items. |
| eng/helix/content/runtests.sh | Forwards the filter to the runner on Unix. |
| eng/helix/content/runtests.cmd | Forwards the filter on Windows while preserving exclamation marks. |
Review effort: Balanced
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.
Backports #69898 to
release/11.0.Splits MVC template tests into two filtered, nonbatched Helix workitems. Passes filters through discovery and execution, preserves quarantine/sentinel handling, and rejects nonquarantined shards that produce only sentinel or missing/invalid results.
The project-file conflict was resolved by retaining release/11.0's existing references and adding the shard definitions in a separate item group. The remainder is the original change.
Validation:
git diff --checkpass.The repository build is blocked locally by the missing pinned SDK
11.0.100-rc.3.26522.148. The isolated harness does not replace a build with that SDK or a live Helix/template test run; those remain for CI.