Raise Cloudflare WordPress boot CPU budget#1857
Merged
Merged
Conversation
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.
Summary
Follow-up to #1856 and #1838.
Remote evidence
The merged Worker deployed successfully at https://wp-codebox-cloudflare-runtime.chubes.workers.dev with a 17 ms startup time and a 21,313.72 KiB / 7,950.82 KiB gzip bundle. Real requests then returned Cloudflare error 1102, which Cloudflare documents as resource exhaustion. The paid Workers default is 30 seconds of CPU per request; the supported maximum is five minutes via
limits.cpu_ms: 300000. Memory remains fixed at 128 MB.Cloudflare reference: https://developers.cloudflare.com/workers/platform/limits/#cpu-time
How to test
npm ci.npm run build.npm run test:cloudflare-runtime; expect both envelope and CPU-budget tests to pass.npm run cloudflare:local-gate; expect two HTTP 200 health envelopes and automatic cleanup.npm run cloudflare:dry-run; expect the reviewed bundle size and no resource mutation.git diff --check.Compatibility
This changes only the deployed Cloudflare Worker's CPU allowance. WP Codebox runtime contracts, extension paths, local workerd behavior, and Cloudflare's 128 MB memory limit are unchanged.
AI assistance
gpt-5.6-sol