Skip to content

[aw-failures] [P1] Copilot CLI installer has no retry/backoff — same CDN-blip class as #52397 #53084

Closed

Description

@github-actions

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:

  1. GH_AW_COMPILED_VERSION=dev isn't in vMAJOR.MINOR.PATCH format, 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-old 1.0.78 in the toolcache — every run that hits a nearby-version mismatch does a fresh network round-trip instead of using a perfectly usable cached binary.
  2. The curl call that fetches SHA256SUMS.txt has 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

  1. 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.
  2. Treat a toolcache candidate within the same minor version (e.g. 1.0.78 when 1.0.80 is requested and unreachable) as an acceptable fallback instead of forcing a network fetch, or at minimum retry before failing outright.
  3. Fix compat-matrix resolution so GH_AW_COMPILED_VERSION=dev doesn't unconditionally skip version-range resolution in CI.

Success criteria / verification

  • 3 consecutive scheduled PR Triage Agent runs complete the "Install GitHub Copilot CLI" step without a curl exit-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

Metadata

Metadata

Labels

agentic-workflowsautomationbugcookie

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions