Skip to content

fix(tests): pin wrangler to 4.86.0 in E2E test apps#20891

Closed
logaretm wants to merge 4 commits into
developfrom
awad/pin-wrangler-e2e
Closed

fix(tests): pin wrangler to 4.86.0 in E2E test apps#20891
logaretm wants to merge 4 commits into
developfrom
awad/pin-wrangler-e2e

Conversation

@logaretm
Copy link
Copy Markdown
Member

@logaretm logaretm commented May 14, 2026

This PR pins wrangler to 4.86.0 across all 13 E2E test apps that use it, looks like versions before 4.86.0 have a bug that corrupts package.json files in node_modules by overwriting them with ESM bundle output during builds.

This was causing the hono-4 E2E test (and potentially others) to fail with SyntaxError: Unexpected token 'v', "var name=""... is not valid JSON on @fastify/otel's package.json

Ref: cloudflare/workers-sdk#13762

Wrangler versions before 4.86.0 have a bug that corrupts package.json
files in node_modules by overwriting them with ESM bundle output.

Ref: cloudflare/workers-sdk#13762

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 14, 2026

size-limit report 📦

Path Size % Change Change
@sentry/browser 26.92 kB - -
@sentry/browser - with treeshaking flags 25.35 kB - -
@sentry/browser (incl. Tracing) 44.83 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 46.83 kB - -
@sentry/browser (incl. Tracing, Profiling) 49.82 kB - -
@sentry/browser (incl. Tracing, Replay) 84.45 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 73.92 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 89.15 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 101.8 kB - -
@sentry/browser (incl. Feedback) 44.11 kB - -
@sentry/browser (incl. sendFeedback) 31.73 kB - -
@sentry/browser (incl. FeedbackAsync) 36.84 kB - -
@sentry/browser (incl. Metrics) 28.01 kB - -
@sentry/browser (incl. Logs) 28.16 kB - -
@sentry/browser (incl. Metrics & Logs) 28.84 kB - -
@sentry/react 28.67 kB - -
@sentry/react (incl. Tracing) 47.1 kB - -
@sentry/vue 31.84 kB - -
@sentry/vue (incl. Tracing) 46.7 kB - -
@sentry/svelte 26.94 kB - -
CDN Bundle 29.31 kB - -
CDN Bundle (incl. Tracing) 47.23 kB - -
CDN Bundle (incl. Logs, Metrics) 30.68 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 48.36 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.05 kB - -
CDN Bundle (incl. Tracing, Replay) 84.65 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 85.72 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 90.46 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 91.56 kB - -
CDN Bundle - uncompressed 86.28 kB - -
CDN Bundle (incl. Tracing) - uncompressed 141.83 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 90.47 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 145.29 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 215.32 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 260.57 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 264.01 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 274.27 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 277.7 kB - -
@sentry/nextjs (client) 49.61 kB - -
@sentry/sveltekit (client) 45.31 kB - -
@sentry/node-core 61.97 kB +0.02% +10 B 🔺
@sentry/node 166.93 kB +0.01% +6 B 🔺
@sentry/node - without tracing 74.38 kB +0.01% +6 B 🔺
@sentry/aws-serverless 109.18 kB +0.01% +4 B 🔺
@sentry/cloudflare (withSentry) - minified 170.88 kB - -
@sentry/cloudflare (withSentry) 431.1 kB - -

View base workflow run

The node variant runs a plain Node.js server and doesn't need wrangler.
Running wrangler deploy --dry-run corrupts @fastify/otel's package.json
due to a wrangler bug (cloudflare/workers-sdk#13762), breaking the
subsequent node test.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@logaretm logaretm marked this pull request as draft May 14, 2026 20:32
logaretm and others added 2 commits May 14, 2026 16:36
tsx 4.21.1/4.22.0 (published 2026-05-14) introduced a regression where
its ESM loader transforms package.json files to ESM, breaking CJS
require() calls for @fastify/otel's package.json.

Also bumps astro-6-cf-workers wrangler to 4.91.0 to satisfy
@cloudflare/vite-plugin's peer dependency.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@logaretm
Copy link
Copy Markdown
Member Author

Closing — wrangler was a red herring. The real issue is a tsx 4.21.1 regression. Clean PR at the new branch.

@logaretm logaretm closed this May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant