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

@logaretmlogaretm commented May 14, 2026

Copy link
Copy Markdown
Member

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

github-actionsBot commented May 14, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize% ChangeChange
@sentry/browser26.92 kB--
@sentry/browser - with treeshaking flags25.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 flags73.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/react28.67 kB--
@sentry/react (incl. Tracing)47.1 kB--
@sentry/vue31.84 kB--
@sentry/vue (incl. Tracing)46.7 kB--
@sentry/svelte26.94 kB--
CDN Bundle29.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 - uncompressed86.28 kB--
CDN Bundle (incl. Tracing) - uncompressed141.83 kB--
CDN Bundle (incl. Logs, Metrics) - uncompressed90.47 kB--
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed145.29 kB--
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed215.32 kB--
CDN Bundle (incl. Tracing, Replay) - uncompressed260.57 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed264.01 kB--
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed274.27 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed277.7 kB--
@sentry/nextjs (client)49.61 kB--
@sentry/sveltekit (client)45.31 kB--
@sentry/node-core61.97 kB+0.02%+10 B 🔺
@sentry/node166.93 kB+0.01%+6 B 🔺
@sentry/node - without tracing74.38 kB+0.01%+6 B 🔺
@sentry/aws-serverless109.18 kB+0.01%+4 B 🔺
@sentry/cloudflare (withSentry) - minified170.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
logaretmand 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
MemberAuthor

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

Sign up for freeto 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

@logaretm