Skip to content

[builders] Fix unicode-escape crash in workflow graph extraction#2324

Open
VaguelySerious wants to merge 2 commits into
mainfrom
peter/issue-1958
Open

[builders] Fix unicode-escape crash in workflow graph extraction#2324
VaguelySerious wants to merge 2 commits into
mainfrom
peter/issue-1958

Conversation

@VaguelySerious

@VaguelySerious VaguelySerious commented Jun 10, 2026

Copy link
Copy Markdown
Member

Summary

CI-verification mirror of #1993 (by @EfeDurmaz16), plus the docs additions from #2003. External-contributor PRs don't run the full CI suite without manual approval, so this branch carries the changes to exercise the pipeline.

Builders fix (#1993 / #1958): Fixes the @workflow/builders graph extractor crash on unicode-escape identifiers (e.g. radashi's DEBURR_MAP using Æ). The bundle wraps workflow code in a workflowCode template literal, escaping [\\$]. The extractor re-parsed it via q.cooked || q.raw, but SWC leaves cookednull, so it fell back to the fully-escapedraw (\u00C6), which SWC then rejects — and extractWorkflowGraphssilently returned{}. The fix decodes only the three wrapper-applied escapes (\, `` \ ``, \$) from `raw`, which is the exact inverse of the wrapper's escaping.

Docs (#2003 / #817): Adds "Workflow Discovery in Next.js" and "Server Actions and \"use server\"" sections to the withWorkflow() reference. The stale lazyDiscovery edits from #2003 are intentionally omitted — main already supersedes them.

Closes #2003, closes #1958, closes #1993, closes #817.

Verification (local)

  • Reproduced the crash on current main: extraction returns {} on a Æ identifier.
  • After the fix, extraction succeeds and returns the workflow graph.
  • Round-trip fuzz confirmed decode(wrapperEscape(src)) === src for literal \n/\t, backticks, ${}, lone/consecutive backslashes, and mixed specials.
  • pnpm --filter @workflow/builders test (162 passed), typecheck clean.
  • pnpm --filter docs lint:links passes (0 errors) after regenerating fumadocs source.

🤖 Generated with Claude Code

Signed-off-by: EfeDurmaz16 <efebarandurmaz05@gmail.com>
@changeset-bot

changeset-bot Bot commented Jun 10, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0f4db2d

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

This PR includes changesets to release 16 packages
Name Type
@workflow/builders Patch
@workflow/astro Patch
@workflow/cli Patch
@workflow/nest Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
@workflow/vite Patch
@workflow/vitest Patch
workflow Patch
@workflow/world-testing Patch
@workflow/nuxt 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

@vercel

vercel Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

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 Jun 10, 2026 3:12pm
example-nextjs-workflow-webpack Ready Ready Preview, Comment Jun 10, 2026 3:12pm
example-workflow Ready Ready Preview, Comment Jun 10, 2026 3:12pm
workbench-astro-workflow Ready Ready Preview, Comment Jun 10, 2026 3:12pm
workbench-express-workflow Ready Ready Preview, Comment Jun 10, 2026 3:12pm
workbench-fastify-workflow Ready Ready Preview, Comment Jun 10, 2026 3:12pm
workbench-hono-workflow Ready Ready Preview, Comment Jun 10, 2026 3:12pm
workbench-nitro-workflow Ready Ready Preview, Comment Jun 10, 2026 3:12pm
workbench-nuxt-workflow Ready Ready Preview, Comment Jun 10, 2026 3:12pm
workbench-sveltekit-workflow Ready Ready Preview, Comment Jun 10, 2026 3:12pm
workbench-tanstack-start-workflow Ready Ready Preview, Comment Jun 10, 2026 3:12pm
workbench-vite-workflow Ready Ready Preview, Comment Jun 10, 2026 3:12pm
workflow-docs Ready Ready Preview, Comment, Open in v0 Jun 10, 2026 3:12pm
workflow-swc-playground Ready Ready Preview, Comment Jun 10, 2026 3:12pm
workflow-tarballs Ready Ready Preview, Comment Jun 10, 2026 3:12pm
workflow-web Ready Ready Preview, Comment Jun 10, 2026 3:12pm

@github-actions

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

📊 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.039s (-8.4% 🟢) 1.006s (~) 0.966s 10 1.00x
💻 Local Express 0.043s (-1.2%) 1.007s (~) 0.964s 10 1.09x
💻 Local Next.js (Turbopack) 0.062s (+12.2% 🔺) 1.006s (~) 0.944s 10 1.57x
🐘 Postgres Express 0.065s (-2.3%) 1.012s (~) 0.947s 10 1.65x
🐘 Postgres Nitro 0.065s (+2.5%) 1.011s (~) 0.946s 10 1.65x
🐘 Postgres Next.js (Turbopack) 0.067s (-4.9%) 1.012s (~) 0.945s 10 1.70x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 0.557s (+104.7% 🔺) 2.571s (-5.2% 🟢) 2.014s 10 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 1.091s (~) 2.006s (~) 0.915s 10 1.00x
💻 Local Express 1.098s (~) 2.007s (~) 0.909s 10 1.01x
🐘 Postgres Nitro 1.112s (~) 2.010s (~) 0.898s 10 1.02x
🐘 Postgres Express 1.117s (+2.3%) 2.009s (~) 0.892s 10 1.02x
💻 Local Next.js (Turbopack) 1.132s (+2.1%) 2.006s (~) 0.873s 10 1.04x
🐘 Postgres Next.js (Turbopack) 1.138s (~) 2.010s (~) 0.872s 10 1.04x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 1.841s (+16.2% 🔺) 3.636s (+1.8%) 1.795s 10 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 10.525s (~) 11.023s (~) 0.498s 3 1.00x
💻 Local Express 10.555s (~) 11.023s (~) 0.468s 3 1.00x
🐘 Postgres Nitro 10.556s (~) 11.016s (~) 0.460s 3 1.00x
🐘 Postgres Express 10.575s (-1.3%) 11.023s (-2.9%) 0.448s 3 1.00x
💻 Local Next.js (Turbopack) 10.769s (+1.5%) 11.021s (~) 0.253s 3 1.02x
🐘 Postgres Next.js (Turbopack) 10.889s (+0.6%) 11.356s (+3.1%) 0.467s 3 1.03x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 14.754s (+12.1% 🔺) 16.684s (+8.0% 🔺) 1.930s 2 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 25 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 13.685s (~) 14.027s (~) 0.342s 5 1.00x
💻 Local Express 13.789s (-0.8%) 14.030s (-1.4%) 0.241s 5 1.01x
🐘 Postgres Express 13.813s (~) 14.018s (-1.5%) 0.206s 5 1.01x
🐘 Postgres Nitro 13.929s (+0.6%) 14.221s (+1.4%) 0.293s 5 1.02x
💻 Local Next.js (Turbopack) 14.383s (+2.5%) 15.028s (+2.7%) 0.645s 4 1.05x
🐘 Postgres Next.js (Turbopack) 14.512s (-0.5%) 15.021s (~) 0.508s 4 1.06x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 24.051s (-5.6% 🟢) 26.274s (-3.6%) 2.224s 3 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 50 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 12.342s (-0.6%) 13.026s (~) 0.684s 7 1.00x
💻 Local Express 12.521s (-0.6%) 13.025s (~) 0.505s 7 1.01x
🐘 Postgres Nitro 12.571s (-1.3%) 13.020s (~) 0.449s 7 1.02x
🐘 Postgres Express 12.646s (-0.7%) 13.020s (-2.2%) 0.373s 7 1.02x
💻 Local Next.js (Turbopack) 13.581s (+4.9%) 14.028s (+5.4% 🔺) 0.447s 7 1.10x
🐘 Postgres Next.js (Turbopack) 14.020s (+1.9%) 14.592s (+4.1%) 0.572s 7 1.14x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 30.801s (-3.9%) 33.424s (-2.4%) 2.623s 3 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.180s (-1.6%) 2.008s (~) 0.828s 15 1.00x
💻 Local Express 1.193s (-5.6% 🟢) 2.007s (~) 0.814s 15 1.01x
💻 Local Nitro 1.198s (-1.3%) 2.006s (~) 0.809s 15 1.01x
🐘 Postgres Express 1.203s (~) 2.008s (-0.7%) 0.805s 15 1.02x
🐘 Postgres Next.js (Turbopack) 1.240s (-0.9%) 2.008s (~) 0.769s 15 1.05x
💻 Local Next.js (Turbopack) 1.299s (+6.2% 🔺) 2.007s (~) 0.707s 15 1.10x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.128s (+13.0% 🔺) 5.138s (+8.8% 🔺) 2.010s 6 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.259s (~) 2.007s (~) 0.748s 15 1.00x
🐘 Postgres Express 1.283s (-3.3%) 2.008s (~) 0.725s 15 1.02x
🐘 Postgres Next.js (Turbopack) 1.451s (+3.0%) 2.008s (~) 0.557s 15 1.15x
💻 Local Nitro 1.705s (~) 2.006s (-3.2%) 0.301s 15 1.35x
💻 Local Next.js (Turbopack) 1.813s (+5.1% 🔺) 2.073s (+3.4%) 0.260s 15 1.44x
💻 Local Express 1.893s (+0.6%) 2.222s (~) 0.329s 14 1.50x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 4.340s (+6.3% 🔺) 6.680s (+8.3% 🔺) 2.340s 5 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

Promise.all with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.402s (+0.6%) 2.008s (~) 0.605s 15 1.00x
🐘 Postgres Nitro 1.405s (~) 2.007s (~) 0.602s 15 1.00x
🐘 Postgres Next.js (Turbopack) 1.849s (+5.1% 🔺) 2.677s (+16.7% 🔺) 0.828s 12 1.32x
💻 Local Nitro 4.525s (-4.1%) 5.012s (~) 0.488s 7 3.23x
💻 Local Next.js (Turbopack) 5.469s (+24.4% 🔺) 6.013s (+20.0% 🔺) 0.544s 5 3.90x
💻 Local Express 5.474s (+3.3%) 6.014s (~) 0.540s 5 3.90x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 7.352s (+24.6% 🔺) 9.709s (+23.0% 🔺) 2.357s 4 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.172s (-2.6%) 2.009s (~) 0.837s 15 1.00x
🐘 Postgres Nitro 1.218s (+1.5%) 2.006s (~) 0.789s 15 1.04x
🐘 Postgres Next.js (Turbopack) 1.280s (+1.1%) 2.009s (~) 0.729s 15 1.09x
💻 Local Next.js (Turbopack) 1.391s (+6.6% 🔺) 2.007s (~) 0.615s 15 1.19x
💻 Local Nitro 1.510s (-2.1%) 2.006s (~) 0.496s 15 1.29x
💻 Local Express 1.547s (-6.6% 🟢) 2.006s (-3.3%) 0.459s 15 1.32x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.168s (+23.4% 🔺) 5.294s (+26.1% 🔺) 2.126s 6 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.265s (+1.8%) 2.009s (~) 0.744s 15 1.00x
🐘 Postgres Nitro 1.275s (~) 2.008s (~) 0.733s 15 1.01x
🐘 Postgres Next.js (Turbopack) 1.427s (+2.1%) 2.010s (~) 0.584s 15 1.13x
💻 Local Express 1.968s (-7.4% 🟢) 2.393s (-7.6% 🟢) 0.425s 13 1.56x
💻 Local Next.js (Turbopack) 1.977s (-2.2%) 2.315s (-7.6% 🟢) 0.339s 13 1.56x
💻 Local Nitro 1.984s (+13.0% 🔺) 2.469s (+19.2% 🔺) 0.485s 13 1.57x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.766s (+2.5%) 5.650s (+0.7%) 1.884s 6 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

Promise.race with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.406s (-3.8%) 2.008s (~) 0.602s 15 1.00x
🐘 Postgres Express 1.417s (-5.5% 🟢) 2.007s (-16.3% 🟢) 0.590s 15 1.01x
🐘 Postgres Next.js (Turbopack) 1.734s (+4.7%) 2.395s (+15.5% 🔺) 0.661s 13 1.23x
💻 Local Nitro 5.232s (+10.3% 🔺) 5.680s (+6.3% 🔺) 0.448s 6 3.72x
💻 Local Next.js (Turbopack) 5.788s (+12.1% 🔺) 6.180s (+2.7%) 0.392s 6 4.12x
💻 Local Express 5.792s (-1.2%) 6.217s (~) 0.425s 5 4.12x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 5.103s (+0.6%) 6.955s (+4.9%) 1.852s 5 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 0.586s (-10.7% 🟢) 1.005s (-3.3%) 0.419s 60 1.00x
💻 Local Nitro 0.593s (-26.3% 🟢) 1.005s (-16.6% 🟢) 0.412s 60 1.01x
🐘 Postgres Nitro 0.605s (-0.6%) 1.024s (+1.7%) 0.419s 59 1.03x
🐘 Postgres Express 0.624s (-6.4% 🟢) 1.042s (-0.6%) 0.417s 58 1.07x
💻 Local Next.js (Turbopack) 0.845s (+21.3% 🔺) 1.004s (~) 0.160s 60 1.44x
🐘 Postgres Next.js (Turbopack) 0.916s (+12.8% 🔺) 1.099s (+9.1% 🔺) 0.182s 55 1.56x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 6.863s (+24.8% 🔺) 8.998s (+26.5% 🔺) 2.135s 7 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 1.383s (-2.4%) 2.008s (~) 0.625s 45 1.00x
🐘 Postgres Express 1.436s (-6.5% 🟢) 2.008s (-6.7% 🟢) 0.572s 45 1.04x
💻 Local Nitro 1.465s (~) 2.006s (~) 0.540s 45 1.06x
💻 Local Express 1.541s (-3.2%) 2.029s (~) 0.488s 45 1.11x
💻 Local Next.js (Turbopack) 2.073s (+19.9% 🔺) 2.943s (+45.1% 🔺) 0.870s 31 1.50x
🐘 Postgres Next.js (Turbopack) 2.084s (+7.3% 🔺) 2.884s (+32.6% 🔺) 0.800s 32 1.51x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 14.986s (-8.5% 🟢) 17.221s (-6.0% 🟢) 2.235s 6 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 2.854s (-2.0%) 3.220s (-9.0% 🟢) 0.366s 38 1.00x
🐘 Postgres Nitro 2.868s (-1.5%) 3.192s (-2.7%) 0.324s 38 1.01x
💻 Local Express 3.205s (-6.3% 🟢) 4.009s (~) 0.804s 30 1.12x
💻 Local Nitro 3.232s (+0.8%) 3.977s (-0.8%) 0.745s 31 1.13x
🐘 Postgres Next.js (Turbopack) 4.082s (+5.8% 🔺) 4.742s (+16.3% 🔺) 0.660s 26 1.43x
💻 Local Next.js (Turbopack) 4.271s (+14.6% 🔺) 5.011s (+22.0% 🔺) 0.740s 24 1.50x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 28.448s (-1.4%) 31.260s (+1.2%) 2.812s 4 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.223s (-5.1% 🟢) 1.006s (~) 0.783s 60 1.00x
🐘 Postgres Express 0.234s (-7.2% 🟢) 1.006s (~) 0.772s 60 1.05x
🐘 Postgres Next.js (Turbopack) 0.283s (~) 1.006s (~) 0.723s 60 1.27x
💻 Local Nitro 0.404s (-4.8%) 1.004s (~) 0.600s 60 1.81x
💻 Local Express 0.416s (-10.6% 🟢) 1.004s (~) 0.589s 60 1.86x
💻 Local Next.js (Turbopack) 0.567s (-7.2% 🟢) 1.005s (-3.3%) 0.438s 60 2.54x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 306.949s (+13775.7% 🔺) 309.259s (+7446.2% 🔺) 2.310s 1 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.364s (-1.9%) 1.007s (~) 0.643s 90 1.00x
🐘 Postgres Express 0.372s (+9.8% 🔺) 1.007s (~) 0.634s 90 1.02x
🐘 Postgres Next.js (Turbopack) 0.525s (+8.7% 🔺) 1.007s (~) 0.482s 90 1.44x
💻 Local Nitro 2.075s (+0.5%) 2.608s (-1.1%) 0.534s 35 5.70x
💻 Local Express 2.121s (-3.2%) 2.610s (-7.5% 🟢) 0.488s 35 5.83x
💻 Local Next.js (Turbopack) 2.349s (-4.1%) 3.076s (-1.1%) 0.727s 30 6.46x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 5.365s (-87.6% 🟢) 7.361s (-83.7% 🟢) 1.996s 13 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.699s (-1.1%) 1.007s (~) 0.308s 120 1.00x
🐘 Postgres Express 0.707s (+13.0% 🔺) 1.007s (-4.6%) 0.300s 120 1.01x
🐘 Postgres Next.js (Turbopack) 1.029s (+5.0% 🔺) 1.788s (+11.2% 🔺) 0.760s 68 1.47x
💻 Local Nitro 9.354s (+7.4% 🔺) 10.027s (+7.5% 🔺) 0.673s 12 13.38x
💻 Local Express 9.684s (-6.1% 🟢) 10.195s (-6.2% 🟢) 0.511s 12 13.85x
💻 Local Next.js (Turbopack) 10.911s (+5.8% 🔺) 11.663s (+3.2%) 0.753s 11 15.60x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 17.766s (+16.5% 🔺) 19.573s (+11.9% 🔺) 1.806s 7 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - -
▲ Vercel Nitro ⚠️ missing - - - -

🔍 Observability: Express

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 1.166s (+1.3%) 2.005s (~) 0.011s (+6.0% 🔺) 2.018s (~) 0.852s 10 1.00x
💻 Local Express 1.166s (~) 2.005s (~) 0.013s (-2.3%) 2.020s (~) 0.854s 10 1.00x
🐘 Postgres Nitro 1.177s (~) 1.995s (~) 0.001s (~) 2.011s (~) 0.833s 10 1.01x
🐘 Postgres Express 1.182s (-1.0%) 1.997s (~) 0.002s (-95.0% 🟢) 2.011s (-1.6%) 0.830s 10 1.01x
💻 Local Next.js (Turbopack) 1.220s (+4.4%) 2.004s (~) 0.013s (+23.8% 🔺) 2.020s (~) 0.800s 10 1.05x
🐘 Postgres Next.js (Turbopack) 1.228s (~) 2.001s (~) 0.001s (-26.7% 🟢) 2.010s (~) 0.782s 10 1.05x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.328s (+8.5% 🔺) 3.533s (+3.7%) 0.902s (+71.6% 🔺) 4.925s (+10.8% 🔺) 2.597s 10 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -
▲ Vercel Nitro ⚠️ missing - - - - -

🔍 Observability: Express

stream pipeline with 5 transform steps (1MB)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Nitro 1.572s (-9.8% 🟢) 2.010s (~) 0.009s (-0.8%) 2.021s (-8.1% 🟢) 0.449s 30 1.00x
💻 Local Express 1.581s (-3.4%) 2.010s (~) 0.010s (-5.4% 🟢) 2.022s (~) 0.441s 30 1.01x
🐘 Postgres Express 1.609s (-7.4% 🟢) 2.003s (-6.5% 🟢) 0.004s (+32.1% 🔺) 2.026s (-6.2% 🟢) 0.417s 30 1.02x
🐘 Postgres Nitro 1.633s (-1.8%) 2.005s (~) 0.004s (+0.9%) 2.026s (~) 0.393s 30 1.04x
💻 Local Next.js (Turbopack) 1.766s (+7.7% 🔺) 2.010s (~) 0.010s (+3.6%) 2.023s (~) 0.257s 30 1.12x
🐘 Postgres Next.js (Turbopack) 1.820s (+3.2%) 2.042s (+1.6%) 0.004s (-2.5%) 2.059s (+1.6%) 0.239s 30 1.16x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 6.556s (+13.9% 🔺) 8.042s (+8.2% 🔺) 0.317s (-10.3% 🟢) 8.849s (+5.3% 🔺) 2.293s 7 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -
▲ Vercel Nitro ⚠️ missing - - - - -

🔍 Observability: Express

10 parallel streams (1MB each)

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Nitro 0.753s (+4.1%) 1.048s (+1.7%) 0.000s (-100.0% 🟢) 1.060s (+1.2%) 0.307s 57 1.00x
🐘 Postgres Express 0.754s (-22.9% 🟢) 1.066s (-25.3% 🟢) 0.000s (-50.9% 🟢) 1.083s (-25.2% 🟢) 0.329s 57 1.00x
🐘 Postgres Next.js (Turbopack) 0.875s (+5.1% 🔺) 1.178s (+9.9% 🔺) 0.000s (+9.8% 🔺) 1.186s (+9.8% 🔺) 0.310s 51 1.16x
💻 Local Nitro 1.369s (+1.2%) 2.014s (~) 0.001s (~) 2.016s (~) 0.648s 30 1.82x
💻 Local Express 1.377s (-7.1% 🟢) 2.014s (~) 0.000s (-33.3% 🟢) 2.016s (~) 0.639s 30 1.83x
💻 Local Next.js (Turbopack) 1.522s (+5.2% 🔺) 2.013s (~) 0.000s (-25.0% 🟢) 2.016s (~) 0.494s 30 2.02x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.428s (-15.6% 🟢) 4.851s (-9.1% 🟢) 0.000s (-100.0% 🟢) 5.416s (-12.2% 🟢) 1.988s 12 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -
▲ Vercel Nitro ⚠️ missing - - - - -

🔍 Observability: Express

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

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
🐘 Postgres 🥇 Express 1.390s (-13.9% 🟢) 2.032s (-9.8% 🟢) 0.000s (+Infinity% 🔺) 2.075s (-9.0% 🟢) 0.685s 29 1.00x
🐘 Postgres Nitro 1.517s (+7.6% 🔺) 2.177s (+9.1% 🔺) 0.000s (+Infinity% 🔺) 2.189s (+8.8% 🔺) 0.672s 28 1.09x
🐘 Postgres Next.js (Turbopack) 1.687s (-2.3%) 2.262s (~) 0.000s (+Infinity% 🔺) 2.270s (~) 0.583s 27 1.21x
💻 Local Next.js (Turbopack) 3.020s (-6.0% 🟢) 3.614s (-7.3% 🟢) 0.001s (+144.7% 🔺) 3.618s (-7.2% 🟢) 0.598s 17 2.17x
💻 Local Nitro 3.107s (~) 3.842s (-1.4%) 0.001s (+200.0% 🔺) 3.844s (-1.5%) 0.737s 16 2.24x
💻 Local Express 3.124s (-6.3% 🟢) 3.896s (+1.5%) 0.001s (+33.3% 🔺) 3.904s (+1.6%) 0.779s 16 2.25x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 6.485s (+2.6%) 8.101s (+6.2% 🔺) 0.000s (-100.0% 🟢) 8.573s (+4.8%) 2.088s 7 1.00x
▲ Vercel Next.js (Turbopack) ⚠️ missing - - - - -
▲ Vercel Nitro ⚠️ missing - - - - -

🔍 Observability: Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Nitro 15/21
🐘 Postgres Nitro 13/21
▲ Vercel Express 21/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 🐘 Postgres 12/21
Next.js (Turbopack) 🐘 Postgres 12/21
Nitro 🐘 Postgres 13/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)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: 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

github-actions Bot commented Jun 10, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
❌ ▲ Vercel Production 567 2 106 675
✅ 💻 Local Development 1536 0 219 1755
✅ 📦 Local Production 1536 0 219 1755
✅ 🐘 Local Postgres 1536 0 219 1755
✅ 🪟 Windows 135 0 0 135
✅ 📋 Other 660 0 150 810
Total 5970 2 913 6885

❌ Failed Tests

▲ Vercel Production (2 failed)

nextjs-turbopack (1 failed):

  • AbortController abortThrowIfAbortedWorkflow: throwIfAborted causes FatalError, no retries

vite (1 failed):

  • health check (CLI) - workflow health command reports healthy endpoints

Details by Category

❌ ▲ Vercel Production
App Passed Failed Skipped
✅ example 109 0 26
✅ express 109 0 26
❌ nextjs-turbopack 132 1 2
✅ nuxt 109 0 26
❌ vite 108 1 26
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 110 0 25
✅ express-stable 110 0 25
✅ fastify-stable 110 0 25
✅ hono-stable 110 0 25
✅ nextjs-turbopack-canary 116 0 19
✅ nextjs-turbopack-stable-lazy-discovery-disabled 135 0 0
✅ nextjs-turbopack-stable-lazy-discovery-enabled 135 0 0
✅ nextjs-webpack-canary 116 0 19
✅ nextjs-webpack-stable-lazy-discovery-enabled 135 0 0
✅ nitro-stable 110 0 25
✅ nuxt-stable 110 0 25
✅ sveltekit-stable 129 0 6
✅ vite-stable 110 0 25
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 110 0 25
✅ express-stable 110 0 25
✅ fastify-stable 110 0 25
✅ hono-stable 110 0 25
✅ nextjs-turbopack-canary 116 0 19
✅ nextjs-turbopack-stable-lazy-discovery-disabled 135 0 0
✅ nextjs-turbopack-stable-lazy-discovery-enabled 135 0 0
✅ nextjs-webpack-canary 116 0 19
✅ nextjs-webpack-stable-lazy-discovery-enabled 135 0 0
✅ nitro-stable 110 0 25
✅ nuxt-stable 110 0 25
✅ sveltekit-stable 129 0 6
✅ vite-stable 110 0 25
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 110 0 25
✅ express-stable 110 0 25
✅ fastify-stable 110 0 25
✅ hono-stable 110 0 25
✅ nextjs-turbopack-canary 116 0 19
✅ nextjs-turbopack-stable-lazy-discovery-disabled 135 0 0
✅ nextjs-turbopack-stable-lazy-discovery-enabled 135 0 0
✅ nextjs-webpack-canary 116 0 19
✅ nextjs-webpack-stable-lazy-discovery-enabled 135 0 0
✅ nitro-stable 110 0 25
✅ nuxt-stable 110 0 25
✅ sveltekit-stable 129 0 6
✅ vite-stable 110 0 25
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 135 0 0
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 110 0 25
✅ e2e-local-dev-tanstack-start- 110 0 25
✅ e2e-local-postgres-nest-stable 110 0 25
✅ e2e-local-postgres-tanstack-start- 110 0 25
✅ e2e-local-prod-nest-stable 110 0 25
✅ e2e-local-prod-tanstack-start- 110 0 25

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

Add "Workflow Discovery in Next.js" and "Server Actions and use server"
sections to the withWorkflow() reference. Ports the intended additions from
#2003 (the lazyDiscovery doc edits are omitted — main already supersedes them).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
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.

@workflow/builders@4.0.5 crash on unicode-escape identifiers Documentation: Workflow discovery mechanism and "use server" incompatibility

2 participants