Skip to content

test(e2e): Remove unused dependencies from E2E test apps - #26231

Merged
mydea merged 3 commits into
developfrom
chore/remove-unused-deps-e2e
Nov 10, 2026
Merged

mydea merged 3 commits into
developfrom
chore/remove-unused-deps-e2e

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Why: Many test apps install packages that nothing imports or runs. Most are leftovers from project templates, such as jest and supertest in Nest apps, karma in Angular apps, ESLint packages in apps with no ESLint config, and vitest helpers with no unit tests. Others are old workarounds. They make installs slower and give Dependabot more to bump. Every removal is a package.json change only.

How to review: Groups worth a closer look:

  • import-in-the-middle and require-in-the-middle in the Next 16 apps and nextjs-otlp. test(nextjs): Add next@16 e2e test #17922 added them as a Turbopack/pnpm workaround. No SDK package depends on them or on @opentelemetry/instrumentation anymore, and neither do these apps. CI is the real check here.
  • isbot: removed only from React Router apps whose own entry.server doesn't use it. Apps without an entry.server keep it, because the default one imports it.
  • ESLint: removed from apps that have no ESLint config. The lint scripts in create-remix-app-express(-vite-dev) and remix-hydrogen were removed too; without a config they already failed.
  • nestjs-webpack keeps ts-loader, because webpack mode needs it. nestjs-12 also drops @nestjs/testing@latest from its test:build-latest script.
  • @babel/plugin-proposal-decorators in the Cloudflare agent apps: agents already depends on it.

Unsure about: Ember apps were not changed, because ember-cli loads addons from package.json without any import. Some dependencies are left in for now: @astrojs/internal-helpers, nitro-3 rolldown, nuxt-5 db0, and the @types/* packages the build type-checks against.

Checks run: oxfmt only. I didn't run the E2E apps locally because they need the packed tarballs, so this relies on CI.

Related: the same cleanup for the workspace packages is in its own PR.

via Francesco Gringl-Novy.

--

View Session [Sentry]

Co-Authored-By: Francesco Gringl-Novy <francesco.novy@sentry.io>
@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 51ba728 (PR test merge using develop at 1d354fd)

Against: 1d354fd (develop) · base run #65483

✅ Baseline matches: this diff contains only this PR's changes.

Path Size % Change Change
@sentry/browser 29.92 kB - -
@sentry/browser - with treeshaking flags 28.08 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 27.97 kB - -
@sentry/browser (incl. Tracing) 52.29 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.3 kB - -
@sentry/browser (incl. Tracing, Profiling) 55.27 kB - -
@sentry/browser (incl. Tracing, Replay) 92.61 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 81.29 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 97.34 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 110.34 kB - -
@sentry/browser (incl. Feedback) 47.52 kB - -
@sentry/browser (incl. sendFeedback) 35.02 kB - -
@sentry/browser (incl. FeedbackAsync) 40.13 kB - -
@sentry/browser (incl. Metrics) 31.48 kB - -
@sentry/browser (incl. Logs) 31.77 kB - -
@sentry/browser (incl. Metrics & Logs) 32.45 kB - -
@sentry/react 31.78 kB - -
@sentry/react (incl. Tracing) 54.76 kB - -
@sentry/vue 38.33 kB - -
@sentry/vue (incl. Tracing) 55.33 kB - -
@sentry/svelte 29.95 kB - -
@sentry/remix (Remix 3 client bundle) 57.92 kB - -
CDN Bundle 31.72 kB - -
CDN Bundle (incl. Tracing) 52.89 kB - -
CDN Bundle (incl. Logs, Metrics) 34.52 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 55.39 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 75.9 kB - -
CDN Bundle (incl. Tracing, Replay) 91.06 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 93.62 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 97.19 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.8 kB - -
CDN Bundle - uncompressed 92.76 kB - -
CDN Bundle (incl. Tracing) - uncompressed 156.02 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 101.29 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 163.79 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 232.85 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 277.71 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 285.47 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 291.41 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 299.17 kB - -
@sentry/nextjs (client) 57.73 kB - -
@sentry/sveltekit (client) 52.82 kB - -
@sentry/core/server 44.29 kB - -
@sentry/core/browser 14.02 kB - -
@sentry/node 157.13 kB +0.02% +19 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 82.28 kB - -
@sentry/node - without tracing 96.91 kB +0.03% +21 B 🔺
@sentry/node - without channel injection 137.41 kB +0.02% +21 B 🔺
@sentry/aws-serverless 105.58 kB +0.02% +21 B 🔺
@sentry/cloudflare (withSentry) - minified 203.34 kB - -
@sentry/cloudflare (withSentry) 505.12 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 225.19 kB - -

View base workflow run

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Optional E2E tests

Some optional checks were not successful. They do not block the merge. 6 not successful, 20 successful. See the run.

Check Status
❌ CI: Optional E2E Tests / E2E node-eve (latest) Test (optional) Failing after 1m Details
❌ CI: Optional E2E Tests / E2E nextjs-16-cacheComponents (cloudflare) Test (optional) Failing after 10m Details
❌ CI: Optional E2E Tests / E2E node-eve Test (optional) Failing after 2m Details
❌ CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) Failing after 2m Details
❌ CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) Failing after 27s Details
❌ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Failing after 52s Details
Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E nestjs-12 (latest) Test (optional) Successful in 46s Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) Successful in 30s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (deno) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E cloudflare-mastra Test (optional) Successful in 55s Details
✅ CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-think Test (optional) Successful in 56s Details
✅ CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-orpc Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) Successful in 44s Details
✅ CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) Successful in 40s Details
✅ CI: Optional E2E Tests / E2E supabase-nextjs Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable Test (optional) Successful in 44s Details
✅ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-flue Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) Successful in 27s Details

The Sentry Mastra integration loads it at runtime to bootstrap the observability pipeline, so it is used even though the app never imports it.
@mydea
mydea marked this pull request as ready for review November 10, 2026 10:32
@mydea
mydea requested review from a team, JPeer264 and stephanie-anderson November 10, 2026 10:32
@mydea
mydea requested review from a team as code owners November 10, 2026 10:32
@mydea
mydea requested review from andreiborza, chargome, logaretm, msonnb and nicohrubec and removed request for a team November 10, 2026 10:32
…d-deps-e2e

# Conflicts:
#	dev-packages/e2e-tests/test-applications/node-eve/package.json
#	dev-packages/e2e-tests/test-applications/node-pi-durable/package.json

@nicohrubec nicohrubec left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice cleanup

@mydea
mydea merged commit 3050533 into develop Nov 10, 2026
196 of 202 checks passed
@mydea
mydea deleted the chore/remove-unused-deps-e2e branch November 10, 2026 11:59
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.

2 participants