Skip to content

perf(ci): Use pnpm pack for tarballs - #26024

Draft
nicohrubec wants to merge 2 commits into
developfrom
feat/use-pnpm-pack
Draft

nicohrubec wants to merge 2 commits into
developfrom
feat/use-pnpm-pack

Conversation

@nicohrubec

@nicohrubec nicohrubec commented Nov 3, 2026 •

Copy link
Copy Markdown
Member

Why: Tarball preparation delays every E2E app. Switching to pnpm pack reduces packing from 40s to 5s and the tarball job from 52s to 25s, based on one weekend measurement.

Metric Before: npm, 8 workers After: pnpm, 4 workers Improvement
Packing step 2m17s 11s 92% faster
Whole tarball job 3m01s 1m02s 66% faster
Tarballs ready, excluding initial queueing 5m01s 3m04s 1m57s earlier

Unsure about:
There are some minor changes to the packaged tarballs, but all of these probably don't matter iiuc or might even be improvements (e.g. including licenses in packages where they were missing atm). List of tarball changes courtesy of codex:

  • repository changes from a URL string to a { type, url } object.
  • Manifest fields are reordered, and build:tarball now references pnpm.
  • Ember’s published manifest drops prepack; the build hook still runs before packing.
  • Four packages gain the workspace LICENSE: server-utils, runtime-injection, Ember, and internal test-utils.
  • Runtime code, types, exports, dependencies, filenames, and permissions are preserved, apart from normal build commit identifiers.

@nicohrubec nicohrubec self-assigned this Nov 3, 2026
@nicohrubec
nicohrubec marked this pull request as ready for review November 3, 2026 13:36
@nicohrubec
nicohrubec requested review from a team as code owners November 3, 2026 13:36
@nicohrubec
nicohrubec requested review from Lms24, andreiborza, chargome, isaacs, logaretm and s1gr1d and removed request for a team November 3, 2026 13:36
@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: fb8dceb (PR test merge using develop at 24aed1b)

Against: 24aed1b (develop) · base run #65247

✅ 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.2 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.22 kB - -
@sentry/browser (incl. Tracing, Profiling) 55.18 kB - -
@sentry/browser (incl. Tracing, Replay) 92.52 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 81.2 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 97.25 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 110.25 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.62 kB - -
@sentry/vue 38.24 kB - -
@sentry/vue (incl. Tracing) 55.24 kB - -
@sentry/svelte 29.95 kB - -
@sentry/remix (Remix 3 client bundle) 57.83 kB - -
CDN Bundle 31.72 kB - -
CDN Bundle (incl. Tracing) 52.81 kB - -
CDN Bundle (incl. Logs, Metrics) 34.52 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 55.32 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 75.9 kB - -
CDN Bundle (incl. Tracing, Replay) 90.98 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 93.54 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 97.11 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.71 kB - -
CDN Bundle - uncompressed 92.76 kB - -
CDN Bundle (incl. Tracing) - uncompressed 155.77 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 101.29 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 163.55 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 232.85 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 277.46 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 285.23 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 291.17 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 298.92 kB - -
@sentry/nextjs (client) 57.64 kB - -
@sentry/sveltekit (client) 52.73 kB - -
@sentry/core/server 43.81 kB - -
@sentry/core/browser 13.93 kB - -
@sentry/node 156.64 kB +0.02% +21 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 82.27 kB - -
@sentry/node - without tracing 96.62 kB +0.03% +23 B 🔺
@sentry/node - without channel injection 136.94 kB +0.02% +19 B 🔺
@sentry/aws-serverless 105.24 kB +0.02% +20 B 🔺
@sentry/cloudflare (withSentry) - minified 200.1 kB - -
@sentry/cloudflare (withSentry) 497.06 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 221.95 kB - -

View base workflow run

@github-actions

github-actions Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Optional E2E tests

Some optional checks were not successful. They do not block the merge. 8 not successful, 48 successful. See the run.

