Skip to content

chore: Replace Volta with pnpm-managed node versions - #25689

Open
sentry-junior[bot] wants to merge 11 commits into
developfrom
feat/experimental-pnpm-node-runtime
Open

sentry-junior[bot] wants to merge 11 commits into
developfrom
feat/experimental-pnpm-node-runtime

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Volta is unmaintained and can't start pnpm 11+ (volta-cli/volta#2114), so today we start pnpm 10 through Volta, and pnpm 10 then switches to pnpm 12. pnpm 12 can pin node itself: its global node shim runs the version from the nearest devEngines.runtime (project-aware global bins). That means node is inherited from the root package.json, and any package or E2E app can override it with its own entry. No volta.extends boilerplate is needed anymore.

pnpm itself: it stays pinned in packageManager, which is already the source of truth for pnpm. Any pnpm run in the repo downloads that version and switches to it, so a contributor's global pnpm only needs to be pnpm 12+, because the node shim needs it. Workspace packages always use the root pnpm, since one workspace means one install. CONTRIBUTING.md covers the one-time setup (install pnpm, then pnpm runtime set node 24 -g) and a migration path for Volta users. Contributors who do nothing keep Volta's default node, and pnpm only works for them if Volta has a default pnpm.

Notes on the non-obvious choices:

  • onFail: "warn", not "download". With download, pnpm adds node to the lockfile and puts it in node_modules/.bin, so every pnpm run would use the pinned node even in the CI node-version matrix. With warn, nothing goes into the lockfile, and CI keeps using the node from setup-node.
  • E2E apps are copied to a tmp dir, so they have no parent to inherit from. copyToTemp resolves the nearest devEngines.runtime and packageManager from the app up to the repo root and writes both into the copied package.json, replacing the volta.extends rewrite. On CI, the E2E jobs set up node a second time from the copied package.json; this takes well under a second when the version is already installed. Locally, run.mjs no longer needs volta run node.
  • CI jobs that read node-version-file: package.json keep working unchanged, because setup-node reads devEngines.runtime once the volta field is gone.
  • node-openai-decisions-send-to-sentry pinned node 24.15.0 for no documented reason, so it now uses the root version. No E2E app overrides node or pnpm anymore.

Not verified: how Nx, IDE test runners and git hooks behave with pnpm's node shim.

via Francesco Gringl-Novy.

--

View Junior Session [Sentry]

…tal)

Co-Authored-By: Francesco Gringl-Novy <francesco.novy@sentry.io>
Comment thread .github/actions/prepare-e2e-test/action.yml Outdated
Co-Authored-By: Francesco Gringl-Novy <francesco.novy@sentry.io>
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: e38756a (PR test merge using develop at e1026aa)

Against: e1026aa (develop) · base run #63365

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

Path Size % Change Change
@sentry/browser 29.98 kB - -
@sentry/browser - with treeshaking flags 28.13 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.03 kB - -
@sentry/browser (incl. Tracing) 52.17 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.18 kB - -
@sentry/browser (incl. Tracing, Profiling) 55.12 kB - -
@sentry/browser (incl. Tracing, Replay) 91.96 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 80.85 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 96.69 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 109.63 kB - -
@sentry/browser (incl. Feedback) 47.51 kB - -
@sentry/browser (incl. sendFeedback) 35.05 kB - -
@sentry/browser (incl. FeedbackAsync) 40.15 kB - -
@sentry/browser (incl. Metrics) 31.01 kB - -
@sentry/browser (incl. Logs) 31.28 kB - -
@sentry/browser (incl. Metrics & Logs) 31.94 kB - -
@sentry/react 31.81 kB - -
@sentry/react (incl. Tracing) 54.5 kB - -
@sentry/vue 38.14 kB - -
@sentry/vue (incl. Tracing) 55.11 kB - -
@sentry/svelte 30.01 kB - -
@sentry/remix (Remix 3 client bundle) 57.19 kB - -
CDN Bundle 31.76 kB - -
CDN Bundle (incl. Tracing) 52.71 kB - -
CDN Bundle (incl. Logs, Metrics) 33.95 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 54.66 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 74.93 kB - -
CDN Bundle (incl. Tracing, Replay) 90.41 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 92.33 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 96.55 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 98.5 kB - -
CDN Bundle - uncompressed 93.51 kB - -
CDN Bundle (incl. Tracing) - uncompressed 156.36 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.06 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 162.33 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 230.28 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 276.71 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 282.66 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 290.41 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 296.35 kB - -
@sentry/nextjs (client) 57.38 kB - -
@sentry/sveltekit (client) 52.55 kB - -
@sentry/core/server 41.88 kB - -
@sentry/core/browser 13.81 kB - -
@sentry/node 153.2 kB -0.01% -1 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 81.58 kB - -
@sentry/node - without tracing 94.72 kB - -
@sentry/node - without channel injection 133.8 kB - -
@sentry/aws-serverless 102.88 kB - -
@sentry/cloudflare (withSentry) - minified 193.73 kB - -
@sentry/cloudflare (withSentry) 481.91 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 214.4 kB - -

