Repository navigation
fix: run install.sh again when a release download fails on a status curl does not retry - #38
Closed
sileht wants to merge 1 commit into
Conversation
…url does not retry On 2026-12-01 GitHub answered about one in ten downloads of the mergify-cli release tarball with a 618. install.sh's `curl --retry` retries timeouts and 408, 429, 500, 502, 503 and 504 answers only, so each 618 failed the step, and the job with it, on the first request. The action's own retry of its install.sh fetch does not reach the downloads install.sh makes. The action now runs install.sh again when it fails, waiting 10, 20 then 40 seconds, four tries in all. That covers every `mergify_cli_version`: the action fetches install.sh at the pinned version's tag, so a fix in install.sh would only reach the versions released after it. It also covers the other failures curl does not retry: a refused or reset connection, a TLS error, a download cut short that fails the checksum. Each failed try leaves a warning naming it, and once the tries run out the step fails below install.sh's own errors. A try that failed after two minutes or more is not run again. A failure that late comes after curl's own retries of a server error, which last four to five minutes per download, and another try would add as many minutes again to a job whose timeout may be sized for one. A failure that is not transient, such as a platform with no published binary, now takes 70 seconds longer to fail. The new test-install-rerun job points install.sh at a local server through its MERGIFY_BASE_URL. The server answers 618 to every tarball request under one path, where the install must fail after four tries, and to the first one under another, where it must recover. It redirects every other request to the release on GitHub. The job installs mergify-cli 2026.11.26 and Renovate does not bump it: its install.sh makes a single request on a 618, where a later one that retries the 618 itself would leave the re-run untested. 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. Related to MRGFY-14054 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Change-Id: I7e6ba77f3010eded84e03dd26295c427b8db7313
Contributor
Merge Protections🔴 2 of 6 protections blocking · waiting on 👀 reviews
🔴 👀 Review RequirementsWaiting for
This rule is failing.
🔴 🔎 ReviewsWaiting for
This rule is failing.
Show 4 satisfied protections🟢 🤖 Continuous Integration
🟢 Enforce conventional commitMake sure that we follow https://www.conventionalcommits.org/en/v1.0.0/
🟢 📕 PR description
🟢 🚦 Auto-queueWhen all merge protections are satisfied, this pull request will be queued automatically. |
Member
Author
|
Closed: the retry belongs in install.sh, not in the action (https://github.com/Mergifyio/mergify-ci-integrations/pull/3115 retries any server error there). The next mergify-cli release ships it, and setup-cli's default bump carries it. |
This branch had an error being deployed
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.
On 2026-12-01 GitHub answered about one in ten downloads of the mergify-cli
release tarball with a 618. install.sh's
curl --retryretries timeouts and408, 429, 500, 502, 503 and 504 answers only, so each 618 failed the step, and
the job with it, on the first request. The action's own retry of its install.sh
fetch does not reach the downloads install.sh makes.
The action now runs install.sh again when it fails, waiting 10, 20 then 40
seconds, four tries in all. That covers every
mergify_cli_version: the actionfetches install.sh at the pinned version's tag, so a fix in install.sh would
only reach the versions released after it. It also covers the other failures
curl does not retry: a refused or reset connection, a TLS error, a download
cut short that fails the checksum. Each failed try leaves a warning naming it,
and once the tries run out the step fails below install.sh's own errors.
A try that failed after two minutes or more is not run again. A failure that
late comes after curl's own retries of a server error, which last four to five
minutes per download, and another try would add as many minutes again to a job
whose timeout may be sized for one. A failure that is not transient, such as a
platform with no published binary, now takes 70 seconds longer to fail.
The new test-install-rerun job points install.sh at a local server through its
MERGIFY_BASE_URL. The server answers 618 to every tarball request under one
path, where the install must fail after four tries, and to the first one under
another, where it must recover. It redirects every other request to the release
on GitHub. The job installs mergify-cli 2026.11.26 and Renovate does not bump
it: its install.sh makes a single request on a 618, where a later one that
retries the 618 itself would leave the re-run untested.
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.
Related to MRGFY-14054
Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com