Repository navigation
Support PR-targeted Azure DevOps build retries - #54
Merged
Merged
Conversation
Resolve the latest queued build for --pr and --repo, preserve build-ID and failed-only retries, and validate exclusive targets. Fix sourceBuildId retries to send an empty body and surface server error details. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
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.
Retrying a PR should not require looking up its Azure DevOps build ID first. This adds
tiger azdo retry --pr <number> --repo <owner/repo> --org <organization>, while preserving positional build-ID retries and--failed-only.PR targeting uses a live lookup explicitly ordered by descending queue time and selects one build across matching pipelines, regardless of status or result. The target forms are mutually exclusive, and missing builds or invalid arguments fail without starting a retry. Command help, README, and the CLI skill document the behavior.
Live testing also exposed an existing full-retry API bug: Azure DevOps requires an empty request body when using
sourceBuildId. This fixes that request and includes server response details in retry errors, without falling back to another retry mode or bypassing pipeline policies.Validation
dotnet test --nologo: all 302 tests passed, including request sequences, CLI parsing, validation, cancellation, and failure behavior.dnceng-public/public. Correctly selected build 1628408 (roslyn-integration-CI), but Azure DevOps blocked the full retry because its queue-time variable policy rejects copyingsystem.pullRequest.*variables. No new build was queued and no pipeline settings were changed.