Skip to content

Fix transient curl connection-reset failures in setup install scripts - #53154

Merged
pelikhan merged 2 commits into
mainfrom
copilot/daily-spdd-spec-planner
Aug 16, 2026
Merged

Fix transient curl connection-reset failures in setup install scripts#53154
pelikhan merged 2 commits into
mainfrom
copilot/daily-spdd-spec-planner

Conversation

Copilot AI commented Aug 16, 2026

Copy link
Copy Markdown
Contributor

The evals job in the Daily SPDD Spec Planner workflow failed during "Install AWF binary" with curl: (35) Recv failure: Connection reset by peer while downloading checksums.txt, even though the script already passed --retry 5 --retry-delay 10 --retry-max-time 180 to curl.

curl's default --retry logic only retries a narrow set of "transient" error conditions (timeouts, specific HTTP status codes) and does not cover connection resets or SSL connect errors, so this blip caused a hard failure instead of a retry.

Changes

  • actions/setup/sh/install_awf_binary.sh: add --retry-all-errors to the checksums, bundle, Linux binary, and Darwin binary curl downloads
  • actions/setup/sh/install_threat_detect_binary.sh: add --retry-all-errors to the checksums and binary curl downloads
  • actions/setup/sh/install_copilot_cli.sh: add --retry-all-errors to the compat matrix download — the tarball/checksum downloads in this file already carried this flag, confirming it as the established pattern in this codebase
-curl -fsSL --retry 5 --retry-delay 10 --retry-max-time 180 -o "${TEMP_DIR}/checksums.txt" "${CHECKSUMS_URL}"
+curl -fsSL --retry 5 --retry-delay 10 --retry-max-time 180 --retry-all-errors -o "${TEMP_DIR}/checksums.txt" "${CHECKSUMS_URL}"

No workflow markdown (.md) files were touched, so no .lock.yml recompilation is required.

Copilot AI linked an issue Aug 16, 2026 that may be closed by this pull request
…ent network failures

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix failed jobs in Daily SPDD Spec Planner workflow Fix transient curl connection-reset failures in setup install scripts Aug 16, 2026
Copilot AI requested a review from pelikhan August 16, 2026 16:42
@pelikhan
pelikhan marked this pull request as ready for review August 16, 2026 16:44
Copilot AI balanced review requested due to automatic review settings August 16, 2026 16:44
@pelikhan
pelikhan merged commit a592763 into main Aug 16, 2026
1 check passed
@pelikhan
pelikhan deleted the copilot/daily-spdd-spec-planner branch August 16, 2026 16:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds broader curl retry handling to prevent transient connection-reset failures during setup downloads.

Changes:

  • Adds --retry-all-errors to AWF and threat-detection downloads.
  • Applies the established retry behavior to the Copilot compatibility matrix.
Show a summary per file
File Description
actions/setup/sh/install_awf_binary.sh Hardens AWF asset downloads.
actions/setup/sh/install_threat_detect_binary.sh Hardens checksum and binary downloads.
actions/setup/sh/install_copilot_cli.sh Hardens compatibility-matrix retrieval.

Review details

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

  • Files reviewed: 3/3 changed files
  • Comments generated: 0
  • Review effort level: Balanced

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.87.1

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.

[aw] Failed jobs: Daily SPDD Spec Planner

3 participants