Repository navigation
Improve retry script - #38849
Merged
Merged
Improve retry script#38849
Conversation
Add a link to the retry build Don't validate the retry build
Contributor
There was a problem hiding this comment.
Pull request overview
This PR improves the Azure DevOps retry mechanism used by eng/aggregate-azdo-tests.ps1 by ensuring the correct pipeline definition ID is used when queueing a retry build, emitting a convenient link to the queued retry build, and preventing the retry build from running the validation stage.
Changes:
- Parse and validate
SYSTEM_DEFINITIONIDand use it when queueing the retry build. - Print a “Retry build” URL (from REST
_linkswhen available, with a fallback URL). - Skip the
validatestage when the pipeline is run with a non-defaultjobsparameter (i.e., retry builds / targeted job runs).
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| eng/aggregate-azdo-tests.ps1 | Uses SYSTEM_DEFINITIONID for retry queueing and outputs a retry build link. |
| azure-pipelines-public.yml | Skips validate stage when parameters.jobs is not the default '[]'. |
| azure-pipelines-internal-tests.yml | Same validate gating as public pipeline to avoid validating retry builds. |
💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.
wtgodbe
approved these changes
Aug 24, 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.
Fix definition ID
Add a link to the retry build
Don't validate the retry build