Skip to content

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

Merged
mydea merged 13 commits into
developfrom
feat/experimental-pnpm-node-runtime
Oct 28, 2026
Merged

mydea merged 13 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]

Comment thread .github/actions/prepare-e2e-test/action.yml Outdated
@github-actions

github-actions Bot commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 079318f (PR test merge using develop at a6c28d0)

Against: a6c28d0 (develop) · base run #63870

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

Path Size % Change Change
@sentry/browser 30.33 kB - -
@sentry/browser - with treeshaking flags 28.45 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.34 kB - -
@sentry/browser (incl. Tracing) 52.54 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.54 kB - -
@sentry/browser (incl. Tracing, Profiling) 55.47 kB - -
@sentry/browser (incl. Tracing, Replay) 92.3 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 81.18 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 97.04 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 110.03 kB - -
@sentry/browser (incl. Feedback) 47.89 kB - -
@sentry/browser (incl. sendFeedback) 35.4 kB - -
@sentry/browser (incl. FeedbackAsync) 40.51 kB - -
@sentry/browser (incl. Metrics) 31.34 kB - -
@sentry/browser (incl. Logs) 31.62 kB - -
@sentry/browser (incl. Metrics & Logs) 32.3 kB - -
@sentry/react 32.14 kB - -
@sentry/react (incl. Tracing) 54.82 kB - -
@sentry/vue 38.46 kB - -
@sentry/vue (incl. Tracing) 55.45 kB - -
@sentry/svelte 30.36 kB - -
@sentry/remix (Remix 3 client bundle) 57.59 kB - -
CDN Bundle 32.06 kB - -
CDN Bundle (incl. Tracing) 53.02 kB - -
CDN Bundle (incl. Logs, Metrics) 34.26 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 54.99 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 75.25 kB - -
CDN Bundle (incl. Tracing, Replay) 90.74 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 92.67 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 96.85 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 98.82 kB - -
CDN Bundle - uncompressed 94.29 kB - -
CDN Bundle (incl. Tracing) - uncompressed 157.14 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.84 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 163.11 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 231.06 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 277.48 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 283.44 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 291.18 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 297.13 kB - -
@sentry/nextjs (client) 57.69 kB - -
@sentry/sveltekit (client) 53 kB - -
@sentry/core/server 43.69 kB - -
@sentry/core/browser 13.81 kB - -
@sentry/node 154.24 kB +0.01% +15 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 81.62 kB - -
@sentry/node - without tracing 95.55 kB +0.02% +17 B 🔺
@sentry/node - without channel injection 134.9 kB +0.01% +4 B 🔺
@sentry/aws-serverless 103.71 kB +0.01% +7 B 🔺
@sentry/cloudflare (withSentry) - minified 197.28 kB - -
@sentry/cloudflare (withSentry) 490.08 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 217.86 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 node-anthropic-send-to-sentry (latest) Test (optional) Failing after 34s Details
❌ CI: Optional E2E Tests / E2E node-eve (latest) Test (optional) Failing after 2m Details
❌ CI: Optional E2E Tests / E2E node-openai-decisions-send-to-sentry Test (optional) Failing after 4m Details
❌ CI: Optional E2E Tests / E2E node-openai-decisions-send-to-sentry (latest) Test (optional) Failing after 4m Details
Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E astro-7-static Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-eve Test (optional) Successful in 48s Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-14 (canary) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E angular (canary) Test (optional) Successful in 55s Details
✅ CI: Optional E2E Tests / E2E nextjs-14 (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (canary, webpack) Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E cloudflare-think (ai v6) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E angular (canary) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry Test (optional) Successful in 41s Details
✅ CI: Optional E2E Tests / E2E astro-7 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) Successful in 5m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) Successful in 21s Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext, bun) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E cloudflare-think Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E deno (latest) Test (optional) Successful in 49s Details
✅ CI: Optional E2E Tests / E2E nextjs-orpc Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable Test (optional) Successful in 31s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (vinext) Test (optional) Successful in 4m Details
✅ CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable Test (optional) Successful in 31s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (cloudflare) Test (optional) Successful in 57s Details
✅ CI: Optional E2E Tests / E2E solidstart-2 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E cloudflare-mastra Test (optional) Successful in 28s Details
✅ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Successful in 41s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) Successful in 22s Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) Successful in 22s Details
✅ CI: Optional E2E Tests / E2E node-openai-send-to-sentry (latest) 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 nextjs-16 (deno) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-16-standalone (canary, turbopack) Test (optional) Successful in 23s Details
✅ CI: Optional E2E Tests / E2E node-mastra Test (optional) Successful in 47s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) Successful in 17s Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (canary, turbopack) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) Successful in 25s Details
✅ CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry-static Test (optional) Successful in 56s Details
✅ CI: Optional E2E Tests / E2E nuxt-3 (canary) Test (optional) Successful in 56s Details
✅ CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) Successful in 48s Details
✅ CI: Optional E2E Tests / E2E node-openai-send-to-sentry Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-4-static (canary) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E supabase-nextjs Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) Successful in 20s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E node-flue Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) Successful in 32s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (static / nuxt generate) Test (optional) Successful in 22s Details
✅ CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) Successful in 17s Details
✅ CI: Optional E2E Tests / E2E nuxt-4 (canary) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E vue-3 (canary) Test (optional) Successful in 51s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 (tracer provider) Test (optional) Successful in 21s Details
✅ CI: Optional E2E Tests / E2E vue-3 (no Options API) Test (optional) Successful in 53s Details

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
Comment thread CONTRIBUTING.md Outdated
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 Lms24, andreiborza, chargome, isaacs, logaretm and s1gr1d and removed request for a team October 23, 2026 11:33

@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
Comment thread CONTRIBUTING.md Outdated
Comment thread CONTRIBUTING.md Outdated
…tal)

Co-Authored-By: Francesco Gringl-Novy <francesco.novy@sentry.io>
Co-Authored-By: Francesco Gringl-Novy <francesco.novy@sentry.io>
sentry-junior Bot and others added 11 commits October 28, 2026 08:26
…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>
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.
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.
Co-Authored-By: Francesco Gringl-Novy <francesco.novy@sentry.io>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mydea
mydea force-pushed the feat/experimental-pnpm-node-runtime branch from e54bf39 to 3f708dc Compare October 28, 2026 07:27
@mydea
mydea merged commit be8a27e into develop Oct 28, 2026
402 of 406 checks passed
@mydea
mydea deleted the feat/experimental-pnpm-node-runtime branch October 28, 2026 08:29
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.

5 participants