Repository navigation
Fix Azure DevOps published test identity - #10706
Conversation
Use the canonical fully-qualified test name and the assembly filename expected by Azure DevOps so live-published results retain existing test history. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0037316d-a7be-4fdb-8083-f503f1e49652
There was a problem hiding this comment.
Note
🤖 Automated review by GitHub Copilot. Generated by the Expert Code Review workflow. To request a follow-up action, reply by tagging @copilot directly.
✅ 22/22 dimensions clean — no findings.
Summary: The change correctly replaces the opaque TestNode.Uid.Value with the shared TestNodeIdentity.GetTestName resolver for automatedTestName, aligning Azure DevOps live publishing with TRX/VSTest-bridge identity semantics. The automatedTestStorage change from Path.GetFileNameWithoutExtension to Path.GetFileName(...).ToLowerInvariant() matches TRX publication conventions. No public API surface changes. New test (CreateTestCaseResult_UsesFullyQualifiedNameAsAutomatedTestName) directly validates the FQN resolution, and the CreateNode helper update with SerializableKeyValuePairStringProperty ensures existing tests exercise the fallback path through TestNodeIdentity. All storage assertions updated consistently.
There was a problem hiding this comment.
Pull request overview
Fixes Azure DevOps live-published test identity to match TRX-based history.
Changes:
- Publishes canonical fully qualified test names.
- Uses lowercase assembly filenames, including extensions, for storage.
- Updates regression, rerun, and data-driven tests.
Show a summary per file
| File | Description |
|---|---|
AzureDevOpsLivePublishingTests.cs |
Verifies canonical names and storage identity. |
AzureDevOpsTestResultsPublisher.ResultFactory.cs |
Resolves canonical test names. |
AzureDevOpsResultIdStore.cs |
Updates identity-key documentation. |
AzureDevOpsPublishConfigurationFactory.cs |
Aligns storage names with TRX publication. |
Review details
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
- Files reviewed: 4/4 changed files
- Comments generated: 0
- Review effort level: Balanced
This comment has been minimized.
This comment has been minimized.
Introduce a non-null local after the assertion so code-quality analysis can prove subsequent result access is safe. Co-authored-by: Copilot App <[email protected]> Copilot-Session: 0037316d-a7be-4fdb-8083-f503f1e49652
🧵 Parallel-safety audit — PR #10706Nothing audited here touches process-global state, shared filesystem paths, or Audited The changed test methods ( Re-run with
|
Azure DevOps live publishing currently sends the opaque
TestNodeUID asautomatedTestName, which disconnects results from history created byPublishTestResults@2and prevents the extension's history-based reporting from matching tests.Use the shared canonical identity resolver to publish the fully-qualified test name. Also align
automatedTestStoragewith TRX publication by using the lowercase assembly filename with its extension. Regression coverage verifies that an opaque node UID does not leak into the published result while rerun and data-driven result identity remains stable.Fixes #10557