Skip to content

chore(bugbot): Flag new Cloudflare tests that wrap the worker by hand - #25619

Merged
isaacs merged 1 commit into
developfrom
jp/bugbot-cloudflare-vite-plugin
Oct 21, 2026
Merged

isaacs merged 1 commit into
developfrom
jp/bugbot-cloudflare-vite-plugin

Conversation

@JPeer264

Copy link
Copy Markdown
Member

This adds a Bugbot rule that flags new Cloudflare tests that wrap the worker by hand with withSentry, instrumentDurableObjectWithSentry, instrumentAgentWithSentry or instrumentWorkflowWithSentry. It covers new integration test suites, new E2E apps and new Cloudflare variants of existing E2E apps, and recommends the Sentry Cloudflare Vite plugin with an instrument.server.ts instead.

Why

The Vite plugin is the recommended Cloudflare setup, so new tests should use it.

Rule decisions

Bugbot does not flag tests of the manual wrappers, apps that do not build with Vite (for example Next.js on OpenNext), or existing apps that wrap by hand. It flags only new tests.

New Cloudflare integration test suites, E2E apps and Cloudflare variants
of existing E2E apps should use the Sentry Cloudflare Vite plugin with an
instrument.server.ts, not withSentry or the instrument*WithSentry
helpers. Tests of these wrappers and apps that do not build with Vite
are exempt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@isaacs
isaacs merged commit b7f10d4 into develop Oct 21, 2026
40 checks passed
@isaacs
isaacs deleted the jp/bugbot-cloudflare-vite-plugin branch October 21, 2026 16:52
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.

3 participants