Avoid UITest snapshot artifact name collisions across stages#33122
Merged
jfversluis merged 3 commits intomainfrom Dec 12, 2025
Merged
Avoid UITest snapshot artifact name collisions across stages#33122jfversluis merged 3 commits intomainfrom
jfversluis merged 3 commits intomainfrom
Conversation
Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com>
Co-authored-by: jfversluis <939291+jfversluis@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix CI artifact error for uitest-snapshot-results
Avoid UITest snapshot artifact name collisions across stages
Dec 11, 2025
This was referenced Dec 11, 2025
Open
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a recurring CI issue where UITest snapshot artifact publishes failed with "artifact already exists" errors. The root cause was that when multiple stages used the same job names (e.g., both android_ui_tests and android_ui_tests_coreclr stages use job name android_ui_tests_${{ project.name }}_${{ api }}), the artifact names collided because they only included $(System.JobName) and $(System.JobAttempt), which were identical across stages.
Key changes:
- Added
$(System.StageName)to artifact names across all 7 UITest snapshot artifact publishes to ensure uniqueness across stages - Updated artifact naming pattern consistently for Android, iOS, iOS CV2, iOS CARV2, Windows, and Mac platforms
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
UITest snapshot artifact publishes were failing with “artifact … already exists” when multiple stages reused the same job names, blocking CI.
$(System.StageName)alongside$(System.JobName)/$(System.JobAttempt)for all platform snapshot publishes (Android, iOS, iOS CV2/CARV2, Windows, Mac) to guarantee uniqueness across stages.HybridWebView.js.mapartifact from source.Example artifact name after change:
Original prompt
💡 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.