Repository navigation
fix(deploy): retry wrangler deploy on registry timeouts - #13
Merged
Merged
Conversation
- Retry wrangler deploy up to three times. The registry can time out while committing a large layer, and layers already pushed are kept, so a retry only sends what is missing. - Leave the edge Worker out of the Container image's pnpm install, so wrangler and workerd stay out of the largest layer.
|
Architecture Data flow No data-flow sequence changed in this PR. Review ✨ Nothing flagged · reviewed Tip Open a diagram on the canvas, then press W or click play to walk through the change one step at a time 🪧 More tips
Thanks for using PR Lens! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out on X, Bluesky, Mastodon, Reddit or LinkedIn |
🚀 Deploying Preview to Cloudflare 🚀Preview Deployments by commit
|
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.
❓ Type of change
📚 Description
The Cloudflare build failed at the image push: the registry timed out while committing one layer (
failed to do request: Put ".../blobs/uploads/...": net/http: timeout awaiting response headers). The layers pushed before it stay on the registry, sodeploy.shnow trieswrangler deployup to three times and only resends what is missing.The container install also skips
wolfstar-github-edge, since the Worker is deployed from outside the image and doesn't needwranglerthere. That only trims the layer a little:@openai/codex(~427 MB) and the Claude SDK (~224 MB) dominate it. If the timeout comes back, the next step is splitting the install layer in two.