Repository navigation
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
Closed
mergify[bot] wants to merge 2 commits into
mergify[bot] wants to merge 2 commits into
Conversation
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
This branch was successfully 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.
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
defaultqueue, to test #30 before it merged intomain.🎉 What landed
Mergify merged its pull request into
main, then closed this draft:4698b61This draft's code was built in this order:
mainat781dd6dMetadata for CI tooling, read by
mergify ciRequired conditions of queue rule
defaultfor mergeEnforce conventional commit]:title ~= ^(fix|feat|internal|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?!?:👀 Review Requirements]:#approved-reviews-by>=1author = dependabot[bot]author = mergify-ci-botauthor = renovate[bot]📕 PR description]:body ~= (?ms:.{48,})🔎 Reviews]:#changes-requested-reviews-by = 0#review-requested = 0#review-threads-unresolved = 0🤖 Continuous Integration]:check-success=all-greensRequired conditions to stay in the queue
base=mainEnforce conventional commit]:title ~= ^(fix|feat|internal|docs|style|refactor|perf|test|build|ci|chore|revert|ui)(?:\(.+\))?!?:👀 Review Requirements]:#approved-reviews-by>=1author = dependabot[bot]author = mergify-ci-botauthor = renovate[bot]📕 PR description]:body ~= (?ms:.{48,})🔎 Reviews]:#changes-requested-reviews-by = 0#review-requested = 0#review-threads-unresolved = 0🤖 Continuous Integration]:check-success=all-greens