Skip to content

Add a script to only retry failed AzDo jobs - #38761

Open
AndriySvyryd wants to merge 1 commit into
mainfrom
RetryValidation
Open

Add a script to only retry failed AzDo jobs#38761
AndriySvyryd wants to merge 1 commit into
mainfrom
RetryValidation

Conversation

@AndriySvyryd

Copy link
Copy Markdown
Member

No description provided.

@AndriySvyryd
AndriySvyryd requested a review from Copilot August 6, 2026 21:41
@AndriySvyryd
AndriySvyryd requested a review from wtgodbe as a code owner August 6, 2026 21:41

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds an Azure DevOps “grouped job validation” mechanism that can queue a child build on validation retries, running only the jobs needed for failed logical groups.

Changes:

  • Introduces eng/aggregate-azdo-tests.ps1 to compute failed groups, queue a retry build for only required jobs, and merge retried results.
  • Adds a jobs pipeline parameter and per-job condition gates so a child build can run a targeted subset of jobs.
  • Updates the “Validate_Job_Results” job to call the new aggregator script and sets SYSTEM_ACCESSTOKEN for REST API calls.

Reviewed changes

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

File Description
eng/aggregate-azdo-tests.ps1 New script to evaluate grouped outcomes and drive targeted retry builds via AzDO REST API.
azure-pipelines-public.yml Adds jobs parameter + job-level gating and invokes the new aggregation script with OAuth token.
azure-pipelines-internal-tests.yml Same gating/aggregation pattern for internal pipeline; adjusts isAssetlessBuild based on job selection.

Comment thread eng/aggregate-azdo-tests.ps1
Comment thread eng/aggregate-azdo-tests.ps1
Comment thread eng/aggregate-azdo-tests.ps1
Copilot AI review requested due to automatic review settings August 6, 2026 22:54

Copilot AI left a comment

Copy link
Copy Markdown

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 no new comments.

Suppressed comments (1)

eng/aggregate-azdo-tests.ps1:6

  • Add strict error handling at the top of this script. Most eng PowerShell scripts set $ErrorActionPreference = 'Stop' and Set-StrictMode -Version 2.0 (e.g. eng/common/internal-feed-operations.ps1:9-10) to avoid non-terminating errors silently continuing, which is especially important around REST calls and hashtable lookups.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants