Skip to content

Always use qualified Helix test names - #17619

Closed
Evangelink wants to merge 1 commit into
dotnet:mainfrom
Evangelink:dev/amauryleve/always-qualified-helix-names
Closed

Evangelink wants to merge 1 commit into
dotnet:mainfrom
Evangelink:dev/amauryleve/always-qualified-helix-names

Conversation

@Evangelink

Copy link
Copy Markdown
Member

Summary

  • always group Helix test results by fully qualified test name and use that identity when publishing to Azure DevOps
  • remove the YAML parameter, Job Monitor option, CLI flag, environment variable, and redundant bool plumbing
  • update focused tests and documentation for the unconditional behavior

This keeps the implementation simple now that fully qualified reporting has proven valuable in dotnet/sdk#55404 and no valid opt-out scenario is expected.

Validation

  • .\Build.cmd -test -projects "src\Microsoft.DotNet.Helix\Sdk.Tests\Microsoft.DotNet.Helix.Sdk.Tests\Microsoft.DotNet.Helix.Sdk.Tests.csproj" -binaryLogName HelixSdkTests.binlog
  • verified the built Job Monitor help no longer exposes --use-fully-qualified-test-name
  • verified no stale configuration or opt-in documentation references remain
  • verified the diff is a single commit based directly on current dotnet/arcade main

To double check:

Copilot AI lite review requested due to automatic review settings September 24, 2026 14:07

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 review overview

🟡 Changes recommended

Preserve compatibility for public APIs and templates, or document the breaking change, and update the remaining stale documentation.

Get a fresh assessment by requesting another Copilot review.

Review effort: Lite
Findings: 3 Medium severity

Open (3)
What changed in this PR

This PR makes fully qualified Helix test names mandatory for aggregation and Azure DevOps publishing.

Changes:

  • Removes opt-in YAML, CLI, environment, and internal configuration.
  • Updates aggregation, publishing, tests, and documentation.
  • Adds qualified test identity assertions.
File Summary
src/​Microsoft.DotNet.Helix/​Sdk/​Readme.md Updates reporting documentation.
src/​Microsoft.DotNet.Helix/​Sdk.Tests/​Microsoft.DotNet.Helix.Sdk.Tests/​ResultAggregatorTests.cs Updates aggregation tests.
src/​Microsoft.DotNet.Helix/​Sdk.Tests/​Microsoft.DotNet.Helix.Sdk.Tests/​LocalTestResultsReaderTests.cs Updates reader aggregation tests.
src/​Microsoft.DotNet.Helix/​Sdk.Tests/​Microsoft.DotNet.Helix.Sdk.Tests/​AzureDevOpsResultPublisherTests.cs Updates publishing tests and identity assertions.
src/​Microsoft.DotNet.Helix/​JobMonitor/​TestResults/​TestResultProcessor.cs Removes option plumbing.
src/​Microsoft.DotNet.Helix/​JobMonitor/​TestResults/​ResultAggregator.cs Always groups by fully qualified name.
src/​Microsoft.DotNet.Helix/​JobMonitor/​TestResults/​Model/​AzureDevOpsReportingParameters.cs Removes the reporting option.
src/​Microsoft.DotNet.Helix/​JobMonitor/​TestResults/​AzureDevOpsResultPublisher.cs Always publishes qualified identities.
src/​Microsoft.DotNet.Helix/​JobMonitor/​JobMonitorRunner.cs Removes option propagation.
src/​Microsoft.DotNet.Helix/​JobMonitor/​JobMonitorOptions.cs Removes CLI and environment configuration.
eng/​common/​core-templates/​job/​helix-job-monitor.yml Removes the YAML parameter and forwarded argument.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

/// </summary>
public bool UseFullyQualifiedTestName { get; set; }

public static JobMonitorOptions Parse(string[] args)
string TestRunId,
string? AccessToken = null,
bool UseFullyQualifiedTestName = false,
TestResultAttachmentMode TestResultAttachmentMode = TestResultAttachmentMode.Failed);
Comment on lines 59 to 60
public IReadOnlyList<AggregatedResult> Aggregate(IEnumerable<IEnumerable<TestResult>>? results)
=> Aggregate(results, useFullyQualifiedName: false);

/// <param name="useFullyQualifiedName">
/// When <see langword="true"/>, tests are grouped by their <see cref="TestResult.FullyQualifiedName"/>
/// instead of the display name. This keeps identity stable and avoids merging same-named methods
/// from different classes (a common problem for MSTest, whose display name is only the method name).
/// </param>
public IReadOnlyList<AggregatedResult> Aggregate(IEnumerable<IEnumerable<TestResult>>? results, bool useFullyQualifiedName)
{
@Evangelink Evangelink closed this Sep 24, 2026
@Evangelink
Evangelink deleted the dev/amauryleve/always-qualified-helix-names branch September 24, 2026 17:55
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.

2 participants