Check Status
❌ CI: Optional E2E Tests / E2E node-flue (latest) Test (optional) Failing after 34s Details
❌ CI: Optional E2E Tests / E2E cloudflare-pi-durable (latest) Test (optional) Failing after 37s Details
❌ CI: Optional E2E Tests / E2E nextjs-16-cacheComponents (cloudflare) Test (optional) Failing after 10m Details
❌ CI: Optional E2E Tests / E2E node-eve (orchestrion) Test (optional) Failing after 2m Details
❌ CI: Optional E2E Tests / E2E cloudflare-workers-send-to-sentry Test (optional) Failing after 5m Details
❌ CI: Optional E2E Tests / E2E node-eve (latest) Test (optional) Failing after 1m Details
❌ CI: Optional E2E Tests / E2E node-eve Test (optional) Failing after 2m Details
❌ CI: Optional E2E Tests / E2E react-send-to-sentry Test (optional) Failing after 5m Details
Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E cloudflare-pi-durable Test (optional) Successful in 44s Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E debug-id-sourcemaps Test (optional) Successful in 43s Details
✅ CI: Optional E2E Tests / E2E nestjs-12 (latest) Test (optional) Successful in 45s Details
✅ CI: Optional E2E Tests / E2E cloudflare-flue-send-to-sentry Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E solidstart-2 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 gen-ai-libraries (cloudflare) Test (optional) Successful in 47s Details
✅ CI: Optional E2E Tests / E2E cloudflare-agent Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (latest) 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 deno (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-14 (latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E astro-7 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nextjs-16-tunnel (cloudflare) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry 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-mastra Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E nuxt-5 Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v1 Test (optional) Successful in 31s Details
✅ CI: Optional E2E Tests / E2E react-router-7-framework-instrumentation Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E nextjs-15 (turbo) Test (optional) Successful in 3m Details
✅ CI: Optional E2E Tests / E2E nextjs-16 (cloudflare, latest) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E vue-3 (no Options API) 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 (deno) Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-express-mcp-v2 Test (optional) Successful in 34s Details
✅ CI: Optional E2E Tests / E2E nuxt-5-sourcemaps (client source maps kept) Test (optional) Successful in 44s Details
✅ CI: Optional E2E Tests / E2E cloudflare-think Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E gen-ai-libraries (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-pi-durable Test (optional) Successful in 44s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react (latest) Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-sourcemaps Test (optional) Successful in 40s Details
✅ CI: Optional E2E Tests / E2E node-pi-durable (latest) Test (optional) Successful in 47s Details
✅ CI: Optional E2E Tests / E2E node-mastra Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E node-flue 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 nuxt-5-sourcemaps Test (optional) Successful in 40s Details
✅ CI: Optional E2E Tests / E2E tanstackstart-react-cloudflare Test (optional) Successful in 41s Details
✅ CI: Optional E2E Tests / E2E nuxt-5 (tunnel-dev) 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 nuxt-5-sourcemaps (static / nuxt generate) Test (optional) Successful in 38s Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions (latest) Test (optional) Successful in 43s Details
✅ CI: Optional E2E Tests / E2E node-express-send-to-sentry-static Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 (tracer provider) Test (optional) Successful in 37s Details
✅ CI: Optional E2E Tests / E2E node-openai-decisions Test (optional) Successful in 36s Details
✅ CI: Optional E2E Tests / E2E supabase-nextjs Test (optional) Successful in 2m Details
✅ CI: Optional E2E Tests / E2E node-fastify-6 Test (optional) Successful in 1m Details

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

Could be nice to see a benchmark summary in the PR description for reference later.

NVM: LGTM, nice one!

@nicohrubec

Copy link
Copy Markdown
Member Author

drafting for now because there are some reservations and we might postpone this to v12

@nicohrubec
nicohrubec marked this pull request as draft November 3, 2026 19:50
@nicohrubec
nicohrubec changed the base branch from develop to feat/benchmark-arm-integrations November 5, 2026 17:36

@cursor cursor Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Stale Bugbot comment from a previous run.

Comment thread packages/angular/package.json Resolved
@logaretm

logaretm commented Nov 5, 2026

Copy link
Copy Markdown
Member

drafting for now because there are some reservations and we might postpone this to v12

@nicohrubec I don't think any of those changes are breaking, which one are we worried about and why?

@nicohrubec
nicohrubec changed the base branch from feat/benchmark-arm-integrations to feat/reduce-playwright-system-deps November 6, 2026 07:25
@nicohrubec
nicohrubec added this pull request to stack #26149 November 6, 2026 07:57
@nicohrubec
nicohrubec removed this pull request from stack #26149 November 6, 2026 09:48
@nicohrubec
nicohrubec changed the base branch from feat/reduce-playwright-system-deps to feat/benchmark-ci-sharding November 6, 2026 09:48
@nicohrubec
nicohrubec added this pull request to stack #26166 November 6, 2026 09:48
@nicohrubec
nicohrubec removed this pull request from stack #26166 November 6, 2026 10:30
@nicohrubec
nicohrubec changed the base branch from feat/benchmark-ci-sharding to feat/decouple-aws-layer-e2e November 6, 2026 10:30
@nicohrubec
nicohrubec added this pull request to stack #26168 November 6, 2026 10:30
@nicohrubec
nicohrubec force-pushed the feat/use-pnpm-pack branch 2 times, most recently from 0c46257 to 149122a Compare November 6, 2026 10:47

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

There are 2 total unresolved issues (including 1 from previous review).

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 149122a. Configure here.

"build:dev:watch": "pnpm run build:watch",
"build:transpile:watch": "ng build --configuration production --watch",
"build:tarball": "npm pack ./build",
"build:tarball": "pnpm --dir build pack --pack-destination ..",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Angular tarball destination may be wrong

Medium Severity

pnpm --dir build pack --pack-destination .. is not a faithful stand-in for npm pack ./build. pnpm's --dir sets the package directory without changing process cwd, and a relative --pack-destination is typically resolved from cwd, so the tarball can land in packages/ instead of packages/angular/. The upload glob packages/*/*.tgz and E2E lookup would then miss @sentry/angular. Packing build/ also runs inside the workspace without --ignore-workspace, so pnpm may pack the source package rather than ng-packagr's rewritten publish layout.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit 149122a. Configure here.

Base automatically changed from feat/decouple-aws-layer-e2e to develop November 6, 2026 14:12
nicohrubec and others added 2 commits November 6, 2026 15:12
Co-Authored-By: OpenAI Codex <codex@openai.com>
Co-Authored-By: OpenAI Codex <codex@openai.com>
@nicohrubec
nicohrubec removed this pull request from stack #26168 November 6, 2026 14:14

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.

2 participants