Skip to content

fix(swc-plugin): preserve step function names in stack traces after bundler minification#1743

Open
TooTallNate wants to merge 2 commits intomainfrom
nr/preserve-step-fn-names
Open

fix(swc-plugin): preserve step function names in stack traces after bundler minification#1743
TooTallNate wants to merge 2 commits intomainfrom
nr/preserve-step-fn-names

Conversation

@TooTallNate
Copy link
Copy Markdown
Member

Summary

  • Add Object.defineProperty(fn, "name", { value: "originalName", configurable: true }) to the IIFE step registration in the SWC plugin
  • Ensures original step function names appear in stack traces even after bundler name mangling (e.g., Turbopack renaming errorStepFneD)

Motivation

When bundlers like Turbopack minify module-internal function names, the step function references registered in the globalThis map point to functions with mangled .name properties. This causes stack traces to show at eD (...) instead of at errorStepFn (...), breaking the e2e test "basic step error preserves message and stack trace".

V8 uses the function's .name property for stack trace frames. By explicitly setting it via Object.defineProperty in the registration IIFE, we ensure the original name is preserved regardless of bundler renaming.

Test plan

  • All 171 SWC transform tests pass (fixture files updated to include the new Object.defineProperty call)
  • Verified locally that errorStepFn appears in stack traces with Turbopack prod builds

…undler minification

Add Object.defineProperty(fn, 'name', { value, configurable: true }) to the
IIFE step registration so the original function name survives bundler name
mangling (e.g. Turbopack renaming errorStepFn to eD). V8 uses the .name
property for stack traces, so this ensures 'at errorStepFn (...)' appears
instead of 'at eD (...)'.
@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Apr 15, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Apr 16, 2026 7:10am
example-nextjs-workflow-webpack Ready Ready Preview, Comment Apr 16, 2026 7:10am
example-workflow Ready Ready Preview, Comment Apr 16, 2026 7:10am
workbench-astro-workflow Ready Ready Preview, Comment Apr 16, 2026 7:10am
workbench-express-workflow Ready Ready Preview, Comment Apr 16, 2026 7:10am
workbench-fastify-workflow Ready Ready Preview, Comment Apr 16, 2026 7:10am
workbench-hono-workflow Ready Ready Preview, Comment Apr 16, 2026 7:10am
workbench-nitro-workflow Ready Ready Preview, Comment Apr 16, 2026 7:10am
workbench-nuxt-workflow Ready Ready Preview, Comment Apr 16, 2026 7:10am
workbench-sveltekit-workflow Ready Ready Preview, Comment Apr 16, 2026 7:10am
workbench-vite-workflow Ready Ready Preview, Comment Apr 16, 2026 7:10am
workflow-swc-playground Ready Ready Preview, Comment Apr 16, 2026 7:10am
workflow-web Ready Ready Preview, Comment Apr 16, 2026 7:10am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
workflow-docs Ignored Ignored Preview Apr 16, 2026 7:10am

@TooTallNate TooTallNate requested a review from a team as a code owner April 15, 2026 06:10
Copilot AI review requested due to automatic review settings April 15, 2026 06:10
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 15, 2026

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 0.042s (+16.7% 🔺) 1.006s (~) 0.964s 10 1.00x
💻 Local Express 0.043s (+22.9% 🔺) 1.005s (~) 0.962s 10 1.02x
💻 Local Next.js (Turbopack) 0.048s 1.005s 0.957s 10 1.14x
🐘 Postgres Express 0.056s (-22.8% 🟢) 1.012s (-0.8%) 0.956s 10 1.33x
🐘 Postgres Nitro 0.059s (-2.8%) 1.010s (~) 0.951s 10 1.40x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 0.258s (-26.0% 🟢) 2.562s (+18.6% 🔺) 2.304s 10 1.00x
▲ Vercel Next.js (Turbopack) 0.265s (+6.6% 🔺) 2.476s (+15.0% 🔺) 2.212s 10 1.03x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 1.121s 2.006s 0.885s 10 1.00x
💻 Local Express 1.131s (+2.9%) 2.006s (~) 0.875s 10 1.01x
💻 Local Nitro 1.133s (+3.0%) 2.006s (~) 0.873s 10 1.01x
🐘 Postgres Express 1.151s (~) 2.010s (~) 0.859s 10 1.03x
🐘 Postgres Nitro 1.155s (+1.4%) 2.011s (~) 0.855s 10 1.03x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 1.825s (-2.7%) 3.753s (+4.6%) 1.928s 10 1.00x
▲ Vercel Express 1.956s (+2.7%) 3.649s (+1.2%) 1.693s 10 1.07x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Express

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 10.769s 11.022s 0.254s 3 1.00x
🐘 Postgres Nitro 10.899s (~) 11.023s (~) 0.124s 3 1.01x
💻 Local Nitro 10.915s (+2.5%) 11.022s (~) 0.107s 3 1.01x
🐘 Postgres Express 10.918s (-0.6%) 11.027s (-2.9%) 0.109s 3 1.01x
💻 Local Express 10.922s (+2.5%) 11.022s (~) 0.101s 3 1.01x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 17.935s (+1.4%) 19.552s (~) 1.617s 2 1.00x
▲ Vercel Express 19.038s (+12.1% 🔺) 20.714s (+7.8% 🔺) 1.677s 2 1.06x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Express

