feat: add retries - #36
Merged
Merged
Conversation
The action fetches executables from GitHub at the start of a job. That connection is occasionally reset (URLError: [Errno 104] Connection reset by peer), failing the job before any later step runs. Consumers have been working around this by wrapping the whole action in continue-on-error plus a duplicated retry step; doing it once here removes that boilerplate. - New `retries` (default 3) and `retry_wait_seconds` (default 5) inputs. - The get-modflow invocation runs in a retry loop bounded by `retries`. - The release-metadata and install-script curl calls get `--retry` /`--retry-all-errors` with the same values; the script download also gains `--fail` so an error page is no longer written to disk. - Set `retries: 0` to keep the previous single-attempt behavior. `--retry-all-errors` requires curl >= 7.71 (2020); GitHub-hosted runners ship curl 8.x. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019uDL3ZYVHT8svJ9Fu1Ayed
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019uDL3ZYVHT8svJ9Fu1Ayed
flopy now requires >=3.11, so `pip install flopy` fails on the 3.10 runners with "Package 'flopy' requires a different Python". Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_019uDL3ZYVHT8svJ9Fu1Ayed
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.
motivated by MODFLOW-ORG/modflowapi#117. also bump the Python version to 3.11