Skip to content

merge queue: merged #30: fix: retry the install.sh download on timeouts and server errors - #34

Closed
mergify[bot] wants to merge 2 commits into
mainfrom
mergify/merge-queue/9be4aa5308
Closed

mergify[bot] wants to merge 2 commits into
mainfrom
mergify/merge-queue/9be4aa5308

Conversation

@mergify

@mergify mergify Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Note

This is a merge queue draft opened by Mergify. Its pull request has merged, and nobody needs to act on it.
Mergify opened it for batch united-caramel-5rx82v of the default queue, to test #30 before it merged into main.

🎉 What landed

Mergify merged its pull request into main, then closed this draft:

  • #30 fix: retry the install.sh download on timeouts and server errors (sileht), as 4698b61

This draft's code was built in this order:

  1. main at 781dd6d
  2. #30, the pull request of this batch
Metadata for CI tooling, read by mergify ci
---
all_scopes: false
checking_base_sha: 781dd6d1dfbecf787e7e8b516c6153588895273e
previous_check_retries: []
previous_failed_batches: []
pull_requests:
  - number: 30
    scopes: []
queue_base_sha: 781dd6d1dfbecf787e7e8b516c6153588895273e
scopes: []
...
Required conditions of queue rule default for merge
Required conditions to stay in the queue

sileht and others added 2 commits November 27, 2026 13:20
The action downloaded mergify-cli's install.sh from raw.githubusercontent.com
in a single try, so one 503 or 504 from GitHub failed the step, and the job
with it, although install.sh retries its own downloads.

The download now retries the way install.sh does: `curl --retry 8`, which
retries timeouts and 408, 429, 500, 502, 503 and 504 answers, the wait
doubling from one second (about four minutes of waits). A 10-second connect
timeout and a 30-second cap per attempt make a connection or an answer that
stalls a retried timeout, where it used to hang until the kernel or the job
gave up. `--retry-max-time 300` stops retrying after five minutes, and at once
when a Retry-After header asks for a longer wait. A 404 still fails at once.

When the retries run out, the step fails naming the URL it could not
download, below curl's own error. A 404 on a pinned version says that
`mergify_cli_version` is not a mergify-cli release that ships install.sh. The
step checks the status code as well as curl's exit code: curl 8.14 exits 0 on
an error it does not retry, so a 404 would otherwise reach `sh` as a missing
file.

Like in install.sh, a refused or reset connection and a TLS error are not
retried. Retrying every error (`--retry-all-errors`) would make a mistyped
version wait five minutes before failing, and the curl of RHEL 8 (7.61),
where mergify-cli runs, does not have it.

The new test-install-retry job points raw.githubusercontent.com at 192.0.2.1,
an address that never answers, restores it once curl is seen connecting
there, and checks that the install succeeds on a later attempt.

Nothing is released on merge: release.yaml releases on its own only when the
default mergify-cli version changes, so this ships in the release that the
next mergify-cli bump cuts.

Fixes MRGFY-13647

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Change-Id: I5e5d02c22cb56bf26e1aebbc375a12f989087ab5
@mergify
mergify Bot deployed to Mergify Merge Protections November 27, 2026 13:47 Active
@mergify mergify Bot changed the title merge queue: checking #30 on main (781dd6d) merge queue: merged #30: fix: retry the install.sh download on timeouts and server errors Nov 27, 2026
@mergify mergify Bot closed this Nov 27, 2026
@mergify
mergify Bot deleted the mergify/merge-queue/9be4aa5308 branch November 27, 2026 13:49

This branch was successfully deployed

1 active deployment
Mergify Merge Protections — d025b0f6 Deployed Nov 27, 2026 by mergify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant