Increase maxBuffer for capnp upload#10217
Merged
petebacondarwin merged 2 commits intocloudflare:mainfrom Aug 14, 2025
Merged
Conversation
🦋 Changeset detectedLatest commit: 5247394 The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
create-cloudflare
@cloudflare/kv-asset-handler
miniflare
@cloudflare/pages-shared
@cloudflare/unenv-preset
@cloudflare/vite-plugin
@cloudflare/vitest-pool-workers
@cloudflare/workers-editor-shared
wrangler
commit: |
vicb
reviewed
Aug 4, 2025
vicb
reviewed
Aug 4, 2025
Contributor
vicb
left a comment
There was a problem hiding this comment.
Could please add a patch changeset (using pnpm changeset).
Could you please also describe what are the conditions to trigger this error?
Otherwise the change looks good to me (with minor comments).
Thanks!
26cdf1d to
4a49880
Compare
Contributor
Author
|
Added a changeset and more details on how to trigger the error! |
Merged
Contributor
|
Skipping description validation as it doesn't seem to like the URL to the backport PR. |
c9d932f to
00d7c4c
Compare
petebacondarwin
approved these changes
Aug 6, 2025
70a7ae1 to
4c4c3cf
Compare
1e86b9a to
74bfafe
Compare
Contributor
|
Finally got this green and landed! Thanks for your patience. |
Merged
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.
Wrangler breaks when trying to compile a capnp schema large enough that the output is bigger than 1 MB.
In my wrangler.toml I have:
Attempting to deploy the toml results in this error:
And this stack trace:
This happens because spawnSync has a default buffer size of 1024 * 1024. The internal data team's message.capnp compiles to a little over a megabyte :(
There's likely a better long term fix (async collecting a stream) but bumping it to 10 MB seems like a fine quick fix.