fix(next): resolve next/package.json from working directory first - #1701

Merged
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo
Apr 13, 2026
Merged

fix(next): resolve next/package.json from working directory first#1701
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Fixes @workflow/next failing to resolve next/package.json in npm workspaces monorepos where next is not hoisted to the root node_modules/
  • Restructures resolveNextVersion() to try the working-directory-relative resolution first (preferred), then fall back to the package-relative resolution, with both paths wrapped in separate try/catch blocks
  • Throws a clear error message if neither resolution succeeds

Closes#1680

In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 11, 2026 18:41
CopilotAI review requested due to automatic review settings April 11, 2026 18:41
@vercel

vercelBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5a6bd75

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

This PR includes changesets to release 16 packages
NameType
@workflow/nextPatch
workflowPatch
@workflow/aiPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

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

@github-actions

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.042s (+15.7% 🔺)1.005s (~)0.963s101.00x
💻 LocalNitro0.043s (+4.1%)1.005s (~)0.962s101.03x
🐘 PostgresExpress0.058s (+1.0%)1.010s (~)0.952s101.38x
🐘 PostgresNitro0.073s (+9.6% 🔺)1.011s (~)0.937s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.215s (-16.7% 🟢)1.615s (-10.3% 🟢)1.400s101.00x
▲ VercelNitro0.233s (-9.8% 🟢)1.986s (-1.5%)1.753s101.08x

🔍 Observability: Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.130s (~)2.005s (~)0.875s101.00x
💻 LocalExpress1.130s (+3.0%)2.005s (~)0.875s101.00x
🐘 PostgresNitro1.140s (-0.9%)2.009s (~)0.870s101.01x
🐘 PostgresExpress1.141s (-0.8%)2.012s (~)0.871s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.879s (-5.2% 🟢)3.840s (-0.6%)1.962s101.00x
▲ VercelNitro2.267s (+18.9% 🔺)3.713s (-3.1%)1.446s101.21x

🔍 Observability: Express | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.873s (~)11.022s (~)0.149s31.00x
💻 LocalNitro10.933s (~)11.023s (~)0.090s31.01x
💻 LocalExpress10.938s (+2.8%)11.022s (~)0.085s31.01x
🐘 PostgresNitro10.951s (~)11.024s (~)0.073s31.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.802s (-5.2% 🟢)18.782s (-7.1% 🟢)1.980s21.00x
▲ VercelNitro17.009s (-10.4% 🟢)18.625s (-9.2% 🟢)1.616s21.01x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.533s (~)15.026s (~)0.494s41.00x
🐘 PostgresNitro14.703s (+1.0%)15.022s (~)0.319s41.01x
💻 LocalNitro14.932s (~)15.028s (~)0.096s41.03x
💻 LocalExpress15.019s (+5.4% 🔺)15.531s (+3.3%)0.513s41.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express31.508s (-11.8% 🟢)33.980s (-10.2% 🟢)2.472s21.00x
▲ VercelNitro32.115s (-5.9% 🟢)33.805s (-6.4% 🟢)1.690s21.02x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.970s (~)14.306s (~)0.336s71.00x
🐘 PostgresNitro14.256s (+0.9%)15.027s (+2.0%)0.771s61.02x
💻 LocalNitro16.320s (-2.5%)17.031s (~)0.712s61.17x
💻 LocalExpress16.657s (+10.7% 🔺)17.030s (+9.7% 🔺)0.374s61.19x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express52.428s (-3.8%)54.764s (-2.9%)2.336s21.00x
▲ VercelNitro53.636s (-3.3%)55.140s (-4.5%)1.505s21.02x

🔍 Observability: Express | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.261s (-1.2%)2.009s (~)0.748s151.00x
🐘 PostgresNitro1.281s (~)2.009s (~)0.728s151.02x
💻 LocalNitro1.514s (-0.6%)2.006s (~)0.492s151.20x
💻 LocalExpress1.567s (+8.8% 🔺)2.007s (~)0.439s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.390s (-18.2% 🟢)3.879s (-16.8% 🟢)1.488s91.00x
▲ VercelExpress2.915s (+8.4% 🔺)4.630s (+3.9%)1.715s71.22x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.343s (~)3.008s (~)0.666s101.00x
🐘 PostgresNitro2.362s (~)3.010s (~)0.648s101.01x
💻 LocalNitro2.798s (-5.6% 🟢)3.108s (-17.3% 🟢)0.310s101.19x
💻 LocalExpress2.946s (+14.3% 🔺)3.342s (+11.1% 🔺)0.396s91.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.240s (-18.0% 🟢)3.492s (-24.0% 🟢)1.253s91.00x
▲ VercelExpress2.315s (-12.1% 🟢)3.945s (-10.3% 🟢)1.630s81.03x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.469s (-0.7%)4.011s (~)0.542s81.00x
🐘 PostgresNitro3.472s (~)4.010s (~)0.538s81.00x
💻 LocalNitro7.214s (-13.8% 🟢)8.019s (-11.1% 🟢)0.805s42.08x
💻 LocalExpress8.255s (+22.8% 🔺)8.771s (+25.0% 🔺)0.516s42.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.684s (-14.2% 🟢)4.479s (-9.2% 🟢)1.795s71.00x
▲ VercelNitro3.193s (+22.5% 🔺)4.523s (+6.8% 🔺)1.330s71.19x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.252s (-1.1%)2.009s (~)0.756s151.00x
🐘 PostgresNitro1.276s (+0.6%)2.009s (~)0.733s151.02x
💻 LocalExpress1.535s (+4.6%)2.006s (~)0.470s151.23x
💻 LocalNitro1.541s (+1.1%)2.005s (~)0.464s151.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.084s (+1.6%)3.593s (-12.2% 🟢)1.509s91.00x
▲ VercelExpress2.139s (-7.0% 🟢)4.076s (-5.7% 🟢)1.937s81.03x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.342s (-0.9%)3.011s (~)0.669s101.00x
🐘 PostgresNitro2.349s (-0.6%)3.009s (~)0.660s101.00x
💻 LocalNitro2.859s (-7.7% 🟢)3.007s (-25.0% 🟢)0.148s101.22x
💻 LocalExpress2.950s (-0.8%)3.761s (+12.5% 🔺)0.811s81.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.078s (-23.1% 🟢)3.875s (-11.7% 🟢)1.797s81.00x
▲ VercelNitro2.544s (+1.9%)4.305s (+2.7%)1.760s71.22x

🔍 Observability: Express | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.488s (-0.6%)4.011s (~)0.524s81.00x
🐘 PostgresNitro3.526s (+0.8%)4.013s (~)0.487s81.01x
💻 LocalNitro8.078s (-13.5% 🟢)8.523s (-15.0% 🟢)0.445s42.32x
💻 LocalExpress8.729s (+8.5% 🔺)9.023s (+2.9%)0.294s42.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.799s (-5.9% 🟢)4.093s (-19.0% 🟢)1.294s81.00x
▲ VercelExpress3.124s (-2.9%)4.505s (-12.0% 🟢)1.381s71.12x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.810s (-2.8%)1.023s (+1.7%)0.213s591.00x
🐘 PostgresNitro0.834s (~)1.006s (~)0.172s601.03x
💻 LocalExpress0.980s (+39.9% 🔺)1.116s (+11.1% 🔺)0.136s541.21x
💻 LocalNitro1.001s (+1.2%)1.368s (+9.0% 🔺)0.367s441.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro10.115s (+8.3% 🔺)11.844s (+6.3% 🔺)1.728s61.00x
▲ VercelExpress10.705s (+10.7% 🔺)12.614s (+9.2% 🔺)1.909s51.06x

🔍 Observability: Nitro | Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.904s (-3.0%)2.075s (-6.8% 🟢)0.171s441.00x
🐘 PostgresNitro2.041s (+5.3% 🔺)2.853s (+26.7% 🔺)0.811s321.07x
💻 LocalExpress3.018s (+23.7% 🔺)3.547s (+11.5% 🔺)0.529s261.59x
💻 LocalNitro3.018s (~)3.586s (~)0.567s261.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.185s (-6.2% 🟢)28.404s (-6.0% 🟢)2.220s41.00x
▲ VercelNitro28.749s (+2.8%)30.190s (~)1.441s31.10x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.851s (-4.3%)4.010s (-10.0% 🟢)0.159s301.00x
🐘 PostgresNitro4.223s (+8.5% 🔺)5.011s (+20.8% 🔺)0.788s241.10x
💻 LocalNitro8.911s (-3.6%)9.247s (-7.7% 🟢)0.336s132.31x
💻 LocalExpress9.202s (+26.0% 🔺)9.865s (+24.1% 🔺)0.663s132.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express69.011s (-2.8%)70.832s (-3.9%)1.821s21.00x
▲ VercelNitro70.221s (-8.3% 🟢)71.612s (-8.7% 🟢)1.392s21.02x

🔍 Observability: Express | Nitro

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.290s (+2.5%)1.007s (~)0.717s601.00x
🐘 PostgresNitro0.290s (+5.4% 🔺)1.007s (~)0.717s601.00x
💻 LocalNitro0.558s (-3.9%)1.004s (~)0.446s601.93x
💻 LocalExpress0.577s (-1.0%)1.004s (~)0.427s601.99x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.403s (-2.7%)2.863s (-11.0% 🟢)1.460s211.00x
▲ VercelNitro1.425s (+3.8%)2.751s (-6.3% 🟢)1.326s221.02x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-1.6%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.506s (+1.2%)1.007s (~)0.501s901.02x
💻 LocalNitro2.332s (-5.8% 🟢)3.009s (~)0.677s304.71x
💻 LocalExpress2.519s (+5.2% 🔺)3.009s (~)0.491s305.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.776s (+0.8%)4.347s (-3.1%)1.571s221.00x
▲ VercelExpress2.783s (+6.1% 🔺)4.651s (+3.8%)1.869s201.00x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.800s (+1.3%)1.025s (+1.8%)0.225s1181.00x
🐘 PostgresNitro0.836s (+6.9% 🔺)1.019s (+1.1%)0.183s1181.04x
💻 LocalNitro10.857s (-2.3%)11.392s (-3.8%)0.536s1113.56x
💻 LocalExpress11.234s (+12.3% 🔺)11.753s (+9.9% 🔺)0.519s1114.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express7.072s (+7.2% 🔺)8.940s (+3.7%)1.869s141.00x
▲ VercelNitro7.656s (+14.6% 🔺)9.248s (+5.3% 🔺)1.592s131.08x

🔍 Observability: Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.199s (+42.6% 🔺)1.004s (~)0.012s (+24.5% 🔺)1.017s (~)0.818s101.00x
🐘 PostgresExpress0.201s (-2.8%)0.996s (~)0.002s (+23.1% 🔺)1.011s (~)0.810s101.01x
💻 LocalNitro0.208s (+2.4%)1.004s (~)0.010s (-16.0% 🟢)1.015s (~)0.808s101.04x
🐘 PostgresNitro0.211s (-1.2%)0.997s (~)0.001s (-15.4% 🟢)1.010s (~)0.800s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.547s (+0.8%)2.977s (+7.6% 🔺)0.452s (-36.2% 🟢)3.865s (-2.6%)2.319s101.00x
▲ VercelNitro1.585s (~)2.978s (-0.7%)0.338s (-8.8% 🟢)3.711s (-2.5%)2.126s101.02x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.608s (~)1.004s (~)0.005s (~)1.023s (~)0.415s591.00x
🐘 PostgresNitro0.649s (+5.7% 🔺)1.023s (+1.9%)0.004s (+6.8% 🔺)1.039s (+1.8%)0.391s581.07x
💻 LocalNitro0.837s (+15.2% 🔺)1.011s (~)0.010s (+5.7% 🔺)1.116s (+9.0% 🔺)0.279s541.38x
💻 LocalExpress0.934s (+67.3% 🔺)1.010s (~)0.010s (+15.3% 🔺)1.227s (+20.1% 🔺)0.293s491.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.857s (-7.1% 🟢)5.341s (-9.8% 🟢)0.265s (-3.3%)6.058s (-8.9% 🟢)2.201s101.00x
▲ VercelNitro3.952s (-11.7% 🟢)5.186s (-14.2% 🟢)0.289s (+2.3%)5.853s (-15.9% 🟢)1.901s111.02x

🔍 Observability: Express | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.940s (-0.5%)1.220s (+4.4%)0.000s (+73.5% 🔺)1.232s (+4.1%)0.292s491.00x
🐘 PostgresNitro0.967s (-1.3%)1.251s (+4.9%)0.000s (-18.6% 🟢)1.281s (+5.2% 🔺)0.314s471.03x
💻 LocalNitro1.208s (-2.4%)2.019s (~)0.001s (+100.0% 🔺)2.021s (~)0.813s301.28x
💻 LocalExpress1.216s (+6.7% 🔺)2.019s (~)0.000s (+62.5% 🔺)2.021s (~)0.804s301.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.596s (-11.6% 🟢)3.733s (-10.6% 🟢)0.000s (+73.3% 🔺)4.141s (-11.2% 🟢)1.546s151.00x
▲ VercelExpress2.676s (+2.1%)3.896s (+1.6%)0.000s (-92.6% 🟢)4.401s (+1.9%)1.726s141.03x

🔍 Observability: Nitro | Express

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.686s (-5.2% 🟢)2.135s (~)0.000s (NaN%)2.148s (~)0.462s291.00x
🐘 PostgresNitro1.835s (+4.1%)2.140s (+1.9%)0.000s (+3.6%)2.153s (+1.9%)0.318s281.09x
💻 LocalNitro3.334s (-4.8%)4.032s (-1.7%)0.001s (-28.6% 🟢)4.034s (-1.7%)0.701s151.98x
💻 LocalExpress3.518s (+7.4% 🔺)4.031s (+3.2%)0.001s (+6.7% 🔺)4.034s (+3.2%)0.517s152.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.368s (-20.4% 🟢)4.631s (-18.1% 🟢)0.001s (+400.0% 🔺)5.090s (-19.3% 🟢)1.722s121.00x
▲ VercelNitro3.624s (-6.9% 🟢)4.670s (-14.1% 🟢)0.000s (-43.6% 🟢)5.037s (-15.4% 🟢)1.413s131.08x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro16/21
🐘 PostgresExpress20/21
▲ VercelExpress14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Nitro🐘 Postgres14/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

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production923067990
✅ 💻 Local Development89801821080
✅ 📦 Local Production89801821080
✅ 🐘 Local Postgres89801821080
✅ 🪟 Windows820890
❌ 🌍 Community Worlds1337424231
✅ 📋 Other228042270
Total4060746874821

❌ Failed Tests

