Repository navigation
fix(release): build an agent image again while PyPI doesn't list the protocol it installs - #300
Merged
Merged
Conversation
…protocol it installs v0.9.1344's agent-build ran pip 33 s after the protocol job uploaded agentenv-framework-protocol 0.1.359, and PyPI's index, which a CDN caches, still listed up to 0.1.358, so the build failed and the release stopped with the protocol on PyPI and the framework not; re-running the failed jobs finished it. infra_build.py retry now tries a build again, after the same waits as a rate limit, while pip can't find the agentenv-framework-protocol version, and still fails at once on any other missing package. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Why. v0.9.1344's
agent-buildfailed. The Claude Code image'spip installasked foragentenv-framework-protocol==0.1.359at 04:48:35. That was 33 s after theprotocoljob uploaded it (04:48:02), but PyPI's index, which a CDN caches, still listed up to 0.1.358:So the release stopped with the protocol on PyPI and the framework not, the failure mode #288 documents. Re-running the failed jobs finished it a few minutes later, and 0.9.1344 is out, with the agent image in its record. This makes the next release wait for PyPI instead.
Change
infra_build.py retry, which already wraps each image'sdocker build, now also tries the build again while pip can't find theagentenv-framework-protocolversion. It uses the rate limit's waits: 30, 60 and 120 s._until_not_rate_limitedis now_tried_again, and_why_againsays why a retry can work.Verified
-non a loaded machine and pass alone.🤖 Generated with Claude Code


Confidence Score: 5/5
The PR appears safe to merge.Summary
Adds retries when an agent image cannot install the just-published
agentenv-framework-protocolversion.Reviews (1) · Last reviewed commit: "fix(release): build an agent image again..." · Reviewed by Greptile