Repository navigation
Restore stable test storage for Helix results - #17429
Merged
Merged
Conversation
Use the stable Helix work item name as automatedTestStorage instead of per-build result metadata. Keep Helix job correlation in the result comment so Azure DevOps can reuse test case references across builds. Co-authored-by: Copilot <[email protected]> Copilot-Session: 810f897d-3e88-4973-9e90-5e76fb0ba4bc
Contributor
There was a problem hiding this comment.
Pull request overview
This PR restores stable Azure DevOps test definition identity for Helix result uploads by ensuring AutomatedTestStorage is set to the stable Helix work item name, while keeping per-submission correlation data (job/work item) in the Comment field to aid diagnostics and traceability.
Changes:
- Update result publishing APIs to accept an explicit
testStoragevalue and flow it through conversion/publish. - Set
AutomatedTestStorageto the provided stable work item name instead of embedding per-job metadata. - Add a regression test ensuring differing Helix job IDs produce identical
AutomatedTestStoragewhile preserving distinctCommentcontent.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| src/Microsoft.DotNet.Helix/Sdk.Tests/Microsoft.DotNet.Helix.Sdk.Tests/AzureDevOpsResultPublisherTests.cs | Updates call sites for the new testStorage parameter and adds a regression test validating stable AutomatedTestStorage behavior. |
| src/Microsoft.DotNet.Helix/JobMonitor/TestResults/AzureDevOpsResultPublisher.cs | Threads a testStorage parameter through upload/convert logic and uses it for AutomatedTestStorage. |
| src/Microsoft.DotNet.Helix/JobMonitor/Services/AzureDevOpsService.cs | Passes results.WorkItemName as the stable testStorage when uploading results. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Retain result metadata because CheckAzurePipelinesTestResults consumes the classic Helix comment contract to correlate failures with work item console logs. Co-authored-by: Copilot <[email protected]> Copilot-Session: 810f897d-3e88-4973-9e90-5e76fb0ba4bc
Pass the work item name and job ID directly to the publisher, construct the established correlation comment there, and document why Azure DevOps test storage must remain stable across builds. Co-authored-by: Copilot <[email protected]> Copilot-Session: 810f897d-3e88-4973-9e90-5e76fb0ba4bc
virekumar
approved these changes
Aug 27, 2026
garath
approved these changes
Aug 27, 2026
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
Restore the Helix work item name as
automatedTestStoragewhen the Job Monitor publishes test results.The monitor currently serializes
{ HelixJobId, HelixWorkItemName }into bothcommentandautomatedTestStorage. BecauseHelixJobIdchanges for every submission, Azure DevOps sees a different test definition on every pipeline build and creates new test case reference rows instead of reusing existing definitions. At runtime scale this creates substantial test-definition insertion pressure and contributes to result-upload 503s.This change returns to the original behavior:
automatedTestStorageuses the stable Helix work item name.comment.This PR is intentionally separated from the broader Job Monitor result-processing refactor.
Validation
Microsoft.DotNet.Helix.Sdk.Tests: 300 passed