Repository navigation
Conversation
…mits it Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
agutmanstein-scale
approved these changes
Dec 1, 2026
agutmanstein-scale
left a comment
Collaborator
There was a problem hiding this comment.
Claude, on Alec's behalf: approving. This only changes CI. Each local registry pulls its image with retry before docker run, integration-local's services container becomes the same step on port 5000, and the rate-limit pattern gains mirror.gcr.io's quota error.
This branch has not been 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.
What and why
Every job that starts a local registry pulls
mirror.gcr.io/library/registry:2anonymously with a baredocker run, so one rate-limited pull fails the job. On 2026-12-01,integration-local-slow (7/12)failed three times in a row on the v0.9.1675 bump commit at "Start the local registry", with429 Too Many Requestsand thenerror from registry: Quota exceeded for quota metric 'Requests per project in the US multi-region' ... per minute. Becausepublish-pypi.ymlwaits for Local backends to pass on the tagged commit, that held the release back. Every other shard passed.This change pulls the registry image through the repo's existing
infra_build.py retrybefore eachdocker run. That helper already retriesdocker pushand the release's pip installs while a registry rate-limits them, waiting 30, 60 and then 120 s. Its rate-limit pattern now also matches mirror.gcr.io's quota error, which carries no 429.local-backends.yml: "Start the local registry" inintegration-local-slowandintegration-local-gatewaypull with retry.integration-localstarted the registry as aservices:container. The runner pulls a services container before any step runs, so nothing can retry it. It is now the same "Start the local registry" step as the other two jobs, on the same port 5000.publish-pypi.yml: the two steps that start the computers' local registry pull it with retry first.infra_build.py:_RATE_LIMITEDalso matchesQuota exceeded for quota metric.CI config and its helper only. No product code changes, and no test's selection or behaviour changes.
Rollout
Takes effect on the next workflow run after merge. Nothing to deploy and nothing to migrate. A pull that is still rate-limited after the last wait fails the step as it does today, about 3.5 minutes later. Revert: revert this commit.
local-backends.ymland build(deps): bump actions/setup-python from 5.6.0 to 7.1.0 #332, build(deps): bump actions/setup-node from 4.4.0 to 7.1.0 #202 and build: ship the explorer's web UI in the agentenv-framework wheel #52 touchpublish-pypi.yml, all on other lines. No merge order between them and this one.How it was tested
Validation: head
4f638f78.test_retry_tries_again_while_mirror_gcr_io_is_over_its_quota: the quota message from the failed run is retried once and the pull then succeeds. fails onmain'sinfra_build.py(1 failed, 12 passed on-k retry, run by the test review) and passes on headtest_every_local_registry_pulls_its_image_with_retry_before_it_startsreads every workflow: all 5 registry starts pull with retry beforedocker run, and no job keeps aservices:registry. Removing the 5 pull lines leaves the rest of the suite green, which is why it was addedintegration-localintegration-localon this PRtst/unit/test_infra_build_script.py) and every Local backends job that starts a registry.Quality bar
Head
4f638f78.4f638f78tst/unit/test_release_infra_images.py(64 passed) andtst/unit/test_infra_build_script.py -k retry(13 passed)maindf247358main(assert 4 == 5; 1 of 13 retry tests fails), as intended4f638f784f638f784f638f78mainf5f81942integration-local, no dockerd restart after the registry starts, timeouts fit the worst-case waitf5f81942pr_gate.py check4f638f78Relaxations: local CI, as above (CI config only; the touched test files were run by the test review).
Not in this PR
mirror_base_images.pykeeps its own shorter waits (10 and 20 s). A base it cannot pull falls back to its build's own pull, so a rate limit there doesn't fail a job.Known limitations:
Quota exceeded for quota metricalso matches a per-day quota, which a retry can't clear, so such a failure takes about 3.5 minutes longer to fail: the per-minute one is what failed the runs here.publish-pypi.ymlrun only on a release, so this PR's CI doesn't run them; the wiring test covers them.🤖 Generated with Claude Code
Confidence Score: 5/5

The PR appears safe to merge; no actionable issues were found.Summary
Adds retries before all five local registry starts and recognizes mirror.gcr.io's quota error.
Reviews (5) · Last reviewed commit: "test: every local registry start pulls i..." · Reviewed by Greptile