Skip to content

test(e2e): Pin @mastra/deployer in node-mastra to match @mastra/core - #25824

Merged
mydea merged 1 commit into
developfrom
test/e2e-node-mastra-pin-deployer
Oct 28, 2026
Merged

mydea merged 1 commit into
developfrom
test/e2e-node-mastra-pin-deployer

Conversation

@mydea

@mydea mydea commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Why: The pinned node-mastra app has failed on startup since Mastra's release today (The requested module '@mastra/core/error' does not provide an export named 'toPersistedErrorIdentity'). The mastra CLI depends on @mastra/deployer@^1.65.0, so fresh installs pull deployer/server 1.80.0. Their code needs @mastra/core 1.80, but their declared peer range is loose (>=1.58 <2), so nothing stops them being paired with our pinned core 1.74. Pinning @mastra/deployer to the same ~1.74.0 as core keeps the set in lockstep: pnpm reuses it for the CLI, and deployer 1.74 pins server 1.74. I used a direct dependency rather than a pnpm override so that node-mastra (latest) can still bump it with pnpm add ...@latest.

How to review: One package.json. I checked locally with pnpm 12: core/deployer/server resolve to 1.74.0, and the app builds, starts and serves /api/agents. Without the pin, deployer/server resolve to 1.80.0.

The node-mastra e2e test app now passes again.

🤖 Generated with Claude Code

The mastra CLI depends on @mastra/deployer@^1.65.0, so installs picked up
deployer/server 1.80.0, which import a @mastra/core export the pinned 1.74
does not have and fail at startup.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: 4aa30a1 (PR test merge using develop at c5c2a3a)

Against: c5c2a3a (develop) · base run #63956

✅ 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.6 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 52.6 kB - -
@sentry/browser (incl. Tracing, Profiling) 55.53 kB - -
@sentry/browser (incl. Tracing, Replay) 92.8 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 81.42 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 97.53 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 110.51 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.88 kB - -
@sentry/vue 38.6 kB - -
@sentry/vue (incl. Tracing) 55.49 kB - -
@sentry/svelte 30.36 kB - -
@sentry/remix (Remix 3 client bundle) 57.64 kB - -
CDN Bundle 32.06 kB - -
CDN Bundle (incl. Tracing) 53.09 kB - -
CDN Bundle (incl. Logs, Metrics) 34.26 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 55.04 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 75.68 kB - -
CDN Bundle (incl. Tracing, Replay) 91.22 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 93.16 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 97.35 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.33 kB - -
CDN Bundle - uncompressed 94.29 kB - -
CDN Bundle (incl. Tracing) - uncompressed 157.28 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.84 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 163.25 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 232.34 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 278.91 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 284.87 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 292.62 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 298.56 kB - -
@sentry/nextjs (client) 57.74 kB - -
@sentry/sveltekit (client) 53.05 kB - -
@sentry/core/server 43.84 kB - -
@sentry/core/browser 13.95 kB - -
@sentry/node 154.72 kB +0.01% +10 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 81.62 kB - -
@sentry/node - without tracing 95.69 kB +0.01% +8 B 🔺
@sentry/node - without channel injection 135.35 kB +0.01% +10 B 🔺
@sentry/aws-serverless 103.86 kB +0.01% +9 B 🔺
@sentry/cloudflare (withSentry) - minified 197.77 kB - -
@sentry/cloudflare (withSentry) 491.5 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 218.35 kB - -

View base workflow run

@github-actions

Copy link
Copy Markdown
Contributor

Optional E2E tests

All optional checks were successful. 2 successful. See the run.

Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E node-mastra Test (optional) Successful in 59s Details
✅ CI: Optional E2E Tests / E2E node-mastra (latest) Test (optional) Successful in 1m Details

@mydea
mydea marked this pull request as ready for review October 28, 2026 14:24
@mydea
mydea requested review from a team as code owners October 28, 2026 14:24
@mydea
mydea requested review from andreiborza, chargome, isaacs, logaretm, msonnb and nicohrubec and removed request for a team October 28, 2026 14:24
@mydea
mydea merged commit 2be8554 into develop Oct 28, 2026
46 checks passed
@mydea
mydea deleted the test/e2e-node-mastra-pin-deployer branch October 28, 2026 14:26
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