View base workflow run

@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Optional E2E tests

Some optional checks were not successful. They do not block the merge. 4 not successful, 61 successful. See the run.

Check Status
❌ CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) Failing after 1m Details
❌ CI: Optional E2E Tests / E2E node-anthropic-send-to-sentry (latest) Test (optional) Failing after 1m Details
❌ CI: Optional E2E Tests / E2E node-express-send-to-sentry-static Test (optional) Failing after 4m Details
❌ CI: Optional E2E Tests / E2E node-openai-send-to-sentry (latest) Test (optional) Failing after 3m Details
Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E angular (canary) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E deno (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-14 (canary) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16-standalone (canary, turbopack) Test (optional) Successful in 58s Details
✅ CI: Optional E2E Tests / E2E angular (canary) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) Successful in 54s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (deno) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E cloudflare-mastra Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-think Test (optional) Successful in 47s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) Successful in 36s Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) Successful in 27s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (cloudflare) Test (optional) Successful in 26s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (canary, turbopack) Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E astro-7 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E node-eve Test (optional) Successful in 51s Details
✅ CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) Successful in 22s Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (canary, webpack) Test (optional) Successful in 7m Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions-send-to-sentry (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Successful in 56s Details
✅ CI: Optional E2E Tests / E2E node-eve (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-orpc Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-14 (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-anthropic-send-to-sentry Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-4-static (canary) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) Successful in 31s Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) Successful in 56s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) Successful in 50s Details
✅ CI: Optional E2E Tests / E2E nuxt-4 (canary) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E nuxt-3 (canary) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) Successful in 34s Details
✅ CI: Optional E2E Tests / E2E node-pi-durable Test (optional) Successful in 33s Details
✅ CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) Successful in 35s Details
✅ CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) Successful in 5m Details
✅ CI: Optional E2E Tests / E2E supabase-nextjs Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-flue Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E astro-7-static Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) Successful in 45s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) Successful in 47s Details
✅ CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 (tracer provider) Test (optional) Successful in 28s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E vue-3 (canary) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions-send-to-sentry Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-openai-send-to-sentry Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-mastra Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) Successful in 1m Details

sentry-junior Bot and others added 3 commits October 23, 2026 09:45
…pied app

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

The pin came in with the app in #25331 without a stated reason and was already
older than the repo's node version at the time, so the app now uses the root pin.

Co-Authored-By: Francesco Gringl-Novy <francesco.novy@sentry.io>
Comment thread dev-packages/e2e-tests/test-applications/aws-serverless-layer/pull-sam-image.sh Outdated
Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md Outdated
Link the pnpm install docs instead of repeating them, move PATH checks and the
Volta migration into a troubleshooting section, and fix the SAM image comments,
which claimed the node 20 default matched the root pin.
Comment thread CONTRIBUTING.md Outdated
Move how node and pnpm versions are managed, the PATH check and the Volta
migration into a short section at the end, and drop the updating-versions part.
Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md Outdated
@mydea mydea self-assigned this Oct 23, 2026
@mydea mydea changed the title chore: [WIP] Replace Volta with pnpm-managed node versions (experimental) chore: Replace Volta with pnpm-managed node versions Oct 23, 2026
@sentry-junior
sentry-junior Bot marked this pull request as ready for review October 23, 2026 11:33
@sentry-junior
sentry-junior Bot requested review from a team as code owners October 23, 2026 11:33
@sentry-junior
sentry-junior Bot requested review from andreiborza, chargome, isaacs, logaretm and s1gr1d and removed request for a team October 23, 2026 11:33
@sentry-junior
sentry-junior Bot requested a review from Lms24 October 23, 2026 11:33
…pnpm-node-runtime

# Conflicts:
#	packages/esbuild-plugin/package.json
#	packages/vite-plugin/package.json

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

@JPeer264 JPeer264 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.

LGTM. Bye Volta

Comment thread AGENTS.md Outdated
Comment thread CONTRIBUTING.md

This branch has not been deployed

No deployments
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