workflow with 25 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 14.591s (~) 15.022s (~) 0.431s 4 1.00x
🐘 Postgres Express 14.621s (~) 15.028s (~) 0.407s 4 1.00x
💻 Local Next.js (Turbopack) 14.623s 15.030s 0.407s 4 1.00x
💻 Local Express 14.934s (+4.9%) 15.029s (~) 0.095s 4 1.02x
💻 Local Nitro 14.987s (+5.2% 🔺) 15.279s (+1.7%) 0.292s 4 1.03x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 31.744s (-4.2%) 33.714s (-4.2%) 1.970s 2 1.00x
▲ Vercel Next.js (Turbopack) 34.730s (+5.9% 🔺) 36.481s (+5.4% 🔺) 1.751s 2 1.09x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 14.018s (-2.2%) 14.307s (-4.8%) 0.289s 7 1.00x
🐘 Postgres Nitro 14.125s (+1.3%) 14.736s (+5.1% 🔺) 0.612s 7 1.01x
💻 Local Next.js (Turbopack) 15.671s 16.029s 0.359s 6 1.12x
💻 Local Express 16.595s (+11.3% 🔺) 17.029s (+13.3% 🔺) 0.435s 6 1.18x
💻 Local Nitro 16.623s (+11.1% 🔺) 17.030s (+10.9% 🔺) 0.407s 6 1.19x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 55.587s (+5.8% 🔺) 57.706s (+6.6% 🔺) 2.119s 2 1.00x
▲ Vercel Next.js (Turbopack) 56.429s (+0.6%) 58.595s (+1.6%) 2.166s 2 1.02x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.268s (~) 2.010s (~) 0.743s 15 1.00x
🐘 Postgres Express 1.271s (-1.7%) 2.010s (~) 0.739s 15 1.00x
💻 Local Next.js (Turbopack) 1.472s 2.005s 0.533s 15 1.16x
💻 Local Nitro 1.494s (+1.2%) 2.006s (~) 0.512s 15 1.18x
💻 Local Express 1.530s (+4.8%) 2.005s (~) 0.476s 15 1.21x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.551s (-1.7%) 4.126s (-2.1%) 1.576s 8 1.00x
▲ Vercel Next.js (Turbopack) 2.693s (+24.5% 🔺) 4.119s (+10.9% 🔺) 1.425s 8 1.06x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.343s (~) 3.008s (~) 0.665s 10 1.00x
🐘 Postgres Express 2.362s (~) 3.009s (~) 0.647s 10 1.01x
💻 Local Next.js (Turbopack) 2.714s 3.009s 0.294s 10 1.16x
💻 Local Express 2.905s (+2.2%) 3.107s (~) 0.203s 10 1.24x
💻 Local Nitro 2.997s (+17.0% 🔺) 3.565s (+18.5% 🔺) 0.568s 9 1.28x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.371s (+34.4% 🔺) 4.706s (+23.5% 🔺) 1.334s 7 1.00x
▲ Vercel Next.js (Turbopack) 6.628s (+114.2% 🔺) 8.451s (+83.1% 🔺) 1.822s 4 1.97x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.462s (~) 4.010s (~) 0.548s 8 1.00x
🐘 Postgres Express 3.497s (~) 4.012s (~) 0.515s 8 1.01x
💻 Local Next.js (Turbopack) 7.426s 7.770s 0.345s 4 2.15x
💻 Local Express 8.206s (+15.7% 🔺) 9.020s (+12.5% 🔺) 0.813s 4 2.37x
💻 Local Nitro 8.255s (+18.8% 🔺) 8.771s (+16.7% 🔺) 0.517s 4 2.38x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.054s (+6.5% 🔺) 4.644s (+5.6% 🔺) 1.591s 7 1.00x
▲ Vercel Next.js (Turbopack) 3.635s (-8.1% 🟢) 5.192s (-8.1% 🟢) 1.557s 6 1.19x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.251s (-0.7%) 2.008s (~) 0.757s 15 1.00x
🐘 Postgres Express 1.267s (+0.9%) 2.010s (~) 0.743s 15 1.01x
💻 Local Next.js (Turbopack) 1.518s 2.005s 0.488s 15 1.21x
💻 Local Express 1.544s (+4.9%) 2.005s (~) 0.461s 15 1.23x
💻 Local Nitro 1.642s (+8.2% 🔺) 2.149s (+7.1% 🔺) 0.508s 14 1.31x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 2.075s (-6.6% 🟢) 3.620s (-5.2% 🟢) 1.545s 9 1.00x
▲ Vercel Express 2.268s (+7.9% 🔺) 3.968s (+9.5% 🔺) 1.700s 8 1.09x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Express

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 2.323s (~) 3.009s (~) 0.686s 10 1.00x
🐘 Postgres Express 2.342s (~) 3.011s (~) 0.668s 10 1.01x
💻 Local Next.js (Turbopack) 2.794s 3.309s 0.515s 10 1.20x
💻 Local Express 2.942s (+9.1% 🔺) 3.454s (+14.9% 🔺) 0.512s 9 1.27x
💻 Local Nitro 3.056s (+10.5% 🔺) 3.758s (+20.9% 🔺) 0.702s 8 1.32x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.594s (+25.7% 🔺) 5.368s (+23.7% 🔺) 1.774s 6 1.00x
▲ Vercel Next.js (Turbopack) 3.924s (+21.0% 🔺) 5.630s (+15.1% 🔺) 1.706s 6 1.09x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.453s (-1.0%) 4.009s (~) 0.556s 8 1.00x
🐘 Postgres Express 3.594s (+3.2%) 4.137s (+3.1%) 0.543s 8 1.04x
💻 Local Next.js (Turbopack) 7.594s 8.268s 0.674s 4 2.20x
💻 Local Express 8.616s (+12.6% 🔺) 9.022s (+12.6% 🔺) 0.407s 4 2.50x
💻 Local Nitro 8.775s (+17.8% 🔺) 9.276s (+15.7% 🔺) 0.501s 4 2.54x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 3.837s (-9.3% 🟢) 6.010s (+4.6%) 2.173s 5 1.00x
▲ Vercel Express 4.356s (-3.2%) 6.316s (+5.0%) 1.960s 5 1.14x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.808s (-1.0%) 1.006s (-1.6%) 0.198s 60 1.00x
🐘 Postgres Express 0.849s (~) 1.024s (~) 0.174s 59 1.05x
💻 Local Next.js (Turbopack) 0.878s 1.039s 0.161s 58 1.09x
💻 Local Express 0.982s (+38.0% 🔺) 1.116s (+9.3% 🔺) 0.134s 54 1.22x
💻 Local Nitro 0.997s (+43.3% 🔺) 1.281s (+27.6% 🔺) 0.285s 47 1.23x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 10.028s (+3.6%) 11.801s (+2.9%) 1.773s 6 1.00x
▲ Vercel Next.js (Turbopack) 10.174s (-16.5% 🟢) 12.097s (-14.8% 🟢) 1.923s 5 1.01x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.920s (-0.5%) 2.076s (-1.2%) 0.155s 44 1.00x
🐘 Postgres Express 1.996s (-4.2%) 2.468s (-16.2% 🟢) 0.472s 37 1.04x
💻 Local Next.js (Turbopack) 2.721s 3.041s 0.320s 30 1.42x
💻 Local Nitro 3.011s (+33.2% 🔺) 3.609s (+20.0% 🔺) 0.598s 25 1.57x
💻 Local Express 3.011s (+33.3% 🔺) 3.470s (+15.4% 🔺) 0.459s 26 1.57x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 30.646s (+1.0%) 32.304s (~) 1.658s 3 1.00x
▲ Vercel Next.js (Turbopack) 31.624s (+3.7%) 33.780s (+4.5%) 2.155s 3 1.03x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 3.883s (~) 4.077s (-0.8%) 0.194s 30 1.00x
🐘 Postgres Express 4.042s (-1.9%) 4.703s (-3.9%) 0.661s 26 1.04x
💻 Local Next.js (Turbopack) 8.436s 9.016s 0.580s 14 2.17x
💻 Local Nitro 9.078s (+23.4% 🔺) 9.633s (+20.2% 🔺) 0.555s 13 2.34x
💻 Local Express 9.182s (+25.3% 🔺) 9.941s (+24.0% 🔺) 0.758s 13 2.36x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 73.734s (-43.7% 🟢) 76.100s (-42.9% 🟢) 2.366s 2 1.00x
▲ Vercel Next.js (Turbopack) 76.157s (-7.8% 🟢) 78.200s (-7.3% 🟢) 2.043s 2 1.03x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.277s (-3.8%) 1.007s (~) 0.730s 60 1.00x
🐘 Postgres Express 0.282s (-0.9%) 1.007s (~) 0.725s 60 1.02x
💻 Local Next.js (Turbopack) 0.578s 1.021s 0.444s 59 2.09x
💻 Local Nitro 0.599s (+5.8% 🔺) 1.021s (+1.7%) 0.422s 59 2.17x
💻 Local Express 0.603s (+0.8%) 1.004s (-1.6%) 0.401s 60 2.18x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 1.742s (+8.5% 🔺) 3.606s (+9.7% 🔺) 1.863s 17 1.00x
▲ Vercel Next.js (Turbopack) 1.841s (+9.4% 🔺) 3.832s (+17.0% 🔺) 1.990s 16 1.06x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 0.481s (-2.8%) 1.007s (~) 0.526s 90 1.00x
🐘 Postgres Nitro 0.487s (-3.4%) 1.006s (~) 0.519s 90 1.01x
💻 Local Nitro 2.472s (+1.7%) 3.009s (~) 0.537s 30 5.14x
💻 Local Next.js (Turbopack) 2.518s 2.976s 0.458s 31 5.24x
💻 Local Express 2.525s (+2.5%) 3.008s (~) 0.484s 30 5.25x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.944s (+8.9% 🔺) 4.750s (+12.3% 🔺) 1.806s 19 1.00x
▲ Vercel Next.js (Turbopack) 3.439s (+5.1% 🔺) 5.441s (+12.2% 🔺) 2.002s 17 1.17x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.798s (-0.5%) 1.008s (~) 0.210s 120 1.00x
🐘 Postgres Express 0.798s (-1.7%) 1.009s (-0.8%) 0.210s 119 1.00x
💻 Local Next.js (Turbopack) 10.405s 10.859s 0.454s 12 13.04x
💻 Local Nitro 11.038s (+6.9% 🔺) 11.574s (+5.8% 🔺) 0.535s 11 13.83x
💻 Local Express 11.043s (+4.3%) 11.666s (+5.8% 🔺) 0.623s 11 13.84x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 6.716s (-3.0%) 8.696s (-1.4%) 1.980s 14 1.00x
▲ Vercel Next.js (Turbopack) 7.228s (+11.2% 🔺) 8.834s (+5.4% 🔺) 1.606s 14 1.08x
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express | Next.js (Turbopack)

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Next.js (Turbopack) 0.170s 1.002s 0.010s 1.016s 0.845s 10 1.00x
💻 Local Express 0.201s (+42.3% 🔺) 1.004s (~) 0.012s (+25.5% 🔺) 1.017s (~) 0.817s 10 1.18x
🐘 Postgres Express 0.207s (-3.9%) 0.997s (~) 0.002s (-6.3% 🟢) 1.010s (~) 0.803s 10 1.21x
💻 Local Nitro 0.207s (+45.9% 🔺) 1.004s (~) 0.012s (+22.0% 🔺) 1.018s (~) 0.811s 10 1.21x
🐘 Postgres Nitro 0.211s (-1.5%) 0.997s (~) 0.001s (-15.4% 🟢) 1.011s (~) 0.800s 10 1.24x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - - -

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 1.642s (+10.2% 🔺) 2.971s (-2.0%) 0.857s (+7.6% 🔺) 4.285s (+0.9%) 2.643s 10 1.00x
▲ Vercel Express 1.736s (+23.3% 🔺) 3.341s (+28.5% 🔺) 0.614s (-36.9% 🟢) 4.433s (+11.4% 🔺) 2.696s 10 1.06x
▲ Vercel Nitro ⚠️ missing - - - - -

