Repository navigation
Conversation
check_version read the latest release from PyPI with one request and no timeout, so a single dropped connection failed a required check and blocked the merge until someone reran the job. The request now has a 15 s timeout and is retried up to four times, with 2, 4 and 8 s pauses, on connection errors, timeouts and 5xx responses. If PyPI still can't be read, the job fails with a message that names PyPI and says the PR's version isn't the problem. The version comparison is unchanged. Also quotes $GITHUB_ENV, which actionlint's shellcheck pass flagged.
PR SummaryLow Risk Overview Reviewed by Cursor Bugbot for commit bb504ef. Configure here. |
|
bugbot run |
There was a problem hiding this comment.
✅ Bugbot reviewed your changes and found no new issues!
Comment @cursor review or bugbot run to trigger another review on this PR
Reviewed by Cursor Bugbot for commit bb504ef. Configure here.
main released 2.15.1, which this branch was riding unreleased.
Orlando Barrera II (obarrera)
left a comment
There was a problem hiding this comment.
Logic looks right, HTTPError is caught ahead of OSError, so 4xx fails fast and 5xx retries, and the backoff matches the description. Also consider retrying 429, since a PyPI rate limit is as transient as a 503.
The required
check_versionjob read the latest release from PyPI with oneurlopencall and no timeout. A single dropped connection (URLError: [SSL: UNEXPECTED_EOF_WHILE_READING]) failed it on a recent PR, which blocks the merge until someone reruns the job. The rerun passed with no code change.Changes
version-check.yml: the PyPI request has a 15 s timeout and is retried up to four times, with 2, 4 and 8 s pauses, on connection and SSL errors, timeouts, responses cut off mid-read, and HTTP 5xx.$GITHUB_ENVon the two lines actionlint's shellcheck pass flagged.Notes
actionlint(clean), and by running the extracted script against PyPI and against mocked SSL EOF, 503, read timeout, remote disconnect, incomplete read, repeated failure and 404 responses.