Skip to content

Drop unconditional --roll-forward Major for Helix MTP work items - #17124

Merged
Evangelink merged 2 commits into
dotnet:mainfrom
Evangelink:dev/amauryleve/fix-helix-roll-forward-major
Jul 20, 2026
Merged

Evangelink merged 2 commits into
dotnet:mainfrom
Evangelink:dev/amauryleve/fix-helix-roll-forward-major

Conversation

@Evangelink

@Evangelink Evangelink commented Jul 15, 2026 •

Copy link
Copy Markdown
Member

Fixes #17000.

Problem

In CreateMTPWorkItems the emitted Helix work item command unconditionally passed --roll-forward Major:

string command = $"{PathToDotnet} exec --roll-forward Major " + ...

A blanket Major roll-forward can silently run a net8.0 assembly on a net9.0 runtime when the matching runtime is missing. That masks a missing runtime and causes silent loss of multi-TFM coverage — failures look green because the assembly happily runs on a newer runtime instead of failing fast.

Change

Dropped --roll-forward Major from the dotnet exec command so each work item runs on the runtime matching its target framework, letting the runtime default apply (per @Youssef1313's direction on the issue). Added an explanatory comment referencing the issue.

The legacy CreateXUnitWorkItems task keeps its own conditional roll-forward logic; the issue is scoped to the MTP path, so that was left untouched.

cc @Youssef1313 @ilyas1974

Copilot AI review requested due to automatic review settings July 15, 2026 15:58

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 addresses #17000 by preventing Helix xUnit v3 / MTP work items from unconditionally rolling forward to a major .NET runtime, which can mask missing runtimes and silently reduce multi-TFM coverage.

Changes:

  • Removed unconditional --roll-forward Major from the dotnet exec command emitted by CreateXUnitV3WorkItems.
  • Added an in-code comment explaining why roll-forward is intentionally not specified and linking to the tracked issue.
Show a summary per file
File Description
src/Microsoft.DotNet.Helix/Sdk/CreateXUnitV3WorkItems.cs Drops unconditional major roll-forward from the generated Helix work item command and documents rationale.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

Fixes dotnet#17000. A blanket --roll-forward Major could silently run a net8.0 assembly on a net9.0 runtime when the matching runtime was missing, masking failures and causing silent loss of multi-TFM coverage. Let the runtime default apply instead.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: d63e3ee3-85f8-447a-ac73-857d94390919
Copilot AI review requested due to automatic review settings July 15, 2026 16:01
@Evangelink
Evangelink force-pushed the dev/amauryleve/fix-helix-roll-forward-major branch from 82eca1b to 453c264 Compare July 15, 2026 16:01
@Evangelink Evangelink changed the title Drop unconditional --roll-forward Major for Helix xUnit v3/MTP work items Drop unconditional --roll-forward Major for Helix MTP work items Jul 15, 2026

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.

Copilot's findings

  • Files reviewed: 1/1 changed files
  • Comments generated: 1

…mmand

Addresses review feedback: GeneratedCommandHasExpectedShape asserted the command started with 'dotnet exec --roll-forward Major', which would fail after dropping the roll-forward. Now asserts it starts with 'dotnet exec ' and does not contain '--roll-forward'.

Co-authored-by: Copilot App <[email protected]>
Copilot-Session: d63e3ee3-85f8-447a-ac73-857d94390919
Copilot AI review requested due to automatic review settings July 15, 2026 16:05
@Evangelink
Evangelink enabled auto-merge July 15, 2026 16:05

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.

Copilot's findings

  • Files reviewed: 2/2 changed files
  • Comments generated: 0 new

@Evangelink
Evangelink merged commit 7f6fe7f into dotnet:main Jul 20, 2026
15 checks passed
@Evangelink
Evangelink deleted the dev/amauryleve/fix-helix-roll-forward-major branch July 20, 2026 09:19
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 21, 2026
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.

Helix Sdk MTP/xUnit work items unconditionally pass --roll-forward Major which can silently mask missing runtimes

3 participants