🔍 Observability: Next.js (Turbopack) | Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.618s (~) 1.004s (~) 0.004s (-4.3%) 1.021s (~) 0.403s 59 1.00x
🐘 Postgres Express 0.634s (-1.1%) 1.007s (~) 0.013s (+220.8% 🔺) 1.033s (+0.8%) 0.399s 59 1.03x
💻 Local Next.js (Turbopack) 0.769s 1.011s 0.013s 1.113s 0.344s 58 1.24x
💻 Local Express 0.825s (+23.7% 🔺) 1.012s (~) 0.009s (-2.4%) 1.108s (-0.6%) 0.283s 59 1.33x
💻 Local Nitro 0.841s (+45.7% 🔺) 1.012s (~) 0.010s (+3.8%) 1.117s (+9.2% 🔺) 0.275s 54 1.36x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - - -

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 4.060s (-2.7%) 5.664s (-8.5% 🟢) 0.270s (-37.3% 🟢) 6.493s (-7.7% 🟢) 2.433s 10 1.00x
▲ Vercel Next.js (Turbopack) 5.616s (+33.3% 🔺) 7.503s (+23.7% 🔺) 0.267s (-24.1% 🟢) 8.218s (+20.2% 🔺) 2.603s 8 1.38x
▲ Vercel Nitro ⚠️ missing - - - - -

