Add retries to git checkout pipeline steps#316510
Merged
Merged
Conversation
Adds `retryCountOnTaskFailure: 3` to all `- checkout: self` steps in the build pipeline. Checkout failures (13 of 22 infra/transient failures over the last 7 days, ~59%) are typically transient git fetch / network issues that resolve on retry. Co-authored-by: Colonel <colonel@codec.local>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds Azure Pipelines checkout retries to improve build reliability for transient git/network failures during checkout: self.
Changes:
- Adds
retryCountOnTaskFailure: 3to shared and specialized checkout steps. - Covers the common checkout template, sanity test sparse checkout, and Copilot product/recovery pipelines.
Show a summary per file
| File | Description |
|---|---|
build/azure-pipelines/common/checkout.yml |
Adds retry behavior to the shared repository checkout template. |
build/azure-pipelines/common/sanity-tests.yml |
Adds retry behavior to the sanity test sparse checkout. |
build/azure-pipelines/product-copilot.yml |
Adds retry behavior to the Copilot product pipeline checkout. |
build/azure-pipelines/product-copilot-recovery.yml |
Adds retry behavior to the Copilot recovery pipeline checkout. |
Copilot's findings
- Files reviewed: 4/4 changed files
- Comments generated: 0
dmitrivMS
approved these changes
May 14, 2026
Contributor
📬 CODENOTIFYThe following users are being notified based on files changed in this PR: @lszomoruMatched files:
|
lszomoru
approved these changes
May 15, 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.
Adds
retryCountOnTaskFailure: 3to all- checkout: selfsteps in the build pipeline.Changes
common/checkout.yml— shared template used by ~19 build jobs (Linux/Alpine/Darwin/Win32/Web CLI + node-modules + compile + quality-checks + publish + release + sdl-scan).common/sanity-tests.yml— sparse checkout for sanity test jobs (4 platforms).product-copilot.yml— Copilot product build checkout.product-copilot-recovery.yml— Copilot recovery pipeline checkout.Why
7-day pipeline analysis (May 6–13, 2026):
Checkout microsoft/vscodeaccounted for 13 of 22 failures (~59%) in the Infra/Transient bucket. These are transient git fetch / network issues that typically resolve on retry — no real fix exists short of waiting out a TCP reset or a DNS hiccup.Risks
retryCountOnTaskFailureonly fires on a failed task, so green builds are unaffected.Related
Also kicked off https://dev.azure.com/monacotools/Monaco/_build/results?buildId=439482&view=results to ensure the build actually runs