🌍 Community Worlds (74 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

turso (60 failed):

  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KP08M947N7NHT8XAP2M8WH0C
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KP08KGJ4MVAHGHX26WJD9HPR
  • promiseRaceWorkflow | wrun_01KP08KKJ5A5DCRZP9RNEP5TP7
  • promiseAnyWorkflow | wrun_01KP08KNN1X2MGFK4E2XV42P2T
  • importedStepOnlyWorkflow | wrun_01KP08MP200S7JQYP36AR64Y69
  • hookWorkflow | wrun_01KP08M1R3VM4EAK9FYM7BC6R0
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • sleepingWorkflow | wrun_01KP08MZP1NHBBWDPF9STHFP4D
  • parallelSleepWorkflow | wrun_01KP08NBT8C6SN2WT9TCAB4STT
  • nullByteWorkflow | wrun_01KP08NF1W0V3Y8B3FGBFGYYET
  • workflowAndStepMetadataWorkflow | wrun_01KP08NH29AQGBRDDE85GR1T5P
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • promiseRaceStressTestWorkflow | wrun_01KP08REPZC1EXR4N1GCV9Q4N5
  • 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_01KP08VN2R5T8XYNR2XTMKJWS9
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KP08WV98ADJMZJE052MQ7A9M
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KP08XE1CZ1VG9QR9Q2PPAP83
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KP08XNJAVJSP7EC530N3RRHP
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KP08XVAP9H177REYCMJTC5NN
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KP08XX6K2KBVAT2XEW68Y006
  • runClassSerializationWorkflow - Run instances serialize across workflow/step boundaries | wrun_01KP08Y74SMBSRHCRYHWN2XJ6B
  • 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_01KP08YNMAS8X6HKY2XFPA7QCS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KP08YVT5SY60NMQJWFR0YM40
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KP08Z15P2854R6286NCTB6Q7
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KP08Z6X5H2XQ1ZDDY5P4WYS2
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KP08ZCVMAZAGV8T6HCVZTKZ8
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KP08ZJQ8BNPY9ZHJGM525EH2
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KP08ZRS4TV4K5JMDW7AQHZE9
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KP0902X3M7959K1W4KM5Y2PY
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KP090AXT2B1A5QNY90D9E2ZT
  • cancelRun - cancelling a running workflow | wrun_01KP090HWS7FPQZ22PYS56ZTKR
  • cancelRun via CLI - cancelling a running workflow | wrun_01KP090TJH6GKCDAN8B8NDJ29Z
  • 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_01KP0915KSGFT4QXT7NV1V2SPW
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KP091S4G073MNKAEAS11P8M8
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KP0923VWJJGE088WD6FR0H4B
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KP0929WZ9A68FRY20HJX6RWQ
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KP092BTECQHPHSWZ17GJ9RNR
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KP092DM8C3FNQBSV88QZRQ0E
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KP092HNX734GK5K7KH03DH16

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8307
✅ example8307
✅ express8307
✅ fastify8307
✅ hono8307
✅ nextjs-turbopack8802
✅ nextjs-webpack8802
✅ nitro8307
✅ nuxt8307
✅ sveltekit8307
✅ vite8307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8208
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev600
❌ mongodb5678
✅ redis-dev600
❌ redis5678
✅ turso-dev600
❌ turso3608
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable76014
✅ e2e-local-postgres-nest-stable76014
✅ e2e-local-prod-nest-stable76014

📋 View full workflow run

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 fixes @workflow/next failing to detect the installed Next.js version in monorepos (notably npm workspaces) where next is not hoisted alongside @workflow/next, by resolving next/package.json relative to the consuming project’s working directory first.

Changes:

  • Update resolveNextVersion() to resolve next/package.json from workingDir first, then fall back to package-relative resolution.
  • Add a clearer hard failure when neither resolution path can determine a Next.js version.
  • Add a changeset to ship the fix as a patch release for @workflow/next.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

FileDescription
packages/next/src/index.tsChanges Next.js version resolution order to prefer consuming-project resolution and adds a final error if resolution fails.
.changeset/fix-next-version-resolution.mdAdds a patch changeset entry documenting the fix.
Comments suppressed due to low confidence (1)

packages/next/src/index.ts:16

  • This change fixes a specific resolution-order bug (workingDir-first, then package-relative), but there is no unit test covering the new behavior or the failure mode when both resolutions fail. Add tests that simulate a monorepo layout (or mock require.resolve/require) to assert the preferred resolution path is attempted first and that the thrown error is clear.
function resolveNextVersion(workingDir: string): string {
// Try resolving from the consuming project's working directory first.
// This handles monorepo setups where `next` may not be hoisted to the
// same location as `@workflow/next`.
try {
const packageJsonPath = require.resolve('next/package.json', {
paths: [workingDir],
});

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

Comment threadpackages/next/src/index.ts
Comment threadpackages/next/src/index.ts Outdated
…message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 12, 2026 07:11
@TooTallNate
TooTallNate merged commit fe13110 into mainApr 13, 2026
165 of 168 checks passed
@TooTallNate
TooTallNate deleted the fix/next-version-resolution-monorepo branch April 13, 2026 17:35
@ghostghost mentioned this pull request Apr 13, 2026
ijjk pushed a commit that referenced this pull request Apr 15, 2026
)
* fix(next): resolve next/package.json from working directory first
In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
* fix(next): capture resolution errors and include workingDir in error message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
Sign up for freeto 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/next fails to resolve next/package.json in npm workspaces monorepo

3 participants

@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all
 blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks");
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Skip to content

fix(next): resolve next/package.json from working directory first - #1701

Merged
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo
Apr 13, 2026
Merged

fix(next): resolve next/package.json from working directory first#1701
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Fixes @workflow/next failing to resolve next/package.json in npm workspaces monorepos where next is not hoisted to the root node_modules/
  • Restructures resolveNextVersion() to try the working-directory-relative resolution first (preferred), then fall back to the package-relative resolution, with both paths wrapped in separate try/catch blocks
  • Throws a clear error message if neither resolution succeeds

Closes#1680

In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 11, 2026 18:41
CopilotAI review requested due to automatic review settings April 11, 2026 18:41
@vercel

vercelBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5a6bd75

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

This PR includes changesets to release 16 packages
NameType
@workflow/nextPatch
workflowPatch
@workflow/aiPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

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

@github-actions

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.042s (+15.7% 🔺)1.005s (~)0.963s101.00x
💻 LocalNitro0.043s (+4.1%)1.005s (~)0.962s101.03x
🐘 PostgresExpress0.058s (+1.0%)1.010s (~)0.952s101.38x
🐘 PostgresNitro0.073s (+9.6% 🔺)1.011s (~)0.937s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.215s (-16.7% 🟢)1.615s (-10.3% 🟢)1.400s101.00x
▲ VercelNitro0.233s (-9.8% 🟢)1.986s (-1.5%)1.753s101.08x

🔍 Observability: Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.130s (~)2.005s (~)0.875s101.00x
💻 LocalExpress1.130s (+3.0%)2.005s (~)0.875s101.00x
🐘 PostgresNitro1.140s (-0.9%)2.009s (~)0.870s101.01x
🐘 PostgresExpress1.141s (-0.8%)2.012s (~)0.871s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.879s (-5.2% 🟢)3.840s (-0.6%)1.962s101.00x
▲ VercelNitro2.267s (+18.9% 🔺)3.713s (-3.1%)1.446s101.21x

🔍 Observability: Express | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.873s (~)11.022s (~)0.149s31.00x
💻 LocalNitro10.933s (~)11.023s (~)0.090s31.01x
💻 LocalExpress10.938s (+2.8%)11.022s (~)0.085s31.01x
🐘 PostgresNitro10.951s (~)11.024s (~)0.073s31.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.802s (-5.2% 🟢)18.782s (-7.1% 🟢)1.980s21.00x
▲ VercelNitro17.009s (-10.4% 🟢)18.625s (-9.2% 🟢)1.616s21.01x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.533s (~)15.026s (~)0.494s41.00x
🐘 PostgresNitro14.703s (+1.0%)15.022s (~)0.319s41.01x
💻 LocalNitro14.932s (~)15.028s (~)0.096s41.03x
💻 LocalExpress15.019s (+5.4% 🔺)15.531s (+3.3%)0.513s41.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express31.508s (-11.8% 🟢)33.980s (-10.2% 🟢)2.472s21.00x
▲ VercelNitro32.115s (-5.9% 🟢)33.805s (-6.4% 🟢)1.690s21.02x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.970s (~)14.306s (~)0.336s71.00x
🐘 PostgresNitro14.256s (+0.9%)15.027s (+2.0%)0.771s61.02x
💻 LocalNitro16.320s (-2.5%)17.031s (~)0.712s61.17x
💻 LocalExpress16.657s (+10.7% 🔺)17.030s (+9.7% 🔺)0.374s61.19x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express52.428s (-3.8%)54.764s (-2.9%)2.336s21.00x
▲ VercelNitro53.636s (-3.3%)55.140s (-4.5%)1.505s21.02x

🔍 Observability: Express | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.261s (-1.2%)2.009s (~)0.748s151.00x
🐘 PostgresNitro1.281s (~)2.009s (~)0.728s151.02x
💻 LocalNitro1.514s (-0.6%)2.006s (~)0.492s151.20x
💻 LocalExpress1.567s (+8.8% 🔺)2.007s (~)0.439s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.390s (-18.2% 🟢)3.879s (-16.8% 🟢)1.488s91.00x
▲ VercelExpress2.915s (+8.4% 🔺)4.630s (+3.9%)1.715s71.22x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.343s (~)3.008s (~)0.666s101.00x
🐘 PostgresNitro2.362s (~)3.010s (~)0.648s101.01x
💻 LocalNitro2.798s (-5.6% 🟢)3.108s (-17.3% 🟢)0.310s101.19x
💻 LocalExpress2.946s (+14.3% 🔺)3.342s (+11.1% 🔺)0.396s91.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.240s (-18.0% 🟢)3.492s (-24.0% 🟢)1.253s91.00x
▲ VercelExpress2.315s (-12.1% 🟢)3.945s (-10.3% 🟢)1.630s81.03x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.469s (-0.7%)4.011s (~)0.542s81.00x
🐘 PostgresNitro3.472s (~)4.010s (~)0.538s81.00x
💻 LocalNitro7.214s (-13.8% 🟢)8.019s (-11.1% 🟢)0.805s42.08x
💻 LocalExpress8.255s (+22.8% 🔺)8.771s (+25.0% 🔺)0.516s42.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.684s (-14.2% 🟢)4.479s (-9.2% 🟢)1.795s71.00x
▲ VercelNitro3.193s (+22.5% 🔺)4.523s (+6.8% 🔺)1.330s71.19x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.252s (-1.1%)2.009s (~)0.756s151.00x
🐘 PostgresNitro1.276s (+0.6%)2.009s (~)0.733s151.02x
💻 LocalExpress1.535s (+4.6%)2.006s (~)0.470s151.23x
💻 LocalNitro1.541s (+1.1%)2.005s (~)0.464s151.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.084s (+1.6%)3.593s (-12.2% 🟢)1.509s91.00x
▲ VercelExpress2.139s (-7.0% 🟢)4.076s (-5.7% 🟢)1.937s81.03x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.342s (-0.9%)3.011s (~)0.669s101.00x
🐘 PostgresNitro2.349s (-0.6%)3.009s (~)0.660s101.00x
💻 LocalNitro2.859s (-7.7% 🟢)3.007s (-25.0% 🟢)0.148s101.22x
💻 LocalExpress2.950s (-0.8%)3.761s (+12.5% 🔺)0.811s81.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.078s (-23.1% 🟢)3.875s (-11.7% 🟢)1.797s81.00x
▲ VercelNitro2.544s (+1.9%)4.305s (+2.7%)1.760s71.22x

🔍 Observability: Express | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.488s (-0.6%)4.011s (~)0.524s81.00x
🐘 PostgresNitro3.526s (+0.8%)4.013s (~)0.487s81.01x
💻 LocalNitro8.078s (-13.5% 🟢)8.523s (-15.0% 🟢)0.445s42.32x
💻 LocalExpress8.729s (+8.5% 🔺)9.023s (+2.9%)0.294s42.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.799s (-5.9% 🟢)4.093s (-19.0% 🟢)1.294s81.00x
▲ VercelExpress3.124s (-2.9%)4.505s (-12.0% 🟢)1.381s71.12x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.810s (-2.8%)1.023s (+1.7%)0.213s591.00x
🐘 PostgresNitro0.834s (~)1.006s (~)0.172s601.03x
💻 LocalExpress0.980s (+39.9% 🔺)1.116s (+11.1% 🔺)0.136s541.21x
💻 LocalNitro1.001s (+1.2%)1.368s (+9.0% 🔺)0.367s441.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro10.115s (+8.3% 🔺)11.844s (+6.3% 🔺)1.728s61.00x
▲ VercelExpress10.705s (+10.7% 🔺)12.614s (+9.2% 🔺)1.909s51.06x

🔍 Observability: Nitro | Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.904s (-3.0%)2.075s (-6.8% 🟢)0.171s441.00x
🐘 PostgresNitro2.041s (+5.3% 🔺)2.853s (+26.7% 🔺)0.811s321.07x
💻 LocalExpress3.018s (+23.7% 🔺)3.547s (+11.5% 🔺)0.529s261.59x
💻 LocalNitro3.018s (~)3.586s (~)0.567s261.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.185s (-6.2% 🟢)28.404s (-6.0% 🟢)2.220s41.00x
▲ VercelNitro28.749s (+2.8%)30.190s (~)1.441s31.10x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.851s (-4.3%)4.010s (-10.0% 🟢)0.159s301.00x
🐘 PostgresNitro4.223s (+8.5% 🔺)5.011s (+20.8% 🔺)0.788s241.10x
💻 LocalNitro8.911s (-3.6%)9.247s (-7.7% 🟢)0.336s132.31x
💻 LocalExpress9.202s (+26.0% 🔺)9.865s (+24.1% 🔺)0.663s132.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express69.011s (-2.8%)70.832s (-3.9%)1.821s21.00x
▲ VercelNitro70.221s (-8.3% 🟢)71.612s (-8.7% 🟢)1.392s21.02x

🔍 Observability: Express | Nitro

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.290s (+2.5%)1.007s (~)0.717s601.00x
🐘 PostgresNitro0.290s (+5.4% 🔺)1.007s (~)0.717s601.00x
💻 LocalNitro0.558s (-3.9%)1.004s (~)0.446s601.93x
💻 LocalExpress0.577s (-1.0%)1.004s (~)0.427s601.99x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.403s (-2.7%)2.863s (-11.0% 🟢)1.460s211.00x
▲ VercelNitro1.425s (+3.8%)2.751s (-6.3% 🟢)1.326s221.02x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-1.6%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.506s (+1.2%)1.007s (~)0.501s901.02x
💻 LocalNitro2.332s (-5.8% 🟢)3.009s (~)0.677s304.71x
💻 LocalExpress2.519s (+5.2% 🔺)3.009s (~)0.491s305.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.776s (+0.8%)4.347s (-3.1%)1.571s221.00x
▲ VercelExpress2.783s (+6.1% 🔺)4.651s (+3.8%)1.869s201.00x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.800s (+1.3%)1.025s (+1.8%)0.225s1181.00x
🐘 PostgresNitro0.836s (+6.9% 🔺)1.019s (+1.1%)0.183s1181.04x
💻 LocalNitro10.857s (-2.3%)11.392s (-3.8%)0.536s1113.56x
💻 LocalExpress11.234s (+12.3% 🔺)11.753s (+9.9% 🔺)0.519s1114.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express7.072s (+7.2% 🔺)8.940s (+3.7%)1.869s141.00x
▲ VercelNitro7.656s (+14.6% 🔺)9.248s (+5.3% 🔺)1.592s131.08x

🔍 Observability: Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.199s (+42.6% 🔺)1.004s (~)0.012s (+24.5% 🔺)1.017s (~)0.818s101.00x
🐘 PostgresExpress0.201s (-2.8%)0.996s (~)0.002s (+23.1% 🔺)1.011s (~)0.810s101.01x
💻 LocalNitro0.208s (+2.4%)1.004s (~)0.010s (-16.0% 🟢)1.015s (~)0.808s101.04x
🐘 PostgresNitro0.211s (-1.2%)0.997s (~)0.001s (-15.4% 🟢)1.010s (~)0.800s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.547s (+0.8%)2.977s (+7.6% 🔺)0.452s (-36.2% 🟢)3.865s (-2.6%)2.319s101.00x
▲ VercelNitro1.585s (~)2.978s (-0.7%)0.338s (-8.8% 🟢)3.711s (-2.5%)2.126s101.02x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.608s (~)1.004s (~)0.005s (~)1.023s (~)0.415s591.00x
🐘 PostgresNitro0.649s (+5.7% 🔺)1.023s (+1.9%)0.004s (+6.8% 🔺)1.039s (+1.8%)0.391s581.07x
💻 LocalNitro0.837s (+15.2% 🔺)1.011s (~)0.010s (+5.7% 🔺)1.116s (+9.0% 🔺)0.279s541.38x
💻 LocalExpress0.934s (+67.3% 🔺)1.010s (~)0.010s (+15.3% 🔺)1.227s (+20.1% 🔺)0.293s491.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.857s (-7.1% 🟢)5.341s (-9.8% 🟢)0.265s (-3.3%)6.058s (-8.9% 🟢)2.201s101.00x
▲ VercelNitro3.952s (-11.7% 🟢)5.186s (-14.2% 🟢)0.289s (+2.3%)5.853s (-15.9% 🟢)1.901s111.02x

🔍 Observability: Express | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.940s (-0.5%)1.220s (+4.4%)0.000s (+73.5% 🔺)1.232s (+4.1%)0.292s491.00x
🐘 PostgresNitro0.967s (-1.3%)1.251s (+4.9%)0.000s (-18.6% 🟢)1.281s (+5.2% 🔺)0.314s471.03x
💻 LocalNitro1.208s (-2.4%)2.019s (~)0.001s (+100.0% 🔺)2.021s (~)0.813s301.28x
💻 LocalExpress1.216s (+6.7% 🔺)2.019s (~)0.000s (+62.5% 🔺)2.021s (~)0.804s301.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.596s (-11.6% 🟢)3.733s (-10.6% 🟢)0.000s (+73.3% 🔺)4.141s (-11.2% 🟢)1.546s151.00x
▲ VercelExpress2.676s (+2.1%)3.896s (+1.6%)0.000s (-92.6% 🟢)4.401s (+1.9%)1.726s141.03x

🔍 Observability: Nitro | Express

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.686s (-5.2% 🟢)2.135s (~)0.000s (NaN%)2.148s (~)0.462s291.00x
🐘 PostgresNitro1.835s (+4.1%)2.140s (+1.9%)0.000s (+3.6%)2.153s (+1.9%)0.318s281.09x
💻 LocalNitro3.334s (-4.8%)4.032s (-1.7%)0.001s (-28.6% 🟢)4.034s (-1.7%)0.701s151.98x
💻 LocalExpress3.518s (+7.4% 🔺)4.031s (+3.2%)0.001s (+6.7% 🔺)4.034s (+3.2%)0.517s152.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.368s (-20.4% 🟢)4.631s (-18.1% 🟢)0.001s (+400.0% 🔺)5.090s (-19.3% 🟢)1.722s121.00x
▲ VercelNitro3.624s (-6.9% 🟢)4.670s (-14.1% 🟢)0.000s (-43.6% 🟢)5.037s (-15.4% 🟢)1.413s131.08x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro16/21
🐘 PostgresExpress20/21
▲ VercelExpress14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Nitro🐘 Postgres14/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

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production923067990
✅ 💻 Local Development89801821080
✅ 📦 Local Production89801821080
✅ 🐘 Local Postgres89801821080
✅ 🪟 Windows820890
❌ 🌍 Community Worlds1337424231
✅ 📋 Other228042270
Total4060746874821

❌ Failed Tests

🌍 Community Worlds (74 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

turso (60 failed):

  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KP08M947N7NHT8XAP2M8WH0C
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KP08KGJ4MVAHGHX26WJD9HPR
  • promiseRaceWorkflow | wrun_01KP08KKJ5A5DCRZP9RNEP5TP7
  • promiseAnyWorkflow | wrun_01KP08KNN1X2MGFK4E2XV42P2T
  • importedStepOnlyWorkflow | wrun_01KP08MP200S7JQYP36AR64Y69
  • hookWorkflow | wrun_01KP08M1R3VM4EAK9FYM7BC6R0
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • sleepingWorkflow | wrun_01KP08MZP1NHBBWDPF9STHFP4D
  • parallelSleepWorkflow | wrun_01KP08NBT8C6SN2WT9TCAB4STT
  • nullByteWorkflow | wrun_01KP08NF1W0V3Y8B3FGBFGYYET
  • workflowAndStepMetadataWorkflow | wrun_01KP08NH29AQGBRDDE85GR1T5P
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • promiseRaceStressTestWorkflow | wrun_01KP08REPZC1EXR4N1GCV9Q4N5
  • 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_01KP08VN2R5T8XYNR2XTMKJWS9
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KP08WV98ADJMZJE052MQ7A9M
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KP08XE1CZ1VG9QR9Q2PPAP83
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KP08XNJAVJSP7EC530N3RRHP
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KP08XVAP9H177REYCMJTC5NN
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KP08XX6K2KBVAT2XEW68Y006
  • runClassSerializationWorkflow - Run instances serialize across workflow/step boundaries | wrun_01KP08Y74SMBSRHCRYHWN2XJ6B
  • 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_01KP08YNMAS8X6HKY2XFPA7QCS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KP08YVT5SY60NMQJWFR0YM40
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KP08Z15P2854R6286NCTB6Q7
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KP08Z6X5H2XQ1ZDDY5P4WYS2
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KP08ZCVMAZAGV8T6HCVZTKZ8
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KP08ZJQ8BNPY9ZHJGM525EH2
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KP08ZRS4TV4K5JMDW7AQHZE9
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KP0902X3M7959K1W4KM5Y2PY
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KP090AXT2B1A5QNY90D9E2ZT
  • cancelRun - cancelling a running workflow | wrun_01KP090HWS7FPQZ22PYS56ZTKR
  • cancelRun via CLI - cancelling a running workflow | wrun_01KP090TJH6GKCDAN8B8NDJ29Z
  • 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_01KP0915KSGFT4QXT7NV1V2SPW
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KP091S4G073MNKAEAS11P8M8
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KP0923VWJJGE088WD6FR0H4B
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KP0929WZ9A68FRY20HJX6RWQ
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KP092BTECQHPHSWZ17GJ9RNR
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KP092DM8C3FNQBSV88QZRQ0E
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KP092HNX734GK5K7KH03DH16

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8307
✅ example8307
✅ express8307
✅ fastify8307
✅ hono8307
✅ nextjs-turbopack8802
✅ nextjs-webpack8802
✅ nitro8307
✅ nuxt8307
✅ sveltekit8307
✅ vite8307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8208
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev600
❌ mongodb5678
✅ redis-dev600
❌ redis5678
✅ turso-dev600
❌ turso3608
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable76014
✅ e2e-local-postgres-nest-stable76014
✅ e2e-local-prod-nest-stable76014

📋 View full workflow run

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 fixes @workflow/next failing to detect the installed Next.js version in monorepos (notably npm workspaces) where next is not hoisted alongside @workflow/next, by resolving next/package.json relative to the consuming project’s working directory first.

Changes:

  • Update resolveNextVersion() to resolve next/package.json from workingDir first, then fall back to package-relative resolution.
  • Add a clearer hard failure when neither resolution path can determine a Next.js version.
  • Add a changeset to ship the fix as a patch release for @workflow/next.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

FileDescription
packages/next/src/index.tsChanges Next.js version resolution order to prefer consuming-project resolution and adds a final error if resolution fails.
.changeset/fix-next-version-resolution.mdAdds a patch changeset entry documenting the fix.
Comments suppressed due to low confidence (1)

packages/next/src/index.ts:16

  • This change fixes a specific resolution-order bug (workingDir-first, then package-relative), but there is no unit test covering the new behavior or the failure mode when both resolutions fail. Add tests that simulate a monorepo layout (or mock require.resolve/require) to assert the preferred resolution path is attempted first and that the thrown error is clear.
function resolveNextVersion(workingDir: string): string {
// Try resolving from the consuming project's working directory first.
// This handles monorepo setups where `next` may not be hoisted to the
// same location as `@workflow/next`.
try {
const packageJsonPath = require.resolve('next/package.json', {
paths: [workingDir],
});

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

Comment threadpackages/next/src/index.ts
Comment threadpackages/next/src/index.ts Outdated
…message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 12, 2026 07:11
@TooTallNate
TooTallNate merged commit fe13110 into mainApr 13, 2026
165 of 168 checks passed
@TooTallNate
TooTallNate deleted the fix/next-version-resolution-monorepo branch April 13, 2026 17:35
@ghostghost mentioned this pull request Apr 13, 2026
ijjk pushed a commit that referenced this pull request Apr 15, 2026
)
* fix(next): resolve next/package.json from working directory first
In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
* fix(next): capture resolution errors and include workingDir in error message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
Sign up for freeto 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/next fails to resolve next/package.json in npm workspaces monorepo

3 participants

@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

fix(next): resolve next/package.json from working directory first - #1701

Merged
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo
Apr 13, 2026
Merged

fix(next): resolve next/package.json from working directory first#1701
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Fixes @workflow/next failing to resolve next/package.json in npm workspaces monorepos where next is not hoisted to the root node_modules/
  • Restructures resolveNextVersion() to try the working-directory-relative resolution first (preferred), then fall back to the package-relative resolution, with both paths wrapped in separate try/catch blocks
  • Throws a clear error message if neither resolution succeeds

Closes#1680

In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 11, 2026 18:41
CopilotAI review requested due to automatic review settings April 11, 2026 18:41
@vercel

vercelBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5a6bd75

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

This PR includes changesets to release 16 packages
NameType
@workflow/nextPatch
workflowPatch
@workflow/aiPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

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

@github-actions

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.042s (+15.7% 🔺)1.005s (~)0.963s101.00x
💻 LocalNitro0.043s (+4.1%)1.005s (~)0.962s101.03x
🐘 PostgresExpress0.058s (+1.0%)1.010s (~)0.952s101.38x
🐘 PostgresNitro0.073s (+9.6% 🔺)1.011s (~)0.937s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.215s (-16.7% 🟢)1.615s (-10.3% 🟢)1.400s101.00x
▲ VercelNitro0.233s (-9.8% 🟢)1.986s (-1.5%)1.753s101.08x

🔍 Observability: Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.130s (~)2.005s (~)0.875s101.00x
💻 LocalExpress1.130s (+3.0%)2.005s (~)0.875s101.00x
🐘 PostgresNitro1.140s (-0.9%)2.009s (~)0.870s101.01x
🐘 PostgresExpress1.141s (-0.8%)2.012s (~)0.871s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.879s (-5.2% 🟢)3.840s (-0.6%)1.962s101.00x
▲ VercelNitro2.267s (+18.9% 🔺)3.713s (-3.1%)1.446s101.21x

🔍 Observability: Express | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.873s (~)11.022s (~)0.149s31.00x
💻 LocalNitro10.933s (~)11.023s (~)0.090s31.01x
💻 LocalExpress10.938s (+2.8%)11.022s (~)0.085s31.01x
🐘 PostgresNitro10.951s (~)11.024s (~)0.073s31.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.802s (-5.2% 🟢)18.782s (-7.1% 🟢)1.980s21.00x
▲ VercelNitro17.009s (-10.4% 🟢)18.625s (-9.2% 🟢)1.616s21.01x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.533s (~)15.026s (~)0.494s41.00x
🐘 PostgresNitro14.703s (+1.0%)15.022s (~)0.319s41.01x
💻 LocalNitro14.932s (~)15.028s (~)0.096s41.03x
💻 LocalExpress15.019s (+5.4% 🔺)15.531s (+3.3%)0.513s41.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express31.508s (-11.8% 🟢)33.980s (-10.2% 🟢)2.472s21.00x
▲ VercelNitro32.115s (-5.9% 🟢)33.805s (-6.4% 🟢)1.690s21.02x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.970s (~)14.306s (~)0.336s71.00x
🐘 PostgresNitro14.256s (+0.9%)15.027s (+2.0%)0.771s61.02x
💻 LocalNitro16.320s (-2.5%)17.031s (~)0.712s61.17x
💻 LocalExpress16.657s (+10.7% 🔺)17.030s (+9.7% 🔺)0.374s61.19x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express52.428s (-3.8%)54.764s (-2.9%)2.336s21.00x
▲ VercelNitro53.636s (-3.3%)55.140s (-4.5%)1.505s21.02x

🔍 Observability: Express | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.261s (-1.2%)2.009s (~)0.748s151.00x
🐘 PostgresNitro1.281s (~)2.009s (~)0.728s151.02x
💻 LocalNitro1.514s (-0.6%)2.006s (~)0.492s151.20x
💻 LocalExpress1.567s (+8.8% 🔺)2.007s (~)0.439s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.390s (-18.2% 🟢)3.879s (-16.8% 🟢)1.488s91.00x
▲ VercelExpress2.915s (+8.4% 🔺)4.630s (+3.9%)1.715s71.22x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.343s (~)3.008s (~)0.666s101.00x
🐘 PostgresNitro2.362s (~)3.010s (~)0.648s101.01x
💻 LocalNitro2.798s (-5.6% 🟢)3.108s (-17.3% 🟢)0.310s101.19x
💻 LocalExpress2.946s (+14.3% 🔺)3.342s (+11.1% 🔺)0.396s91.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.240s (-18.0% 🟢)3.492s (-24.0% 🟢)1.253s91.00x
▲ VercelExpress2.315s (-12.1% 🟢)3.945s (-10.3% 🟢)1.630s81.03x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.469s (-0.7%)4.011s (~)0.542s81.00x
🐘 PostgresNitro3.472s (~)4.010s (~)0.538s81.00x
💻 LocalNitro7.214s (-13.8% 🟢)8.019s (-11.1% 🟢)0.805s42.08x
💻 LocalExpress8.255s (+22.8% 🔺)8.771s (+25.0% 🔺)0.516s42.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.684s (-14.2% 🟢)4.479s (-9.2% 🟢)1.795s71.00x
▲ VercelNitro3.193s (+22.5% 🔺)4.523s (+6.8% 🔺)1.330s71.19x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.252s (-1.1%)2.009s (~)0.756s151.00x
🐘 PostgresNitro1.276s (+0.6%)2.009s (~)0.733s151.02x
💻 LocalExpress1.535s (+4.6%)2.006s (~)0.470s151.23x
💻 LocalNitro1.541s (+1.1%)2.005s (~)0.464s151.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.084s (+1.6%)3.593s (-12.2% 🟢)1.509s91.00x
▲ VercelExpress2.139s (-7.0% 🟢)4.076s (-5.7% 🟢)1.937s81.03x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.342s (-0.9%)3.011s (~)0.669s101.00x
🐘 PostgresNitro2.349s (-0.6%)3.009s (~)0.660s101.00x
💻 LocalNitro2.859s (-7.7% 🟢)3.007s (-25.0% 🟢)0.148s101.22x
💻 LocalExpress2.950s (-0.8%)3.761s (+12.5% 🔺)0.811s81.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.078s (-23.1% 🟢)3.875s (-11.7% 🟢)1.797s81.00x
▲ VercelNitro2.544s (+1.9%)4.305s (+2.7%)1.760s71.22x

🔍 Observability: Express | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.488s (-0.6%)4.011s (~)0.524s81.00x
🐘 PostgresNitro3.526s (+0.8%)4.013s (~)0.487s81.01x
💻 LocalNitro8.078s (-13.5% 🟢)8.523s (-15.0% 🟢)0.445s42.32x
💻 LocalExpress8.729s (+8.5% 🔺)9.023s (+2.9%)0.294s42.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.799s (-5.9% 🟢)4.093s (-19.0% 🟢)1.294s81.00x
▲ VercelExpress3.124s (-2.9%)4.505s (-12.0% 🟢)1.381s71.12x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.810s (-2.8%)1.023s (+1.7%)0.213s591.00x
🐘 PostgresNitro0.834s (~)1.006s (~)0.172s601.03x
💻 LocalExpress0.980s (+39.9% 🔺)1.116s (+11.1% 🔺)0.136s541.21x
💻 LocalNitro1.001s (+1.2%)1.368s (+9.0% 🔺)0.367s441.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro10.115s (+8.3% 🔺)11.844s (+6.3% 🔺)1.728s61.00x
▲ VercelExpress10.705s (+10.7% 🔺)12.614s (+9.2% 🔺)1.909s51.06x

🔍 Observability: Nitro | Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.904s (-3.0%)2.075s (-6.8% 🟢)0.171s441.00x
🐘 PostgresNitro2.041s (+5.3% 🔺)2.853s (+26.7% 🔺)0.811s321.07x
💻 LocalExpress3.018s (+23.7% 🔺)3.547s (+11.5% 🔺)0.529s261.59x
💻 LocalNitro3.018s (~)3.586s (~)0.567s261.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.185s (-6.2% 🟢)28.404s (-6.0% 🟢)2.220s41.00x
▲ VercelNitro28.749s (+2.8%)30.190s (~)1.441s31.10x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.851s (-4.3%)4.010s (-10.0% 🟢)0.159s301.00x
🐘 PostgresNitro4.223s (+8.5% 🔺)5.011s (+20.8% 🔺)0.788s241.10x
💻 LocalNitro8.911s (-3.6%)9.247s (-7.7% 🟢)0.336s132.31x
💻 LocalExpress9.202s (+26.0% 🔺)9.865s (+24.1% 🔺)0.663s132.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express69.011s (-2.8%)70.832s (-3.9%)1.821s21.00x
▲ VercelNitro70.221s (-8.3% 🟢)71.612s (-8.7% 🟢)1.392s21.02x

🔍 Observability: Express | Nitro

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.290s (+2.5%)1.007s (~)0.717s601.00x
🐘 PostgresNitro0.290s (+5.4% 🔺)1.007s (~)0.717s601.00x
💻 LocalNitro0.558s (-3.9%)1.004s (~)0.446s601.93x
💻 LocalExpress0.577s (-1.0%)1.004s (~)0.427s601.99x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.403s (-2.7%)2.863s (-11.0% 🟢)1.460s211.00x
▲ VercelNitro1.425s (+3.8%)2.751s (-6.3% 🟢)1.326s221.02x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-1.6%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.506s (+1.2%)1.007s (~)0.501s901.02x
💻 LocalNitro2.332s (-5.8% 🟢)3.009s (~)0.677s304.71x
💻 LocalExpress2.519s (+5.2% 🔺)3.009s (~)0.491s305.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.776s (+0.8%)4.347s (-3.1%)1.571s221.00x
▲ VercelExpress2.783s (+6.1% 🔺)4.651s (+3.8%)1.869s201.00x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.800s (+1.3%)1.025s (+1.8%)0.225s1181.00x
🐘 PostgresNitro0.836s (+6.9% 🔺)1.019s (+1.1%)0.183s1181.04x
💻 LocalNitro10.857s (-2.3%)11.392s (-3.8%)0.536s1113.56x
💻 LocalExpress11.234s (+12.3% 🔺)11.753s (+9.9% 🔺)0.519s1114.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express7.072s (+7.2% 🔺)8.940s (+3.7%)1.869s141.00x
▲ VercelNitro7.656s (+14.6% 🔺)9.248s (+5.3% 🔺)1.592s131.08x

🔍 Observability: Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.199s (+42.6% 🔺)1.004s (~)0.012s (+24.5% 🔺)1.017s (~)0.818s101.00x
🐘 PostgresExpress0.201s (-2.8%)0.996s (~)0.002s (+23.1% 🔺)1.011s (~)0.810s101.01x
💻 LocalNitro0.208s (+2.4%)1.004s (~)0.010s (-16.0% 🟢)1.015s (~)0.808s101.04x
🐘 PostgresNitro0.211s (-1.2%)0.997s (~)0.001s (-15.4% 🟢)1.010s (~)0.800s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.547s (+0.8%)2.977s (+7.6% 🔺)0.452s (-36.2% 🟢)3.865s (-2.6%)2.319s101.00x
▲ VercelNitro1.585s (~)2.978s (-0.7%)0.338s (-8.8% 🟢)3.711s (-2.5%)2.126s101.02x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.608s (~)1.004s (~)0.005s (~)1.023s (~)0.415s591.00x
🐘 PostgresNitro0.649s (+5.7% 🔺)1.023s (+1.9%)0.004s (+6.8% 🔺)1.039s (+1.8%)0.391s581.07x
💻 LocalNitro0.837s (+15.2% 🔺)1.011s (~)0.010s (+5.7% 🔺)1.116s (+9.0% 🔺)0.279s541.38x
💻 LocalExpress0.934s (+67.3% 🔺)1.010s (~)0.010s (+15.3% 🔺)1.227s (+20.1% 🔺)0.293s491.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.857s (-7.1% 🟢)5.341s (-9.8% 🟢)0.265s (-3.3%)6.058s (-8.9% 🟢)2.201s101.00x
▲ VercelNitro3.952s (-11.7% 🟢)5.186s (-14.2% 🟢)0.289s (+2.3%)5.853s (-15.9% 🟢)1.901s111.02x

🔍 Observability: Express | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.940s (-0.5%)1.220s (+4.4%)0.000s (+73.5% 🔺)1.232s (+4.1%)0.292s491.00x
🐘 PostgresNitro0.967s (-1.3%)1.251s (+4.9%)0.000s (-18.6% 🟢)1.281s (+5.2% 🔺)0.314s471.03x
💻 LocalNitro1.208s (-2.4%)2.019s (~)0.001s (+100.0% 🔺)2.021s (~)0.813s301.28x
💻 LocalExpress1.216s (+6.7% 🔺)2.019s (~)0.000s (+62.5% 🔺)2.021s (~)0.804s301.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.596s (-11.6% 🟢)3.733s (-10.6% 🟢)0.000s (+73.3% 🔺)4.141s (-11.2% 🟢)1.546s151.00x
▲ VercelExpress2.676s (+2.1%)3.896s (+1.6%)0.000s (-92.6% 🟢)4.401s (+1.9%)1.726s141.03x

🔍 Observability: Nitro | Express

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.686s (-5.2% 🟢)2.135s (~)0.000s (NaN%)2.148s (~)0.462s291.00x
🐘 PostgresNitro1.835s (+4.1%)2.140s (+1.9%)0.000s (+3.6%)2.153s (+1.9%)0.318s281.09x
💻 LocalNitro3.334s (-4.8%)4.032s (-1.7%)0.001s (-28.6% 🟢)4.034s (-1.7%)0.701s151.98x
💻 LocalExpress3.518s (+7.4% 🔺)4.031s (+3.2%)0.001s (+6.7% 🔺)4.034s (+3.2%)0.517s152.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.368s (-20.4% 🟢)4.631s (-18.1% 🟢)0.001s (+400.0% 🔺)5.090s (-19.3% 🟢)1.722s121.00x
▲ VercelNitro3.624s (-6.9% 🟢)4.670s (-14.1% 🟢)0.000s (-43.6% 🟢)5.037s (-15.4% 🟢)1.413s131.08x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro16/21
🐘 PostgresExpress20/21
▲ VercelExpress14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Nitro🐘 Postgres14/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

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production923067990
✅ 💻 Local Development89801821080
✅ 📦 Local Production89801821080
✅ 🐘 Local Postgres89801821080
✅ 🪟 Windows820890
❌ 🌍 Community Worlds1337424231
✅ 📋 Other228042270
Total4060746874821

❌ Failed Tests

🌍 Community Worlds (74 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

turso (60 failed):

  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KP08M947N7NHT8XAP2M8WH0C
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KP08KGJ4MVAHGHX26WJD9HPR
  • promiseRaceWorkflow | wrun_01KP08KKJ5A5DCRZP9RNEP5TP7
  • promiseAnyWorkflow | wrun_01KP08KNN1X2MGFK4E2XV42P2T
  • importedStepOnlyWorkflow | wrun_01KP08MP200S7JQYP36AR64Y69
  • hookWorkflow | wrun_01KP08M1R3VM4EAK9FYM7BC6R0
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • sleepingWorkflow | wrun_01KP08MZP1NHBBWDPF9STHFP4D
  • parallelSleepWorkflow | wrun_01KP08NBT8C6SN2WT9TCAB4STT
  • nullByteWorkflow | wrun_01KP08NF1W0V3Y8B3FGBFGYYET
  • workflowAndStepMetadataWorkflow | wrun_01KP08NH29AQGBRDDE85GR1T5P
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • promiseRaceStressTestWorkflow | wrun_01KP08REPZC1EXR4N1GCV9Q4N5
  • 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_01KP08VN2R5T8XYNR2XTMKJWS9
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KP08WV98ADJMZJE052MQ7A9M
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KP08XE1CZ1VG9QR9Q2PPAP83
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KP08XNJAVJSP7EC530N3RRHP
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KP08XVAP9H177REYCMJTC5NN
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KP08XX6K2KBVAT2XEW68Y006
  • runClassSerializationWorkflow - Run instances serialize across workflow/step boundaries | wrun_01KP08Y74SMBSRHCRYHWN2XJ6B
  • 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_01KP08YNMAS8X6HKY2XFPA7QCS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KP08YVT5SY60NMQJWFR0YM40
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KP08Z15P2854R6286NCTB6Q7
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KP08Z6X5H2XQ1ZDDY5P4WYS2
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KP08ZCVMAZAGV8T6HCVZTKZ8
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KP08ZJQ8BNPY9ZHJGM525EH2
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KP08ZRS4TV4K5JMDW7AQHZE9
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KP0902X3M7959K1W4KM5Y2PY
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KP090AXT2B1A5QNY90D9E2ZT
  • cancelRun - cancelling a running workflow | wrun_01KP090HWS7FPQZ22PYS56ZTKR
  • cancelRun via CLI - cancelling a running workflow | wrun_01KP090TJH6GKCDAN8B8NDJ29Z
  • 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_01KP0915KSGFT4QXT7NV1V2SPW
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KP091S4G073MNKAEAS11P8M8
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KP0923VWJJGE088WD6FR0H4B
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KP0929WZ9A68FRY20HJX6RWQ
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KP092BTECQHPHSWZ17GJ9RNR
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KP092DM8C3FNQBSV88QZRQ0E
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KP092HNX734GK5K7KH03DH16

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8307
✅ example8307
✅ express8307
✅ fastify8307
✅ hono8307
✅ nextjs-turbopack8802
✅ nextjs-webpack8802
✅ nitro8307
✅ nuxt8307
✅ sveltekit8307
✅ vite8307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8208
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev600
❌ mongodb5678
✅ redis-dev600
❌ redis5678
✅ turso-dev600
❌ turso3608
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable76014
✅ e2e-local-postgres-nest-stable76014
✅ e2e-local-prod-nest-stable76014

📋 View full workflow run

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 fixes @workflow/next failing to detect the installed Next.js version in monorepos (notably npm workspaces) where next is not hoisted alongside @workflow/next, by resolving next/package.json relative to the consuming project’s working directory first.

Changes:

  • Update resolveNextVersion() to resolve next/package.json from workingDir first, then fall back to package-relative resolution.
  • Add a clearer hard failure when neither resolution path can determine a Next.js version.
  • Add a changeset to ship the fix as a patch release for @workflow/next.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

FileDescription
packages/next/src/index.tsChanges Next.js version resolution order to prefer consuming-project resolution and adds a final error if resolution fails.
.changeset/fix-next-version-resolution.mdAdds a patch changeset entry documenting the fix.
Comments suppressed due to low confidence (1)

packages/next/src/index.ts:16

  • This change fixes a specific resolution-order bug (workingDir-first, then package-relative), but there is no unit test covering the new behavior or the failure mode when both resolutions fail. Add tests that simulate a monorepo layout (or mock require.resolve/require) to assert the preferred resolution path is attempted first and that the thrown error is clear.
function resolveNextVersion(workingDir: string): string {
// Try resolving from the consuming project's working directory first.
// This handles monorepo setups where `next` may not be hoisted to the
// same location as `@workflow/next`.
try {
const packageJsonPath = require.resolve('next/package.json', {
paths: [workingDir],
});

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

Comment threadpackages/next/src/index.ts
Comment threadpackages/next/src/index.ts Outdated
…message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 12, 2026 07:11
@TooTallNate
TooTallNate merged commit fe13110 into mainApr 13, 2026
165 of 168 checks passed
@TooTallNate
TooTallNate deleted the fix/next-version-resolution-monorepo branch April 13, 2026 17:35
@ghostghost mentioned this pull request Apr 13, 2026
ijjk pushed a commit that referenced this pull request Apr 15, 2026
)
* fix(next): resolve next/package.json from working directory first
In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
* fix(next): capture resolution errors and include workingDir in error message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
Sign up for freeto 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/next fails to resolve next/package.json in npm workspaces monorepo

3 participants

@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length > 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

fix(next): resolve next/package.json from working directory first - #1701

Merged
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo
Apr 13, 2026
Merged

fix(next): resolve next/package.json from working directory first#1701
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Fixes @workflow/next failing to resolve next/package.json in npm workspaces monorepos where next is not hoisted to the root node_modules/
  • Restructures resolveNextVersion() to try the working-directory-relative resolution first (preferred), then fall back to the package-relative resolution, with both paths wrapped in separate try/catch blocks
  • Throws a clear error message if neither resolution succeeds

Closes#1680

In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 11, 2026 18:41
CopilotAI review requested due to automatic review settings April 11, 2026 18:41
@vercel

vercelBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5a6bd75

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

This PR includes changesets to release 16 packages
NameType
@workflow/nextPatch
workflowPatch
@workflow/aiPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

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

@github-actions

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.042s (+15.7% 🔺)1.005s (~)0.963s101.00x
💻 LocalNitro0.043s (+4.1%)1.005s (~)0.962s101.03x
🐘 PostgresExpress0.058s (+1.0%)1.010s (~)0.952s101.38x
🐘 PostgresNitro0.073s (+9.6% 🔺)1.011s (~)0.937s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.215s (-16.7% 🟢)1.615s (-10.3% 🟢)1.400s101.00x
▲ VercelNitro0.233s (-9.8% 🟢)1.986s (-1.5%)1.753s101.08x

🔍 Observability: Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.130s (~)2.005s (~)0.875s101.00x
💻 LocalExpress1.130s (+3.0%)2.005s (~)0.875s101.00x
🐘 PostgresNitro1.140s (-0.9%)2.009s (~)0.870s101.01x
🐘 PostgresExpress1.141s (-0.8%)2.012s (~)0.871s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.879s (-5.2% 🟢)3.840s (-0.6%)1.962s101.00x
▲ VercelNitro2.267s (+18.9% 🔺)3.713s (-3.1%)1.446s101.21x

🔍 Observability: Express | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.873s (~)11.022s (~)0.149s31.00x
💻 LocalNitro10.933s (~)11.023s (~)0.090s31.01x
💻 LocalExpress10.938s (+2.8%)11.022s (~)0.085s31.01x
🐘 PostgresNitro10.951s (~)11.024s (~)0.073s31.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.802s (-5.2% 🟢)18.782s (-7.1% 🟢)1.980s21.00x
▲ VercelNitro17.009s (-10.4% 🟢)18.625s (-9.2% 🟢)1.616s21.01x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.533s (~)15.026s (~)0.494s41.00x
🐘 PostgresNitro14.703s (+1.0%)15.022s (~)0.319s41.01x
💻 LocalNitro14.932s (~)15.028s (~)0.096s41.03x
💻 LocalExpress15.019s (+5.4% 🔺)15.531s (+3.3%)0.513s41.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express31.508s (-11.8% 🟢)33.980s (-10.2% 🟢)2.472s21.00x
▲ VercelNitro32.115s (-5.9% 🟢)33.805s (-6.4% 🟢)1.690s21.02x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.970s (~)14.306s (~)0.336s71.00x
🐘 PostgresNitro14.256s (+0.9%)15.027s (+2.0%)0.771s61.02x
💻 LocalNitro16.320s (-2.5%)17.031s (~)0.712s61.17x
💻 LocalExpress16.657s (+10.7% 🔺)17.030s (+9.7% 🔺)0.374s61.19x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express52.428s (-3.8%)54.764s (-2.9%)2.336s21.00x
▲ VercelNitro53.636s (-3.3%)55.140s (-4.5%)1.505s21.02x

🔍 Observability: Express | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.261s (-1.2%)2.009s (~)0.748s151.00x
🐘 PostgresNitro1.281s (~)2.009s (~)0.728s151.02x
💻 LocalNitro1.514s (-0.6%)2.006s (~)0.492s151.20x
💻 LocalExpress1.567s (+8.8% 🔺)2.007s (~)0.439s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.390s (-18.2% 🟢)3.879s (-16.8% 🟢)1.488s91.00x
▲ VercelExpress2.915s (+8.4% 🔺)4.630s (+3.9%)1.715s71.22x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.343s (~)3.008s (~)0.666s101.00x
🐘 PostgresNitro2.362s (~)3.010s (~)0.648s101.01x
💻 LocalNitro2.798s (-5.6% 🟢)3.108s (-17.3% 🟢)0.310s101.19x
💻 LocalExpress2.946s (+14.3% 🔺)3.342s (+11.1% 🔺)0.396s91.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.240s (-18.0% 🟢)3.492s (-24.0% 🟢)1.253s91.00x
▲ VercelExpress2.315s (-12.1% 🟢)3.945s (-10.3% 🟢)1.630s81.03x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.469s (-0.7%)4.011s (~)0.542s81.00x
🐘 PostgresNitro3.472s (~)4.010s (~)0.538s81.00x
💻 LocalNitro7.214s (-13.8% 🟢)8.019s (-11.1% 🟢)0.805s42.08x
💻 LocalExpress8.255s (+22.8% 🔺)8.771s (+25.0% 🔺)0.516s42.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.684s (-14.2% 🟢)4.479s (-9.2% 🟢)1.795s71.00x
▲ VercelNitro3.193s (+22.5% 🔺)4.523s (+6.8% 🔺)1.330s71.19x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.252s (-1.1%)2.009s (~)0.756s151.00x
🐘 PostgresNitro1.276s (+0.6%)2.009s (~)0.733s151.02x
💻 LocalExpress1.535s (+4.6%)2.006s (~)0.470s151.23x
💻 LocalNitro1.541s (+1.1%)2.005s (~)0.464s151.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.084s (+1.6%)3.593s (-12.2% 🟢)1.509s91.00x
▲ VercelExpress2.139s (-7.0% 🟢)4.076s (-5.7% 🟢)1.937s81.03x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.342s (-0.9%)3.011s (~)0.669s101.00x
🐘 PostgresNitro2.349s (-0.6%)3.009s (~)0.660s101.00x
💻 LocalNitro2.859s (-7.7% 🟢)3.007s (-25.0% 🟢)0.148s101.22x
💻 LocalExpress2.950s (-0.8%)3.761s (+12.5% 🔺)0.811s81.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.078s (-23.1% 🟢)3.875s (-11.7% 🟢)1.797s81.00x
▲ VercelNitro2.544s (+1.9%)4.305s (+2.7%)1.760s71.22x

🔍 Observability: Express | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.488s (-0.6%)4.011s (~)0.524s81.00x
🐘 PostgresNitro3.526s (+0.8%)4.013s (~)0.487s81.01x
💻 LocalNitro8.078s (-13.5% 🟢)8.523s (-15.0% 🟢)0.445s42.32x
💻 LocalExpress8.729s (+8.5% 🔺)9.023s (+2.9%)0.294s42.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.799s (-5.9% 🟢)4.093s (-19.0% 🟢)1.294s81.00x
▲ VercelExpress3.124s (-2.9%)4.505s (-12.0% 🟢)1.381s71.12x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.810s (-2.8%)1.023s (+1.7%)0.213s591.00x
🐘 PostgresNitro0.834s (~)1.006s (~)0.172s601.03x
💻 LocalExpress0.980s (+39.9% 🔺)1.116s (+11.1% 🔺)0.136s541.21x
💻 LocalNitro1.001s (+1.2%)1.368s (+9.0% 🔺)0.367s441.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro10.115s (+8.3% 🔺)11.844s (+6.3% 🔺)1.728s61.00x
▲ VercelExpress10.705s (+10.7% 🔺)12.614s (+9.2% 🔺)1.909s51.06x

🔍 Observability: Nitro | Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.904s (-3.0%)2.075s (-6.8% 🟢)0.171s441.00x
🐘 PostgresNitro2.041s (+5.3% 🔺)2.853s (+26.7% 🔺)0.811s321.07x
💻 LocalExpress3.018s (+23.7% 🔺)3.547s (+11.5% 🔺)0.529s261.59x
💻 LocalNitro3.018s (~)3.586s (~)0.567s261.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.185s (-6.2% 🟢)28.404s (-6.0% 🟢)2.220s41.00x
▲ VercelNitro28.749s (+2.8%)30.190s (~)1.441s31.10x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.851s (-4.3%)4.010s (-10.0% 🟢)0.159s301.00x
🐘 PostgresNitro4.223s (+8.5% 🔺)5.011s (+20.8% 🔺)0.788s241.10x
💻 LocalNitro8.911s (-3.6%)9.247s (-7.7% 🟢)0.336s132.31x
💻 LocalExpress9.202s (+26.0% 🔺)9.865s (+24.1% 🔺)0.663s132.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express69.011s (-2.8%)70.832s (-3.9%)1.821s21.00x
▲ VercelNitro70.221s (-8.3% 🟢)71.612s (-8.7% 🟢)1.392s21.02x

🔍 Observability: Express | Nitro

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.290s (+2.5%)1.007s (~)0.717s601.00x
🐘 PostgresNitro0.290s (+5.4% 🔺)1.007s (~)0.717s601.00x
💻 LocalNitro0.558s (-3.9%)1.004s (~)0.446s601.93x
💻 LocalExpress0.577s (-1.0%)1.004s (~)0.427s601.99x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.403s (-2.7%)2.863s (-11.0% 🟢)1.460s211.00x
▲ VercelNitro1.425s (+3.8%)2.751s (-6.3% 🟢)1.326s221.02x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-1.6%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.506s (+1.2%)1.007s (~)0.501s901.02x
💻 LocalNitro2.332s (-5.8% 🟢)3.009s (~)0.677s304.71x
💻 LocalExpress2.519s (+5.2% 🔺)3.009s (~)0.491s305.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.776s (+0.8%)4.347s (-3.1%)1.571s221.00x
▲ VercelExpress2.783s (+6.1% 🔺)4.651s (+3.8%)1.869s201.00x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.800s (+1.3%)1.025s (+1.8%)0.225s1181.00x
🐘 PostgresNitro0.836s (+6.9% 🔺)1.019s (+1.1%)0.183s1181.04x
💻 LocalNitro10.857s (-2.3%)11.392s (-3.8%)0.536s1113.56x
💻 LocalExpress11.234s (+12.3% 🔺)11.753s (+9.9% 🔺)0.519s1114.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express7.072s (+7.2% 🔺)8.940s (+3.7%)1.869s141.00x
▲ VercelNitro7.656s (+14.6% 🔺)9.248s (+5.3% 🔺)1.592s131.08x

🔍 Observability: Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.199s (+42.6% 🔺)1.004s (~)0.012s (+24.5% 🔺)1.017s (~)0.818s101.00x
🐘 PostgresExpress0.201s (-2.8%)0.996s (~)0.002s (+23.1% 🔺)1.011s (~)0.810s101.01x
💻 LocalNitro0.208s (+2.4%)1.004s (~)0.010s (-16.0% 🟢)1.015s (~)0.808s101.04x
🐘 PostgresNitro0.211s (-1.2%)0.997s (~)0.001s (-15.4% 🟢)1.010s (~)0.800s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.547s (+0.8%)2.977s (+7.6% 🔺)0.452s (-36.2% 🟢)3.865s (-2.6%)2.319s101.00x
▲ VercelNitro1.585s (~)2.978s (-0.7%)0.338s (-8.8% 🟢)3.711s (-2.5%)2.126s101.02x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.608s (~)1.004s (~)0.005s (~)1.023s (~)0.415s591.00x
🐘 PostgresNitro0.649s (+5.7% 🔺)1.023s (+1.9%)0.004s (+6.8% 🔺)1.039s (+1.8%)0.391s581.07x
💻 LocalNitro0.837s (+15.2% 🔺)1.011s (~)0.010s (+5.7% 🔺)1.116s (+9.0% 🔺)0.279s541.38x
💻 LocalExpress0.934s (+67.3% 🔺)1.010s (~)0.010s (+15.3% 🔺)1.227s (+20.1% 🔺)0.293s491.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.857s (-7.1% 🟢)5.341s (-9.8% 🟢)0.265s (-3.3%)6.058s (-8.9% 🟢)2.201s101.00x
▲ VercelNitro3.952s (-11.7% 🟢)5.186s (-14.2% 🟢)0.289s (+2.3%)5.853s (-15.9% 🟢)1.901s111.02x

🔍 Observability: Express | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.940s (-0.5%)1.220s (+4.4%)0.000s (+73.5% 🔺)1.232s (+4.1%)0.292s491.00x
🐘 PostgresNitro0.967s (-1.3%)1.251s (+4.9%)0.000s (-18.6% 🟢)1.281s (+5.2% 🔺)0.314s471.03x
💻 LocalNitro1.208s (-2.4%)2.019s (~)0.001s (+100.0% 🔺)2.021s (~)0.813s301.28x
💻 LocalExpress1.216s (+6.7% 🔺)2.019s (~)0.000s (+62.5% 🔺)2.021s (~)0.804s301.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.596s (-11.6% 🟢)3.733s (-10.6% 🟢)0.000s (+73.3% 🔺)4.141s (-11.2% 🟢)1.546s151.00x
▲ VercelExpress2.676s (+2.1%)3.896s (+1.6%)0.000s (-92.6% 🟢)4.401s (+1.9%)1.726s141.03x

🔍 Observability: Nitro | Express

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.686s (-5.2% 🟢)2.135s (~)0.000s (NaN%)2.148s (~)0.462s291.00x
🐘 PostgresNitro1.835s (+4.1%)2.140s (+1.9%)0.000s (+3.6%)2.153s (+1.9%)0.318s281.09x
💻 LocalNitro3.334s (-4.8%)4.032s (-1.7%)0.001s (-28.6% 🟢)4.034s (-1.7%)0.701s151.98x
💻 LocalExpress3.518s (+7.4% 🔺)4.031s (+3.2%)0.001s (+6.7% 🔺)4.034s (+3.2%)0.517s152.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.368s (-20.4% 🟢)4.631s (-18.1% 🟢)0.001s (+400.0% 🔺)5.090s (-19.3% 🟢)1.722s121.00x
▲ VercelNitro3.624s (-6.9% 🟢)4.670s (-14.1% 🟢)0.000s (-43.6% 🟢)5.037s (-15.4% 🟢)1.413s131.08x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro16/21
🐘 PostgresExpress20/21
▲ VercelExpress14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Nitro🐘 Postgres14/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

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production923067990
✅ 💻 Local Development89801821080
✅ 📦 Local Production89801821080
✅ 🐘 Local Postgres89801821080
✅ 🪟 Windows820890
❌ 🌍 Community Worlds1337424231
✅ 📋 Other228042270
Total4060746874821

❌ Failed Tests

🌍 Community Worlds (74 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

turso (60 failed):

  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KP08M947N7NHT8XAP2M8WH0C
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KP08KGJ4MVAHGHX26WJD9HPR
  • promiseRaceWorkflow | wrun_01KP08KKJ5A5DCRZP9RNEP5TP7
  • promiseAnyWorkflow | wrun_01KP08KNN1X2MGFK4E2XV42P2T
  • importedStepOnlyWorkflow | wrun_01KP08MP200S7JQYP36AR64Y69
  • hookWorkflow | wrun_01KP08M1R3VM4EAK9FYM7BC6R0
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • sleepingWorkflow | wrun_01KP08MZP1NHBBWDPF9STHFP4D
  • parallelSleepWorkflow | wrun_01KP08NBT8C6SN2WT9TCAB4STT
  • nullByteWorkflow | wrun_01KP08NF1W0V3Y8B3FGBFGYYET
  • workflowAndStepMetadataWorkflow | wrun_01KP08NH29AQGBRDDE85GR1T5P
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • promiseRaceStressTestWorkflow | wrun_01KP08REPZC1EXR4N1GCV9Q4N5
  • 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_01KP08VN2R5T8XYNR2XTMKJWS9
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KP08WV98ADJMZJE052MQ7A9M
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KP08XE1CZ1VG9QR9Q2PPAP83
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KP08XNJAVJSP7EC530N3RRHP
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KP08XVAP9H177REYCMJTC5NN
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KP08XX6K2KBVAT2XEW68Y006
  • runClassSerializationWorkflow - Run instances serialize across workflow/step boundaries | wrun_01KP08Y74SMBSRHCRYHWN2XJ6B
  • 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_01KP08YNMAS8X6HKY2XFPA7QCS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KP08YVT5SY60NMQJWFR0YM40
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KP08Z15P2854R6286NCTB6Q7
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KP08Z6X5H2XQ1ZDDY5P4WYS2
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KP08ZCVMAZAGV8T6HCVZTKZ8
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KP08ZJQ8BNPY9ZHJGM525EH2
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KP08ZRS4TV4K5JMDW7AQHZE9
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KP0902X3M7959K1W4KM5Y2PY
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KP090AXT2B1A5QNY90D9E2ZT
  • cancelRun - cancelling a running workflow | wrun_01KP090HWS7FPQZ22PYS56ZTKR
  • cancelRun via CLI - cancelling a running workflow | wrun_01KP090TJH6GKCDAN8B8NDJ29Z
  • 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_01KP0915KSGFT4QXT7NV1V2SPW
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KP091S4G073MNKAEAS11P8M8
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KP0923VWJJGE088WD6FR0H4B
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KP0929WZ9A68FRY20HJX6RWQ
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KP092BTECQHPHSWZ17GJ9RNR
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KP092DM8C3FNQBSV88QZRQ0E
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KP092HNX734GK5K7KH03DH16

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8307
✅ example8307
✅ express8307
✅ fastify8307
✅ hono8307
✅ nextjs-turbopack8802
✅ nextjs-webpack8802
✅ nitro8307
✅ nuxt8307
✅ sveltekit8307
✅ vite8307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8208
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev600
❌ mongodb5678
✅ redis-dev600
❌ redis5678
✅ turso-dev600
❌ turso3608
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable76014
✅ e2e-local-postgres-nest-stable76014
✅ e2e-local-prod-nest-stable76014

📋 View full workflow run

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 fixes @workflow/next failing to detect the installed Next.js version in monorepos (notably npm workspaces) where next is not hoisted alongside @workflow/next, by resolving next/package.json relative to the consuming project’s working directory first.

Changes:

  • Update resolveNextVersion() to resolve next/package.json from workingDir first, then fall back to package-relative resolution.
  • Add a clearer hard failure when neither resolution path can determine a Next.js version.
  • Add a changeset to ship the fix as a patch release for @workflow/next.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

FileDescription
packages/next/src/index.tsChanges Next.js version resolution order to prefer consuming-project resolution and adds a final error if resolution fails.
.changeset/fix-next-version-resolution.mdAdds a patch changeset entry documenting the fix.
Comments suppressed due to low confidence (1)

packages/next/src/index.ts:16

  • This change fixes a specific resolution-order bug (workingDir-first, then package-relative), but there is no unit test covering the new behavior or the failure mode when both resolutions fail. Add tests that simulate a monorepo layout (or mock require.resolve/require) to assert the preferred resolution path is attempted first and that the thrown error is clear.
function resolveNextVersion(workingDir: string): string {
// Try resolving from the consuming project's working directory first.
// This handles monorepo setups where `next` may not be hoisted to the
// same location as `@workflow/next`.
try {
const packageJsonPath = require.resolve('next/package.json', {
paths: [workingDir],
});

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

Comment threadpackages/next/src/index.ts
Comment threadpackages/next/src/index.ts Outdated
…message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 12, 2026 07:11
@TooTallNate
TooTallNate merged commit fe13110 into mainApr 13, 2026
165 of 168 checks passed
@TooTallNate
TooTallNate deleted the fix/next-version-resolution-monorepo branch April 13, 2026 17:35
@ghostghost mentioned this pull request Apr 13, 2026
ijjk pushed a commit that referenced this pull request Apr 15, 2026
)
* fix(next): resolve next/package.json from working directory first
In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
* fix(next): capture resolution errors and include workingDir in error message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
Sign up for freeto 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/next fails to resolve next/package.json in npm workspaces monorepo

3 participants

@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

fix(next): resolve next/package.json from working directory first - #1701

Merged
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo
Apr 13, 2026
Merged

fix(next): resolve next/package.json from working directory first#1701
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Fixes @workflow/next failing to resolve next/package.json in npm workspaces monorepos where next is not hoisted to the root node_modules/
  • Restructures resolveNextVersion() to try the working-directory-relative resolution first (preferred), then fall back to the package-relative resolution, with both paths wrapped in separate try/catch blocks
  • Throws a clear error message if neither resolution succeeds

Closes#1680

In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 11, 2026 18:41
CopilotAI review requested due to automatic review settings April 11, 2026 18:41
@vercel

vercelBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5a6bd75

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

This PR includes changesets to release 16 packages
NameType
@workflow/nextPatch
workflowPatch
@workflow/aiPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

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

@github-actions

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.042s (+15.7% 🔺)1.005s (~)0.963s101.00x
💻 LocalNitro0.043s (+4.1%)1.005s (~)0.962s101.03x
🐘 PostgresExpress0.058s (+1.0%)1.010s (~)0.952s101.38x
🐘 PostgresNitro0.073s (+9.6% 🔺)1.011s (~)0.937s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.215s (-16.7% 🟢)1.615s (-10.3% 🟢)1.400s101.00x
▲ VercelNitro0.233s (-9.8% 🟢)1.986s (-1.5%)1.753s101.08x

🔍 Observability: Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.130s (~)2.005s (~)0.875s101.00x
💻 LocalExpress1.130s (+3.0%)2.005s (~)0.875s101.00x
🐘 PostgresNitro1.140s (-0.9%)2.009s (~)0.870s101.01x
🐘 PostgresExpress1.141s (-0.8%)2.012s (~)0.871s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.879s (-5.2% 🟢)3.840s (-0.6%)1.962s101.00x
▲ VercelNitro2.267s (+18.9% 🔺)3.713s (-3.1%)1.446s101.21x

🔍 Observability: Express | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.873s (~)11.022s (~)0.149s31.00x
💻 LocalNitro10.933s (~)11.023s (~)0.090s31.01x
💻 LocalExpress10.938s (+2.8%)11.022s (~)0.085s31.01x
🐘 PostgresNitro10.951s (~)11.024s (~)0.073s31.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.802s (-5.2% 🟢)18.782s (-7.1% 🟢)1.980s21.00x
▲ VercelNitro17.009s (-10.4% 🟢)18.625s (-9.2% 🟢)1.616s21.01x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.533s (~)15.026s (~)0.494s41.00x
🐘 PostgresNitro14.703s (+1.0%)15.022s (~)0.319s41.01x
💻 LocalNitro14.932s (~)15.028s (~)0.096s41.03x
💻 LocalExpress15.019s (+5.4% 🔺)15.531s (+3.3%)0.513s41.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express31.508s (-11.8% 🟢)33.980s (-10.2% 🟢)2.472s21.00x
▲ VercelNitro32.115s (-5.9% 🟢)33.805s (-6.4% 🟢)1.690s21.02x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.970s (~)14.306s (~)0.336s71.00x
🐘 PostgresNitro14.256s (+0.9%)15.027s (+2.0%)0.771s61.02x
💻 LocalNitro16.320s (-2.5%)17.031s (~)0.712s61.17x
💻 LocalExpress16.657s (+10.7% 🔺)17.030s (+9.7% 🔺)0.374s61.19x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express52.428s (-3.8%)54.764s (-2.9%)2.336s21.00x
▲ VercelNitro53.636s (-3.3%)55.140s (-4.5%)1.505s21.02x

🔍 Observability: Express | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.261s (-1.2%)2.009s (~)0.748s151.00x
🐘 PostgresNitro1.281s (~)2.009s (~)0.728s151.02x
💻 LocalNitro1.514s (-0.6%)2.006s (~)0.492s151.20x
💻 LocalExpress1.567s (+8.8% 🔺)2.007s (~)0.439s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.390s (-18.2% 🟢)3.879s (-16.8% 🟢)1.488s91.00x
▲ VercelExpress2.915s (+8.4% 🔺)4.630s (+3.9%)1.715s71.22x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.343s (~)3.008s (~)0.666s101.00x
🐘 PostgresNitro2.362s (~)3.010s (~)0.648s101.01x
💻 LocalNitro2.798s (-5.6% 🟢)3.108s (-17.3% 🟢)0.310s101.19x
💻 LocalExpress2.946s (+14.3% 🔺)3.342s (+11.1% 🔺)0.396s91.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.240s (-18.0% 🟢)3.492s (-24.0% 🟢)1.253s91.00x
▲ VercelExpress2.315s (-12.1% 🟢)3.945s (-10.3% 🟢)1.630s81.03x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.469s (-0.7%)4.011s (~)0.542s81.00x
🐘 PostgresNitro3.472s (~)4.010s (~)0.538s81.00x
💻 LocalNitro7.214s (-13.8% 🟢)8.019s (-11.1% 🟢)0.805s42.08x
💻 LocalExpress8.255s (+22.8% 🔺)8.771s (+25.0% 🔺)0.516s42.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.684s (-14.2% 🟢)4.479s (-9.2% 🟢)1.795s71.00x
▲ VercelNitro3.193s (+22.5% 🔺)4.523s (+6.8% 🔺)1.330s71.19x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.252s (-1.1%)2.009s (~)0.756s151.00x
🐘 PostgresNitro1.276s (+0.6%)2.009s (~)0.733s151.02x
💻 LocalExpress1.535s (+4.6%)2.006s (~)0.470s151.23x
💻 LocalNitro1.541s (+1.1%)2.005s (~)0.464s151.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.084s (+1.6%)3.593s (-12.2% 🟢)1.509s91.00x
▲ VercelExpress2.139s (-7.0% 🟢)4.076s (-5.7% 🟢)1.937s81.03x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.342s (-0.9%)3.011s (~)0.669s101.00x
🐘 PostgresNitro2.349s (-0.6%)3.009s (~)0.660s101.00x
💻 LocalNitro2.859s (-7.7% 🟢)3.007s (-25.0% 🟢)0.148s101.22x
💻 LocalExpress2.950s (-0.8%)3.761s (+12.5% 🔺)0.811s81.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.078s (-23.1% 🟢)3.875s (-11.7% 🟢)1.797s81.00x
▲ VercelNitro2.544s (+1.9%)4.305s (+2.7%)1.760s71.22x

🔍 Observability: Express | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.488s (-0.6%)4.011s (~)0.524s81.00x
🐘 PostgresNitro3.526s (+0.8%)4.013s (~)0.487s81.01x
💻 LocalNitro8.078s (-13.5% 🟢)8.523s (-15.0% 🟢)0.445s42.32x
💻 LocalExpress8.729s (+8.5% 🔺)9.023s (+2.9%)0.294s42.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.799s (-5.9% 🟢)4.093s (-19.0% 🟢)1.294s81.00x
▲ VercelExpress3.124s (-2.9%)4.505s (-12.0% 🟢)1.381s71.12x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.810s (-2.8%)1.023s (+1.7%)0.213s591.00x
🐘 PostgresNitro0.834s (~)1.006s (~)0.172s601.03x
💻 LocalExpress0.980s (+39.9% 🔺)1.116s (+11.1% 🔺)0.136s541.21x
💻 LocalNitro1.001s (+1.2%)1.368s (+9.0% 🔺)0.367s441.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro10.115s (+8.3% 🔺)11.844s (+6.3% 🔺)1.728s61.00x
▲ VercelExpress10.705s (+10.7% 🔺)12.614s (+9.2% 🔺)1.909s51.06x

🔍 Observability: Nitro | Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.904s (-3.0%)2.075s (-6.8% 🟢)0.171s441.00x
🐘 PostgresNitro2.041s (+5.3% 🔺)2.853s (+26.7% 🔺)0.811s321.07x
💻 LocalExpress3.018s (+23.7% 🔺)3.547s (+11.5% 🔺)0.529s261.59x
💻 LocalNitro3.018s (~)3.586s (~)0.567s261.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.185s (-6.2% 🟢)28.404s (-6.0% 🟢)2.220s41.00x
▲ VercelNitro28.749s (+2.8%)30.190s (~)1.441s31.10x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.851s (-4.3%)4.010s (-10.0% 🟢)0.159s301.00x
🐘 PostgresNitro4.223s (+8.5% 🔺)5.011s (+20.8% 🔺)0.788s241.10x
💻 LocalNitro8.911s (-3.6%)9.247s (-7.7% 🟢)0.336s132.31x
💻 LocalExpress9.202s (+26.0% 🔺)9.865s (+24.1% 🔺)0.663s132.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express69.011s (-2.8%)70.832s (-3.9%)1.821s21.00x
▲ VercelNitro70.221s (-8.3% 🟢)71.612s (-8.7% 🟢)1.392s21.02x

🔍 Observability: Express | Nitro

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.290s (+2.5%)1.007s (~)0.717s601.00x
🐘 PostgresNitro0.290s (+5.4% 🔺)1.007s (~)0.717s601.00x
💻 LocalNitro0.558s (-3.9%)1.004s (~)0.446s601.93x
💻 LocalExpress0.577s (-1.0%)1.004s (~)0.427s601.99x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.403s (-2.7%)2.863s (-11.0% 🟢)1.460s211.00x
▲ VercelNitro1.425s (+3.8%)2.751s (-6.3% 🟢)1.326s221.02x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-1.6%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.506s (+1.2%)1.007s (~)0.501s901.02x
💻 LocalNitro2.332s (-5.8% 🟢)3.009s (~)0.677s304.71x
💻 LocalExpress2.519s (+5.2% 🔺)3.009s (~)0.491s305.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.776s (+0.8%)4.347s (-3.1%)1.571s221.00x
▲ VercelExpress2.783s (+6.1% 🔺)4.651s (+3.8%)1.869s201.00x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.800s (+1.3%)1.025s (+1.8%)0.225s1181.00x
🐘 PostgresNitro0.836s (+6.9% 🔺)1.019s (+1.1%)0.183s1181.04x
💻 LocalNitro10.857s (-2.3%)11.392s (-3.8%)0.536s1113.56x
💻 LocalExpress11.234s (+12.3% 🔺)11.753s (+9.9% 🔺)0.519s1114.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express7.072s (+7.2% 🔺)8.940s (+3.7%)1.869s141.00x
▲ VercelNitro7.656s (+14.6% 🔺)9.248s (+5.3% 🔺)1.592s131.08x

🔍 Observability: Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.199s (+42.6% 🔺)1.004s (~)0.012s (+24.5% 🔺)1.017s (~)0.818s101.00x
🐘 PostgresExpress0.201s (-2.8%)0.996s (~)0.002s (+23.1% 🔺)1.011s (~)0.810s101.01x
💻 LocalNitro0.208s (+2.4%)1.004s (~)0.010s (-16.0% 🟢)1.015s (~)0.808s101.04x
🐘 PostgresNitro0.211s (-1.2%)0.997s (~)0.001s (-15.4% 🟢)1.010s (~)0.800s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.547s (+0.8%)2.977s (+7.6% 🔺)0.452s (-36.2% 🟢)3.865s (-2.6%)2.319s101.00x
▲ VercelNitro1.585s (~)2.978s (-0.7%)0.338s (-8.8% 🟢)3.711s (-2.5%)2.126s101.02x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.608s (~)1.004s (~)0.005s (~)1.023s (~)0.415s591.00x
🐘 PostgresNitro0.649s (+5.7% 🔺)1.023s (+1.9%)0.004s (+6.8% 🔺)1.039s (+1.8%)0.391s581.07x
💻 LocalNitro0.837s (+15.2% 🔺)1.011s (~)0.010s (+5.7% 🔺)1.116s (+9.0% 🔺)0.279s541.38x
💻 LocalExpress0.934s (+67.3% 🔺)1.010s (~)0.010s (+15.3% 🔺)1.227s (+20.1% 🔺)0.293s491.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.857s (-7.1% 🟢)5.341s (-9.8% 🟢)0.265s (-3.3%)6.058s (-8.9% 🟢)2.201s101.00x
▲ VercelNitro3.952s (-11.7% 🟢)5.186s (-14.2% 🟢)0.289s (+2.3%)5.853s (-15.9% 🟢)1.901s111.02x

🔍 Observability: Express | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.940s (-0.5%)1.220s (+4.4%)0.000s (+73.5% 🔺)1.232s (+4.1%)0.292s491.00x
🐘 PostgresNitro0.967s (-1.3%)1.251s (+4.9%)0.000s (-18.6% 🟢)1.281s (+5.2% 🔺)0.314s471.03x
💻 LocalNitro1.208s (-2.4%)2.019s (~)0.001s (+100.0% 🔺)2.021s (~)0.813s301.28x
💻 LocalExpress1.216s (+6.7% 🔺)2.019s (~)0.000s (+62.5% 🔺)2.021s (~)0.804s301.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.596s (-11.6% 🟢)3.733s (-10.6% 🟢)0.000s (+73.3% 🔺)4.141s (-11.2% 🟢)1.546s151.00x
▲ VercelExpress2.676s (+2.1%)3.896s (+1.6%)0.000s (-92.6% 🟢)4.401s (+1.9%)1.726s141.03x

🔍 Observability: Nitro | Express

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.686s (-5.2% 🟢)2.135s (~)0.000s (NaN%)2.148s (~)0.462s291.00x
🐘 PostgresNitro1.835s (+4.1%)2.140s (+1.9%)0.000s (+3.6%)2.153s (+1.9%)0.318s281.09x
💻 LocalNitro3.334s (-4.8%)4.032s (-1.7%)0.001s (-28.6% 🟢)4.034s (-1.7%)0.701s151.98x
💻 LocalExpress3.518s (+7.4% 🔺)4.031s (+3.2%)0.001s (+6.7% 🔺)4.034s (+3.2%)0.517s152.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.368s (-20.4% 🟢)4.631s (-18.1% 🟢)0.001s (+400.0% 🔺)5.090s (-19.3% 🟢)1.722s121.00x
▲ VercelNitro3.624s (-6.9% 🟢)4.670s (-14.1% 🟢)0.000s (-43.6% 🟢)5.037s (-15.4% 🟢)1.413s131.08x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro16/21
🐘 PostgresExpress20/21
▲ VercelExpress14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Nitro🐘 Postgres14/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

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production923067990
✅ 💻 Local Development89801821080
✅ 📦 Local Production89801821080
✅ 🐘 Local Postgres89801821080
✅ 🪟 Windows820890
❌ 🌍 Community Worlds1337424231
✅ 📋 Other228042270
Total4060746874821

❌ Failed Tests

🌍 Community Worlds (74 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

turso (60 failed):

  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KP08M947N7NHT8XAP2M8WH0C
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KP08KGJ4MVAHGHX26WJD9HPR
  • promiseRaceWorkflow | wrun_01KP08KKJ5A5DCRZP9RNEP5TP7
  • promiseAnyWorkflow | wrun_01KP08KNN1X2MGFK4E2XV42P2T
  • importedStepOnlyWorkflow | wrun_01KP08MP200S7JQYP36AR64Y69
  • hookWorkflow | wrun_01KP08M1R3VM4EAK9FYM7BC6R0
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • sleepingWorkflow | wrun_01KP08MZP1NHBBWDPF9STHFP4D
  • parallelSleepWorkflow | wrun_01KP08NBT8C6SN2WT9TCAB4STT
  • nullByteWorkflow | wrun_01KP08NF1W0V3Y8B3FGBFGYYET
  • workflowAndStepMetadataWorkflow | wrun_01KP08NH29AQGBRDDE85GR1T5P
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • promiseRaceStressTestWorkflow | wrun_01KP08REPZC1EXR4N1GCV9Q4N5
  • 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_01KP08VN2R5T8XYNR2XTMKJWS9
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KP08WV98ADJMZJE052MQ7A9M
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KP08XE1CZ1VG9QR9Q2PPAP83
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KP08XNJAVJSP7EC530N3RRHP
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KP08XVAP9H177REYCMJTC5NN
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KP08XX6K2KBVAT2XEW68Y006
  • runClassSerializationWorkflow - Run instances serialize across workflow/step boundaries | wrun_01KP08Y74SMBSRHCRYHWN2XJ6B
  • 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_01KP08YNMAS8X6HKY2XFPA7QCS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KP08YVT5SY60NMQJWFR0YM40
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KP08Z15P2854R6286NCTB6Q7
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KP08Z6X5H2XQ1ZDDY5P4WYS2
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KP08ZCVMAZAGV8T6HCVZTKZ8
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KP08ZJQ8BNPY9ZHJGM525EH2
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KP08ZRS4TV4K5JMDW7AQHZE9
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KP0902X3M7959K1W4KM5Y2PY
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KP090AXT2B1A5QNY90D9E2ZT
  • cancelRun - cancelling a running workflow | wrun_01KP090HWS7FPQZ22PYS56ZTKR
  • cancelRun via CLI - cancelling a running workflow | wrun_01KP090TJH6GKCDAN8B8NDJ29Z
  • 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_01KP0915KSGFT4QXT7NV1V2SPW
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KP091S4G073MNKAEAS11P8M8
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KP0923VWJJGE088WD6FR0H4B
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KP0929WZ9A68FRY20HJX6RWQ
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KP092BTECQHPHSWZ17GJ9RNR
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KP092DM8C3FNQBSV88QZRQ0E
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KP092HNX734GK5K7KH03DH16

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8307
✅ example8307
✅ express8307
✅ fastify8307
✅ hono8307
✅ nextjs-turbopack8802
✅ nextjs-webpack8802
✅ nitro8307
✅ nuxt8307
✅ sveltekit8307
✅ vite8307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8208
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev600
❌ mongodb5678
✅ redis-dev600
❌ redis5678
✅ turso-dev600
❌ turso3608
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable76014
✅ e2e-local-postgres-nest-stable76014
✅ e2e-local-prod-nest-stable76014

📋 View full workflow run

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 fixes @workflow/next failing to detect the installed Next.js version in monorepos (notably npm workspaces) where next is not hoisted alongside @workflow/next, by resolving next/package.json relative to the consuming project’s working directory first.

Changes:

  • Update resolveNextVersion() to resolve next/package.json from workingDir first, then fall back to package-relative resolution.
  • Add a clearer hard failure when neither resolution path can determine a Next.js version.
  • Add a changeset to ship the fix as a patch release for @workflow/next.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

FileDescription
packages/next/src/index.tsChanges Next.js version resolution order to prefer consuming-project resolution and adds a final error if resolution fails.
.changeset/fix-next-version-resolution.mdAdds a patch changeset entry documenting the fix.
Comments suppressed due to low confidence (1)

packages/next/src/index.ts:16

  • This change fixes a specific resolution-order bug (workingDir-first, then package-relative), but there is no unit test covering the new behavior or the failure mode when both resolutions fail. Add tests that simulate a monorepo layout (or mock require.resolve/require) to assert the preferred resolution path is attempted first and that the thrown error is clear.
function resolveNextVersion(workingDir: string): string {
// Try resolving from the consuming project's working directory first.
// This handles monorepo setups where `next` may not be hoisted to the
// same location as `@workflow/next`.
try {
const packageJsonPath = require.resolve('next/package.json', {
paths: [workingDir],
});

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

Comment threadpackages/next/src/index.ts
Comment threadpackages/next/src/index.ts Outdated
…message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 12, 2026 07:11
@TooTallNate
TooTallNate merged commit fe13110 into mainApr 13, 2026
165 of 168 checks passed
@TooTallNate
TooTallNate deleted the fix/next-version-resolution-monorepo branch April 13, 2026 17:35
@ghostghost mentioned this pull request Apr 13, 2026
ijjk pushed a commit that referenced this pull request Apr 15, 2026
)
* fix(next): resolve next/package.json from working directory first
In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
* fix(next): capture resolution errors and include workingDir in error message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
Sign up for freeto 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/next fails to resolve next/package.json in npm workspaces monorepo

3 participants

@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

fix(next): resolve next/package.json from working directory first - #1701

Merged
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo
Apr 13, 2026
Merged

fix(next): resolve next/package.json from working directory first#1701
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Fixes @workflow/next failing to resolve next/package.json in npm workspaces monorepos where next is not hoisted to the root node_modules/
  • Restructures resolveNextVersion() to try the working-directory-relative resolution first (preferred), then fall back to the package-relative resolution, with both paths wrapped in separate try/catch blocks
  • Throws a clear error message if neither resolution succeeds

Closes#1680

In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 11, 2026 18:41
CopilotAI review requested due to automatic review settings April 11, 2026 18:41
@vercel

vercelBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5a6bd75

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

This PR includes changesets to release 16 packages
NameType
@workflow/nextPatch
workflowPatch
@workflow/aiPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

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

@github-actions

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.042s (+15.7% 🔺)1.005s (~)0.963s101.00x
💻 LocalNitro0.043s (+4.1%)1.005s (~)0.962s101.03x
🐘 PostgresExpress0.058s (+1.0%)1.010s (~)0.952s101.38x
🐘 PostgresNitro0.073s (+9.6% 🔺)1.011s (~)0.937s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.215s (-16.7% 🟢)1.615s (-10.3% 🟢)1.400s101.00x
▲ VercelNitro0.233s (-9.8% 🟢)1.986s (-1.5%)1.753s101.08x

🔍 Observability: Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.130s (~)2.005s (~)0.875s101.00x
💻 LocalExpress1.130s (+3.0%)2.005s (~)0.875s101.00x
🐘 PostgresNitro1.140s (-0.9%)2.009s (~)0.870s101.01x
🐘 PostgresExpress1.141s (-0.8%)2.012s (~)0.871s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.879s (-5.2% 🟢)3.840s (-0.6%)1.962s101.00x
▲ VercelNitro2.267s (+18.9% 🔺)3.713s (-3.1%)1.446s101.21x

🔍 Observability: Express | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.873s (~)11.022s (~)0.149s31.00x
💻 LocalNitro10.933s (~)11.023s (~)0.090s31.01x
💻 LocalExpress10.938s (+2.8%)11.022s (~)0.085s31.01x
🐘 PostgresNitro10.951s (~)11.024s (~)0.073s31.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.802s (-5.2% 🟢)18.782s (-7.1% 🟢)1.980s21.00x
▲ VercelNitro17.009s (-10.4% 🟢)18.625s (-9.2% 🟢)1.616s21.01x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.533s (~)15.026s (~)0.494s41.00x
🐘 PostgresNitro14.703s (+1.0%)15.022s (~)0.319s41.01x
💻 LocalNitro14.932s (~)15.028s (~)0.096s41.03x
💻 LocalExpress15.019s (+5.4% 🔺)15.531s (+3.3%)0.513s41.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express31.508s (-11.8% 🟢)33.980s (-10.2% 🟢)2.472s21.00x
▲ VercelNitro32.115s (-5.9% 🟢)33.805s (-6.4% 🟢)1.690s21.02x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.970s (~)14.306s (~)0.336s71.00x
🐘 PostgresNitro14.256s (+0.9%)15.027s (+2.0%)0.771s61.02x
💻 LocalNitro16.320s (-2.5%)17.031s (~)0.712s61.17x
💻 LocalExpress16.657s (+10.7% 🔺)17.030s (+9.7% 🔺)0.374s61.19x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express52.428s (-3.8%)54.764s (-2.9%)2.336s21.00x
▲ VercelNitro53.636s (-3.3%)55.140s (-4.5%)1.505s21.02x

🔍 Observability: Express | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.261s (-1.2%)2.009s (~)0.748s151.00x
🐘 PostgresNitro1.281s (~)2.009s (~)0.728s151.02x
💻 LocalNitro1.514s (-0.6%)2.006s (~)0.492s151.20x
💻 LocalExpress1.567s (+8.8% 🔺)2.007s (~)0.439s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.390s (-18.2% 🟢)3.879s (-16.8% 🟢)1.488s91.00x
▲ VercelExpress2.915s (+8.4% 🔺)4.630s (+3.9%)1.715s71.22x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.343s (~)3.008s (~)0.666s101.00x
🐘 PostgresNitro2.362s (~)3.010s (~)0.648s101.01x
💻 LocalNitro2.798s (-5.6% 🟢)3.108s (-17.3% 🟢)0.310s101.19x
💻 LocalExpress2.946s (+14.3% 🔺)3.342s (+11.1% 🔺)0.396s91.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.240s (-18.0% 🟢)3.492s (-24.0% 🟢)1.253s91.00x
▲ VercelExpress2.315s (-12.1% 🟢)3.945s (-10.3% 🟢)1.630s81.03x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.469s (-0.7%)4.011s (~)0.542s81.00x
🐘 PostgresNitro3.472s (~)4.010s (~)0.538s81.00x
💻 LocalNitro7.214s (-13.8% 🟢)8.019s (-11.1% 🟢)0.805s42.08x
💻 LocalExpress8.255s (+22.8% 🔺)8.771s (+25.0% 🔺)0.516s42.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.684s (-14.2% 🟢)4.479s (-9.2% 🟢)1.795s71.00x
▲ VercelNitro3.193s (+22.5% 🔺)4.523s (+6.8% 🔺)1.330s71.19x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.252s (-1.1%)2.009s (~)0.756s151.00x
🐘 PostgresNitro1.276s (+0.6%)2.009s (~)0.733s151.02x
💻 LocalExpress1.535s (+4.6%)2.006s (~)0.470s151.23x
💻 LocalNitro1.541s (+1.1%)2.005s (~)0.464s151.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.084s (+1.6%)3.593s (-12.2% 🟢)1.509s91.00x
▲ VercelExpress2.139s (-7.0% 🟢)4.076s (-5.7% 🟢)1.937s81.03x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.342s (-0.9%)3.011s (~)0.669s101.00x
🐘 PostgresNitro2.349s (-0.6%)3.009s (~)0.660s101.00x
💻 LocalNitro2.859s (-7.7% 🟢)3.007s (-25.0% 🟢)0.148s101.22x
💻 LocalExpress2.950s (-0.8%)3.761s (+12.5% 🔺)0.811s81.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.078s (-23.1% 🟢)3.875s (-11.7% 🟢)1.797s81.00x
▲ VercelNitro2.544s (+1.9%)4.305s (+2.7%)1.760s71.22x

🔍 Observability: Express | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.488s (-0.6%)4.011s (~)0.524s81.00x
🐘 PostgresNitro3.526s (+0.8%)4.013s (~)0.487s81.01x
💻 LocalNitro8.078s (-13.5% 🟢)8.523s (-15.0% 🟢)0.445s42.32x
💻 LocalExpress8.729s (+8.5% 🔺)9.023s (+2.9%)0.294s42.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.799s (-5.9% 🟢)4.093s (-19.0% 🟢)1.294s81.00x
▲ VercelExpress3.124s (-2.9%)4.505s (-12.0% 🟢)1.381s71.12x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.810s (-2.8%)1.023s (+1.7%)0.213s591.00x
🐘 PostgresNitro0.834s (~)1.006s (~)0.172s601.03x
💻 LocalExpress0.980s (+39.9% 🔺)1.116s (+11.1% 🔺)0.136s541.21x
💻 LocalNitro1.001s (+1.2%)1.368s (+9.0% 🔺)0.367s441.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro10.115s (+8.3% 🔺)11.844s (+6.3% 🔺)1.728s61.00x
▲ VercelExpress10.705s (+10.7% 🔺)12.614s (+9.2% 🔺)1.909s51.06x

🔍 Observability: Nitro | Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.904s (-3.0%)2.075s (-6.8% 🟢)0.171s441.00x
🐘 PostgresNitro2.041s (+5.3% 🔺)2.853s (+26.7% 🔺)0.811s321.07x
💻 LocalExpress3.018s (+23.7% 🔺)3.547s (+11.5% 🔺)0.529s261.59x
💻 LocalNitro3.018s (~)3.586s (~)0.567s261.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.185s (-6.2% 🟢)28.404s (-6.0% 🟢)2.220s41.00x
▲ VercelNitro28.749s (+2.8%)30.190s (~)1.441s31.10x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.851s (-4.3%)4.010s (-10.0% 🟢)0.159s301.00x
🐘 PostgresNitro4.223s (+8.5% 🔺)5.011s (+20.8% 🔺)0.788s241.10x
💻 LocalNitro8.911s (-3.6%)9.247s (-7.7% 🟢)0.336s132.31x
💻 LocalExpress9.202s (+26.0% 🔺)9.865s (+24.1% 🔺)0.663s132.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express69.011s (-2.8%)70.832s (-3.9%)1.821s21.00x
▲ VercelNitro70.221s (-8.3% 🟢)71.612s (-8.7% 🟢)1.392s21.02x

🔍 Observability: Express | Nitro

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.290s (+2.5%)1.007s (~)0.717s601.00x
🐘 PostgresNitro0.290s (+5.4% 🔺)1.007s (~)0.717s601.00x
💻 LocalNitro0.558s (-3.9%)1.004s (~)0.446s601.93x
💻 LocalExpress0.577s (-1.0%)1.004s (~)0.427s601.99x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.403s (-2.7%)2.863s (-11.0% 🟢)1.460s211.00x
▲ VercelNitro1.425s (+3.8%)2.751s (-6.3% 🟢)1.326s221.02x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-1.6%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.506s (+1.2%)1.007s (~)0.501s901.02x
💻 LocalNitro2.332s (-5.8% 🟢)3.009s (~)0.677s304.71x
💻 LocalExpress2.519s (+5.2% 🔺)3.009s (~)0.491s305.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.776s (+0.8%)4.347s (-3.1%)1.571s221.00x
▲ VercelExpress2.783s (+6.1% 🔺)4.651s (+3.8%)1.869s201.00x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.800s (+1.3%)1.025s (+1.8%)0.225s1181.00x
🐘 PostgresNitro0.836s (+6.9% 🔺)1.019s (+1.1%)0.183s1181.04x
💻 LocalNitro10.857s (-2.3%)11.392s (-3.8%)0.536s1113.56x
💻 LocalExpress11.234s (+12.3% 🔺)11.753s (+9.9% 🔺)0.519s1114.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express7.072s (+7.2% 🔺)8.940s (+3.7%)1.869s141.00x
▲ VercelNitro7.656s (+14.6% 🔺)9.248s (+5.3% 🔺)1.592s131.08x

🔍 Observability: Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.199s (+42.6% 🔺)1.004s (~)0.012s (+24.5% 🔺)1.017s (~)0.818s101.00x
🐘 PostgresExpress0.201s (-2.8%)0.996s (~)0.002s (+23.1% 🔺)1.011s (~)0.810s101.01x
💻 LocalNitro0.208s (+2.4%)1.004s (~)0.010s (-16.0% 🟢)1.015s (~)0.808s101.04x
🐘 PostgresNitro0.211s (-1.2%)0.997s (~)0.001s (-15.4% 🟢)1.010s (~)0.800s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.547s (+0.8%)2.977s (+7.6% 🔺)0.452s (-36.2% 🟢)3.865s (-2.6%)2.319s101.00x
▲ VercelNitro1.585s (~)2.978s (-0.7%)0.338s (-8.8% 🟢)3.711s (-2.5%)2.126s101.02x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.608s (~)1.004s (~)0.005s (~)1.023s (~)0.415s591.00x
🐘 PostgresNitro0.649s (+5.7% 🔺)1.023s (+1.9%)0.004s (+6.8% 🔺)1.039s (+1.8%)0.391s581.07x
💻 LocalNitro0.837s (+15.2% 🔺)1.011s (~)0.010s (+5.7% 🔺)1.116s (+9.0% 🔺)0.279s541.38x
💻 LocalExpress0.934s (+67.3% 🔺)1.010s (~)0.010s (+15.3% 🔺)1.227s (+20.1% 🔺)0.293s491.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.857s (-7.1% 🟢)5.341s (-9.8% 🟢)0.265s (-3.3%)6.058s (-8.9% 🟢)2.201s101.00x
▲ VercelNitro3.952s (-11.7% 🟢)5.186s (-14.2% 🟢)0.289s (+2.3%)5.853s (-15.9% 🟢)1.901s111.02x

🔍 Observability: Express | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.940s (-0.5%)1.220s (+4.4%)0.000s (+73.5% 🔺)1.232s (+4.1%)0.292s491.00x
🐘 PostgresNitro0.967s (-1.3%)1.251s (+4.9%)0.000s (-18.6% 🟢)1.281s (+5.2% 🔺)0.314s471.03x
💻 LocalNitro1.208s (-2.4%)2.019s (~)0.001s (+100.0% 🔺)2.021s (~)0.813s301.28x
💻 LocalExpress1.216s (+6.7% 🔺)2.019s (~)0.000s (+62.5% 🔺)2.021s (~)0.804s301.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.596s (-11.6% 🟢)3.733s (-10.6% 🟢)0.000s (+73.3% 🔺)4.141s (-11.2% 🟢)1.546s151.00x
▲ VercelExpress2.676s (+2.1%)3.896s (+1.6%)0.000s (-92.6% 🟢)4.401s (+1.9%)1.726s141.03x

🔍 Observability: Nitro | Express

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.686s (-5.2% 🟢)2.135s (~)0.000s (NaN%)2.148s (~)0.462s291.00x
🐘 PostgresNitro1.835s (+4.1%)2.140s (+1.9%)0.000s (+3.6%)2.153s (+1.9%)0.318s281.09x
💻 LocalNitro3.334s (-4.8%)4.032s (-1.7%)0.001s (-28.6% 🟢)4.034s (-1.7%)0.701s151.98x
💻 LocalExpress3.518s (+7.4% 🔺)4.031s (+3.2%)0.001s (+6.7% 🔺)4.034s (+3.2%)0.517s152.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.368s (-20.4% 🟢)4.631s (-18.1% 🟢)0.001s (+400.0% 🔺)5.090s (-19.3% 🟢)1.722s121.00x
▲ VercelNitro3.624s (-6.9% 🟢)4.670s (-14.1% 🟢)0.000s (-43.6% 🟢)5.037s (-15.4% 🟢)1.413s131.08x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro16/21
🐘 PostgresExpress20/21
▲ VercelExpress14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Nitro🐘 Postgres14/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

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production923067990
✅ 💻 Local Development89801821080
✅ 📦 Local Production89801821080
✅ 🐘 Local Postgres89801821080
✅ 🪟 Windows820890
❌ 🌍 Community Worlds1337424231
✅ 📋 Other228042270
Total4060746874821

❌ Failed Tests

🌍 Community Worlds (74 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

turso (60 failed):

  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KP08M947N7NHT8XAP2M8WH0C
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KP08KGJ4MVAHGHX26WJD9HPR
  • promiseRaceWorkflow | wrun_01KP08KKJ5A5DCRZP9RNEP5TP7
  • promiseAnyWorkflow | wrun_01KP08KNN1X2MGFK4E2XV42P2T
  • importedStepOnlyWorkflow | wrun_01KP08MP200S7JQYP36AR64Y69
  • hookWorkflow | wrun_01KP08M1R3VM4EAK9FYM7BC6R0
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • sleepingWorkflow | wrun_01KP08MZP1NHBBWDPF9STHFP4D
  • parallelSleepWorkflow | wrun_01KP08NBT8C6SN2WT9TCAB4STT
  • nullByteWorkflow | wrun_01KP08NF1W0V3Y8B3FGBFGYYET
  • workflowAndStepMetadataWorkflow | wrun_01KP08NH29AQGBRDDE85GR1T5P
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • promiseRaceStressTestWorkflow | wrun_01KP08REPZC1EXR4N1GCV9Q4N5
  • 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_01KP08VN2R5T8XYNR2XTMKJWS9
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KP08WV98ADJMZJE052MQ7A9M
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KP08XE1CZ1VG9QR9Q2PPAP83
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KP08XNJAVJSP7EC530N3RRHP
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KP08XVAP9H177REYCMJTC5NN
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KP08XX6K2KBVAT2XEW68Y006
  • runClassSerializationWorkflow - Run instances serialize across workflow/step boundaries | wrun_01KP08Y74SMBSRHCRYHWN2XJ6B
  • 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_01KP08YNMAS8X6HKY2XFPA7QCS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KP08YVT5SY60NMQJWFR0YM40
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KP08Z15P2854R6286NCTB6Q7
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KP08Z6X5H2XQ1ZDDY5P4WYS2
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KP08ZCVMAZAGV8T6HCVZTKZ8
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KP08ZJQ8BNPY9ZHJGM525EH2
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KP08ZRS4TV4K5JMDW7AQHZE9
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KP0902X3M7959K1W4KM5Y2PY
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KP090AXT2B1A5QNY90D9E2ZT
  • cancelRun - cancelling a running workflow | wrun_01KP090HWS7FPQZ22PYS56ZTKR
  • cancelRun via CLI - cancelling a running workflow | wrun_01KP090TJH6GKCDAN8B8NDJ29Z
  • 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_01KP0915KSGFT4QXT7NV1V2SPW
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KP091S4G073MNKAEAS11P8M8
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KP0923VWJJGE088WD6FR0H4B
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KP0929WZ9A68FRY20HJX6RWQ
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KP092BTECQHPHSWZ17GJ9RNR
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KP092DM8C3FNQBSV88QZRQ0E
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KP092HNX734GK5K7KH03DH16

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8307
✅ example8307
✅ express8307
✅ fastify8307
✅ hono8307
✅ nextjs-turbopack8802
✅ nextjs-webpack8802
✅ nitro8307
✅ nuxt8307
✅ sveltekit8307
✅ vite8307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8208
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev600
❌ mongodb5678
✅ redis-dev600
❌ redis5678
✅ turso-dev600
❌ turso3608
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable76014
✅ e2e-local-postgres-nest-stable76014
✅ e2e-local-prod-nest-stable76014

📋 View full workflow run

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 fixes @workflow/next failing to detect the installed Next.js version in monorepos (notably npm workspaces) where next is not hoisted alongside @workflow/next, by resolving next/package.json relative to the consuming project’s working directory first.

Changes:

  • Update resolveNextVersion() to resolve next/package.json from workingDir first, then fall back to package-relative resolution.
  • Add a clearer hard failure when neither resolution path can determine a Next.js version.
  • Add a changeset to ship the fix as a patch release for @workflow/next.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

FileDescription
packages/next/src/index.tsChanges Next.js version resolution order to prefer consuming-project resolution and adds a final error if resolution fails.
.changeset/fix-next-version-resolution.mdAdds a patch changeset entry documenting the fix.
Comments suppressed due to low confidence (1)

packages/next/src/index.ts:16

  • This change fixes a specific resolution-order bug (workingDir-first, then package-relative), but there is no unit test covering the new behavior or the failure mode when both resolutions fail. Add tests that simulate a monorepo layout (or mock require.resolve/require) to assert the preferred resolution path is attempted first and that the thrown error is clear.
function resolveNextVersion(workingDir: string): string {
// Try resolving from the consuming project's working directory first.
// This handles monorepo setups where `next` may not be hoisted to the
// same location as `@workflow/next`.
try {
const packageJsonPath = require.resolve('next/package.json', {
paths: [workingDir],
});

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

Comment threadpackages/next/src/index.ts
Comment threadpackages/next/src/index.ts Outdated
…message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 12, 2026 07:11
@TooTallNate
TooTallNate merged commit fe13110 into mainApr 13, 2026
165 of 168 checks passed
@TooTallNate
TooTallNate deleted the fix/next-version-resolution-monorepo branch April 13, 2026 17:35
@ghostghost mentioned this pull request Apr 13, 2026
ijjk pushed a commit that referenced this pull request Apr 15, 2026
)
* fix(next): resolve next/package.json from working directory first
In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
* fix(next): capture resolution errors and include workingDir in error message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
Sign up for freeto 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/next fails to resolve next/package.json in npm workspaces monorepo

3 participants

@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

fix(next): resolve next/package.json from working directory first - #1701

Merged
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo
Apr 13, 2026
Merged

fix(next): resolve next/package.json from working directory first#1701
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Fixes @workflow/next failing to resolve next/package.json in npm workspaces monorepos where next is not hoisted to the root node_modules/
  • Restructures resolveNextVersion() to try the working-directory-relative resolution first (preferred), then fall back to the package-relative resolution, with both paths wrapped in separate try/catch blocks
  • Throws a clear error message if neither resolution succeeds

Closes#1680

In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 11, 2026 18:41
CopilotAI review requested due to automatic review settings April 11, 2026 18:41
@vercel

vercelBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5a6bd75

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

This PR includes changesets to release 16 packages
NameType
@workflow/nextPatch
workflowPatch
@workflow/aiPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

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

@github-actions

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.042s (+15.7% 🔺)1.005s (~)0.963s101.00x
💻 LocalNitro0.043s (+4.1%)1.005s (~)0.962s101.03x
🐘 PostgresExpress0.058s (+1.0%)1.010s (~)0.952s101.38x
🐘 PostgresNitro0.073s (+9.6% 🔺)1.011s (~)0.937s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.215s (-16.7% 🟢)1.615s (-10.3% 🟢)1.400s101.00x
▲ VercelNitro0.233s (-9.8% 🟢)1.986s (-1.5%)1.753s101.08x

🔍 Observability: Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.130s (~)2.005s (~)0.875s101.00x
💻 LocalExpress1.130s (+3.0%)2.005s (~)0.875s101.00x
🐘 PostgresNitro1.140s (-0.9%)2.009s (~)0.870s101.01x
🐘 PostgresExpress1.141s (-0.8%)2.012s (~)0.871s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.879s (-5.2% 🟢)3.840s (-0.6%)1.962s101.00x
▲ VercelNitro2.267s (+18.9% 🔺)3.713s (-3.1%)1.446s101.21x

🔍 Observability: Express | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.873s (~)11.022s (~)0.149s31.00x
💻 LocalNitro10.933s (~)11.023s (~)0.090s31.01x
💻 LocalExpress10.938s (+2.8%)11.022s (~)0.085s31.01x
🐘 PostgresNitro10.951s (~)11.024s (~)0.073s31.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.802s (-5.2% 🟢)18.782s (-7.1% 🟢)1.980s21.00x
▲ VercelNitro17.009s (-10.4% 🟢)18.625s (-9.2% 🟢)1.616s21.01x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.533s (~)15.026s (~)0.494s41.00x
🐘 PostgresNitro14.703s (+1.0%)15.022s (~)0.319s41.01x
💻 LocalNitro14.932s (~)15.028s (~)0.096s41.03x
💻 LocalExpress15.019s (+5.4% 🔺)15.531s (+3.3%)0.513s41.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express31.508s (-11.8% 🟢)33.980s (-10.2% 🟢)2.472s21.00x
▲ VercelNitro32.115s (-5.9% 🟢)33.805s (-6.4% 🟢)1.690s21.02x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.970s (~)14.306s (~)0.336s71.00x
🐘 PostgresNitro14.256s (+0.9%)15.027s (+2.0%)0.771s61.02x
💻 LocalNitro16.320s (-2.5%)17.031s (~)0.712s61.17x
💻 LocalExpress16.657s (+10.7% 🔺)17.030s (+9.7% 🔺)0.374s61.19x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express52.428s (-3.8%)54.764s (-2.9%)2.336s21.00x
▲ VercelNitro53.636s (-3.3%)55.140s (-4.5%)1.505s21.02x

🔍 Observability: Express | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.261s (-1.2%)2.009s (~)0.748s151.00x
🐘 PostgresNitro1.281s (~)2.009s (~)0.728s151.02x
💻 LocalNitro1.514s (-0.6%)2.006s (~)0.492s151.20x
💻 LocalExpress1.567s (+8.8% 🔺)2.007s (~)0.439s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.390s (-18.2% 🟢)3.879s (-16.8% 🟢)1.488s91.00x
▲ VercelExpress2.915s (+8.4% 🔺)4.630s (+3.9%)1.715s71.22x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.343s (~)3.008s (~)0.666s101.00x
🐘 PostgresNitro2.362s (~)3.010s (~)0.648s101.01x
💻 LocalNitro2.798s (-5.6% 🟢)3.108s (-17.3% 🟢)0.310s101.19x
💻 LocalExpress2.946s (+14.3% 🔺)3.342s (+11.1% 🔺)0.396s91.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.240s (-18.0% 🟢)3.492s (-24.0% 🟢)1.253s91.00x
▲ VercelExpress2.315s (-12.1% 🟢)3.945s (-10.3% 🟢)1.630s81.03x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.469s (-0.7%)4.011s (~)0.542s81.00x
🐘 PostgresNitro3.472s (~)4.010s (~)0.538s81.00x
💻 LocalNitro7.214s (-13.8% 🟢)8.019s (-11.1% 🟢)0.805s42.08x
💻 LocalExpress8.255s (+22.8% 🔺)8.771s (+25.0% 🔺)0.516s42.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.684s (-14.2% 🟢)4.479s (-9.2% 🟢)1.795s71.00x
▲ VercelNitro3.193s (+22.5% 🔺)4.523s (+6.8% 🔺)1.330s71.19x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.252s (-1.1%)2.009s (~)0.756s151.00x
🐘 PostgresNitro1.276s (+0.6%)2.009s (~)0.733s151.02x
💻 LocalExpress1.535s (+4.6%)2.006s (~)0.470s151.23x
💻 LocalNitro1.541s (+1.1%)2.005s (~)0.464s151.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.084s (+1.6%)3.593s (-12.2% 🟢)1.509s91.00x
▲ VercelExpress2.139s (-7.0% 🟢)4.076s (-5.7% 🟢)1.937s81.03x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.342s (-0.9%)3.011s (~)0.669s101.00x
🐘 PostgresNitro2.349s (-0.6%)3.009s (~)0.660s101.00x
💻 LocalNitro2.859s (-7.7% 🟢)3.007s (-25.0% 🟢)0.148s101.22x
💻 LocalExpress2.950s (-0.8%)3.761s (+12.5% 🔺)0.811s81.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.078s (-23.1% 🟢)3.875s (-11.7% 🟢)1.797s81.00x
▲ VercelNitro2.544s (+1.9%)4.305s (+2.7%)1.760s71.22x

🔍 Observability: Express | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.488s (-0.6%)4.011s (~)0.524s81.00x
🐘 PostgresNitro3.526s (+0.8%)4.013s (~)0.487s81.01x
💻 LocalNitro8.078s (-13.5% 🟢)8.523s (-15.0% 🟢)0.445s42.32x
💻 LocalExpress8.729s (+8.5% 🔺)9.023s (+2.9%)0.294s42.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.799s (-5.9% 🟢)4.093s (-19.0% 🟢)1.294s81.00x
▲ VercelExpress3.124s (-2.9%)4.505s (-12.0% 🟢)1.381s71.12x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.810s (-2.8%)1.023s (+1.7%)0.213s591.00x
🐘 PostgresNitro0.834s (~)1.006s (~)0.172s601.03x
💻 LocalExpress0.980s (+39.9% 🔺)1.116s (+11.1% 🔺)0.136s541.21x
💻 LocalNitro1.001s (+1.2%)1.368s (+9.0% 🔺)0.367s441.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro10.115s (+8.3% 🔺)11.844s (+6.3% 🔺)1.728s61.00x
▲ VercelExpress10.705s (+10.7% 🔺)12.614s (+9.2% 🔺)1.909s51.06x

🔍 Observability: Nitro | Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.904s (-3.0%)2.075s (-6.8% 🟢)0.171s441.00x
🐘 PostgresNitro2.041s (+5.3% 🔺)2.853s (+26.7% 🔺)0.811s321.07x
💻 LocalExpress3.018s (+23.7% 🔺)3.547s (+11.5% 🔺)0.529s261.59x
💻 LocalNitro3.018s (~)3.586s (~)0.567s261.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.185s (-6.2% 🟢)28.404s (-6.0% 🟢)2.220s41.00x
▲ VercelNitro28.749s (+2.8%)30.190s (~)1.441s31.10x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.851s (-4.3%)4.010s (-10.0% 🟢)0.159s301.00x
🐘 PostgresNitro4.223s (+8.5% 🔺)5.011s (+20.8% 🔺)0.788s241.10x
💻 LocalNitro8.911s (-3.6%)9.247s (-7.7% 🟢)0.336s132.31x
💻 LocalExpress9.202s (+26.0% 🔺)9.865s (+24.1% 🔺)0.663s132.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express69.011s (-2.8%)70.832s (-3.9%)1.821s21.00x
▲ VercelNitro70.221s (-8.3% 🟢)71.612s (-8.7% 🟢)1.392s21.02x

🔍 Observability: Express | Nitro

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.290s (+2.5%)1.007s (~)0.717s601.00x
🐘 PostgresNitro0.290s (+5.4% 🔺)1.007s (~)0.717s601.00x
💻 LocalNitro0.558s (-3.9%)1.004s (~)0.446s601.93x
💻 LocalExpress0.577s (-1.0%)1.004s (~)0.427s601.99x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.403s (-2.7%)2.863s (-11.0% 🟢)1.460s211.00x
▲ VercelNitro1.425s (+3.8%)2.751s (-6.3% 🟢)1.326s221.02x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-1.6%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.506s (+1.2%)1.007s (~)0.501s901.02x
💻 LocalNitro2.332s (-5.8% 🟢)3.009s (~)0.677s304.71x
💻 LocalExpress2.519s (+5.2% 🔺)3.009s (~)0.491s305.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.776s (+0.8%)4.347s (-3.1%)1.571s221.00x
▲ VercelExpress2.783s (+6.1% 🔺)4.651s (+3.8%)1.869s201.00x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.800s (+1.3%)1.025s (+1.8%)0.225s1181.00x
🐘 PostgresNitro0.836s (+6.9% 🔺)1.019s (+1.1%)0.183s1181.04x
💻 LocalNitro10.857s (-2.3%)11.392s (-3.8%)0.536s1113.56x
💻 LocalExpress11.234s (+12.3% 🔺)11.753s (+9.9% 🔺)0.519s1114.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express7.072s (+7.2% 🔺)8.940s (+3.7%)1.869s141.00x
▲ VercelNitro7.656s (+14.6% 🔺)9.248s (+5.3% 🔺)1.592s131.08x

🔍 Observability: Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.199s (+42.6% 🔺)1.004s (~)0.012s (+24.5% 🔺)1.017s (~)0.818s101.00x
🐘 PostgresExpress0.201s (-2.8%)0.996s (~)0.002s (+23.1% 🔺)1.011s (~)0.810s101.01x
💻 LocalNitro0.208s (+2.4%)1.004s (~)0.010s (-16.0% 🟢)1.015s (~)0.808s101.04x
🐘 PostgresNitro0.211s (-1.2%)0.997s (~)0.001s (-15.4% 🟢)1.010s (~)0.800s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.547s (+0.8%)2.977s (+7.6% 🔺)0.452s (-36.2% 🟢)3.865s (-2.6%)2.319s101.00x
▲ VercelNitro1.585s (~)2.978s (-0.7%)0.338s (-8.8% 🟢)3.711s (-2.5%)2.126s101.02x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.608s (~)1.004s (~)0.005s (~)1.023s (~)0.415s591.00x
🐘 PostgresNitro0.649s (+5.7% 🔺)1.023s (+1.9%)0.004s (+6.8% 🔺)1.039s (+1.8%)0.391s581.07x
💻 LocalNitro0.837s (+15.2% 🔺)1.011s (~)0.010s (+5.7% 🔺)1.116s (+9.0% 🔺)0.279s541.38x
💻 LocalExpress0.934s (+67.3% 🔺)1.010s (~)0.010s (+15.3% 🔺)1.227s (+20.1% 🔺)0.293s491.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.857s (-7.1% 🟢)5.341s (-9.8% 🟢)0.265s (-3.3%)6.058s (-8.9% 🟢)2.201s101.00x
▲ VercelNitro3.952s (-11.7% 🟢)5.186s (-14.2% 🟢)0.289s (+2.3%)5.853s (-15.9% 🟢)1.901s111.02x

🔍 Observability: Express | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.940s (-0.5%)1.220s (+4.4%)0.000s (+73.5% 🔺)1.232s (+4.1%)0.292s491.00x
🐘 PostgresNitro0.967s (-1.3%)1.251s (+4.9%)0.000s (-18.6% 🟢)1.281s (+5.2% 🔺)0.314s471.03x
💻 LocalNitro1.208s (-2.4%)2.019s (~)0.001s (+100.0% 🔺)2.021s (~)0.813s301.28x
💻 LocalExpress1.216s (+6.7% 🔺)2.019s (~)0.000s (+62.5% 🔺)2.021s (~)0.804s301.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.596s (-11.6% 🟢)3.733s (-10.6% 🟢)0.000s (+73.3% 🔺)4.141s (-11.2% 🟢)1.546s151.00x
▲ VercelExpress2.676s (+2.1%)3.896s (+1.6%)0.000s (-92.6% 🟢)4.401s (+1.9%)1.726s141.03x

🔍 Observability: Nitro | Express

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.686s (-5.2% 🟢)2.135s (~)0.000s (NaN%)2.148s (~)0.462s291.00x
🐘 PostgresNitro1.835s (+4.1%)2.140s (+1.9%)0.000s (+3.6%)2.153s (+1.9%)0.318s281.09x
💻 LocalNitro3.334s (-4.8%)4.032s (-1.7%)0.001s (-28.6% 🟢)4.034s (-1.7%)0.701s151.98x
💻 LocalExpress3.518s (+7.4% 🔺)4.031s (+3.2%)0.001s (+6.7% 🔺)4.034s (+3.2%)0.517s152.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.368s (-20.4% 🟢)4.631s (-18.1% 🟢)0.001s (+400.0% 🔺)5.090s (-19.3% 🟢)1.722s121.00x
▲ VercelNitro3.624s (-6.9% 🟢)4.670s (-14.1% 🟢)0.000s (-43.6% 🟢)5.037s (-15.4% 🟢)1.413s131.08x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro16/21
🐘 PostgresExpress20/21
▲ VercelExpress14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Nitro🐘 Postgres14/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

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production923067990
✅ 💻 Local Development89801821080
✅ 📦 Local Production89801821080
✅ 🐘 Local Postgres89801821080
✅ 🪟 Windows820890
❌ 🌍 Community Worlds1337424231
✅ 📋 Other228042270
Total4060746874821

❌ Failed Tests

🌍 Community Worlds (74 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

turso (60 failed):

  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KP08M947N7NHT8XAP2M8WH0C
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KP08KGJ4MVAHGHX26WJD9HPR
  • promiseRaceWorkflow | wrun_01KP08KKJ5A5DCRZP9RNEP5TP7
  • promiseAnyWorkflow | wrun_01KP08KNN1X2MGFK4E2XV42P2T
  • importedStepOnlyWorkflow | wrun_01KP08MP200S7JQYP36AR64Y69
  • hookWorkflow | wrun_01KP08M1R3VM4EAK9FYM7BC6R0
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • sleepingWorkflow | wrun_01KP08MZP1NHBBWDPF9STHFP4D
  • parallelSleepWorkflow | wrun_01KP08NBT8C6SN2WT9TCAB4STT
  • nullByteWorkflow | wrun_01KP08NF1W0V3Y8B3FGBFGYYET
  • workflowAndStepMetadataWorkflow | wrun_01KP08NH29AQGBRDDE85GR1T5P
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • promiseRaceStressTestWorkflow | wrun_01KP08REPZC1EXR4N1GCV9Q4N5
  • 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_01KP08VN2R5T8XYNR2XTMKJWS9
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KP08WV98ADJMZJE052MQ7A9M
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KP08XE1CZ1VG9QR9Q2PPAP83
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KP08XNJAVJSP7EC530N3RRHP
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KP08XVAP9H177REYCMJTC5NN
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KP08XX6K2KBVAT2XEW68Y006
  • runClassSerializationWorkflow - Run instances serialize across workflow/step boundaries | wrun_01KP08Y74SMBSRHCRYHWN2XJ6B
  • 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_01KP08YNMAS8X6HKY2XFPA7QCS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KP08YVT5SY60NMQJWFR0YM40
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KP08Z15P2854R6286NCTB6Q7
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KP08Z6X5H2XQ1ZDDY5P4WYS2
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KP08ZCVMAZAGV8T6HCVZTKZ8
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KP08ZJQ8BNPY9ZHJGM525EH2
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KP08ZRS4TV4K5JMDW7AQHZE9
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KP0902X3M7959K1W4KM5Y2PY
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KP090AXT2B1A5QNY90D9E2ZT
  • cancelRun - cancelling a running workflow | wrun_01KP090HWS7FPQZ22PYS56ZTKR
  • cancelRun via CLI - cancelling a running workflow | wrun_01KP090TJH6GKCDAN8B8NDJ29Z
  • 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_01KP0915KSGFT4QXT7NV1V2SPW
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KP091S4G073MNKAEAS11P8M8
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KP0923VWJJGE088WD6FR0H4B
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KP0929WZ9A68FRY20HJX6RWQ
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KP092BTECQHPHSWZ17GJ9RNR
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KP092DM8C3FNQBSV88QZRQ0E
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KP092HNX734GK5K7KH03DH16

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8307
✅ example8307
✅ express8307
✅ fastify8307
✅ hono8307
✅ nextjs-turbopack8802
✅ nextjs-webpack8802
✅ nitro8307
✅ nuxt8307
✅ sveltekit8307
✅ vite8307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8208
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev600
❌ mongodb5678
✅ redis-dev600
❌ redis5678
✅ turso-dev600
❌ turso3608
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable76014
✅ e2e-local-postgres-nest-stable76014
✅ e2e-local-prod-nest-stable76014

📋 View full workflow run

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 fixes @workflow/next failing to detect the installed Next.js version in monorepos (notably npm workspaces) where next is not hoisted alongside @workflow/next, by resolving next/package.json relative to the consuming project’s working directory first.

Changes:

  • Update resolveNextVersion() to resolve next/package.json from workingDir first, then fall back to package-relative resolution.
  • Add a clearer hard failure when neither resolution path can determine a Next.js version.
  • Add a changeset to ship the fix as a patch release for @workflow/next.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

FileDescription
packages/next/src/index.tsChanges Next.js version resolution order to prefer consuming-project resolution and adds a final error if resolution fails.
.changeset/fix-next-version-resolution.mdAdds a patch changeset entry documenting the fix.
Comments suppressed due to low confidence (1)

packages/next/src/index.ts:16

  • This change fixes a specific resolution-order bug (workingDir-first, then package-relative), but there is no unit test covering the new behavior or the failure mode when both resolutions fail. Add tests that simulate a monorepo layout (or mock require.resolve/require) to assert the preferred resolution path is attempted first and that the thrown error is clear.
function resolveNextVersion(workingDir: string): string {
// Try resolving from the consuming project's working directory first.
// This handles monorepo setups where `next` may not be hoisted to the
// same location as `@workflow/next`.
try {
const packageJsonPath = require.resolve('next/package.json', {
paths: [workingDir],
});

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

Comment threadpackages/next/src/index.ts
Comment threadpackages/next/src/index.ts Outdated
…message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 12, 2026 07:11
@TooTallNate
TooTallNate merged commit fe13110 into mainApr 13, 2026
165 of 168 checks passed
@TooTallNate
TooTallNate deleted the fix/next-version-resolution-monorepo branch April 13, 2026 17:35
@ghostghost mentioned this pull request Apr 13, 2026
ijjk pushed a commit that referenced this pull request Apr 15, 2026
)
* fix(next): resolve next/package.json from working directory first
In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
* fix(next): capture resolution errors and include workingDir in error message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
Sign up for freeto 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/next fails to resolve next/package.json in npm workspaces monorepo

3 participants

@TooTallNate@ijjk
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

fix(next): resolve next/package.json from working directory first - #1701

Merged
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo
Apr 13, 2026
Merged

fix(next): resolve next/package.json from working directory first#1701
TooTallNate merged 3 commits into
mainfrom
fix/next-version-resolution-monorepo

Conversation

@TooTallNate

Copy link
Copy Markdown
Member

Summary

  • Fixes @workflow/next failing to resolve next/package.json in npm workspaces monorepos where next is not hoisted to the root node_modules/
  • Restructures resolveNextVersion() to try the working-directory-relative resolution first (preferred), then fall back to the package-relative resolution, with both paths wrapped in separate try/catch blocks
  • Throws a clear error message if neither resolution succeeds

Closes#1680

In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
@TooTallNate
TooTallNate requested review from a team and ijjk as code ownersApril 11, 2026 18:41
CopilotAI review requested due to automatic review settings April 11, 2026 18:41
@vercel

vercelBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Apr 11, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 5a6bd75

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

This PR includes changesets to release 16 packages
NameType
@workflow/nextPatch
workflowPatch
@workflow/aiPatch
@workflow/world-testingPatch
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
@workflow/nuxtPatch

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

@github-actions

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.042s (+15.7% 🔺)1.005s (~)0.963s101.00x
💻 LocalNitro0.043s (+4.1%)1.005s (~)0.962s101.03x
🐘 PostgresExpress0.058s (+1.0%)1.010s (~)0.952s101.38x
🐘 PostgresNitro0.073s (+9.6% 🔺)1.011s (~)0.937s101.75x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.215s (-16.7% 🟢)1.615s (-10.3% 🟢)1.400s101.00x
▲ VercelNitro0.233s (-9.8% 🟢)1.986s (-1.5%)1.753s101.08x

🔍 Observability: Express | Nitro

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.130s (~)2.005s (~)0.875s101.00x
💻 LocalExpress1.130s (+3.0%)2.005s (~)0.875s101.00x
🐘 PostgresNitro1.140s (-0.9%)2.009s (~)0.870s101.01x
🐘 PostgresExpress1.141s (-0.8%)2.012s (~)0.871s101.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.879s (-5.2% 🟢)3.840s (-0.6%)1.962s101.00x
▲ VercelNitro2.267s (+18.9% 🔺)3.713s (-3.1%)1.446s101.21x

🔍 Observability: Express | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express10.873s (~)11.022s (~)0.149s31.00x
💻 LocalNitro10.933s (~)11.023s (~)0.090s31.01x
💻 LocalExpress10.938s (+2.8%)11.022s (~)0.085s31.01x
🐘 PostgresNitro10.951s (~)11.024s (~)0.073s31.01x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.802s (-5.2% 🟢)18.782s (-7.1% 🟢)1.980s21.00x
▲ VercelNitro17.009s (-10.4% 🟢)18.625s (-9.2% 🟢)1.616s21.01x

🔍 Observability: Express | Nitro

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express14.533s (~)15.026s (~)0.494s41.00x
🐘 PostgresNitro14.703s (+1.0%)15.022s (~)0.319s41.01x
💻 LocalNitro14.932s (~)15.028s (~)0.096s41.03x
💻 LocalExpress15.019s (+5.4% 🔺)15.531s (+3.3%)0.513s41.03x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express31.508s (-11.8% 🟢)33.980s (-10.2% 🟢)2.472s21.00x
▲ VercelNitro32.115s (-5.9% 🟢)33.805s (-6.4% 🟢)1.690s21.02x

🔍 Observability: Express | Nitro

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express13.970s (~)14.306s (~)0.336s71.00x
🐘 PostgresNitro14.256s (+0.9%)15.027s (+2.0%)0.771s61.02x
💻 LocalNitro16.320s (-2.5%)17.031s (~)0.712s61.17x
💻 LocalExpress16.657s (+10.7% 🔺)17.030s (+9.7% 🔺)0.374s61.19x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express52.428s (-3.8%)54.764s (-2.9%)2.336s21.00x
▲ VercelNitro53.636s (-3.3%)55.140s (-4.5%)1.505s21.02x

🔍 Observability: Express | Nitro

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.261s (-1.2%)2.009s (~)0.748s151.00x
🐘 PostgresNitro1.281s (~)2.009s (~)0.728s151.02x
💻 LocalNitro1.514s (-0.6%)2.006s (~)0.492s151.20x
💻 LocalExpress1.567s (+8.8% 🔺)2.007s (~)0.439s151.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.390s (-18.2% 🟢)3.879s (-16.8% 🟢)1.488s91.00x
▲ VercelExpress2.915s (+8.4% 🔺)4.630s (+3.9%)1.715s71.22x

🔍 Observability: Nitro | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.343s (~)3.008s (~)0.666s101.00x
🐘 PostgresNitro2.362s (~)3.010s (~)0.648s101.01x
💻 LocalNitro2.798s (-5.6% 🟢)3.108s (-17.3% 🟢)0.310s101.19x
💻 LocalExpress2.946s (+14.3% 🔺)3.342s (+11.1% 🔺)0.396s91.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.240s (-18.0% 🟢)3.492s (-24.0% 🟢)1.253s91.00x
▲ VercelExpress2.315s (-12.1% 🟢)3.945s (-10.3% 🟢)1.630s81.03x

🔍 Observability: Nitro | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.469s (-0.7%)4.011s (~)0.542s81.00x
🐘 PostgresNitro3.472s (~)4.010s (~)0.538s81.00x
💻 LocalNitro7.214s (-13.8% 🟢)8.019s (-11.1% 🟢)0.805s42.08x
💻 LocalExpress8.255s (+22.8% 🔺)8.771s (+25.0% 🔺)0.516s42.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.684s (-14.2% 🟢)4.479s (-9.2% 🟢)1.795s71.00x
▲ VercelNitro3.193s (+22.5% 🔺)4.523s (+6.8% 🔺)1.330s71.19x

🔍 Observability: Express | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.252s (-1.1%)2.009s (~)0.756s151.00x
🐘 PostgresNitro1.276s (+0.6%)2.009s (~)0.733s151.02x
💻 LocalExpress1.535s (+4.6%)2.006s (~)0.470s151.23x
💻 LocalNitro1.541s (+1.1%)2.005s (~)0.464s151.23x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.084s (+1.6%)3.593s (-12.2% 🟢)1.509s91.00x
▲ VercelExpress2.139s (-7.0% 🟢)4.076s (-5.7% 🟢)1.937s81.03x

🔍 Observability: Nitro | Express

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.342s (-0.9%)3.011s (~)0.669s101.00x
🐘 PostgresNitro2.349s (-0.6%)3.009s (~)0.660s101.00x
💻 LocalNitro2.859s (-7.7% 🟢)3.007s (-25.0% 🟢)0.148s101.22x
💻 LocalExpress2.950s (-0.8%)3.761s (+12.5% 🔺)0.811s81.26x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.078s (-23.1% 🟢)3.875s (-11.7% 🟢)1.797s81.00x
▲ VercelNitro2.544s (+1.9%)4.305s (+2.7%)1.760s71.22x

🔍 Observability: Express | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.488s (-0.6%)4.011s (~)0.524s81.00x
🐘 PostgresNitro3.526s (+0.8%)4.013s (~)0.487s81.01x
💻 LocalNitro8.078s (-13.5% 🟢)8.523s (-15.0% 🟢)0.445s42.32x
💻 LocalExpress8.729s (+8.5% 🔺)9.023s (+2.9%)0.294s42.50x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.799s (-5.9% 🟢)4.093s (-19.0% 🟢)1.294s81.00x
▲ VercelExpress3.124s (-2.9%)4.505s (-12.0% 🟢)1.381s71.12x

🔍 Observability: Nitro | Express

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.810s (-2.8%)1.023s (+1.7%)0.213s591.00x
🐘 PostgresNitro0.834s (~)1.006s (~)0.172s601.03x
💻 LocalExpress0.980s (+39.9% 🔺)1.116s (+11.1% 🔺)0.136s541.21x
💻 LocalNitro1.001s (+1.2%)1.368s (+9.0% 🔺)0.367s441.24x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro10.115s (+8.3% 🔺)11.844s (+6.3% 🔺)1.728s61.00x
▲ VercelExpress10.705s (+10.7% 🔺)12.614s (+9.2% 🔺)1.909s51.06x

🔍 Observability: Nitro | Express

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.904s (-3.0%)2.075s (-6.8% 🟢)0.171s441.00x
🐘 PostgresNitro2.041s (+5.3% 🔺)2.853s (+26.7% 🔺)0.811s321.07x
💻 LocalExpress3.018s (+23.7% 🔺)3.547s (+11.5% 🔺)0.529s261.59x
💻 LocalNitro3.018s (~)3.586s (~)0.567s261.59x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.185s (-6.2% 🟢)28.404s (-6.0% 🟢)2.220s41.00x
▲ VercelNitro28.749s (+2.8%)30.190s (~)1.441s31.10x

🔍 Observability: Express | Nitro

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.851s (-4.3%)4.010s (-10.0% 🟢)0.159s301.00x
🐘 PostgresNitro4.223s (+8.5% 🔺)5.011s (+20.8% 🔺)0.788s241.10x
💻 LocalNitro8.911s (-3.6%)9.247s (-7.7% 🟢)0.336s132.31x
💻 LocalExpress9.202s (+26.0% 🔺)9.865s (+24.1% 🔺)0.663s132.39x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express69.011s (-2.8%)70.832s (-3.9%)1.821s21.00x
▲ VercelNitro70.221s (-8.3% 🟢)71.612s (-8.7% 🟢)1.392s21.02x

🔍 Observability: Express | Nitro

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.290s (+2.5%)1.007s (~)0.717s601.00x
🐘 PostgresNitro0.290s (+5.4% 🔺)1.007s (~)0.717s601.00x
💻 LocalNitro0.558s (-3.9%)1.004s (~)0.446s601.93x
💻 LocalExpress0.577s (-1.0%)1.004s (~)0.427s601.99x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.403s (-2.7%)2.863s (-11.0% 🟢)1.460s211.00x
▲ VercelNitro1.425s (+3.8%)2.751s (-6.3% 🟢)1.326s221.02x

🔍 Observability: Express | Nitro

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.495s (-1.6%)1.007s (~)0.512s901.00x
🐘 PostgresNitro0.506s (+1.2%)1.007s (~)0.501s901.02x
💻 LocalNitro2.332s (-5.8% 🟢)3.009s (~)0.677s304.71x
💻 LocalExpress2.519s (+5.2% 🔺)3.009s (~)0.491s305.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.776s (+0.8%)4.347s (-3.1%)1.571s221.00x
▲ VercelExpress2.783s (+6.1% 🔺)4.651s (+3.8%)1.869s201.00x

🔍 Observability: Nitro | Express

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.800s (+1.3%)1.025s (+1.8%)0.225s1181.00x
🐘 PostgresNitro0.836s (+6.9% 🔺)1.019s (+1.1%)0.183s1181.04x
💻 LocalNitro10.857s (-2.3%)11.392s (-3.8%)0.536s1113.56x
💻 LocalExpress11.234s (+12.3% 🔺)11.753s (+9.9% 🔺)0.519s1114.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express7.072s (+7.2% 🔺)8.940s (+3.7%)1.869s141.00x
▲ VercelNitro7.656s (+14.6% 🔺)9.248s (+5.3% 🔺)1.592s131.08x

🔍 Observability: Express | Nitro

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.199s (+42.6% 🔺)1.004s (~)0.012s (+24.5% 🔺)1.017s (~)0.818s101.00x
🐘 PostgresExpress0.201s (-2.8%)0.996s (~)0.002s (+23.1% 🔺)1.011s (~)0.810s101.01x
💻 LocalNitro0.208s (+2.4%)1.004s (~)0.010s (-16.0% 🟢)1.015s (~)0.808s101.04x
🐘 PostgresNitro0.211s (-1.2%)0.997s (~)0.001s (-15.4% 🟢)1.010s (~)0.800s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.547s (+0.8%)2.977s (+7.6% 🔺)0.452s (-36.2% 🟢)3.865s (-2.6%)2.319s101.00x
▲ VercelNitro1.585s (~)2.978s (-0.7%)0.338s (-8.8% 🟢)3.711s (-2.5%)2.126s101.02x

🔍 Observability: Express | Nitro

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.608s (~)1.004s (~)0.005s (~)1.023s (~)0.415s591.00x
🐘 PostgresNitro0.649s (+5.7% 🔺)1.023s (+1.9%)0.004s (+6.8% 🔺)1.039s (+1.8%)0.391s581.07x
💻 LocalNitro0.837s (+15.2% 🔺)1.011s (~)0.010s (+5.7% 🔺)1.116s (+9.0% 🔺)0.279s541.38x
💻 LocalExpress0.934s (+67.3% 🔺)1.010s (~)0.010s (+15.3% 🔺)1.227s (+20.1% 🔺)0.293s491.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.857s (-7.1% 🟢)5.341s (-9.8% 🟢)0.265s (-3.3%)6.058s (-8.9% 🟢)2.201s101.00x
▲ VercelNitro3.952s (-11.7% 🟢)5.186s (-14.2% 🟢)0.289s (+2.3%)5.853s (-15.9% 🟢)1.901s111.02x

🔍 Observability: Express | Nitro

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.940s (-0.5%)1.220s (+4.4%)0.000s (+73.5% 🔺)1.232s (+4.1%)0.292s491.00x
🐘 PostgresNitro0.967s (-1.3%)1.251s (+4.9%)0.000s (-18.6% 🟢)1.281s (+5.2% 🔺)0.314s471.03x
💻 LocalNitro1.208s (-2.4%)2.019s (~)0.001s (+100.0% 🔺)2.021s (~)0.813s301.28x
💻 LocalExpress1.216s (+6.7% 🔺)2.019s (~)0.000s (+62.5% 🔺)2.021s (~)0.804s301.29x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.596s (-11.6% 🟢)3.733s (-10.6% 🟢)0.000s (+73.3% 🔺)4.141s (-11.2% 🟢)1.546s151.00x
▲ VercelExpress2.676s (+2.1%)3.896s (+1.6%)0.000s (-92.6% 🟢)4.401s (+1.9%)1.726s141.03x

🔍 Observability: Nitro | Express

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.686s (-5.2% 🟢)2.135s (~)0.000s (NaN%)2.148s (~)0.462s291.00x
🐘 PostgresNitro1.835s (+4.1%)2.140s (+1.9%)0.000s (+3.6%)2.153s (+1.9%)0.318s281.09x
💻 LocalNitro3.334s (-4.8%)4.032s (-1.7%)0.001s (-28.6% 🟢)4.034s (-1.7%)0.701s151.98x
💻 LocalExpress3.518s (+7.4% 🔺)4.031s (+3.2%)0.001s (+6.7% 🔺)4.034s (+3.2%)0.517s152.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.368s (-20.4% 🟢)4.631s (-18.1% 🟢)0.001s (+400.0% 🔺)5.090s (-19.3% 🟢)1.722s121.00x
▲ VercelNitro3.624s (-6.9% 🟢)4.670s (-14.1% 🟢)0.000s (-43.6% 🟢)5.037s (-15.4% 🟢)1.413s131.08x

🔍 Observability: Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro16/21
🐘 PostgresExpress20/21
▲ VercelExpress14/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Nitro🐘 Postgres14/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

github-actionsBot commented Apr 11, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production923067990
✅ 💻 Local Development89801821080
✅ 📦 Local Production89801821080
✅ 🐘 Local Postgres89801821080
✅ 🪟 Windows820890
❌ 🌍 Community Worlds1337424231
✅ 📋 Other228042270
Total4060746874821

❌ Failed Tests

🌍 Community Worlds (74 failed)

mongodb (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

redis (7 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • 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_01KP092DM8C3FNQBSV88QZRQ0E

turso (60 failed):

  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • addTenWorkflow | wrun_01KP08K89WH2XFQV0GKKKM8VWG
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KP08M947N7NHT8XAP2M8WH0C
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KP08KGJ4MVAHGHX26WJD9HPR
  • promiseRaceWorkflow | wrun_01KP08KKJ5A5DCRZP9RNEP5TP7
  • promiseAnyWorkflow | wrun_01KP08KNN1X2MGFK4E2XV42P2T
  • importedStepOnlyWorkflow | wrun_01KP08MP200S7JQYP36AR64Y69
  • hookWorkflow | wrun_01KP08M1R3VM4EAK9FYM7BC6R0
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KP08MBYPMJCGRWCYVER4FAVX
  • webhookWorkflow | wrun_01KP08MMB6M936SS5RA551Y9XW
  • sleepingWorkflow | wrun_01KP08MZP1NHBBWDPF9STHFP4D
  • parallelSleepWorkflow | wrun_01KP08NBT8C6SN2WT9TCAB4STT
  • nullByteWorkflow | wrun_01KP08NF1W0V3Y8B3FGBFGYYET
  • workflowAndStepMetadataWorkflow | wrun_01KP08NH29AQGBRDDE85GR1T5P
  • fetchWorkflow | wrun_01KP08RBQP897VA991SCXS51EG
  • promiseRaceStressTestWorkflow | wrun_01KP08REPZC1EXR4N1GCV9Q4N5
  • 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_01KP08VN2R5T8XYNR2XTMKJWS9
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KP08W7Q99H0EMTFAAB1HVR33
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KP08WV98ADJMZJE052MQ7A9M
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KP08XE1CZ1VG9QR9Q2PPAP83
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KP08XNJAVJSP7EC530N3RRHP
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KP08XVAP9H177REYCMJTC5NN
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KP08XX6K2KBVAT2XEW68Y006
  • runClassSerializationWorkflow - Run instances serialize across workflow/step boundaries | wrun_01KP08Y74SMBSRHCRYHWN2XJ6B
  • 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_01KP08YNMAS8X6HKY2XFPA7QCS
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KP08YVT5SY60NMQJWFR0YM40
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KP08Z15P2854R6286NCTB6Q7
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KP08Z6X5H2XQ1ZDDY5P4WYS2
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KP08ZCVMAZAGV8T6HCVZTKZ8
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KP08ZJQ8BNPY9ZHJGM525EH2
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KP08ZRS4TV4K5JMDW7AQHZE9
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KP0902X3M7959K1W4KM5Y2PY
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KP090AXT2B1A5QNY90D9E2ZT
  • cancelRun - cancelling a running workflow | wrun_01KP090HWS7FPQZ22PYS56ZTKR
  • cancelRun via CLI - cancelling a running workflow | wrun_01KP090TJH6GKCDAN8B8NDJ29Z
  • 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_01KP0915KSGFT4QXT7NV1V2SPW
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KP091S4G073MNKAEAS11P8M8
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KP0923VWJJGE088WD6FR0H4B
  • importMetaUrlWorkflow - import.meta.url is available in step bundles | wrun_01KP0929WZ9A68FRY20HJX6RWQ
  • metadataFromHelperWorkflow - getWorkflowMetadata/getStepMetadata work from module-level helper (#1577) | wrun_01KP092BTECQHPHSWZ17GJ9RNR
  • resilient start: addTenWorkflow completes when run_created returns 500 | wrun_01KP092DM8C3FNQBSV88QZRQ0E
  • getterStepWorkflow - getter functions with "use step" directive | wrun_01KP092HNX734GK5K7KH03DH16

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro8307
✅ example8307
✅ express8307
✅ fastify8307
✅ hono8307
✅ nextjs-turbopack8802
✅ nextjs-webpack8802
✅ nitro8307
✅ nuxt8307
✅ sveltekit8307
✅ vite8307
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable76014
✅ express-stable76014
✅ fastify-stable76014
✅ hono-stable76014
✅ nextjs-turbopack-canary63027
✅ nextjs-turbopack-stable8208
✅ nextjs-webpack-canary63027
✅ nextjs-webpack-stable8208
✅ nitro-stable76014
✅ nuxt-stable76014
✅ sveltekit-stable76014
✅ vite-stable76014
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack8208
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev600
❌ mongodb5678
✅ redis-dev600
❌ redis5678
✅ turso-dev600
❌ turso3608
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable76014
✅ e2e-local-postgres-nest-stable76014
✅ e2e-local-prod-nest-stable76014

📋 View full workflow run

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

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 fixes @workflow/next failing to detect the installed Next.js version in monorepos (notably npm workspaces) where next is not hoisted alongside @workflow/next, by resolving next/package.json relative to the consuming project’s working directory first.

Changes:

  • Update resolveNextVersion() to resolve next/package.json from workingDir first, then fall back to package-relative resolution.
  • Add a clearer hard failure when neither resolution path can determine a Next.js version.
  • Add a changeset to ship the fix as a patch release for @workflow/next.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

FileDescription
packages/next/src/index.tsChanges Next.js version resolution order to prefer consuming-project resolution and adds a final error if resolution fails.
.changeset/fix-next-version-resolution.mdAdds a patch changeset entry documenting the fix.
Comments suppressed due to low confidence (1)

packages/next/src/index.ts:16

  • This change fixes a specific resolution-order bug (workingDir-first, then package-relative), but there is no unit test covering the new behavior or the failure mode when both resolutions fail. Add tests that simulate a monorepo layout (or mock require.resolve/require) to assert the preferred resolution path is attempted first and that the thrown error is clear.
function resolveNextVersion(workingDir: string): string {
// Try resolving from the consuming project's working directory first.
// This handles monorepo setups where `next` may not be hoisted to the
// same location as `@workflow/next`.
try {
const packageJsonPath = require.resolve('next/package.json', {
paths: [workingDir],
});

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

Comment threadpackages/next/src/index.ts
Comment threadpackages/next/src/index.ts Outdated
…message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
@TooTallNate
TooTallNate enabled auto-merge (squash) April 12, 2026 07:11
@TooTallNate
TooTallNate merged commit fe13110 into mainApr 13, 2026
165 of 168 checks passed
@TooTallNate
TooTallNate deleted the fix/next-version-resolution-monorepo branch April 13, 2026 17:35
@ghostghost mentioned this pull request Apr 13, 2026
ijjk pushed a commit that referenced this pull request Apr 15, 2026
)
* fix(next): resolve next/package.json from working directory first
In npm workspaces monorepos, `@workflow/next` can be hoisted to the root
`node_modules/` while `next` stays in a workspace's local `node_modules/`.
The eager `require('next/package.json')` on the fallback path resolved
relative to `@workflow/next`'s own location, failing before the correct
working-directory-relative resolution could run.
Restructure `resolveNextVersion()` to try the working directory path first,
fall back to the package-relative path second, and wrap both in separate
try/catch blocks so neither can crash the process.
Closes#1680
* fix(next): capture resolution errors and include workingDir in error message
Address review feedback: capture caught errors from both resolution
attempts and attach them via `cause` on the final thrown error. Include
the working directory in the error message to aid debugging in monorepo
and CI environments.
Sign up for freeto 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/next fails to resolve next/package.json in npm workspaces monorepo

3 participants

@TooTallNate@ijjk