🔍 Observability: Express | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.966s (-1.4%) 1.125s (-11.8% 🟢) 0.000s (+30.2% 🔺) 1.140s (-12.8% 🟢) 0.174s 53 1.00x
🐘 Postgres Express 0.968s (-1.2%) 1.322s (+10.4% 🔺) 0.000s (+443.5% 🔺) 1.349s (+10.9% 🔺) 0.380s 46 1.00x
💻 Local Nitro 1.226s (+3.8%) 2.020s (~) 0.001s (+50.0% 🔺) 2.022s (~) 0.796s 30 1.27x
💻 Local Express 1.228s (+4.1%) 2.021s (~) 0.000s (-33.3% 🟢) 2.023s (~) 0.795s 30 1.27x
💻 Local Next.js (Turbopack) 1.265s 2.021s 0.001s 2.024s 0.759s 30 1.31x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - - -

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.793s (-17.1% 🟢) 4.351s (-3.1%) 0.000s (-64.1% 🟢) 4.800s (-1.4%) 2.007s 13 1.00x
▲ Vercel Next.js (Turbopack) 3.217s (-2.0%) 4.815s (+6.3% 🔺) 0.000s (-86.7% 🟢) 5.306s (+5.8% 🔺) 2.089s 12 1.15x
▲ Vercel Nitro ⚠️ missing - - - - -

🔍 Observability: Express | Next.js (Turbopack)

fan-out fan-in 10 streams (1MB each)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.718s (-1.2%) 2.099s (-1.9%) 0.000s (-3.4%) 2.112s (-1.9%) 0.394s 29 1.00x
🐘 Postgres Express 1.765s (~) 2.100s (-1.8%) 0.000s (-100.0% 🟢) 2.138s (-0.5%) 0.373s 29 1.03x
💻 Local Nitro 3.466s (-7.8% 🟢) 4.101s (-1.6%) 0.000s (-40.0% 🟢) 4.103s (-1.6%) 0.637s 15 2.02x
💻 Local Express 3.514s (~) 4.099s (+1.7%) 0.000s (+60.0% 🔺) 4.102s (+1.7%) 0.589s 15 2.05x
💻 Local Next.js (Turbopack) 3.548s 4.101s 0.001s 4.105s 0.557s 15 2.07x
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - - -

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.827s (-3.7%) 5.239s (+1.2%) 0.000s (-83.3% 🟢) 5.696s (+0.9%) 1.869s 11 1.00x
▲ Vercel Next.js (Turbopack) 4.314s (~) 5.593s (-1.2%) 0.000s (+100.0% 🔺) 6.314s (+3.9%) 2.000s 10 1.13x
▲ Vercel Nitro ⚠️ missing - - - - -

🔍 Observability: Express | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Next.js (Turbopack) 17/21
🐘 Postgres Nitro 16/21
▲ Vercel Express 16/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 🐘 Postgres 17/21
Next.js (Turbopack) 💻 Local 18/21
Nitro 🐘 Postgres 18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

  • Local: success
  • Postgres: success
  • Vercel: failure

Check the workflow run for details.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 15, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 923 0 67 990
❌ 💻 Local Development 746 76 168 990
✅ 📦 Local Production 898 0 182 1080
✅ 🐘 Local Postgres 898 0 182 1080
✅ 🪟 Windows 82 0 8 90
❌ 🌍 Community Worlds 133 98 0 231
✅ 📋 Other 228 0 42 270
Total 3908 174 649 4731

❌ Failed Tests

💻 Local Development (76 failed)

