Skip to content

[release/11.0] Shard MVC template tests on Helix - #70285

Merged
wtgodbe merged 1 commit into
dotnet:release/11.0from
wtgodbe:wtgodbe/backport-mvc-shards-11
Nov 4, 2026
Merged

wtgodbe merged 1 commit into
dotnet:release/11.0from
wtgodbe:wtgodbe/backport-mvc-shards-11

Conversation

@wtgodbe

@wtgodbe wtgodbe commented Nov 4, 2026

Copy link
Copy Markdown
Member

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:

  • XML parsing, shell syntax, and git diff --check pass.
  • Real MSBuild evaluation of the changed item groups produces the unchanged default workitem and the two filtered/nonbatched workitems, with correct Windows and Unix commands.
  • An isolated .NET 10 harness compiled the linked runner/options/process and batching-task sources and passed 53 assertions covering filter propagation, quarantine handling, sentinel-only/missing/malformed/empty results, discovery failures, failed execution, and batching. The baseline runner fails the shard-filter assertion; the backport passes.
  • Two independent review agents reviewed this change; neither reported significant issues.

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.

Backport to release/11.0, retaining existing project references.

(cherry picked from commit 74c0be6)

Co-authored-by: Copilot <[email protected]>
@wtgodbe
wtgodbe requested a review from a team as a code owner November 4, 2026 01:56
Copilot AI balanced review requested due to automatic review settings November 4, 2026 01:56

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.

🔵 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

@wtgodbe wtgodbe added the tell-mode Indicates a PR which is being merged during tell-mode label Nov 4, 2026
@wtgodbe
wtgodbe merged commit 7633f77 into dotnet:release/11.0 Nov 4, 2026
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tell-mode Indicates a PR which is being merged during tell-mode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants