Repository navigation
[release/10.0] Avoid artifact name collisions on job retries - #39052
Merged
Merged
Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The YAML-only change addresses artifact collisions with no unresolved issues.
Review effort: Lite
Findings: None
What changed in this PR
Updates Azure DevOps test-result artifact names to avoid collisions when jobs are retried.
Changes:
- Appends
$(System.JobAttempt)to Windows, macOS, and Linux artifact names. - Prevents retry attempts from failing during artifact publication.
| File | Description |
|---|---|
azure-pipelines-public.yml |
Adds job-attempt suffixes to three test-result artifact names. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
AndriySvyryd
approved these changes
Sep 21, 2026
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
AndriySvyryd
approved these changes
Sep 21, 2026
wtgodbe
enabled auto-merge (squash)
September 21, 2026 22:20
wtgodbe
added a commit
that referenced
this pull request
Sep 22, 2026
* [release/10.0] Source code updates from dotnet/dotnet (#39043) Update dependencies from build 332911 Updated Dependencies: Microsoft.DotNet.Arcade.Sdk, Microsoft.DotNet.Build.Tasks.Templating, Microsoft.DotNet.Helix.Sdk (Version 10.0.0-beta.26469.106 -> 10.0.0-beta.26469.112) Microsoft.Extensions.Caching.Memory, Microsoft.Extensions.Configuration, Microsoft.Extensions.Configuration.Abstractions, Microsoft.Extensions.Configuration.EnvironmentVariables, Microsoft.Extensions.Configuration.Json, Microsoft.Extensions.DependencyInjection, Microsoft.Extensions.DependencyModel, Microsoft.Extensions.Logging, Microsoft.NETCore.App.Ref, System.Formats.Asn1, System.Runtime.Caching, System.Text.Encodings.Web, System.Text.Json (Version 10.0.13 -> 10.0.13) Microsoft.Extensions.HostFactoryResolver.Sources, Microsoft.NETCore.Platforms (Version 10.0.13-servicing.26469.106 -> 10.0.13-servicing.26469.112) [[ commit created by automation ]] Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> * [release/10.0]: Bump Microsoft.Azure.Cosmos from 3.63.0 to 3.63.1 (#39027) * Merge pull request #39052 from dotnet/fix-artifact-retry-release-10.0 [release/10.0] Avoid artifact name collisions on job retries --------- Co-authored-by: dotnet-maestro[bot] <42748379+dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: dotnet-maestro[bot] <dotnet-maestro[bot]@users.noreply.github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: William Godbe <wigodbe@microsoft.com> Co-authored-by: Andriy Svyryd <AndriySvyryd@users.noreply.github.com>
This was referenced Sep 23, 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.

Fixes #39005
Backports #39048
Description
Azure DevOps job retries reuse the build ID, while published artifact names must be unique within that build. Append
$(System.JobAttempt)to always-published test-result artifact names so each attempt publishes a distinct artifact. Also publish attempt-scoped TestResults artifacts from the internal Windows, macOS, and Linux test jobs.Customer impact
A retried CI job can fail while publishing test results because the first attempt already created an artifact with the same name. Test results from internal test jobs were also unavailable as downloadable build artifacts. This can mask the retried job result or make failures harder to investigate. There is no product runtime impact.
How found
Found from an EF Core servicing build failure reported in #39005 and team review of the internal test pipeline.
Regression
This is not a product regression. It is a CI configuration issue exposed when Azure DevOps retries a job in the same build.
Testing
0 tests modified. Validated the YAML and confirmed all public and internal test-result artifact names include the job-attempt suffix.
Risk
Extremely low. This is a YAML-only artifact naming and publication change; no quirk is applicable.