express-stable (76 failed):

  • DurableAgent e2e core basic text response
  • DurableAgent e2e core single tool call
  • DurableAgent e2e core multiple sequential tool calls
  • DurableAgent e2e core tool error recovery
  • DurableAgent e2e provider tools provider tool identity preserved across step boundaries
  • DurableAgent e2e provider tools mixed provider and function tools
  • DurableAgent e2e onStepFinish fires constructor + stream callbacks in order with step data
  • DurableAgent e2e onFinish fires constructor + stream callbacks in order with event data
  • DurableAgent e2e instructions string instructions are passed to the model
  • DurableAgent e2e timeout completes within timeout
  • DurableAgent e2e experimental_onStart (GAP) completes but callbacks are not called (GAP)
  • DurableAgent e2e experimental_onStepStart (GAP) completes but callbacks are not called (GAP)
  • DurableAgent e2e experimental_onToolCallStart (GAP) completes but callbacks are not called (GAP)
  • DurableAgent e2e experimental_onToolCallFinish (GAP) completes but callbacks are not called (GAP)
  • DurableAgent e2e prepareCall (GAP) completes but prepareCall is not applied (GAP)
  • DurableAgent e2e prepareStep on constructor agent-level prepareStep is called for each LLM step
  • DurableAgent e2e prepareStep on constructor stream-level prepareStep overrides constructor-level
  • DurableAgent e2e multimodal tool results passes through LanguageModelV3ToolResultOutput from tools
  • DurableAgent e2e tool approval (GAP) completes but needsApproval is not checked (GAP)
  • addTenWorkflow | wrun_01KPAHX3VY9R0NEPW7KV1QH0DF
  • addTenWorkflow | wrun_01KPAHX3VY9R0NEPW7KV1QH0DF
  • promiseAllWorkflow | wrun_01KPAHXC4TD39T9X9MA0SD8RAX
  • promiseRaceWorkflow | wrun_01KPAHXGMDXSE8KRV8MAQQ4PTN
  • promiseAnyWorkflow | wrun_01KPAHXJSA8N8BRTKPQXGE5GPB
  • hookWorkflow | wrun_01KPAHXYYYBEG0VR937PMT56HC
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KPAHYAM2SWC5D93VT6MJKH83
  • webhookWorkflow | wrun_01KPAHYKEB00B7G05YS5EFGBV5
  • webhook route with invalid token
  • sleepingWorkflow | wrun_01KPAHYSCG0EYV6NSN0E4YE03F
  • parallelSleepWorkflow | wrun_01KPAHZ666K97H9DT8ETG1Q2FR
  • nullByteWorkflow | wrun_01KPAHZ9HVZYGVT3KY501DR5PK
  • workflowAndStepMetadataWorkflow | wrun_01KPAHZBSPD4AXAKGS1E373G7Y
  • fetchWorkflow | wrun_01KPAJ278TDBADBY8ECHEHTHBY
  • promiseRaceStressTestWorkflow | wrun_01KPAJ2BF4125DHT1XKYTR8REF
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • stepDirectCallWorkflow - calling step functions directly outside workflow context
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KPAJ5Z7K0C1ZQKWWT7X6R70W
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KPAJ6M0N54T75K2YTGGZ6D13
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KPAJ79S20768X7EXF9K2EE00
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KPAJ7YW1D24111SWWSCDVWRG
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KPAJ885V5T9KV7XDE3FG7A9F
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KPAJ8F3RWBXCN46S7HJKXMC8
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KPAJ8H877T5G5HJMGPHPMWR1
  • runClassSerializationWorkflow - Run instances serialize across workflow/step boundaries | wrun_01KPAJ8WNMHX0R5GXZQ094JJF7
  • health check endpoint (HTTP) - workflow and step endpoints respond to __health query parameter
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KPAJ9BNZSZ69VSVWGNY9T64Y
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KPAJ9HWGT69D3GKAJ1XCZ4GJ
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KPAJ9RR3JNCNY95GC51GRVE6
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KPAJ9ZJCCDA7PYPAJ1Q7RZ00
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KPAJA6CZNV7AJ1DM6PME3T2N
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KPAJAD8KNWSGKHA3D8PTQ2EC
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KPAJAM1MXHBQH8XRQRC7VP9E
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KPAJAZGWFYRHWYRXWZ7Q0F5N
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KPAJB7SMCD1CR8DSP5YBREPN
  • cancelRun - cancelling a running workflow | wrun_01KPAJBFV2ZS08E2PHVRXHAN85
  • cancelRun via CLI - cancelling a running workflow | wrun_01KPAJBS4760DZQ56VZD96PR1H
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KPAJC5ES5R7G0G6NNHJ8DM2N
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KPAJCWHBTHZ8SJ1XZGE4D35Y
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KPAJD7TXV8MAMXRRGB2DV580
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KPAJDEPYYY8HY0DZ4BKSRQDZ
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KPAJDGVK3BYYEX95QKACEF5Y
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KPAJDKK44YE95JMHC9BN56N3
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KPAJDPWVSFXQSY49KC88WTZ1
🌍 Community Worlds (98 failed)

mongodb (15 failed):

  • readableStreamWorkflow | wrun_01KPAHXN0Z4AV3V96H3D4Z13EB
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KPAHYAM2SWC5D93VT6MJKH83
  • webhookWorkflow | wrun_01KPAHYKEB00B7G05YS5EFGBV5
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getChunks getChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KPAJ1SDG3ZTS68G32MPQDQ2X
  • fetchWorkflow | wrun_01KPAJ278TDBADBY8ECHEHTHBY
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KPAJ6M0N54T75K2YTGGZ6D13
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KPAJDKK44YE95JMHC9BN56N3

redis (15 failed):

  • readableStreamWorkflow | wrun_01KPAHXN0Z4AV3V96H3D4Z13EB
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KPAHYAM2SWC5D93VT6MJKH83
  • webhookWorkflow | wrun_01KPAHYKEB00B7G05YS5EFGBV5
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getChunks getChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KPAJ1SDG3ZTS68G32MPQDQ2X
  • fetchWorkflow | wrun_01KPAJ278TDBADBY8ECHEHTHBY
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KPAJ6M0N54T75K2YTGGZ6D13
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KPAJDKK44YE95JMHC9BN56N3

turso (68 failed):

  • addTenWorkflow | wrun_01KPAHX3VY9R0NEPW7KV1QH0DF
  • addTenWorkflow | wrun_01KPAHX3VY9R0NEPW7KV1QH0DF
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KPAHY99T0D30GZ5M5EHMKE3A
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KPAHXC4TD39T9X9MA0SD8RAX
  • promiseRaceWorkflow | wrun_01KPAHXGMDXSE8KRV8MAQQ4PTN
  • promiseAnyWorkflow | wrun_01KPAHXJSA8N8BRTKPQXGE5GPB
  • importedStepOnlyWorkflow | wrun_01KPAHYNNDSPYDVTF1N5G6J59W
  • readableStreamWorkflow | wrun_01KPAHXN0Z4AV3V96H3D4Z13EB
  • hookWorkflow | wrun_01KPAHXYYYBEG0VR937PMT56HC
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KPAHYAM2SWC5D93VT6MJKH83
  • webhookWorkflow | wrun_01KPAHYKEB00B7G05YS5EFGBV5
  • sleepingWorkflow | wrun_01KPAHYSCG0EYV6NSN0E4YE03F
  • parallelSleepWorkflow | wrun_01KPAHZ666K97H9DT8ETG1Q2FR
  • nullByteWorkflow | wrun_01KPAHZ9HVZYGVT3KY501DR5PK
  • workflowAndStepMetadataWorkflow | wrun_01KPAHZBSPD4AXAKGS1E373G7Y
  • outputStreamWorkflow no startIndex (reads all chunks)
  • outputStreamWorkflow positive startIndex (skips first chunk)
  • outputStreamWorkflow negative startIndex (reads from end)
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns correct index after stream completes
  • outputStreamWorkflow - getTailIndex and getChunks getTailIndex returns -1 before any chunks are written
  • outputStreamWorkflow - getTailIndex and getChunks getChunks returns same content as reading the stream
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions | wrun_01KPAJ1SDG3ZTS68G32MPQDQ2X
  • fetchWorkflow | wrun_01KPAJ278TDBADBY8ECHEHTHBY
  • promiseRaceStressTestWorkflow | wrun_01KPAJ2BF4125DHT1XKYTR8REF
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • error handling not registered WorkflowNotRegisteredError fails the run when workflow does not exist
  • error handling not registered StepNotRegisteredError fails the step but workflow can catch it
  • error handling not registered StepNotRegisteredError fails the run when not caught in workflow
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KPAJ5Z7K0C1ZQKWWT7X6R70W
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KPAJ6M0N54T75K2YTGGZ6D13
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KPAJ79S20768X7EXF9K2EE00
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KPAJ7YW1D24111SWWSCDVWRG
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KPAJ885V5T9KV7XDE3FG7A9F
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KPAJ8F3RWBXCN46S7HJKXMC8
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KPAJ8H877T5G5HJMGPHPMWR1
  • runClassSerializationWorkflow - Run instances serialize across workflow/step boundaries | wrun_01KPAJ8WNMHX0R5GXZQ094JJF7
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KPAJ9BNZSZ69VSVWGNY9T64Y
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KPAJ9HWGT69D3GKAJ1XCZ4GJ
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KPAJ9RR3JNCNY95GC51GRVE6
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KPAJ9ZJCCDA7PYPAJ1Q7RZ00
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KPAJA6CZNV7AJ1DM6PME3T2N
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KPAJAD8KNWSGKHA3D8PTQ2EC
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KPAJAM1MXHBQH8XRQRC7VP9E
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KPAJAZGWFYRHWYRXWZ7Q0F5N
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KPAJB7SMCD1CR8DSP5YBREPN
  • cancelRun - cancelling a running workflow | wrun_01KPAJBFV2ZS08E2PHVRXHAN85
  • cancelRun via CLI - cancelling a running workflow | wrun_01KPAJBS4760DZQ56VZD96PR1H
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KPAJC5ES5R7G0G6NNHJ8DM2N
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KPAJCWHBTHZ8SJ1XZGE4D35Y
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KPAJD7TXV8MAMXRRGB2DV580
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KPAJDEPYYY8HY0DZ4BKSRQDZ
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KPAJDGVK3BYYEX95QKACEF5Y
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KPAJDKK44YE95JMHC9BN56N3
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KPAJDPWVSFXQSY49KC88WTZ1

Details by Category

✅ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 83 0 7
✅ example 83 0 7
✅ express 83 0 7
✅ fastify 83 0 7
✅ hono 83 0 7
✅ nextjs-turbopack 88 0 2
✅ nextjs-webpack 88 0 2
✅ nitro 83 0 7
✅ nuxt 83 0 7
✅ sveltekit 83 0 7
✅ vite 83 0 7
❌ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 76 0 14
❌ express-stable 0 76 14
✅ fastify-stable 76 0 14
✅ hono-stable 76 0 14
✅ nextjs-turbopack-canary 63 0 27
✅ nextjs-turbopack-stable 82 0 8
✅ nextjs-webpack-canary 63 0 27
✅ nextjs-webpack-stable 82 0 8
✅ nuxt-stable 76 0 14
✅ sveltekit-stable 76 0 14
✅ vite-stable 76 0 14
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 76 0 14
✅ express-stable 76 0 14
✅ fastify-stable 76 0 14
✅ hono-stable 76 0 14
✅ nextjs-turbopack-canary 63 0 27
✅ nextjs-turbopack-stable 82 0 8
✅ nextjs-webpack-canary 63 0 27
✅ nextjs-webpack-stable 82 0 8
✅ nitro-stable 76 0 14
✅ nuxt-stable 76 0 14
✅ sveltekit-stable 76 0 14
✅ vite-stable 76 0 14
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 76 0 14
✅ express-stable 76 0 14
✅ fastify-stable 76 0 14
✅ hono-stable 76 0 14
✅ nextjs-turbopack-canary 63 0 27
✅ nextjs-turbopack-stable 82 0 8
✅ nextjs-webpack-canary 63 0 27
✅ nextjs-webpack-stable 82 0 8
✅ nitro-stable 76 0 14
✅ nuxt-stable 76 0 14
✅ sveltekit-stable 76 0 14
✅ vite-stable 76 0 14
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 82 0 8
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 6 0 0
❌ mongodb 56 15 0
✅ redis-dev 6 0 0
❌ redis 56 15 0
✅ turso-dev 6 0 0
❌ turso 3 68 0
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 76 0 14
✅ e2e-local-postgres-nest-stable 76 0 14
✅ e2e-local-prod-nest-stable 76 0 14

📋 View full workflow run


Some E2E test jobs failed:

  • Vercel Prod: success
  • Local Dev: failure
  • Local Prod: success
  • Local Postgres: success
  • Windows: success

Check the workflow run for details.

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 15, 2026

🦋 Changeset detected

Latest commit: 190c267

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 18 packages
Name Type
@workflow/swc-plugin Patch
@workflow/astro Patch
@workflow/builders Patch
@workflow/cli Patch
@workflow/nest Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
workflow Patch
@workflow/vite Patch
@workflow/vitest Patch
@workflow/world-testing Patch
@workflow/nuxt Patch
@workflow/ai Patch
@workflow/core Patch
@workflow/web-shared Patch
@workflow/web Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the @workflow/swc-plugin step-mode transform so inline step registration IIFEs explicitly set the registered function’s .name, preserving human-readable step names in stack traces even after bundler minification/mangling.

Changes:

  • Emit Object.defineProperty(__wf_fn, "name", { value: "<original>", configurable: true }) inside inline step registration IIFEs.
  • Thread the original function name through create_inline_step_registration(...) call sites.
  • Update SWC transform fixture snapshots (and add a changeset) to reflect the new emitted code.

Reviewed changes

Copilot reviewed 47 out of 47 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
packages/swc-plugin-workflow/transform/src/lib.rs Extend inline step registration codegen to define the function name property using the original step name.
.changeset/preserve-step-fn-names.md Publish a patch changeset for the SWC plugin behavior change.
packages/swc-plugin-workflow/transform/tests/fixture/var-named-step-function/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/using-declaration-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/unused-variables-and-types/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/unused-exports/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-default-export/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/sync-step-class/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/step-with-this-arguments-super/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/step-with-imports/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/step-arrow-function/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/static-method-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/static-getter-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/single-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/separate-export-statement/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/private-member-dce/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/private-member-dce-native/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/object-property-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/object-getter-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/nested-steps-in-object-constructor/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/nested-step-with-closure/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/nested-step-in-workflow/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/multiple-const-step-functions/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/module-level-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/mixed-functions/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/let-arrow-step-function/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/instance-method-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/instance-method-nested-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/instance-getter-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/factory-with-step-method/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/export-default-class-named/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/export-default-class-anonymous/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/export-default-class-anonymous-step-only/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/destructuring/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/deeply-nested-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/closure-typescript-expressions/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/closure-new-expr-and-module-declarations/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/class-expression-binding-name-step-methods/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/agent-with-tool-step/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/fixture/agent-with-tool-step-shorthand-method/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs.
packages/swc-plugin-workflow/transform/tests/errors/sync-workflow/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs for error fixtures.
packages/swc-plugin-workflow/transform/tests/errors/misplaced-function-directive/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs for error fixtures.
packages/swc-plugin-workflow/transform/tests/errors/invalid-exports/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs for error fixtures.
packages/swc-plugin-workflow/transform/tests/errors/instance-methods/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs for error fixtures.
packages/swc-plugin-workflow/transform/tests/errors/getter-workflow/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs for error fixtures.
packages/swc-plugin-workflow/transform/tests/errors/conflicting-directives/output-step.js Update expected transformed output to include Object.defineProperty(..., "name", ...) in step IIFEs for error fixtures.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .changeset/preserve-step-fn-names.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Signed-off-by: Nathan Rajlich <n@n8.io>
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