Repository navigation
Start the mirror of unref-pre-commit again until it has the release - #286
Merged
Merged
Conversation
…ref-pre-commit The mirror runs uv lock, which reads the simple index. The JSON API named v0.5.1 before the simple index did, so the mirror failed to lock it. Assisted-by: Claude:claude-opus-5-5
Contributor
PerformanceTime to check CPython v3.15.0: the median of 15 runs of each binary, run in turns.
EcosystemFindings on 19 projects: none changed. |
The mirror finds the release through PyPI's JSON API, which can name it later than the step that waits for PyPI saw it, and then succeeds without a tag. The release now starts the mirror again whenever none is running and the tag is still missing, for up to 25 minutes, as the mirror retries uv lock for up to 12. The wait for PyPI is back to the JSON API. Assisted-by: Claude:claude-opus-5-5
…cript The loops in bash were hard to read. scripts/mirror_release.py waits for PyPI, then for the tag in unref-pre-commit, starting the mirror again whenever none is running, and logs each attempt. Assisted-by: Claude:claude-opus-5-5
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.
The release of v0.5.1 failed in "Update the version": the mirror of unref-pre-commit failed to lock 0.5.1, as PyPI's simple index did not name it yet, and the release gave up waiting for the tag after 10 minutes. Apakottur/unref-pre-commit#3 makes the mirror retry
uv lockfor up to 12 minutes. This makes the release side consistent too, and moves its waits from bash toscripts/mirror_release.py:/pypi/unref/json, a different cached page from the one the release waits on. If it is stale, the mirror succeeds without a tag. The script starts the mirror again whenever none is running and the tag is still missing.The checkout and uv setup move to the start of the job so the script can run. Tested locally against the real APIs: the script exits at once for 0.5.1, which PyPI and unref-pre-commit have, and the PyPI wait gives up after its attempts for a version that does not exist. Starting the mirror was not tested, as it would start a real run.