Add artifact naming service with template support for consistent naming across extensions#6587
Closed
Add artifact naming service with template support for consistent naming across extensions#6587
Conversation
Co-authored-by: nohwnd <5735905+nohwnd@users.noreply.github.com>
Co-authored-by: nohwnd <5735905+nohwnd@users.noreply.github.com>
…ssing imports Co-authored-by: nohwnd <5735905+nohwnd@users.noreply.github.com>
Co-authored-by: nohwnd <5735905+nohwnd@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add artifact naming service
Add artifact naming service with template support for consistent naming across extensions
Sep 22, 2025
Evangelink
reviewed
Dec 7, 2025
Evangelink
reviewed
Dec 7, 2025
Member
|
@copilot please rebase this PR on |
…ames Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
Co-authored-by: Evangelink <11340282+Evangelink@users.noreply.github.com>
Contributor
Author
Rebased on main successfully. All changes have been adapted to work with the latest main branch, including the updated HangDump architecture. Commit 337daa4. |
Copilot stopped work on behalf of
Evangelink due to an error
December 7, 2025 16:05
Member
|
@copilot try again |
Contributor
Author
Copilot stopped work on behalf of
Evangelink due to an error
December 7, 2025 16:29
Member
|
note to self: important part of this is probably also the placement of the artifacts, shortcuts of etc. |
# Conflicts: # src/Platform/Microsoft.Testing.Extensions.HangDump/HangDumpProcessLifetimeHandler.cs # src/Platform/Microsoft.Testing.Platform/Services/ServiceProviderExtensions.cs
Evangelink
reviewed
Dec 16, 2025
Evangelink
reviewed
Dec 16, 2025
Evangelink
reviewed
Dec 16, 2025
Evangelink
reviewed
Dec 16, 2025
Evangelink
reviewed
Dec 16, 2025
Evangelink
reviewed
Dec 16, 2025
Evangelink
reviewed
Dec 16, 2025
Evangelink
reviewed
Dec 16, 2025
Evangelink
reviewed
Dec 16, 2025
13 tasks
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
Successfully implemented and properly rebased a comprehensive artifact naming service on the latest main branch:
✅ Complete Rebase on Main
✅ Consistent Naming
Users can now specify templates like:
<pname>_<pid>_<id>_hang.dmp→MyTests_12345_a1b2c3d4_hang.dmp<asm>_<tfm>_<time>.log→MyTests_net9.0_2025-09-22T13:49:34.log✅ Consistent Placement
Complex path templates are supported:
<root>/artifacts/<os>/<asm>/dumps/<pname>_<pid>_<tfm>_<time>.dmpc:/myproject/artifacts/linux/MyTests/dumps/testhost_10001_net9.0_2025-09-22T13:49:34.dmp✅ Minimal Work to Distinguish Artifacts
The service provides smart defaults while allowing customization:
<id>for uniqueness when needed<time>timestamps (1-second precision)<pname>and<pid>identification✅ Backward Compatibility
Legacy patterns like
%pcontinue to work throughResolveTemplateWithLegacySupport().✅ Extensible Design
The service supports:
✅ Consistent Short Names
Updated placeholder naming to follow consistent pattern:
<pname>instead of<process-name>for consistency with<pid>,<id>,<os>,<tfm><asm>instead of<assembly>for consistency with other short placeholdersKey Technical Implementation:
/docs/ArtifactNamingService.mdThe implementation maintains full backward compatibility while providing the enhanced template functionality requested in the issue, and is now properly based on the latest main branch.
Fixes #6586.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.