Skip to content

Improve xplat dump test work item naming#126906

Merged
max-charlamb merged 3 commits intodotnet:mainfrom
max-charlamb:fix/xplat-dump-test-naming
Apr 17, 2026
Merged

Improve xplat dump test work item naming#126906
max-charlamb merged 3 commits intodotnet:mainfrom
max-charlamb:fix/xplat-dump-test-naming

Conversation

@max-charlamb
Copy link
Copy Markdown
Member

@max-charlamb max-charlamb commented Apr 14, 2026

Note

This PR description was generated with the help of Copilot.

Summary

Improve xplat cDAC dump test naming so that both the host platform and dump source platform are visible in test results.

Helix work item names

Before: CdacXPlatDumpTests_windows_x64

After: CdacXPlatDumpTests_host_linux_arm_dumps_windows_x64

Individual xunit test display names

Before: GetModule_Succeeds(config: local/r2r)

After: GetModule_Succeeds(config: local/r2r, target: windows/x64)

The dump source platform is read from dump-info.json (which records the OS and architecture where dumps were generated). For local runs where CDAC_DUMP_ROOT is not set, the display is unchanged.

Include both the host platform and dump source in Helix work item
names so AzDO test results clearly show which host analyzed which
dumps (e.g. CdacXPlatDumpTests_host_linux_arm_dumps_windows_x64).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 14, 2026 21:02
@dotnet-policy-service
Copy link
Copy Markdown
Contributor

Tagging subscribers to this area: @steveisok, @tommcdon, @dotnet/dotnet-diag
See info in area-owners.md if you want to be subscribed.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@max-charlamb max-charlamb force-pushed the fix/xplat-dump-test-naming branch 2 times, most recently from 36e3d09 to 67e11cf Compare April 16, 2026 17:25
Copilot AI review requested due to automatic review settings April 16, 2026 17:25
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

Comment thread src/native/managed/cdac/tests/DumpTests/DumpTestBase.cs
Comment thread src/native/managed/cdac/tests/DumpTests/TestConfiguration.cs Outdated
Comment thread src/native/managed/cdac/tests/DumpTests/TestConfiguration.cs Outdated
Copilot AI review requested due to automatic review settings April 16, 2026 18:52
When running xplat dump tests, include the dump source platform in
TestConfiguration.ToString() so individual test results in AzDO show
which platform's dumps were being analyzed (e.g. 'local/r2r (windows_x64)').

The dump source is extracted from the CDAC_DUMP_ROOT environment variable
which is set by the Helix work item. For local runs, DumpSource is null
and the display is unchanged.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@max-charlamb max-charlamb force-pushed the fix/xplat-dump-test-naming branch from 86bb9a6 to 9934683 Compare April 16, 2026 18:54
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.

Comment thread src/native/managed/cdac/tests/DumpTests/TestConfiguration.cs
Comment thread src/native/managed/cdac/tests/DumpTests/TestConfiguration.cs Outdated
Comment thread src/native/managed/cdac/tests/DumpTests/DumpTestBase.cs
- Use underscore separator (windows_x64) consistently across Helix work
  item names, dump-info.json output, and test display names
- Format test display as parenthesized suffix: local/r2r (windows_x64)
- Pass typeof(string) to AddValue for nullable DumpSource serialization
- Document TargetArchitecture in helix proj properties

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Comment thread src/native/managed/cdac/tests/DumpTests/DumpTestBase.cs
@max-charlamb max-charlamb merged commit 2b46b06 into dotnet:main Apr 17, 2026
61 checks passed
@max-charlamb max-charlamb deleted the fix/xplat-dump-test-naming branch April 17, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants