Repository navigation
Closed
Labels
Description
Add retry/backoff to the GitHub Copilot CLI installer — same CDN-blip fragility as the already-fixed AWF/threat-detect installers
Fix the Copilot CLI install step's checksum download — it has zero retry logic and hard-fails on the first transient GitHub Releases connection reset, exactly the class of bug #52397 already fixed for the AWF and threat-detect binary installers.
Affected workflow and run
- Workflow:
PR Triage Agent(.github/workflows/pr-triage-agent.lock.yml) - Failed run: §31931034599 — 2026-08-16T06:16:45Z, step "Install GitHub Copilot CLI", job 95125838053
Evidence
Compat resolution unavailable; falling back to baked-in default version: 1.0.80
Searching toolcache for GitHub Copilot CLI (requested: 1.0.80, arch: x64, range: none..none)...
Found candidate: /opt/hostedtoolcache/copilot-cli/1.0.78/x64/bin/copilot (version: 1.0.78, arch: x64)
Skipping candidate (version mismatch: want 1.0.80, got 1.0.78)
No compatible toolcache entry found
Downloading checksums from https://github.com/github/copilot-cli/releases/download/v1.0.80/SHA256SUMS.txt...
curl: (35) Recv failure: Connection reset by peer
##[error]Process completed with exit code 35.
Probable root cause
Two compounding issues:
GH_AW_COMPILED_VERSION=devisn't invMAJOR.MINOR.PATCHformat, so compat-matrix resolution is skipped and the installer always targets a single baked-in version (1.0.80) with no fallback to the already-cached, one-patch-old1.0.78in the toolcache — every run that hits a nearby-version mismatch does a fresh network round-trip instead of using a perfectly usable cached binary.- The
curlcall that fetchesSHA256SUMS.txthas no--retry/backoff, so a single transient GitHub Releases CDN reset (the same class of blip fixed in [aw-failures] [P0] Harden AWF/threat-detect binary installers against transient GitHub Releases connection failures #52397 for the AWF/threat-detect installers) hard-fails the whole step with no resilience.
Proposed remediation
- Add
curl --retry 5 --retry-delay 2 --retry-max-time 60(or equivalent backoff) to the Copilot CLI installer's checksum/binary download calls, matching the fix already applied for AWF/threat-detect in [aw-failures] [P0] Harden AWF/threat-detect binary installers against transient GitHub Releases connection failures #52397. - Treat a toolcache candidate within the same minor version (e.g.
1.0.78when1.0.80is requested and unreachable) as an acceptable fallback instead of forcing a network fetch, or at minimum retry before failing outright. - Fix compat-matrix resolution so
GH_AW_COMPILED_VERSION=devdoesn't unconditionally skip version-range resolution in CI.
Success criteria / verification
- 3 consecutive scheduled
PR Triage Agentruns complete the "Install GitHub Copilot CLI" step without acurlexit-code failure. - A simulated single-request CDN reset during install no longer fails the step (retry absorbs it).
Parent: #52951
Related pattern: #52397
Related to #52951
Generated by 🔍 [aw] Failure Investigator (6h) · agent · 121.4 AIC · ⌖ 6.57 AIC · ⊞ 5.6K · ◷
- expires on Aug 22, 2026, 11:11 PM UTC-08:00
Reacted by Copilot
Activity