Repository navigation
Always use qualified Helix test names - #17619
Closed
Evangelink wants to merge 1 commit into
Closed
Evangelink wants to merge 1 commit into
Evangelink wants to merge 1 commit into
Conversation
Co-authored-by: Copilot App <[email protected]>
Contributor
There was a problem hiding this comment.
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
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) | ||
| { |
1 task done
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.

Summary
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--use-fully-qualified-test-namedotnet/arcademainTo double check: