Skip to content

Attributes MVP (experimental and write-only) and CI hardening - #2134

Merged
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap
May 28, 2026
Merged

Attributes MVP (experimental and write-only) and CI hardening#2134
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 28, 2026

Copy link
Copy Markdown
Member

Includes all of #2088

and additionally fixes nextjs-webpack errors surfaced by doing:

  • replace workflow error remapping's inline sourcemap regex with string scanning
  • add regression coverage so large inline sourcemap bundles do not invoke the regex path
  • add a core changeset

@changeset-bot

changeset-botBot commented May 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 606af96

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

This PR includes changesets to release 20 packages
NameType
@workflow/corePatch
@workflow/worldPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@vercel

vercelBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 28, 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 (-4.3%)1.005s (~)0.963s101.00x
💻 LocalNitro0.044s (+1.6%)1.005s (~)0.961s101.03x
🐘 PostgresExpress0.060s (+3.3%)1.013s (~)0.953s101.41x
🐘 PostgresNitro0.062s (-34.5% 🟢)1.012s (-3.0%)0.950s101.47x
💻 LocalNext.js (Turbopack)0.065s1.006s0.941s101.52x
🐘 PostgresNext.js (Turbopack)0.068s1.012s0.944s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.3%)2.006s (~)0.917s101.00x
💻 LocalNitro1.100s (-2.7%)2.006s (~)0.906s101.01x
🐘 PostgresExpress1.109s (-3.3%)2.010s (~)0.901s101.02x
🐘 PostgresNitro1.111s (-2.5%)2.010s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.126s2.006s0.880s101.03x
🐘 PostgresNext.js (Turbopack)1.140s2.008s0.868s101.05x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.495s (-3.9%)11.021s (~)0.526s31.00x
🐘 PostgresNitro10.537s (-3.1%)11.019s (~)0.482s31.00x
💻 LocalNitro10.544s (-3.7%)11.024s (~)0.480s31.00x
🐘 PostgresExpress10.560s (-3.7%)11.013s (~)0.454s31.01x
💻 LocalNext.js (Turbopack)10.778s11.023s0.245s31.03x
🐘 PostgresNext.js (Turbopack)10.782s11.018s0.236s31.03x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.682s (-8.6% 🟢)14.026s (-6.7% 🟢)0.345s51.00x
🐘 PostgresNitro13.734s (-5.9% 🟢)14.019s (-6.7% 🟢)0.285s51.00x
🐘 PostgresExpress13.847s (-5.0% 🟢)14.021s (-6.7% 🟢)0.174s51.01x
💻 LocalNitro13.866s (-7.9% 🟢)14.026s (-12.5% 🟢)0.160s51.01x
💻 LocalNext.js (Turbopack)14.329s15.030s0.701s41.05x
🐘 PostgresNext.js (Turbopack)14.399s15.014s0.616s41.05x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express12.360s (-25.5% 🟢)13.024s (-23.5% 🟢)0.664s71.00x
💻 LocalNitro12.512s (-25.4% 🟢)13.026s (-23.5% 🟢)0.514s71.01x
🐘 PostgresNitro12.552s (-10.1% 🟢)13.020s (-9.0% 🟢)0.468s71.02x
🐘 PostgresExpress12.820s (-8.5% 🟢)13.164s (-9.8% 🟢)0.344s71.04x
💻 LocalNext.js (Turbopack)13.578s14.025s0.447s71.10x
🐘 PostgresNext.js (Turbopack)13.607s14.018s0.411s71.10x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.185s (-7.1% 🟢)2.008s (~)0.823s151.00x
💻 LocalExpress1.186s (-20.4% 🟢)2.005s (~)0.820s151.00x
🐘 PostgresExpress1.192s (-5.4% 🟢)2.008s (~)0.816s151.01x
💻 LocalNitro1.214s (-25.6% 🟢)2.006s (-3.3%)0.792s151.03x
🐘 PostgresNext.js (Turbopack)1.222s2.007s0.784s151.03x
💻 LocalNext.js (Turbopack)1.332s2.005s0.673s151.12x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.008s (-33.3% 🟢)0.761s151.00x
🐘 PostgresExpress1.264s (-46.5% 🟢)2.009s (-33.2% 🟢)0.745s151.01x
🐘 PostgresNext.js (Turbopack)1.381s2.007s0.626s151.11x
💻 LocalNitro1.651s (-47.5% 🟢)2.006s (-48.4% 🟢)0.354s151.32x
💻 LocalExpress1.722s (-41.7% 🟢)2.005s (-41.9% 🟢)0.283s151.38x
💻 LocalNext.js (Turbopack)1.863s2.006s0.143s151.49x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.373s (-60.5% 🟢)2.008s (-49.9% 🟢)0.634s151.00x
🐘 PostgresExpress1.407s (-59.6% 🟢)2.008s (-49.9% 🟢)0.600s151.02x
🐘 PostgresNext.js (Turbopack)1.734s2.223s0.489s141.26x
💻 LocalExpress4.768s (-42.8% 🟢)5.346s (-40.8% 🟢)0.579s63.47x
💻 LocalNitro4.806s (-42.4% 🟢)5.345s (-40.7% 🟢)0.539s63.50x
💻 LocalNext.js (Turbopack)5.709s6.214s0.505s54.16x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.182s (-6.0% 🟢)2.008s (~)0.826s151.00x
🐘 PostgresExpress1.187s (-5.6% 🟢)2.009s (~)0.822s151.00x
🐘 PostgresNext.js (Turbopack)1.225s2.009s0.784s151.04x
💻 LocalNext.js (Turbopack)1.383s2.006s0.623s151.17x
💻 LocalExpress1.529s (-19.3% 🟢)2.007s (-15.1% 🟢)0.478s151.29x
💻 LocalNitro1.976s (+5.9% 🔺)2.391s (+2.2%)0.416s131.67x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-47.3% 🟢)2.008s (-33.3% 🟢)0.774s151.00x
🐘 PostgresExpress1.266s (-45.9% 🟢)2.008s (-33.3% 🟢)0.742s151.03x
🐘 PostgresNext.js (Turbopack)1.363s2.006s0.644s151.10x
💻 LocalNitro1.729s (-43.6% 🟢)2.008s (-48.3% 🟢)0.280s151.40x
💻 LocalExpress1.962s (-37.4% 🟢)2.316s (-38.4% 🟢)0.354s131.59x
💻 LocalNext.js (Turbopack)2.054s2.507s0.453s121.66x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.367s (-60.7% 🟢)2.008s (-49.9% 🟢)0.641s151.00x
🐘 PostgresExpress1.398s (-60.0% 🟢)2.008s (-49.9% 🟢)0.610s151.02x
🐘 PostgresNext.js (Turbopack)1.685s2.145s0.460s151.23x
💻 LocalNitro4.761s (-47.9% 🟢)5.346s (-46.7% 🟢)0.585s63.48x
💻 LocalNext.js (Turbopack)5.478s6.215s0.737s54.01x
💻 LocalExpress5.671s (-35.6% 🟢)6.414s (-30.8% 🟢)0.743s54.15x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
🐘 PostgresExpress0.579s (-31.0% 🟢)1.007s (-1.6%)0.428s601.07x
💻 LocalExpress0.597s (-39.4% 🟢)1.005s (-6.6% 🟢)0.408s601.10x
💻 LocalNitro0.643s (-34.4% 🟢)1.039s (-5.0% 🟢)0.396s581.18x
🐘 PostgresNext.js (Turbopack)0.805s1.024s0.219s591.48x
💻 LocalNext.js (Turbopack)0.933s1.095s0.163s551.72x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.364s (-29.2% 🟢)2.031s (-3.3%)0.667s451.00x
🐘 PostgresExpress1.391s (-29.6% 🟢)2.030s (-10.1% 🟢)0.640s451.02x
💻 LocalNitro1.522s (-49.9% 🟢)2.006s (-46.6% 🟢)0.484s451.12x
💻 LocalExpress1.634s (-45.8% 🟢)2.122s (-40.8% 🟢)0.489s431.20x
🐘 PostgresNext.js (Turbopack)1.891s2.029s0.138s451.39x
💻 LocalNext.js (Turbopack)2.053s2.734s0.681s331.50x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.704s (-34.1% 🟢)3.085s (-33.0% 🟢)0.381s391.00x
🐘 PostgresExpress2.727s (-31.7% 🟢)3.137s (-28.2% 🟢)0.410s391.01x
💻 LocalExpress3.175s (-65.5% 🟢)4.009s (-60.0% 🟢)0.834s301.17x
💻 LocalNitro3.252s (-65.0% 🟢)4.009s (-60.0% 🟢)0.757s301.20x
🐘 PostgresNext.js (Turbopack)3.743s4.042s0.299s301.38x
💻 LocalNext.js (Turbopack)4.274s5.010s0.736s241.58x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.218s (-23.0% 🟢)1.006s (~)0.788s601.00x
🐘 PostgresExpress0.226s (-19.8% 🟢)1.006s (~)0.780s601.04x
🐘 PostgresNext.js (Turbopack)0.277s1.006s0.729s601.27x
💻 LocalExpress0.401s (-28.4% 🟢)1.004s (~)0.603s601.84x
💻 LocalNitro0.445s (-26.3% 🟢)1.004s (-1.7%)0.559s602.04x
💻 LocalNext.js (Turbopack)0.596s1.039s0.443s582.73x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.351s (-29.3% 🟢)1.006s (~)0.655s901.00x
🐘 PostgresExpress0.353s (-30.8% 🟢)1.006s (~)0.653s901.01x
🐘 PostgresNext.js (Turbopack)0.473s1.006s0.533s901.35x
💻 LocalExpress2.037s (-19.0% 🟢)2.580s (-14.3% 🟢)0.543s355.80x
💻 LocalNitro2.130s (-16.1% 🟢)2.766s (-8.1% 🟢)0.636s336.07x
💻 LocalNext.js (Turbopack)2.296s3.077s0.781s306.54x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.678s (-14.2% 🟢)1.006s (~)0.329s1201.00x
🐘 PostgresExpress0.715s (-12.6% 🟢)1.006s (-1.1%)0.291s1201.06x
🐘 PostgresNext.js (Turbopack)0.964s1.508s0.543s801.42x
💻 LocalNitro9.308s (-16.8% 🟢)9.872s (-15.4% 🟢)0.564s1313.73x
💻 LocalExpress9.466s (-15.4% 🟢)10.111s (-15.3% 🟢)0.646s1213.96x
💻 LocalNext.js (Turbopack)10.478s11.299s0.821s1115.46x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.159s (+482.0% 🔺)2.005s (+99.6% 🔺)0.012s (-1.7%)2.019s (+98.3% 🔺)0.860s101.00x
💻 LocalNitro1.159s (+442.5% 🔺)2.006s (+99.7% 🔺)0.013s (+7.2% 🔺)2.022s (+98.4% 🔺)0.862s101.00x
🐘 PostgresNitro1.160s (+465.9% 🔺)1.998s (+99.9% 🔺)0.001s (-33.3% 🟢)2.009s (+98.7% 🔺)0.849s101.00x
🐘 PostgresExpress1.176s (+473.5% 🔺)1.997s (+100.0% 🔺)0.001s (-18.8% 🟢)2.010s (+98.8% 🔺)0.834s101.02x
💻 LocalNext.js (Turbopack)1.208s2.004s0.013s2.020s0.812s101.04x
🐘 PostgresNext.js (Turbopack)1.230s2.001s0.001s2.009s0.779s101.06x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.581s (+108.8% 🔺)2.012s (+95.5% 🔺)0.009s (-9.4% 🟢)2.022s (+94.5% 🔺)0.441s301.00x
🐘 PostgresNitro1.583s (+153.6% 🔺)2.002s (+98.9% 🔺)0.004s (-6.5% 🟢)2.026s (+98.1% 🔺)0.443s301.00x
💻 LocalNitro1.597s (+90.4% 🔺)2.011s (+98.8% 🔺)0.010s (+8.5% 🔺)2.024s (+81.3% 🔺)0.427s301.01x
🐘 PostgresExpress1.606s (+154.9% 🔺)2.006s (+99.3% 🔺)0.004s (+1.8%)2.025s (+97.9% 🔺)0.419s301.02x
🐘 PostgresNext.js (Turbopack)1.723s2.010s0.004s2.025s0.301s301.09x
💻 LocalNext.js (Turbopack)1.734s2.044s0.011s2.057s0.323s301.10x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.704s (-27.4% 🟢)1.015s (-18.6% 🟢)0.000s (-100.0% 🟢)1.024s (-18.6% 🟢)0.321s591.00x
🐘 PostgresExpress0.706s (-26.5% 🟢)1.014s (-20.6% 🟢)0.000s (+16.9% 🔺)1.026s (-21.5% 🟢)0.319s591.00x
🐘 PostgresNext.js (Turbopack)0.838s1.052s0.000s1.060s0.221s571.19x
💻 LocalExpress1.413s (+15.4% 🔺)2.015s (~)0.000s (-60.0% 🟢)2.017s (~)0.603s302.01x
💻 LocalNitro1.469s (+20.2% 🔺)2.014s (~)0.000s (+66.7% 🔺)2.016s (~)0.547s302.09x
💻 LocalNext.js (Turbopack)1.492s2.014s0.000s2.017s0.525s302.12x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.285s (-28.3% 🟢)2.067s (-3.5%)0.000s (+93.1% 🔺)2.108s (-3.1%)0.823s291.00x
🐘 PostgresExpress1.374s (-22.5% 🟢)2.068s (-5.0% 🟢)0.000s (+Infinity% 🔺)2.096s (-4.7%)0.722s291.07x
🐘 PostgresNext.js (Turbopack)1.812s2.350s0.000s2.392s0.580s261.41x
💻 LocalExpress3.165s (-8.7% 🟢)3.843s (-4.7%)0.001s (-29.7% 🟢)3.846s (-4.7%)0.681s162.46x
💻 LocalNext.js (Turbopack)3.200s3.778s0.000s3.782s0.581s162.49x
💻 LocalNitro3.307s (-2.4%)3.769s (-6.5% 🟢)0.001s (+75.8% 🔺)3.785s (-6.2% 🟢)0.478s162.57x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@VaguelySerious
VaguelySerious marked this pull request as ready for review May 28, 2026 11:18
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMay 28, 2026 11:18
@VaguelySerious
VaguelySerious enabled auto-merge (squash) May 28, 2026 11:20

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — this is exactly the fix the PR #2088 review flagged

I'd called out the Maximum call stack size exceeded regression on PR #2088 and noted that Peter's earlier attempt (930886fe3 fix(next): replace base64 sourcemap regex with string scan on the attributes-mvp-plan branch) targeted the wrong file — builder-deferred.ts. The actual failing path was workflow-handler error stack remapping in source-map.ts, which uses an independent copy of the same regex. This PR fixes the right file.

Diagnosis confirmed

The original regex:

workflowCode.match(/\/\/#sourceMappingURL=data:application\/json;base64,(.+)/)

The (.+) greedy capture against multi-MB base64 payloads is what triggers V8's irregexp recursion stack overflow. Same root cause as the matchAll regex Peter previously hit in the deferred-entries discoverer.

What I verified locally

  • pnpm turbo run build --filter @workflow/core
  • pnpm --filter @workflow/core test ✓ (1024 pass — 1 new, 1023 existing)
  • pnpm --filter @workflow/core exec vitest run src/source-map.test.ts
  • Manual smoke test of 5 edge cases against the built artifact:
    • Happy path with valid map ✓
    • 1MB padding (would crash the regex) ✓
    • No-map case returns original stack ✓
    • data:application/json;charset=utf-8;base64,… parameter handling ✓
    • Comma-before-;base64, correctly bails ✓

Bonus: the new scanner is strictly more permissive than the old regex

The old regex required the data URL to be exactly data:application/json;base64,… — no parameters allowed ((.+) would never match if e.g. ;charset=utf-8; appeared between json and ;base64,). The new scanner searches for ;base64, after the prefix, so it also handles data:application/json;charset=utf-8;base64,… correctly. So this isn't just a stack-overflow fix — it also extends remapping to data URLs that were silently skipped before.

Test design

The test is good:

constmatch=vi.spyOn(String.prototype,'match');remapErrorStack(...);expect(match.mock.calls.some(([pattern])=>String(pattern).includes('sourceMappingURL'))).toBe(false);

Enforcing the regex is NEVER called on the bundle is the right invariant — it documents that the implementation has moved off the regex path entirely, and would fail if someone accidentally regressed to match. The 1MB padding setup is enough to actually trigger the V8 stack overflow if the regex came back.

Small observation (not a blocker)

The implementation duplicates the same pattern Peter has in packages/next/src/builder-deferred.ts:956 (or had on the attributes-mvp-plan branch). If a third place ever needs to scan inline base64 sourcemaps, worth extracting extractInlineSourceMapBase64() + isBase64Char() to a shared util. Not needed now — two callsites doesn't justify the extraction overhead.

CI

No failures so far on the run (mostly in-progress), and most importantly the local test passes. Once the in-progress nextjs-webpack Local Dev jobs land green, this confirms the fix for the regression I flagged on PR #2088.

Approving.

@pranaygp
pranaygp disabled auto-merge May 28, 2026 17:42
@pranaygp
pranaygp enabled auto-merge (squash) May 28, 2026 17:43
@pranaygp
pranaygp merged commit 1e6b1fd into mainMay 28, 2026
181 of 191 checks passed
@pranaygp
pranaygp deleted the peter/fix-large-inline-sourcemap-remap branch May 28, 2026 18:06
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 1e6b1fd (AI decision).

This commit bundles the Attributes MVP — a new experimental v5-targeted feature with cross-package API additions (new experimental_setAttributes SDK export, new optional experimentalSetAttributes method on the World interface, a new Postgres migration adding an attributes JSONB column, new wire endpoint in world-vercel, schema changes to WorkflowRunBaseSchema, and v5 changelog docs) — alongside a small inline-sourcemap regex hardening fix. The dominant change is a deliberate v5 feature addition (documented under docs/content/docs/v5/changelog/) that should not land on the v4 stable branch. The embedded sourcemap fix could be cherry-picked separately if desired, but backporting this combined commit would inappropriately add the experimental Attributes API to the GA branch.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

1e6b1fdea2010c1f55b3e6fb5386d436c4406eb4

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.

3 participants

@VaguelySerious@TooTallNate@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
 blocks
(function() {
function addCopyButtons() {
document.querySelectorAll('pre code').forEach(function(codeBlock) {
if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
codeBlock.parentElement.setAttribute('data-copy-added', 'true');
var btn = document.createElement('button');
btn.textContent = 'Copy';
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;';
btn.onmouseover = function() { this.style.opacity = '1'; };
btn.onmouseout = function() { this.style.opacity = '0.7'; };
btn.onclick = function() {
navigator.clipboard.writeText(codeBlock.textContent).then(function() {
btn.textContent = 'Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
});
};
codeBlock.parentElement.style.position = 'relative';
codeBlock.parentElement.appendChild(btn);
});
}
addCopyButtons();
// Re-run on dynamic content
var observer = new MutationObserver(addCopyButtons);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
Attributes MVP (experimental and write-only) and CI hardening by VaguelySerious · Pull Request #2134 · vercel/workflow · GitHub
Skip to content

Attributes MVP (experimental and write-only) and CI hardening - #2134

Merged
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap
May 28, 2026
Merged

Attributes MVP (experimental and write-only) and CI hardening#2134
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 28, 2026

Copy link
Copy Markdown
Member

Includes all of #2088

and additionally fixes nextjs-webpack errors surfaced by doing:

  • replace workflow error remapping's inline sourcemap regex with string scanning
  • add regression coverage so large inline sourcemap bundles do not invoke the regex path
  • add a core changeset

@changeset-bot

changeset-botBot commented May 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 606af96

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

This PR includes changesets to release 20 packages
NameType
@workflow/corePatch
@workflow/worldPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@vercel

vercelBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 28, 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 (-4.3%)1.005s (~)0.963s101.00x
💻 LocalNitro0.044s (+1.6%)1.005s (~)0.961s101.03x
🐘 PostgresExpress0.060s (+3.3%)1.013s (~)0.953s101.41x
🐘 PostgresNitro0.062s (-34.5% 🟢)1.012s (-3.0%)0.950s101.47x
💻 LocalNext.js (Turbopack)0.065s1.006s0.941s101.52x
🐘 PostgresNext.js (Turbopack)0.068s1.012s0.944s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.3%)2.006s (~)0.917s101.00x
💻 LocalNitro1.100s (-2.7%)2.006s (~)0.906s101.01x
🐘 PostgresExpress1.109s (-3.3%)2.010s (~)0.901s101.02x
🐘 PostgresNitro1.111s (-2.5%)2.010s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.126s2.006s0.880s101.03x
🐘 PostgresNext.js (Turbopack)1.140s2.008s0.868s101.05x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.495s (-3.9%)11.021s (~)0.526s31.00x
🐘 PostgresNitro10.537s (-3.1%)11.019s (~)0.482s31.00x
💻 LocalNitro10.544s (-3.7%)11.024s (~)0.480s31.00x
🐘 PostgresExpress10.560s (-3.7%)11.013s (~)0.454s31.01x
💻 LocalNext.js (Turbopack)10.778s11.023s0.245s31.03x
🐘 PostgresNext.js (Turbopack)10.782s11.018s0.236s31.03x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.682s (-8.6% 🟢)14.026s (-6.7% 🟢)0.345s51.00x
🐘 PostgresNitro13.734s (-5.9% 🟢)14.019s (-6.7% 🟢)0.285s51.00x
🐘 PostgresExpress13.847s (-5.0% 🟢)14.021s (-6.7% 🟢)0.174s51.01x
💻 LocalNitro13.866s (-7.9% 🟢)14.026s (-12.5% 🟢)0.160s51.01x
💻 LocalNext.js (Turbopack)14.329s15.030s0.701s41.05x
🐘 PostgresNext.js (Turbopack)14.399s15.014s0.616s41.05x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express12.360s (-25.5% 🟢)13.024s (-23.5% 🟢)0.664s71.00x
💻 LocalNitro12.512s (-25.4% 🟢)13.026s (-23.5% 🟢)0.514s71.01x
🐘 PostgresNitro12.552s (-10.1% 🟢)13.020s (-9.0% 🟢)0.468s71.02x
🐘 PostgresExpress12.820s (-8.5% 🟢)13.164s (-9.8% 🟢)0.344s71.04x
💻 LocalNext.js (Turbopack)13.578s14.025s0.447s71.10x
🐘 PostgresNext.js (Turbopack)13.607s14.018s0.411s71.10x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.185s (-7.1% 🟢)2.008s (~)0.823s151.00x
💻 LocalExpress1.186s (-20.4% 🟢)2.005s (~)0.820s151.00x
🐘 PostgresExpress1.192s (-5.4% 🟢)2.008s (~)0.816s151.01x
💻 LocalNitro1.214s (-25.6% 🟢)2.006s (-3.3%)0.792s151.03x
🐘 PostgresNext.js (Turbopack)1.222s2.007s0.784s151.03x
💻 LocalNext.js (Turbopack)1.332s2.005s0.673s151.12x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.008s (-33.3% 🟢)0.761s151.00x
🐘 PostgresExpress1.264s (-46.5% 🟢)2.009s (-33.2% 🟢)0.745s151.01x
🐘 PostgresNext.js (Turbopack)1.381s2.007s0.626s151.11x
💻 LocalNitro1.651s (-47.5% 🟢)2.006s (-48.4% 🟢)0.354s151.32x
💻 LocalExpress1.722s (-41.7% 🟢)2.005s (-41.9% 🟢)0.283s151.38x
💻 LocalNext.js (Turbopack)1.863s2.006s0.143s151.49x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.373s (-60.5% 🟢)2.008s (-49.9% 🟢)0.634s151.00x
🐘 PostgresExpress1.407s (-59.6% 🟢)2.008s (-49.9% 🟢)0.600s151.02x
🐘 PostgresNext.js (Turbopack)1.734s2.223s0.489s141.26x
💻 LocalExpress4.768s (-42.8% 🟢)5.346s (-40.8% 🟢)0.579s63.47x
💻 LocalNitro4.806s (-42.4% 🟢)5.345s (-40.7% 🟢)0.539s63.50x
💻 LocalNext.js (Turbopack)5.709s6.214s0.505s54.16x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.182s (-6.0% 🟢)2.008s (~)0.826s151.00x
🐘 PostgresExpress1.187s (-5.6% 🟢)2.009s (~)0.822s151.00x
🐘 PostgresNext.js (Turbopack)1.225s2.009s0.784s151.04x
💻 LocalNext.js (Turbopack)1.383s2.006s0.623s151.17x
💻 LocalExpress1.529s (-19.3% 🟢)2.007s (-15.1% 🟢)0.478s151.29x
💻 LocalNitro1.976s (+5.9% 🔺)2.391s (+2.2%)0.416s131.67x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-47.3% 🟢)2.008s (-33.3% 🟢)0.774s151.00x
🐘 PostgresExpress1.266s (-45.9% 🟢)2.008s (-33.3% 🟢)0.742s151.03x
🐘 PostgresNext.js (Turbopack)1.363s2.006s0.644s151.10x
💻 LocalNitro1.729s (-43.6% 🟢)2.008s (-48.3% 🟢)0.280s151.40x
💻 LocalExpress1.962s (-37.4% 🟢)2.316s (-38.4% 🟢)0.354s131.59x
💻 LocalNext.js (Turbopack)2.054s2.507s0.453s121.66x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.367s (-60.7% 🟢)2.008s (-49.9% 🟢)0.641s151.00x
🐘 PostgresExpress1.398s (-60.0% 🟢)2.008s (-49.9% 🟢)0.610s151.02x
🐘 PostgresNext.js (Turbopack)1.685s2.145s0.460s151.23x
💻 LocalNitro4.761s (-47.9% 🟢)5.346s (-46.7% 🟢)0.585s63.48x
💻 LocalNext.js (Turbopack)5.478s6.215s0.737s54.01x
💻 LocalExpress5.671s (-35.6% 🟢)6.414s (-30.8% 🟢)0.743s54.15x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
🐘 PostgresExpress0.579s (-31.0% 🟢)1.007s (-1.6%)0.428s601.07x
💻 LocalExpress0.597s (-39.4% 🟢)1.005s (-6.6% 🟢)0.408s601.10x
💻 LocalNitro0.643s (-34.4% 🟢)1.039s (-5.0% 🟢)0.396s581.18x
🐘 PostgresNext.js (Turbopack)0.805s1.024s0.219s591.48x
💻 LocalNext.js (Turbopack)0.933s1.095s0.163s551.72x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.364s (-29.2% 🟢)2.031s (-3.3%)0.667s451.00x
🐘 PostgresExpress1.391s (-29.6% 🟢)2.030s (-10.1% 🟢)0.640s451.02x
💻 LocalNitro1.522s (-49.9% 🟢)2.006s (-46.6% 🟢)0.484s451.12x
💻 LocalExpress1.634s (-45.8% 🟢)2.122s (-40.8% 🟢)0.489s431.20x
🐘 PostgresNext.js (Turbopack)1.891s2.029s0.138s451.39x
💻 LocalNext.js (Turbopack)2.053s2.734s0.681s331.50x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.704s (-34.1% 🟢)3.085s (-33.0% 🟢)0.381s391.00x
🐘 PostgresExpress2.727s (-31.7% 🟢)3.137s (-28.2% 🟢)0.410s391.01x
💻 LocalExpress3.175s (-65.5% 🟢)4.009s (-60.0% 🟢)0.834s301.17x
💻 LocalNitro3.252s (-65.0% 🟢)4.009s (-60.0% 🟢)0.757s301.20x
🐘 PostgresNext.js (Turbopack)3.743s4.042s0.299s301.38x
💻 LocalNext.js (Turbopack)4.274s5.010s0.736s241.58x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.218s (-23.0% 🟢)1.006s (~)0.788s601.00x
🐘 PostgresExpress0.226s (-19.8% 🟢)1.006s (~)0.780s601.04x
🐘 PostgresNext.js (Turbopack)0.277s1.006s0.729s601.27x
💻 LocalExpress0.401s (-28.4% 🟢)1.004s (~)0.603s601.84x
💻 LocalNitro0.445s (-26.3% 🟢)1.004s (-1.7%)0.559s602.04x
💻 LocalNext.js (Turbopack)0.596s1.039s0.443s582.73x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.351s (-29.3% 🟢)1.006s (~)0.655s901.00x
🐘 PostgresExpress0.353s (-30.8% 🟢)1.006s (~)0.653s901.01x
🐘 PostgresNext.js (Turbopack)0.473s1.006s0.533s901.35x
💻 LocalExpress2.037s (-19.0% 🟢)2.580s (-14.3% 🟢)0.543s355.80x
💻 LocalNitro2.130s (-16.1% 🟢)2.766s (-8.1% 🟢)0.636s336.07x
💻 LocalNext.js (Turbopack)2.296s3.077s0.781s306.54x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.678s (-14.2% 🟢)1.006s (~)0.329s1201.00x
🐘 PostgresExpress0.715s (-12.6% 🟢)1.006s (-1.1%)0.291s1201.06x
🐘 PostgresNext.js (Turbopack)0.964s1.508s0.543s801.42x
💻 LocalNitro9.308s (-16.8% 🟢)9.872s (-15.4% 🟢)0.564s1313.73x
💻 LocalExpress9.466s (-15.4% 🟢)10.111s (-15.3% 🟢)0.646s1213.96x
💻 LocalNext.js (Turbopack)10.478s11.299s0.821s1115.46x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.159s (+482.0% 🔺)2.005s (+99.6% 🔺)0.012s (-1.7%)2.019s (+98.3% 🔺)0.860s101.00x
💻 LocalNitro1.159s (+442.5% 🔺)2.006s (+99.7% 🔺)0.013s (+7.2% 🔺)2.022s (+98.4% 🔺)0.862s101.00x
🐘 PostgresNitro1.160s (+465.9% 🔺)1.998s (+99.9% 🔺)0.001s (-33.3% 🟢)2.009s (+98.7% 🔺)0.849s101.00x
🐘 PostgresExpress1.176s (+473.5% 🔺)1.997s (+100.0% 🔺)0.001s (-18.8% 🟢)2.010s (+98.8% 🔺)0.834s101.02x
💻 LocalNext.js (Turbopack)1.208s2.004s0.013s2.020s0.812s101.04x
🐘 PostgresNext.js (Turbopack)1.230s2.001s0.001s2.009s0.779s101.06x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.581s (+108.8% 🔺)2.012s (+95.5% 🔺)0.009s (-9.4% 🟢)2.022s (+94.5% 🔺)0.441s301.00x
🐘 PostgresNitro1.583s (+153.6% 🔺)2.002s (+98.9% 🔺)0.004s (-6.5% 🟢)2.026s (+98.1% 🔺)0.443s301.00x
💻 LocalNitro1.597s (+90.4% 🔺)2.011s (+98.8% 🔺)0.010s (+8.5% 🔺)2.024s (+81.3% 🔺)0.427s301.01x
🐘 PostgresExpress1.606s (+154.9% 🔺)2.006s (+99.3% 🔺)0.004s (+1.8%)2.025s (+97.9% 🔺)0.419s301.02x
🐘 PostgresNext.js (Turbopack)1.723s2.010s0.004s2.025s0.301s301.09x
💻 LocalNext.js (Turbopack)1.734s2.044s0.011s2.057s0.323s301.10x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.704s (-27.4% 🟢)1.015s (-18.6% 🟢)0.000s (-100.0% 🟢)1.024s (-18.6% 🟢)0.321s591.00x
🐘 PostgresExpress0.706s (-26.5% 🟢)1.014s (-20.6% 🟢)0.000s (+16.9% 🔺)1.026s (-21.5% 🟢)0.319s591.00x
🐘 PostgresNext.js (Turbopack)0.838s1.052s0.000s1.060s0.221s571.19x
💻 LocalExpress1.413s (+15.4% 🔺)2.015s (~)0.000s (-60.0% 🟢)2.017s (~)0.603s302.01x
💻 LocalNitro1.469s (+20.2% 🔺)2.014s (~)0.000s (+66.7% 🔺)2.016s (~)0.547s302.09x
💻 LocalNext.js (Turbopack)1.492s2.014s0.000s2.017s0.525s302.12x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.285s (-28.3% 🟢)2.067s (-3.5%)0.000s (+93.1% 🔺)2.108s (-3.1%)0.823s291.00x
🐘 PostgresExpress1.374s (-22.5% 🟢)2.068s (-5.0% 🟢)0.000s (+Infinity% 🔺)2.096s (-4.7%)0.722s291.07x
🐘 PostgresNext.js (Turbopack)1.812s2.350s0.000s2.392s0.580s261.41x
💻 LocalExpress3.165s (-8.7% 🟢)3.843s (-4.7%)0.001s (-29.7% 🟢)3.846s (-4.7%)0.681s162.46x
💻 LocalNext.js (Turbopack)3.200s3.778s0.000s3.782s0.581s162.49x
💻 LocalNitro3.307s (-2.4%)3.769s (-6.5% 🟢)0.001s (+75.8% 🔺)3.785s (-6.2% 🟢)0.478s162.57x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@VaguelySerious
VaguelySerious marked this pull request as ready for review May 28, 2026 11:18
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMay 28, 2026 11:18
@VaguelySerious
VaguelySerious enabled auto-merge (squash) May 28, 2026 11:20

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — this is exactly the fix the PR #2088 review flagged

I'd called out the Maximum call stack size exceeded regression on PR #2088 and noted that Peter's earlier attempt (930886fe3 fix(next): replace base64 sourcemap regex with string scan on the attributes-mvp-plan branch) targeted the wrong file — builder-deferred.ts. The actual failing path was workflow-handler error stack remapping in source-map.ts, which uses an independent copy of the same regex. This PR fixes the right file.

Diagnosis confirmed

The original regex:

workflowCode.match(/\/\/#sourceMappingURL=data:application\/json;base64,(.+)/)

The (.+) greedy capture against multi-MB base64 payloads is what triggers V8's irregexp recursion stack overflow. Same root cause as the matchAll regex Peter previously hit in the deferred-entries discoverer.

What I verified locally

  • pnpm turbo run build --filter @workflow/core
  • pnpm --filter @workflow/core test ✓ (1024 pass — 1 new, 1023 existing)
  • pnpm --filter @workflow/core exec vitest run src/source-map.test.ts
  • Manual smoke test of 5 edge cases against the built artifact:
    • Happy path with valid map ✓
    • 1MB padding (would crash the regex) ✓
    • No-map case returns original stack ✓
    • data:application/json;charset=utf-8;base64,… parameter handling ✓
    • Comma-before-;base64, correctly bails ✓

Bonus: the new scanner is strictly more permissive than the old regex

The old regex required the data URL to be exactly data:application/json;base64,… — no parameters allowed ((.+) would never match if e.g. ;charset=utf-8; appeared between json and ;base64,). The new scanner searches for ;base64, after the prefix, so it also handles data:application/json;charset=utf-8;base64,… correctly. So this isn't just a stack-overflow fix — it also extends remapping to data URLs that were silently skipped before.

Test design

The test is good:

constmatch=vi.spyOn(String.prototype,'match');remapErrorStack(...);expect(match.mock.calls.some(([pattern])=>String(pattern).includes('sourceMappingURL'))).toBe(false);

Enforcing the regex is NEVER called on the bundle is the right invariant — it documents that the implementation has moved off the regex path entirely, and would fail if someone accidentally regressed to match. The 1MB padding setup is enough to actually trigger the V8 stack overflow if the regex came back.

Small observation (not a blocker)

The implementation duplicates the same pattern Peter has in packages/next/src/builder-deferred.ts:956 (or had on the attributes-mvp-plan branch). If a third place ever needs to scan inline base64 sourcemaps, worth extracting extractInlineSourceMapBase64() + isBase64Char() to a shared util. Not needed now — two callsites doesn't justify the extraction overhead.

CI

No failures so far on the run (mostly in-progress), and most importantly the local test passes. Once the in-progress nextjs-webpack Local Dev jobs land green, this confirms the fix for the regression I flagged on PR #2088.

Approving.

@pranaygp
pranaygp disabled auto-merge May 28, 2026 17:42
@pranaygp
pranaygp enabled auto-merge (squash) May 28, 2026 17:43
@pranaygp
pranaygp merged commit 1e6b1fd into mainMay 28, 2026
181 of 191 checks passed
@pranaygp
pranaygp deleted the peter/fix-large-inline-sourcemap-remap branch May 28, 2026 18:06
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 1e6b1fd (AI decision).

This commit bundles the Attributes MVP — a new experimental v5-targeted feature with cross-package API additions (new experimental_setAttributes SDK export, new optional experimentalSetAttributes method on the World interface, a new Postgres migration adding an attributes JSONB column, new wire endpoint in world-vercel, schema changes to WorkflowRunBaseSchema, and v5 changelog docs) — alongside a small inline-sourcemap regex hardening fix. The dominant change is a deliberate v5 feature addition (documented under docs/content/docs/v5/changelog/) that should not land on the v4 stable branch. The embedded sourcemap fix could be cherry-picked separately if desired, but backporting this combined commit would inappropriately add the experimental Attributes API to the GA branch.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

1e6b1fdea2010c1f55b3e6fb5386d436c4406eb4

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.

3 participants

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

Attributes MVP (experimental and write-only) and CI hardening - #2134

Merged
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap
May 28, 2026
Merged

Attributes MVP (experimental and write-only) and CI hardening#2134
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 28, 2026

Copy link
Copy Markdown
Member

Includes all of #2088

and additionally fixes nextjs-webpack errors surfaced by doing:

  • replace workflow error remapping's inline sourcemap regex with string scanning
  • add regression coverage so large inline sourcemap bundles do not invoke the regex path
  • add a core changeset

@changeset-bot

changeset-botBot commented May 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 606af96

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

This PR includes changesets to release 20 packages
NameType
@workflow/corePatch
@workflow/worldPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@vercel

vercelBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 28, 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 (-4.3%)1.005s (~)0.963s101.00x
💻 LocalNitro0.044s (+1.6%)1.005s (~)0.961s101.03x
🐘 PostgresExpress0.060s (+3.3%)1.013s (~)0.953s101.41x
🐘 PostgresNitro0.062s (-34.5% 🟢)1.012s (-3.0%)0.950s101.47x
💻 LocalNext.js (Turbopack)0.065s1.006s0.941s101.52x
🐘 PostgresNext.js (Turbopack)0.068s1.012s0.944s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.3%)2.006s (~)0.917s101.00x
💻 LocalNitro1.100s (-2.7%)2.006s (~)0.906s101.01x
🐘 PostgresExpress1.109s (-3.3%)2.010s (~)0.901s101.02x
🐘 PostgresNitro1.111s (-2.5%)2.010s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.126s2.006s0.880s101.03x
🐘 PostgresNext.js (Turbopack)1.140s2.008s0.868s101.05x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.495s (-3.9%)11.021s (~)0.526s31.00x
🐘 PostgresNitro10.537s (-3.1%)11.019s (~)0.482s31.00x
💻 LocalNitro10.544s (-3.7%)11.024s (~)0.480s31.00x
🐘 PostgresExpress10.560s (-3.7%)11.013s (~)0.454s31.01x
💻 LocalNext.js (Turbopack)10.778s11.023s0.245s31.03x
🐘 PostgresNext.js (Turbopack)10.782s11.018s0.236s31.03x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.682s (-8.6% 🟢)14.026s (-6.7% 🟢)0.345s51.00x
🐘 PostgresNitro13.734s (-5.9% 🟢)14.019s (-6.7% 🟢)0.285s51.00x
🐘 PostgresExpress13.847s (-5.0% 🟢)14.021s (-6.7% 🟢)0.174s51.01x
💻 LocalNitro13.866s (-7.9% 🟢)14.026s (-12.5% 🟢)0.160s51.01x
💻 LocalNext.js (Turbopack)14.329s15.030s0.701s41.05x
🐘 PostgresNext.js (Turbopack)14.399s15.014s0.616s41.05x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express12.360s (-25.5% 🟢)13.024s (-23.5% 🟢)0.664s71.00x
💻 LocalNitro12.512s (-25.4% 🟢)13.026s (-23.5% 🟢)0.514s71.01x
🐘 PostgresNitro12.552s (-10.1% 🟢)13.020s (-9.0% 🟢)0.468s71.02x
🐘 PostgresExpress12.820s (-8.5% 🟢)13.164s (-9.8% 🟢)0.344s71.04x
💻 LocalNext.js (Turbopack)13.578s14.025s0.447s71.10x
🐘 PostgresNext.js (Turbopack)13.607s14.018s0.411s71.10x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.185s (-7.1% 🟢)2.008s (~)0.823s151.00x
💻 LocalExpress1.186s (-20.4% 🟢)2.005s (~)0.820s151.00x
🐘 PostgresExpress1.192s (-5.4% 🟢)2.008s (~)0.816s151.01x
💻 LocalNitro1.214s (-25.6% 🟢)2.006s (-3.3%)0.792s151.03x
🐘 PostgresNext.js (Turbopack)1.222s2.007s0.784s151.03x
💻 LocalNext.js (Turbopack)1.332s2.005s0.673s151.12x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.008s (-33.3% 🟢)0.761s151.00x
🐘 PostgresExpress1.264s (-46.5% 🟢)2.009s (-33.2% 🟢)0.745s151.01x
🐘 PostgresNext.js (Turbopack)1.381s2.007s0.626s151.11x
💻 LocalNitro1.651s (-47.5% 🟢)2.006s (-48.4% 🟢)0.354s151.32x
💻 LocalExpress1.722s (-41.7% 🟢)2.005s (-41.9% 🟢)0.283s151.38x
💻 LocalNext.js (Turbopack)1.863s2.006s0.143s151.49x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.373s (-60.5% 🟢)2.008s (-49.9% 🟢)0.634s151.00x
🐘 PostgresExpress1.407s (-59.6% 🟢)2.008s (-49.9% 🟢)0.600s151.02x
🐘 PostgresNext.js (Turbopack)1.734s2.223s0.489s141.26x
💻 LocalExpress4.768s (-42.8% 🟢)5.346s (-40.8% 🟢)0.579s63.47x
💻 LocalNitro4.806s (-42.4% 🟢)5.345s (-40.7% 🟢)0.539s63.50x
💻 LocalNext.js (Turbopack)5.709s6.214s0.505s54.16x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.182s (-6.0% 🟢)2.008s (~)0.826s151.00x
🐘 PostgresExpress1.187s (-5.6% 🟢)2.009s (~)0.822s151.00x
🐘 PostgresNext.js (Turbopack)1.225s2.009s0.784s151.04x
💻 LocalNext.js (Turbopack)1.383s2.006s0.623s151.17x
💻 LocalExpress1.529s (-19.3% 🟢)2.007s (-15.1% 🟢)0.478s151.29x
💻 LocalNitro1.976s (+5.9% 🔺)2.391s (+2.2%)0.416s131.67x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-47.3% 🟢)2.008s (-33.3% 🟢)0.774s151.00x
🐘 PostgresExpress1.266s (-45.9% 🟢)2.008s (-33.3% 🟢)0.742s151.03x
🐘 PostgresNext.js (Turbopack)1.363s2.006s0.644s151.10x
💻 LocalNitro1.729s (-43.6% 🟢)2.008s (-48.3% 🟢)0.280s151.40x
💻 LocalExpress1.962s (-37.4% 🟢)2.316s (-38.4% 🟢)0.354s131.59x
💻 LocalNext.js (Turbopack)2.054s2.507s0.453s121.66x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.367s (-60.7% 🟢)2.008s (-49.9% 🟢)0.641s151.00x
🐘 PostgresExpress1.398s (-60.0% 🟢)2.008s (-49.9% 🟢)0.610s151.02x
🐘 PostgresNext.js (Turbopack)1.685s2.145s0.460s151.23x
💻 LocalNitro4.761s (-47.9% 🟢)5.346s (-46.7% 🟢)0.585s63.48x
💻 LocalNext.js (Turbopack)5.478s6.215s0.737s54.01x
💻 LocalExpress5.671s (-35.6% 🟢)6.414s (-30.8% 🟢)0.743s54.15x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
🐘 PostgresExpress0.579s (-31.0% 🟢)1.007s (-1.6%)0.428s601.07x
💻 LocalExpress0.597s (-39.4% 🟢)1.005s (-6.6% 🟢)0.408s601.10x
💻 LocalNitro0.643s (-34.4% 🟢)1.039s (-5.0% 🟢)0.396s581.18x
🐘 PostgresNext.js (Turbopack)0.805s1.024s0.219s591.48x
💻 LocalNext.js (Turbopack)0.933s1.095s0.163s551.72x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.364s (-29.2% 🟢)2.031s (-3.3%)0.667s451.00x
🐘 PostgresExpress1.391s (-29.6% 🟢)2.030s (-10.1% 🟢)0.640s451.02x
💻 LocalNitro1.522s (-49.9% 🟢)2.006s (-46.6% 🟢)0.484s451.12x
💻 LocalExpress1.634s (-45.8% 🟢)2.122s (-40.8% 🟢)0.489s431.20x
🐘 PostgresNext.js (Turbopack)1.891s2.029s0.138s451.39x
💻 LocalNext.js (Turbopack)2.053s2.734s0.681s331.50x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.704s (-34.1% 🟢)3.085s (-33.0% 🟢)0.381s391.00x
🐘 PostgresExpress2.727s (-31.7% 🟢)3.137s (-28.2% 🟢)0.410s391.01x
💻 LocalExpress3.175s (-65.5% 🟢)4.009s (-60.0% 🟢)0.834s301.17x
💻 LocalNitro3.252s (-65.0% 🟢)4.009s (-60.0% 🟢)0.757s301.20x
🐘 PostgresNext.js (Turbopack)3.743s4.042s0.299s301.38x
💻 LocalNext.js (Turbopack)4.274s5.010s0.736s241.58x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.218s (-23.0% 🟢)1.006s (~)0.788s601.00x
🐘 PostgresExpress0.226s (-19.8% 🟢)1.006s (~)0.780s601.04x
🐘 PostgresNext.js (Turbopack)0.277s1.006s0.729s601.27x
💻 LocalExpress0.401s (-28.4% 🟢)1.004s (~)0.603s601.84x
💻 LocalNitro0.445s (-26.3% 🟢)1.004s (-1.7%)0.559s602.04x
💻 LocalNext.js (Turbopack)0.596s1.039s0.443s582.73x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.351s (-29.3% 🟢)1.006s (~)0.655s901.00x
🐘 PostgresExpress0.353s (-30.8% 🟢)1.006s (~)0.653s901.01x
🐘 PostgresNext.js (Turbopack)0.473s1.006s0.533s901.35x
💻 LocalExpress2.037s (-19.0% 🟢)2.580s (-14.3% 🟢)0.543s355.80x
💻 LocalNitro2.130s (-16.1% 🟢)2.766s (-8.1% 🟢)0.636s336.07x
💻 LocalNext.js (Turbopack)2.296s3.077s0.781s306.54x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.678s (-14.2% 🟢)1.006s (~)0.329s1201.00x
🐘 PostgresExpress0.715s (-12.6% 🟢)1.006s (-1.1%)0.291s1201.06x
🐘 PostgresNext.js (Turbopack)0.964s1.508s0.543s801.42x
💻 LocalNitro9.308s (-16.8% 🟢)9.872s (-15.4% 🟢)0.564s1313.73x
💻 LocalExpress9.466s (-15.4% 🟢)10.111s (-15.3% 🟢)0.646s1213.96x
💻 LocalNext.js (Turbopack)10.478s11.299s0.821s1115.46x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.159s (+482.0% 🔺)2.005s (+99.6% 🔺)0.012s (-1.7%)2.019s (+98.3% 🔺)0.860s101.00x
💻 LocalNitro1.159s (+442.5% 🔺)2.006s (+99.7% 🔺)0.013s (+7.2% 🔺)2.022s (+98.4% 🔺)0.862s101.00x
🐘 PostgresNitro1.160s (+465.9% 🔺)1.998s (+99.9% 🔺)0.001s (-33.3% 🟢)2.009s (+98.7% 🔺)0.849s101.00x
🐘 PostgresExpress1.176s (+473.5% 🔺)1.997s (+100.0% 🔺)0.001s (-18.8% 🟢)2.010s (+98.8% 🔺)0.834s101.02x
💻 LocalNext.js (Turbopack)1.208s2.004s0.013s2.020s0.812s101.04x
🐘 PostgresNext.js (Turbopack)1.230s2.001s0.001s2.009s0.779s101.06x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.581s (+108.8% 🔺)2.012s (+95.5% 🔺)0.009s (-9.4% 🟢)2.022s (+94.5% 🔺)0.441s301.00x
🐘 PostgresNitro1.583s (+153.6% 🔺)2.002s (+98.9% 🔺)0.004s (-6.5% 🟢)2.026s (+98.1% 🔺)0.443s301.00x
💻 LocalNitro1.597s (+90.4% 🔺)2.011s (+98.8% 🔺)0.010s (+8.5% 🔺)2.024s (+81.3% 🔺)0.427s301.01x
🐘 PostgresExpress1.606s (+154.9% 🔺)2.006s (+99.3% 🔺)0.004s (+1.8%)2.025s (+97.9% 🔺)0.419s301.02x
🐘 PostgresNext.js (Turbopack)1.723s2.010s0.004s2.025s0.301s301.09x
💻 LocalNext.js (Turbopack)1.734s2.044s0.011s2.057s0.323s301.10x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.704s (-27.4% 🟢)1.015s (-18.6% 🟢)0.000s (-100.0% 🟢)1.024s (-18.6% 🟢)0.321s591.00x
🐘 PostgresExpress0.706s (-26.5% 🟢)1.014s (-20.6% 🟢)0.000s (+16.9% 🔺)1.026s (-21.5% 🟢)0.319s591.00x
🐘 PostgresNext.js (Turbopack)0.838s1.052s0.000s1.060s0.221s571.19x
💻 LocalExpress1.413s (+15.4% 🔺)2.015s (~)0.000s (-60.0% 🟢)2.017s (~)0.603s302.01x
💻 LocalNitro1.469s (+20.2% 🔺)2.014s (~)0.000s (+66.7% 🔺)2.016s (~)0.547s302.09x
💻 LocalNext.js (Turbopack)1.492s2.014s0.000s2.017s0.525s302.12x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.285s (-28.3% 🟢)2.067s (-3.5%)0.000s (+93.1% 🔺)2.108s (-3.1%)0.823s291.00x
🐘 PostgresExpress1.374s (-22.5% 🟢)2.068s (-5.0% 🟢)0.000s (+Infinity% 🔺)2.096s (-4.7%)0.722s291.07x
🐘 PostgresNext.js (Turbopack)1.812s2.350s0.000s2.392s0.580s261.41x
💻 LocalExpress3.165s (-8.7% 🟢)3.843s (-4.7%)0.001s (-29.7% 🟢)3.846s (-4.7%)0.681s162.46x
💻 LocalNext.js (Turbopack)3.200s3.778s0.000s3.782s0.581s162.49x
💻 LocalNitro3.307s (-2.4%)3.769s (-6.5% 🟢)0.001s (+75.8% 🔺)3.785s (-6.2% 🟢)0.478s162.57x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@VaguelySerious
VaguelySerious marked this pull request as ready for review May 28, 2026 11:18
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMay 28, 2026 11:18
@VaguelySerious
VaguelySerious enabled auto-merge (squash) May 28, 2026 11:20

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — this is exactly the fix the PR #2088 review flagged

I'd called out the Maximum call stack size exceeded regression on PR #2088 and noted that Peter's earlier attempt (930886fe3 fix(next): replace base64 sourcemap regex with string scan on the attributes-mvp-plan branch) targeted the wrong file — builder-deferred.ts. The actual failing path was workflow-handler error stack remapping in source-map.ts, which uses an independent copy of the same regex. This PR fixes the right file.

Diagnosis confirmed

The original regex:

workflowCode.match(/\/\/#sourceMappingURL=data:application\/json;base64,(.+)/)

The (.+) greedy capture against multi-MB base64 payloads is what triggers V8's irregexp recursion stack overflow. Same root cause as the matchAll regex Peter previously hit in the deferred-entries discoverer.

What I verified locally

  • pnpm turbo run build --filter @workflow/core
  • pnpm --filter @workflow/core test ✓ (1024 pass — 1 new, 1023 existing)
  • pnpm --filter @workflow/core exec vitest run src/source-map.test.ts
  • Manual smoke test of 5 edge cases against the built artifact:
    • Happy path with valid map ✓
    • 1MB padding (would crash the regex) ✓
    • No-map case returns original stack ✓
    • data:application/json;charset=utf-8;base64,… parameter handling ✓
    • Comma-before-;base64, correctly bails ✓

Bonus: the new scanner is strictly more permissive than the old regex

The old regex required the data URL to be exactly data:application/json;base64,… — no parameters allowed ((.+) would never match if e.g. ;charset=utf-8; appeared between json and ;base64,). The new scanner searches for ;base64, after the prefix, so it also handles data:application/json;charset=utf-8;base64,… correctly. So this isn't just a stack-overflow fix — it also extends remapping to data URLs that were silently skipped before.

Test design

The test is good:

constmatch=vi.spyOn(String.prototype,'match');remapErrorStack(...);expect(match.mock.calls.some(([pattern])=>String(pattern).includes('sourceMappingURL'))).toBe(false);

Enforcing the regex is NEVER called on the bundle is the right invariant — it documents that the implementation has moved off the regex path entirely, and would fail if someone accidentally regressed to match. The 1MB padding setup is enough to actually trigger the V8 stack overflow if the regex came back.

Small observation (not a blocker)

The implementation duplicates the same pattern Peter has in packages/next/src/builder-deferred.ts:956 (or had on the attributes-mvp-plan branch). If a third place ever needs to scan inline base64 sourcemaps, worth extracting extractInlineSourceMapBase64() + isBase64Char() to a shared util. Not needed now — two callsites doesn't justify the extraction overhead.

CI

No failures so far on the run (mostly in-progress), and most importantly the local test passes. Once the in-progress nextjs-webpack Local Dev jobs land green, this confirms the fix for the regression I flagged on PR #2088.

Approving.

@pranaygp
pranaygp disabled auto-merge May 28, 2026 17:42
@pranaygp
pranaygp enabled auto-merge (squash) May 28, 2026 17:43
@pranaygp
pranaygp merged commit 1e6b1fd into mainMay 28, 2026
181 of 191 checks passed
@pranaygp
pranaygp deleted the peter/fix-large-inline-sourcemap-remap branch May 28, 2026 18:06
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 1e6b1fd (AI decision).

This commit bundles the Attributes MVP — a new experimental v5-targeted feature with cross-package API additions (new experimental_setAttributes SDK export, new optional experimentalSetAttributes method on the World interface, a new Postgres migration adding an attributes JSONB column, new wire endpoint in world-vercel, schema changes to WorkflowRunBaseSchema, and v5 changelog docs) — alongside a small inline-sourcemap regex hardening fix. The dominant change is a deliberate v5 feature addition (documented under docs/content/docs/v5/changelog/) that should not land on the v4 stable branch. The embedded sourcemap fix could be cherry-picked separately if desired, but backporting this combined commit would inappropriately add the experimental Attributes API to the GA branch.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

1e6b1fdea2010c1f55b3e6fb5386d436c4406eb4

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.

3 participants

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

Attributes MVP (experimental and write-only) and CI hardening - #2134

Merged
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap
May 28, 2026
Merged

Attributes MVP (experimental and write-only) and CI hardening#2134
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 28, 2026

Copy link
Copy Markdown
Member

Includes all of #2088

and additionally fixes nextjs-webpack errors surfaced by doing:

  • replace workflow error remapping's inline sourcemap regex with string scanning
  • add regression coverage so large inline sourcemap bundles do not invoke the regex path
  • add a core changeset

@changeset-bot

changeset-botBot commented May 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 606af96

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

This PR includes changesets to release 20 packages
NameType
@workflow/corePatch
@workflow/worldPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@vercel

vercelBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 28, 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 (-4.3%)1.005s (~)0.963s101.00x
💻 LocalNitro0.044s (+1.6%)1.005s (~)0.961s101.03x
🐘 PostgresExpress0.060s (+3.3%)1.013s (~)0.953s101.41x
🐘 PostgresNitro0.062s (-34.5% 🟢)1.012s (-3.0%)0.950s101.47x
💻 LocalNext.js (Turbopack)0.065s1.006s0.941s101.52x
🐘 PostgresNext.js (Turbopack)0.068s1.012s0.944s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.3%)2.006s (~)0.917s101.00x
💻 LocalNitro1.100s (-2.7%)2.006s (~)0.906s101.01x
🐘 PostgresExpress1.109s (-3.3%)2.010s (~)0.901s101.02x
🐘 PostgresNitro1.111s (-2.5%)2.010s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.126s2.006s0.880s101.03x
🐘 PostgresNext.js (Turbopack)1.140s2.008s0.868s101.05x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.495s (-3.9%)11.021s (~)0.526s31.00x
🐘 PostgresNitro10.537s (-3.1%)11.019s (~)0.482s31.00x
💻 LocalNitro10.544s (-3.7%)11.024s (~)0.480s31.00x
🐘 PostgresExpress10.560s (-3.7%)11.013s (~)0.454s31.01x
💻 LocalNext.js (Turbopack)10.778s11.023s0.245s31.03x
🐘 PostgresNext.js (Turbopack)10.782s11.018s0.236s31.03x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.682s (-8.6% 🟢)14.026s (-6.7% 🟢)0.345s51.00x
🐘 PostgresNitro13.734s (-5.9% 🟢)14.019s (-6.7% 🟢)0.285s51.00x
🐘 PostgresExpress13.847s (-5.0% 🟢)14.021s (-6.7% 🟢)0.174s51.01x
💻 LocalNitro13.866s (-7.9% 🟢)14.026s (-12.5% 🟢)0.160s51.01x
💻 LocalNext.js (Turbopack)14.329s15.030s0.701s41.05x
🐘 PostgresNext.js (Turbopack)14.399s15.014s0.616s41.05x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express12.360s (-25.5% 🟢)13.024s (-23.5% 🟢)0.664s71.00x
💻 LocalNitro12.512s (-25.4% 🟢)13.026s (-23.5% 🟢)0.514s71.01x
🐘 PostgresNitro12.552s (-10.1% 🟢)13.020s (-9.0% 🟢)0.468s71.02x
🐘 PostgresExpress12.820s (-8.5% 🟢)13.164s (-9.8% 🟢)0.344s71.04x
💻 LocalNext.js (Turbopack)13.578s14.025s0.447s71.10x
🐘 PostgresNext.js (Turbopack)13.607s14.018s0.411s71.10x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.185s (-7.1% 🟢)2.008s (~)0.823s151.00x
💻 LocalExpress1.186s (-20.4% 🟢)2.005s (~)0.820s151.00x
🐘 PostgresExpress1.192s (-5.4% 🟢)2.008s (~)0.816s151.01x
💻 LocalNitro1.214s (-25.6% 🟢)2.006s (-3.3%)0.792s151.03x
🐘 PostgresNext.js (Turbopack)1.222s2.007s0.784s151.03x
💻 LocalNext.js (Turbopack)1.332s2.005s0.673s151.12x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.008s (-33.3% 🟢)0.761s151.00x
🐘 PostgresExpress1.264s (-46.5% 🟢)2.009s (-33.2% 🟢)0.745s151.01x
🐘 PostgresNext.js (Turbopack)1.381s2.007s0.626s151.11x
💻 LocalNitro1.651s (-47.5% 🟢)2.006s (-48.4% 🟢)0.354s151.32x
💻 LocalExpress1.722s (-41.7% 🟢)2.005s (-41.9% 🟢)0.283s151.38x
💻 LocalNext.js (Turbopack)1.863s2.006s0.143s151.49x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.373s (-60.5% 🟢)2.008s (-49.9% 🟢)0.634s151.00x
🐘 PostgresExpress1.407s (-59.6% 🟢)2.008s (-49.9% 🟢)0.600s151.02x
🐘 PostgresNext.js (Turbopack)1.734s2.223s0.489s141.26x
💻 LocalExpress4.768s (-42.8% 🟢)5.346s (-40.8% 🟢)0.579s63.47x
💻 LocalNitro4.806s (-42.4% 🟢)5.345s (-40.7% 🟢)0.539s63.50x
💻 LocalNext.js (Turbopack)5.709s6.214s0.505s54.16x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.182s (-6.0% 🟢)2.008s (~)0.826s151.00x
🐘 PostgresExpress1.187s (-5.6% 🟢)2.009s (~)0.822s151.00x
🐘 PostgresNext.js (Turbopack)1.225s2.009s0.784s151.04x
💻 LocalNext.js (Turbopack)1.383s2.006s0.623s151.17x
💻 LocalExpress1.529s (-19.3% 🟢)2.007s (-15.1% 🟢)0.478s151.29x
💻 LocalNitro1.976s (+5.9% 🔺)2.391s (+2.2%)0.416s131.67x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-47.3% 🟢)2.008s (-33.3% 🟢)0.774s151.00x
🐘 PostgresExpress1.266s (-45.9% 🟢)2.008s (-33.3% 🟢)0.742s151.03x
🐘 PostgresNext.js (Turbopack)1.363s2.006s0.644s151.10x
💻 LocalNitro1.729s (-43.6% 🟢)2.008s (-48.3% 🟢)0.280s151.40x
💻 LocalExpress1.962s (-37.4% 🟢)2.316s (-38.4% 🟢)0.354s131.59x
💻 LocalNext.js (Turbopack)2.054s2.507s0.453s121.66x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.367s (-60.7% 🟢)2.008s (-49.9% 🟢)0.641s151.00x
🐘 PostgresExpress1.398s (-60.0% 🟢)2.008s (-49.9% 🟢)0.610s151.02x
🐘 PostgresNext.js (Turbopack)1.685s2.145s0.460s151.23x
💻 LocalNitro4.761s (-47.9% 🟢)5.346s (-46.7% 🟢)0.585s63.48x
💻 LocalNext.js (Turbopack)5.478s6.215s0.737s54.01x
💻 LocalExpress5.671s (-35.6% 🟢)6.414s (-30.8% 🟢)0.743s54.15x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
🐘 PostgresExpress0.579s (-31.0% 🟢)1.007s (-1.6%)0.428s601.07x
💻 LocalExpress0.597s (-39.4% 🟢)1.005s (-6.6% 🟢)0.408s601.10x
💻 LocalNitro0.643s (-34.4% 🟢)1.039s (-5.0% 🟢)0.396s581.18x
🐘 PostgresNext.js (Turbopack)0.805s1.024s0.219s591.48x
💻 LocalNext.js (Turbopack)0.933s1.095s0.163s551.72x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.364s (-29.2% 🟢)2.031s (-3.3%)0.667s451.00x
🐘 PostgresExpress1.391s (-29.6% 🟢)2.030s (-10.1% 🟢)0.640s451.02x
💻 LocalNitro1.522s (-49.9% 🟢)2.006s (-46.6% 🟢)0.484s451.12x
💻 LocalExpress1.634s (-45.8% 🟢)2.122s (-40.8% 🟢)0.489s431.20x
🐘 PostgresNext.js (Turbopack)1.891s2.029s0.138s451.39x
💻 LocalNext.js (Turbopack)2.053s2.734s0.681s331.50x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.704s (-34.1% 🟢)3.085s (-33.0% 🟢)0.381s391.00x
🐘 PostgresExpress2.727s (-31.7% 🟢)3.137s (-28.2% 🟢)0.410s391.01x
💻 LocalExpress3.175s (-65.5% 🟢)4.009s (-60.0% 🟢)0.834s301.17x
💻 LocalNitro3.252s (-65.0% 🟢)4.009s (-60.0% 🟢)0.757s301.20x
🐘 PostgresNext.js (Turbopack)3.743s4.042s0.299s301.38x
💻 LocalNext.js (Turbopack)4.274s5.010s0.736s241.58x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.218s (-23.0% 🟢)1.006s (~)0.788s601.00x
🐘 PostgresExpress0.226s (-19.8% 🟢)1.006s (~)0.780s601.04x
🐘 PostgresNext.js (Turbopack)0.277s1.006s0.729s601.27x
💻 LocalExpress0.401s (-28.4% 🟢)1.004s (~)0.603s601.84x
💻 LocalNitro0.445s (-26.3% 🟢)1.004s (-1.7%)0.559s602.04x
💻 LocalNext.js (Turbopack)0.596s1.039s0.443s582.73x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.351s (-29.3% 🟢)1.006s (~)0.655s901.00x
🐘 PostgresExpress0.353s (-30.8% 🟢)1.006s (~)0.653s901.01x
🐘 PostgresNext.js (Turbopack)0.473s1.006s0.533s901.35x
💻 LocalExpress2.037s (-19.0% 🟢)2.580s (-14.3% 🟢)0.543s355.80x
💻 LocalNitro2.130s (-16.1% 🟢)2.766s (-8.1% 🟢)0.636s336.07x
💻 LocalNext.js (Turbopack)2.296s3.077s0.781s306.54x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.678s (-14.2% 🟢)1.006s (~)0.329s1201.00x
🐘 PostgresExpress0.715s (-12.6% 🟢)1.006s (-1.1%)0.291s1201.06x
🐘 PostgresNext.js (Turbopack)0.964s1.508s0.543s801.42x
💻 LocalNitro9.308s (-16.8% 🟢)9.872s (-15.4% 🟢)0.564s1313.73x
💻 LocalExpress9.466s (-15.4% 🟢)10.111s (-15.3% 🟢)0.646s1213.96x
💻 LocalNext.js (Turbopack)10.478s11.299s0.821s1115.46x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.159s (+482.0% 🔺)2.005s (+99.6% 🔺)0.012s (-1.7%)2.019s (+98.3% 🔺)0.860s101.00x
💻 LocalNitro1.159s (+442.5% 🔺)2.006s (+99.7% 🔺)0.013s (+7.2% 🔺)2.022s (+98.4% 🔺)0.862s101.00x
🐘 PostgresNitro1.160s (+465.9% 🔺)1.998s (+99.9% 🔺)0.001s (-33.3% 🟢)2.009s (+98.7% 🔺)0.849s101.00x
🐘 PostgresExpress1.176s (+473.5% 🔺)1.997s (+100.0% 🔺)0.001s (-18.8% 🟢)2.010s (+98.8% 🔺)0.834s101.02x
💻 LocalNext.js (Turbopack)1.208s2.004s0.013s2.020s0.812s101.04x
🐘 PostgresNext.js (Turbopack)1.230s2.001s0.001s2.009s0.779s101.06x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.581s (+108.8% 🔺)2.012s (+95.5% 🔺)0.009s (-9.4% 🟢)2.022s (+94.5% 🔺)0.441s301.00x
🐘 PostgresNitro1.583s (+153.6% 🔺)2.002s (+98.9% 🔺)0.004s (-6.5% 🟢)2.026s (+98.1% 🔺)0.443s301.00x
💻 LocalNitro1.597s (+90.4% 🔺)2.011s (+98.8% 🔺)0.010s (+8.5% 🔺)2.024s (+81.3% 🔺)0.427s301.01x
🐘 PostgresExpress1.606s (+154.9% 🔺)2.006s (+99.3% 🔺)0.004s (+1.8%)2.025s (+97.9% 🔺)0.419s301.02x
🐘 PostgresNext.js (Turbopack)1.723s2.010s0.004s2.025s0.301s301.09x
💻 LocalNext.js (Turbopack)1.734s2.044s0.011s2.057s0.323s301.10x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.704s (-27.4% 🟢)1.015s (-18.6% 🟢)0.000s (-100.0% 🟢)1.024s (-18.6% 🟢)0.321s591.00x
🐘 PostgresExpress0.706s (-26.5% 🟢)1.014s (-20.6% 🟢)0.000s (+16.9% 🔺)1.026s (-21.5% 🟢)0.319s591.00x
🐘 PostgresNext.js (Turbopack)0.838s1.052s0.000s1.060s0.221s571.19x
💻 LocalExpress1.413s (+15.4% 🔺)2.015s (~)0.000s (-60.0% 🟢)2.017s (~)0.603s302.01x
💻 LocalNitro1.469s (+20.2% 🔺)2.014s (~)0.000s (+66.7% 🔺)2.016s (~)0.547s302.09x
💻 LocalNext.js (Turbopack)1.492s2.014s0.000s2.017s0.525s302.12x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.285s (-28.3% 🟢)2.067s (-3.5%)0.000s (+93.1% 🔺)2.108s (-3.1%)0.823s291.00x
🐘 PostgresExpress1.374s (-22.5% 🟢)2.068s (-5.0% 🟢)0.000s (+Infinity% 🔺)2.096s (-4.7%)0.722s291.07x
🐘 PostgresNext.js (Turbopack)1.812s2.350s0.000s2.392s0.580s261.41x
💻 LocalExpress3.165s (-8.7% 🟢)3.843s (-4.7%)0.001s (-29.7% 🟢)3.846s (-4.7%)0.681s162.46x
💻 LocalNext.js (Turbopack)3.200s3.778s0.000s3.782s0.581s162.49x
💻 LocalNitro3.307s (-2.4%)3.769s (-6.5% 🟢)0.001s (+75.8% 🔺)3.785s (-6.2% 🟢)0.478s162.57x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@VaguelySerious
VaguelySerious marked this pull request as ready for review May 28, 2026 11:18
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMay 28, 2026 11:18
@VaguelySerious
VaguelySerious enabled auto-merge (squash) May 28, 2026 11:20

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — this is exactly the fix the PR #2088 review flagged

I'd called out the Maximum call stack size exceeded regression on PR #2088 and noted that Peter's earlier attempt (930886fe3 fix(next): replace base64 sourcemap regex with string scan on the attributes-mvp-plan branch) targeted the wrong file — builder-deferred.ts. The actual failing path was workflow-handler error stack remapping in source-map.ts, which uses an independent copy of the same regex. This PR fixes the right file.

Diagnosis confirmed

The original regex:

workflowCode.match(/\/\/#sourceMappingURL=data:application\/json;base64,(.+)/)

The (.+) greedy capture against multi-MB base64 payloads is what triggers V8's irregexp recursion stack overflow. Same root cause as the matchAll regex Peter previously hit in the deferred-entries discoverer.

What I verified locally

  • pnpm turbo run build --filter @workflow/core
  • pnpm --filter @workflow/core test ✓ (1024 pass — 1 new, 1023 existing)
  • pnpm --filter @workflow/core exec vitest run src/source-map.test.ts
  • Manual smoke test of 5 edge cases against the built artifact:
    • Happy path with valid map ✓
    • 1MB padding (would crash the regex) ✓
    • No-map case returns original stack ✓
    • data:application/json;charset=utf-8;base64,… parameter handling ✓
    • Comma-before-;base64, correctly bails ✓

Bonus: the new scanner is strictly more permissive than the old regex

The old regex required the data URL to be exactly data:application/json;base64,… — no parameters allowed ((.+) would never match if e.g. ;charset=utf-8; appeared between json and ;base64,). The new scanner searches for ;base64, after the prefix, so it also handles data:application/json;charset=utf-8;base64,… correctly. So this isn't just a stack-overflow fix — it also extends remapping to data URLs that were silently skipped before.

Test design

The test is good:

constmatch=vi.spyOn(String.prototype,'match');remapErrorStack(...);expect(match.mock.calls.some(([pattern])=>String(pattern).includes('sourceMappingURL'))).toBe(false);

Enforcing the regex is NEVER called on the bundle is the right invariant — it documents that the implementation has moved off the regex path entirely, and would fail if someone accidentally regressed to match. The 1MB padding setup is enough to actually trigger the V8 stack overflow if the regex came back.

Small observation (not a blocker)

The implementation duplicates the same pattern Peter has in packages/next/src/builder-deferred.ts:956 (or had on the attributes-mvp-plan branch). If a third place ever needs to scan inline base64 sourcemaps, worth extracting extractInlineSourceMapBase64() + isBase64Char() to a shared util. Not needed now — two callsites doesn't justify the extraction overhead.

CI

No failures so far on the run (mostly in-progress), and most importantly the local test passes. Once the in-progress nextjs-webpack Local Dev jobs land green, this confirms the fix for the regression I flagged on PR #2088.

Approving.

@pranaygp
pranaygp disabled auto-merge May 28, 2026 17:42
@pranaygp
pranaygp enabled auto-merge (squash) May 28, 2026 17:43
@pranaygp
pranaygp merged commit 1e6b1fd into mainMay 28, 2026
181 of 191 checks passed
@pranaygp
pranaygp deleted the peter/fix-large-inline-sourcemap-remap branch May 28, 2026 18:06
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 1e6b1fd (AI decision).

This commit bundles the Attributes MVP — a new experimental v5-targeted feature with cross-package API additions (new experimental_setAttributes SDK export, new optional experimentalSetAttributes method on the World interface, a new Postgres migration adding an attributes JSONB column, new wire endpoint in world-vercel, schema changes to WorkflowRunBaseSchema, and v5 changelog docs) — alongside a small inline-sourcemap regex hardening fix. The dominant change is a deliberate v5 feature addition (documented under docs/content/docs/v5/changelog/) that should not land on the v4 stable branch. The embedded sourcemap fix could be cherry-picked separately if desired, but backporting this combined commit would inappropriately add the experimental Attributes API to the GA branch.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

1e6b1fdea2010c1f55b3e6fb5386d436c4406eb4

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.

3 participants

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

Attributes MVP (experimental and write-only) and CI hardening - #2134

Merged
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap
May 28, 2026
Merged

Attributes MVP (experimental and write-only) and CI hardening#2134
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 28, 2026

Copy link
Copy Markdown
Member

Includes all of #2088

and additionally fixes nextjs-webpack errors surfaced by doing:

  • replace workflow error remapping's inline sourcemap regex with string scanning
  • add regression coverage so large inline sourcemap bundles do not invoke the regex path
  • add a core changeset

@changeset-bot

changeset-botBot commented May 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 606af96

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

This PR includes changesets to release 20 packages
NameType
@workflow/corePatch
@workflow/worldPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@vercel

vercelBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 28, 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 (-4.3%)1.005s (~)0.963s101.00x
💻 LocalNitro0.044s (+1.6%)1.005s (~)0.961s101.03x
🐘 PostgresExpress0.060s (+3.3%)1.013s (~)0.953s101.41x
🐘 PostgresNitro0.062s (-34.5% 🟢)1.012s (-3.0%)0.950s101.47x
💻 LocalNext.js (Turbopack)0.065s1.006s0.941s101.52x
🐘 PostgresNext.js (Turbopack)0.068s1.012s0.944s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.3%)2.006s (~)0.917s101.00x
💻 LocalNitro1.100s (-2.7%)2.006s (~)0.906s101.01x
🐘 PostgresExpress1.109s (-3.3%)2.010s (~)0.901s101.02x
🐘 PostgresNitro1.111s (-2.5%)2.010s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.126s2.006s0.880s101.03x
🐘 PostgresNext.js (Turbopack)1.140s2.008s0.868s101.05x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.495s (-3.9%)11.021s (~)0.526s31.00x
🐘 PostgresNitro10.537s (-3.1%)11.019s (~)0.482s31.00x
💻 LocalNitro10.544s (-3.7%)11.024s (~)0.480s31.00x
🐘 PostgresExpress10.560s (-3.7%)11.013s (~)0.454s31.01x
💻 LocalNext.js (Turbopack)10.778s11.023s0.245s31.03x
🐘 PostgresNext.js (Turbopack)10.782s11.018s0.236s31.03x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.682s (-8.6% 🟢)14.026s (-6.7% 🟢)0.345s51.00x
🐘 PostgresNitro13.734s (-5.9% 🟢)14.019s (-6.7% 🟢)0.285s51.00x
🐘 PostgresExpress13.847s (-5.0% 🟢)14.021s (-6.7% 🟢)0.174s51.01x
💻 LocalNitro13.866s (-7.9% 🟢)14.026s (-12.5% 🟢)0.160s51.01x
💻 LocalNext.js (Turbopack)14.329s15.030s0.701s41.05x
🐘 PostgresNext.js (Turbopack)14.399s15.014s0.616s41.05x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express12.360s (-25.5% 🟢)13.024s (-23.5% 🟢)0.664s71.00x
💻 LocalNitro12.512s (-25.4% 🟢)13.026s (-23.5% 🟢)0.514s71.01x
🐘 PostgresNitro12.552s (-10.1% 🟢)13.020s (-9.0% 🟢)0.468s71.02x
🐘 PostgresExpress12.820s (-8.5% 🟢)13.164s (-9.8% 🟢)0.344s71.04x
💻 LocalNext.js (Turbopack)13.578s14.025s0.447s71.10x
🐘 PostgresNext.js (Turbopack)13.607s14.018s0.411s71.10x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.185s (-7.1% 🟢)2.008s (~)0.823s151.00x
💻 LocalExpress1.186s (-20.4% 🟢)2.005s (~)0.820s151.00x
🐘 PostgresExpress1.192s (-5.4% 🟢)2.008s (~)0.816s151.01x
💻 LocalNitro1.214s (-25.6% 🟢)2.006s (-3.3%)0.792s151.03x
🐘 PostgresNext.js (Turbopack)1.222s2.007s0.784s151.03x
💻 LocalNext.js (Turbopack)1.332s2.005s0.673s151.12x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.008s (-33.3% 🟢)0.761s151.00x
🐘 PostgresExpress1.264s (-46.5% 🟢)2.009s (-33.2% 🟢)0.745s151.01x
🐘 PostgresNext.js (Turbopack)1.381s2.007s0.626s151.11x
💻 LocalNitro1.651s (-47.5% 🟢)2.006s (-48.4% 🟢)0.354s151.32x
💻 LocalExpress1.722s (-41.7% 🟢)2.005s (-41.9% 🟢)0.283s151.38x
💻 LocalNext.js (Turbopack)1.863s2.006s0.143s151.49x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.373s (-60.5% 🟢)2.008s (-49.9% 🟢)0.634s151.00x
🐘 PostgresExpress1.407s (-59.6% 🟢)2.008s (-49.9% 🟢)0.600s151.02x
🐘 PostgresNext.js (Turbopack)1.734s2.223s0.489s141.26x
💻 LocalExpress4.768s (-42.8% 🟢)5.346s (-40.8% 🟢)0.579s63.47x
💻 LocalNitro4.806s (-42.4% 🟢)5.345s (-40.7% 🟢)0.539s63.50x
💻 LocalNext.js (Turbopack)5.709s6.214s0.505s54.16x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.182s (-6.0% 🟢)2.008s (~)0.826s151.00x
🐘 PostgresExpress1.187s (-5.6% 🟢)2.009s (~)0.822s151.00x
🐘 PostgresNext.js (Turbopack)1.225s2.009s0.784s151.04x
💻 LocalNext.js (Turbopack)1.383s2.006s0.623s151.17x
💻 LocalExpress1.529s (-19.3% 🟢)2.007s (-15.1% 🟢)0.478s151.29x
💻 LocalNitro1.976s (+5.9% 🔺)2.391s (+2.2%)0.416s131.67x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-47.3% 🟢)2.008s (-33.3% 🟢)0.774s151.00x
🐘 PostgresExpress1.266s (-45.9% 🟢)2.008s (-33.3% 🟢)0.742s151.03x
🐘 PostgresNext.js (Turbopack)1.363s2.006s0.644s151.10x
💻 LocalNitro1.729s (-43.6% 🟢)2.008s (-48.3% 🟢)0.280s151.40x
💻 LocalExpress1.962s (-37.4% 🟢)2.316s (-38.4% 🟢)0.354s131.59x
💻 LocalNext.js (Turbopack)2.054s2.507s0.453s121.66x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.367s (-60.7% 🟢)2.008s (-49.9% 🟢)0.641s151.00x
🐘 PostgresExpress1.398s (-60.0% 🟢)2.008s (-49.9% 🟢)0.610s151.02x
🐘 PostgresNext.js (Turbopack)1.685s2.145s0.460s151.23x
💻 LocalNitro4.761s (-47.9% 🟢)5.346s (-46.7% 🟢)0.585s63.48x
💻 LocalNext.js (Turbopack)5.478s6.215s0.737s54.01x
💻 LocalExpress5.671s (-35.6% 🟢)6.414s (-30.8% 🟢)0.743s54.15x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
🐘 PostgresExpress0.579s (-31.0% 🟢)1.007s (-1.6%)0.428s601.07x
💻 LocalExpress0.597s (-39.4% 🟢)1.005s (-6.6% 🟢)0.408s601.10x
💻 LocalNitro0.643s (-34.4% 🟢)1.039s (-5.0% 🟢)0.396s581.18x
🐘 PostgresNext.js (Turbopack)0.805s1.024s0.219s591.48x
💻 LocalNext.js (Turbopack)0.933s1.095s0.163s551.72x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.364s (-29.2% 🟢)2.031s (-3.3%)0.667s451.00x
🐘 PostgresExpress1.391s (-29.6% 🟢)2.030s (-10.1% 🟢)0.640s451.02x
💻 LocalNitro1.522s (-49.9% 🟢)2.006s (-46.6% 🟢)0.484s451.12x
💻 LocalExpress1.634s (-45.8% 🟢)2.122s (-40.8% 🟢)0.489s431.20x
🐘 PostgresNext.js (Turbopack)1.891s2.029s0.138s451.39x
💻 LocalNext.js (Turbopack)2.053s2.734s0.681s331.50x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.704s (-34.1% 🟢)3.085s (-33.0% 🟢)0.381s391.00x
🐘 PostgresExpress2.727s (-31.7% 🟢)3.137s (-28.2% 🟢)0.410s391.01x
💻 LocalExpress3.175s (-65.5% 🟢)4.009s (-60.0% 🟢)0.834s301.17x
💻 LocalNitro3.252s (-65.0% 🟢)4.009s (-60.0% 🟢)0.757s301.20x
🐘 PostgresNext.js (Turbopack)3.743s4.042s0.299s301.38x
💻 LocalNext.js (Turbopack)4.274s5.010s0.736s241.58x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.218s (-23.0% 🟢)1.006s (~)0.788s601.00x
🐘 PostgresExpress0.226s (-19.8% 🟢)1.006s (~)0.780s601.04x
🐘 PostgresNext.js (Turbopack)0.277s1.006s0.729s601.27x
💻 LocalExpress0.401s (-28.4% 🟢)1.004s (~)0.603s601.84x
💻 LocalNitro0.445s (-26.3% 🟢)1.004s (-1.7%)0.559s602.04x
💻 LocalNext.js (Turbopack)0.596s1.039s0.443s582.73x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.351s (-29.3% 🟢)1.006s (~)0.655s901.00x
🐘 PostgresExpress0.353s (-30.8% 🟢)1.006s (~)0.653s901.01x
🐘 PostgresNext.js (Turbopack)0.473s1.006s0.533s901.35x
💻 LocalExpress2.037s (-19.0% 🟢)2.580s (-14.3% 🟢)0.543s355.80x
💻 LocalNitro2.130s (-16.1% 🟢)2.766s (-8.1% 🟢)0.636s336.07x
💻 LocalNext.js (Turbopack)2.296s3.077s0.781s306.54x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.678s (-14.2% 🟢)1.006s (~)0.329s1201.00x
🐘 PostgresExpress0.715s (-12.6% 🟢)1.006s (-1.1%)0.291s1201.06x
🐘 PostgresNext.js (Turbopack)0.964s1.508s0.543s801.42x
💻 LocalNitro9.308s (-16.8% 🟢)9.872s (-15.4% 🟢)0.564s1313.73x
💻 LocalExpress9.466s (-15.4% 🟢)10.111s (-15.3% 🟢)0.646s1213.96x
💻 LocalNext.js (Turbopack)10.478s11.299s0.821s1115.46x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.159s (+482.0% 🔺)2.005s (+99.6% 🔺)0.012s (-1.7%)2.019s (+98.3% 🔺)0.860s101.00x
💻 LocalNitro1.159s (+442.5% 🔺)2.006s (+99.7% 🔺)0.013s (+7.2% 🔺)2.022s (+98.4% 🔺)0.862s101.00x
🐘 PostgresNitro1.160s (+465.9% 🔺)1.998s (+99.9% 🔺)0.001s (-33.3% 🟢)2.009s (+98.7% 🔺)0.849s101.00x
🐘 PostgresExpress1.176s (+473.5% 🔺)1.997s (+100.0% 🔺)0.001s (-18.8% 🟢)2.010s (+98.8% 🔺)0.834s101.02x
💻 LocalNext.js (Turbopack)1.208s2.004s0.013s2.020s0.812s101.04x
🐘 PostgresNext.js (Turbopack)1.230s2.001s0.001s2.009s0.779s101.06x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.581s (+108.8% 🔺)2.012s (+95.5% 🔺)0.009s (-9.4% 🟢)2.022s (+94.5% 🔺)0.441s301.00x
🐘 PostgresNitro1.583s (+153.6% 🔺)2.002s (+98.9% 🔺)0.004s (-6.5% 🟢)2.026s (+98.1% 🔺)0.443s301.00x
💻 LocalNitro1.597s (+90.4% 🔺)2.011s (+98.8% 🔺)0.010s (+8.5% 🔺)2.024s (+81.3% 🔺)0.427s301.01x
🐘 PostgresExpress1.606s (+154.9% 🔺)2.006s (+99.3% 🔺)0.004s (+1.8%)2.025s (+97.9% 🔺)0.419s301.02x
🐘 PostgresNext.js (Turbopack)1.723s2.010s0.004s2.025s0.301s301.09x
💻 LocalNext.js (Turbopack)1.734s2.044s0.011s2.057s0.323s301.10x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.704s (-27.4% 🟢)1.015s (-18.6% 🟢)0.000s (-100.0% 🟢)1.024s (-18.6% 🟢)0.321s591.00x
🐘 PostgresExpress0.706s (-26.5% 🟢)1.014s (-20.6% 🟢)0.000s (+16.9% 🔺)1.026s (-21.5% 🟢)0.319s591.00x
🐘 PostgresNext.js (Turbopack)0.838s1.052s0.000s1.060s0.221s571.19x
💻 LocalExpress1.413s (+15.4% 🔺)2.015s (~)0.000s (-60.0% 🟢)2.017s (~)0.603s302.01x
💻 LocalNitro1.469s (+20.2% 🔺)2.014s (~)0.000s (+66.7% 🔺)2.016s (~)0.547s302.09x
💻 LocalNext.js (Turbopack)1.492s2.014s0.000s2.017s0.525s302.12x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.285s (-28.3% 🟢)2.067s (-3.5%)0.000s (+93.1% 🔺)2.108s (-3.1%)0.823s291.00x
🐘 PostgresExpress1.374s (-22.5% 🟢)2.068s (-5.0% 🟢)0.000s (+Infinity% 🔺)2.096s (-4.7%)0.722s291.07x
🐘 PostgresNext.js (Turbopack)1.812s2.350s0.000s2.392s0.580s261.41x
💻 LocalExpress3.165s (-8.7% 🟢)3.843s (-4.7%)0.001s (-29.7% 🟢)3.846s (-4.7%)0.681s162.46x
💻 LocalNext.js (Turbopack)3.200s3.778s0.000s3.782s0.581s162.49x
💻 LocalNitro3.307s (-2.4%)3.769s (-6.5% 🟢)0.001s (+75.8% 🔺)3.785s (-6.2% 🟢)0.478s162.57x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@VaguelySerious
VaguelySerious marked this pull request as ready for review May 28, 2026 11:18
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMay 28, 2026 11:18
@VaguelySerious
VaguelySerious enabled auto-merge (squash) May 28, 2026 11:20

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — this is exactly the fix the PR #2088 review flagged

I'd called out the Maximum call stack size exceeded regression on PR #2088 and noted that Peter's earlier attempt (930886fe3 fix(next): replace base64 sourcemap regex with string scan on the attributes-mvp-plan branch) targeted the wrong file — builder-deferred.ts. The actual failing path was workflow-handler error stack remapping in source-map.ts, which uses an independent copy of the same regex. This PR fixes the right file.

Diagnosis confirmed

The original regex:

workflowCode.match(/\/\/#sourceMappingURL=data:application\/json;base64,(.+)/)

The (.+) greedy capture against multi-MB base64 payloads is what triggers V8's irregexp recursion stack overflow. Same root cause as the matchAll regex Peter previously hit in the deferred-entries discoverer.

What I verified locally

  • pnpm turbo run build --filter @workflow/core
  • pnpm --filter @workflow/core test ✓ (1024 pass — 1 new, 1023 existing)
  • pnpm --filter @workflow/core exec vitest run src/source-map.test.ts
  • Manual smoke test of 5 edge cases against the built artifact:
    • Happy path with valid map ✓
    • 1MB padding (would crash the regex) ✓
    • No-map case returns original stack ✓
    • data:application/json;charset=utf-8;base64,… parameter handling ✓
    • Comma-before-;base64, correctly bails ✓

Bonus: the new scanner is strictly more permissive than the old regex

The old regex required the data URL to be exactly data:application/json;base64,… — no parameters allowed ((.+) would never match if e.g. ;charset=utf-8; appeared between json and ;base64,). The new scanner searches for ;base64, after the prefix, so it also handles data:application/json;charset=utf-8;base64,… correctly. So this isn't just a stack-overflow fix — it also extends remapping to data URLs that were silently skipped before.

Test design

The test is good:

constmatch=vi.spyOn(String.prototype,'match');remapErrorStack(...);expect(match.mock.calls.some(([pattern])=>String(pattern).includes('sourceMappingURL'))).toBe(false);

Enforcing the regex is NEVER called on the bundle is the right invariant — it documents that the implementation has moved off the regex path entirely, and would fail if someone accidentally regressed to match. The 1MB padding setup is enough to actually trigger the V8 stack overflow if the regex came back.

Small observation (not a blocker)

The implementation duplicates the same pattern Peter has in packages/next/src/builder-deferred.ts:956 (or had on the attributes-mvp-plan branch). If a third place ever needs to scan inline base64 sourcemaps, worth extracting extractInlineSourceMapBase64() + isBase64Char() to a shared util. Not needed now — two callsites doesn't justify the extraction overhead.

CI

No failures so far on the run (mostly in-progress), and most importantly the local test passes. Once the in-progress nextjs-webpack Local Dev jobs land green, this confirms the fix for the regression I flagged on PR #2088.

Approving.

@pranaygp
pranaygp disabled auto-merge May 28, 2026 17:42
@pranaygp
pranaygp enabled auto-merge (squash) May 28, 2026 17:43
@pranaygp
pranaygp merged commit 1e6b1fd into mainMay 28, 2026
181 of 191 checks passed
@pranaygp
pranaygp deleted the peter/fix-large-inline-sourcemap-remap branch May 28, 2026 18:06
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 1e6b1fd (AI decision).

This commit bundles the Attributes MVP — a new experimental v5-targeted feature with cross-package API additions (new experimental_setAttributes SDK export, new optional experimentalSetAttributes method on the World interface, a new Postgres migration adding an attributes JSONB column, new wire endpoint in world-vercel, schema changes to WorkflowRunBaseSchema, and v5 changelog docs) — alongside a small inline-sourcemap regex hardening fix. The dominant change is a deliberate v5 feature addition (documented under docs/content/docs/v5/changelog/) that should not land on the v4 stable branch. The embedded sourcemap fix could be cherry-picked separately if desired, but backporting this combined commit would inappropriately add the experimental Attributes API to the GA branch.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

1e6b1fdea2010c1f55b3e6fb5386d436c4406eb4

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.

3 participants

@VaguelySerious@TooTallNate@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Attributes MVP (experimental and write-only) and CI hardening by VaguelySerious · Pull Request #2134 · vercel/workflow · GitHub
Skip to content

Attributes MVP (experimental and write-only) and CI hardening - #2134

Merged
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap
May 28, 2026
Merged

Attributes MVP (experimental and write-only) and CI hardening#2134
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 28, 2026

Copy link
Copy Markdown
Member

Includes all of #2088

and additionally fixes nextjs-webpack errors surfaced by doing:

  • replace workflow error remapping's inline sourcemap regex with string scanning
  • add regression coverage so large inline sourcemap bundles do not invoke the regex path
  • add a core changeset

@changeset-bot

changeset-botBot commented May 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 606af96

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

This PR includes changesets to release 20 packages
NameType
@workflow/corePatch
@workflow/worldPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@vercel

vercelBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 28, 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 (-4.3%)1.005s (~)0.963s101.00x
💻 LocalNitro0.044s (+1.6%)1.005s (~)0.961s101.03x
🐘 PostgresExpress0.060s (+3.3%)1.013s (~)0.953s101.41x
🐘 PostgresNitro0.062s (-34.5% 🟢)1.012s (-3.0%)0.950s101.47x
💻 LocalNext.js (Turbopack)0.065s1.006s0.941s101.52x
🐘 PostgresNext.js (Turbopack)0.068s1.012s0.944s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.3%)2.006s (~)0.917s101.00x
💻 LocalNitro1.100s (-2.7%)2.006s (~)0.906s101.01x
🐘 PostgresExpress1.109s (-3.3%)2.010s (~)0.901s101.02x
🐘 PostgresNitro1.111s (-2.5%)2.010s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.126s2.006s0.880s101.03x
🐘 PostgresNext.js (Turbopack)1.140s2.008s0.868s101.05x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.495s (-3.9%)11.021s (~)0.526s31.00x
🐘 PostgresNitro10.537s (-3.1%)11.019s (~)0.482s31.00x
💻 LocalNitro10.544s (-3.7%)11.024s (~)0.480s31.00x
🐘 PostgresExpress10.560s (-3.7%)11.013s (~)0.454s31.01x
💻 LocalNext.js (Turbopack)10.778s11.023s0.245s31.03x
🐘 PostgresNext.js (Turbopack)10.782s11.018s0.236s31.03x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.682s (-8.6% 🟢)14.026s (-6.7% 🟢)0.345s51.00x
🐘 PostgresNitro13.734s (-5.9% 🟢)14.019s (-6.7% 🟢)0.285s51.00x
🐘 PostgresExpress13.847s (-5.0% 🟢)14.021s (-6.7% 🟢)0.174s51.01x
💻 LocalNitro13.866s (-7.9% 🟢)14.026s (-12.5% 🟢)0.160s51.01x
💻 LocalNext.js (Turbopack)14.329s15.030s0.701s41.05x
🐘 PostgresNext.js (Turbopack)14.399s15.014s0.616s41.05x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express12.360s (-25.5% 🟢)13.024s (-23.5% 🟢)0.664s71.00x
💻 LocalNitro12.512s (-25.4% 🟢)13.026s (-23.5% 🟢)0.514s71.01x
🐘 PostgresNitro12.552s (-10.1% 🟢)13.020s (-9.0% 🟢)0.468s71.02x
🐘 PostgresExpress12.820s (-8.5% 🟢)13.164s (-9.8% 🟢)0.344s71.04x
💻 LocalNext.js (Turbopack)13.578s14.025s0.447s71.10x
🐘 PostgresNext.js (Turbopack)13.607s14.018s0.411s71.10x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.185s (-7.1% 🟢)2.008s (~)0.823s151.00x
💻 LocalExpress1.186s (-20.4% 🟢)2.005s (~)0.820s151.00x
🐘 PostgresExpress1.192s (-5.4% 🟢)2.008s (~)0.816s151.01x
💻 LocalNitro1.214s (-25.6% 🟢)2.006s (-3.3%)0.792s151.03x
🐘 PostgresNext.js (Turbopack)1.222s2.007s0.784s151.03x
💻 LocalNext.js (Turbopack)1.332s2.005s0.673s151.12x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.008s (-33.3% 🟢)0.761s151.00x
🐘 PostgresExpress1.264s (-46.5% 🟢)2.009s (-33.2% 🟢)0.745s151.01x
🐘 PostgresNext.js (Turbopack)1.381s2.007s0.626s151.11x
💻 LocalNitro1.651s (-47.5% 🟢)2.006s (-48.4% 🟢)0.354s151.32x
💻 LocalExpress1.722s (-41.7% 🟢)2.005s (-41.9% 🟢)0.283s151.38x
💻 LocalNext.js (Turbopack)1.863s2.006s0.143s151.49x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.373s (-60.5% 🟢)2.008s (-49.9% 🟢)0.634s151.00x
🐘 PostgresExpress1.407s (-59.6% 🟢)2.008s (-49.9% 🟢)0.600s151.02x
🐘 PostgresNext.js (Turbopack)1.734s2.223s0.489s141.26x
💻 LocalExpress4.768s (-42.8% 🟢)5.346s (-40.8% 🟢)0.579s63.47x
💻 LocalNitro4.806s (-42.4% 🟢)5.345s (-40.7% 🟢)0.539s63.50x
💻 LocalNext.js (Turbopack)5.709s6.214s0.505s54.16x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.182s (-6.0% 🟢)2.008s (~)0.826s151.00x
🐘 PostgresExpress1.187s (-5.6% 🟢)2.009s (~)0.822s151.00x
🐘 PostgresNext.js (Turbopack)1.225s2.009s0.784s151.04x
💻 LocalNext.js (Turbopack)1.383s2.006s0.623s151.17x
💻 LocalExpress1.529s (-19.3% 🟢)2.007s (-15.1% 🟢)0.478s151.29x
💻 LocalNitro1.976s (+5.9% 🔺)2.391s (+2.2%)0.416s131.67x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-47.3% 🟢)2.008s (-33.3% 🟢)0.774s151.00x
🐘 PostgresExpress1.266s (-45.9% 🟢)2.008s (-33.3% 🟢)0.742s151.03x
🐘 PostgresNext.js (Turbopack)1.363s2.006s0.644s151.10x
💻 LocalNitro1.729s (-43.6% 🟢)2.008s (-48.3% 🟢)0.280s151.40x
💻 LocalExpress1.962s (-37.4% 🟢)2.316s (-38.4% 🟢)0.354s131.59x
💻 LocalNext.js (Turbopack)2.054s2.507s0.453s121.66x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.367s (-60.7% 🟢)2.008s (-49.9% 🟢)0.641s151.00x
🐘 PostgresExpress1.398s (-60.0% 🟢)2.008s (-49.9% 🟢)0.610s151.02x
🐘 PostgresNext.js (Turbopack)1.685s2.145s0.460s151.23x
💻 LocalNitro4.761s (-47.9% 🟢)5.346s (-46.7% 🟢)0.585s63.48x
💻 LocalNext.js (Turbopack)5.478s6.215s0.737s54.01x
💻 LocalExpress5.671s (-35.6% 🟢)6.414s (-30.8% 🟢)0.743s54.15x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
🐘 PostgresExpress0.579s (-31.0% 🟢)1.007s (-1.6%)0.428s601.07x
💻 LocalExpress0.597s (-39.4% 🟢)1.005s (-6.6% 🟢)0.408s601.10x
💻 LocalNitro0.643s (-34.4% 🟢)1.039s (-5.0% 🟢)0.396s581.18x
🐘 PostgresNext.js (Turbopack)0.805s1.024s0.219s591.48x
💻 LocalNext.js (Turbopack)0.933s1.095s0.163s551.72x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.364s (-29.2% 🟢)2.031s (-3.3%)0.667s451.00x
🐘 PostgresExpress1.391s (-29.6% 🟢)2.030s (-10.1% 🟢)0.640s451.02x
💻 LocalNitro1.522s (-49.9% 🟢)2.006s (-46.6% 🟢)0.484s451.12x
💻 LocalExpress1.634s (-45.8% 🟢)2.122s (-40.8% 🟢)0.489s431.20x
🐘 PostgresNext.js (Turbopack)1.891s2.029s0.138s451.39x
💻 LocalNext.js (Turbopack)2.053s2.734s0.681s331.50x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.704s (-34.1% 🟢)3.085s (-33.0% 🟢)0.381s391.00x
🐘 PostgresExpress2.727s (-31.7% 🟢)3.137s (-28.2% 🟢)0.410s391.01x
💻 LocalExpress3.175s (-65.5% 🟢)4.009s (-60.0% 🟢)0.834s301.17x
💻 LocalNitro3.252s (-65.0% 🟢)4.009s (-60.0% 🟢)0.757s301.20x
🐘 PostgresNext.js (Turbopack)3.743s4.042s0.299s301.38x
💻 LocalNext.js (Turbopack)4.274s5.010s0.736s241.58x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.218s (-23.0% 🟢)1.006s (~)0.788s601.00x
🐘 PostgresExpress0.226s (-19.8% 🟢)1.006s (~)0.780s601.04x
🐘 PostgresNext.js (Turbopack)0.277s1.006s0.729s601.27x
💻 LocalExpress0.401s (-28.4% 🟢)1.004s (~)0.603s601.84x
💻 LocalNitro0.445s (-26.3% 🟢)1.004s (-1.7%)0.559s602.04x
💻 LocalNext.js (Turbopack)0.596s1.039s0.443s582.73x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.351s (-29.3% 🟢)1.006s (~)0.655s901.00x
🐘 PostgresExpress0.353s (-30.8% 🟢)1.006s (~)0.653s901.01x
🐘 PostgresNext.js (Turbopack)0.473s1.006s0.533s901.35x
💻 LocalExpress2.037s (-19.0% 🟢)2.580s (-14.3% 🟢)0.543s355.80x
💻 LocalNitro2.130s (-16.1% 🟢)2.766s (-8.1% 🟢)0.636s336.07x
💻 LocalNext.js (Turbopack)2.296s3.077s0.781s306.54x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.678s (-14.2% 🟢)1.006s (~)0.329s1201.00x
🐘 PostgresExpress0.715s (-12.6% 🟢)1.006s (-1.1%)0.291s1201.06x
🐘 PostgresNext.js (Turbopack)0.964s1.508s0.543s801.42x
💻 LocalNitro9.308s (-16.8% 🟢)9.872s (-15.4% 🟢)0.564s1313.73x
💻 LocalExpress9.466s (-15.4% 🟢)10.111s (-15.3% 🟢)0.646s1213.96x
💻 LocalNext.js (Turbopack)10.478s11.299s0.821s1115.46x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.159s (+482.0% 🔺)2.005s (+99.6% 🔺)0.012s (-1.7%)2.019s (+98.3% 🔺)0.860s101.00x
💻 LocalNitro1.159s (+442.5% 🔺)2.006s (+99.7% 🔺)0.013s (+7.2% 🔺)2.022s (+98.4% 🔺)0.862s101.00x
🐘 PostgresNitro1.160s (+465.9% 🔺)1.998s (+99.9% 🔺)0.001s (-33.3% 🟢)2.009s (+98.7% 🔺)0.849s101.00x
🐘 PostgresExpress1.176s (+473.5% 🔺)1.997s (+100.0% 🔺)0.001s (-18.8% 🟢)2.010s (+98.8% 🔺)0.834s101.02x
💻 LocalNext.js (Turbopack)1.208s2.004s0.013s2.020s0.812s101.04x
🐘 PostgresNext.js (Turbopack)1.230s2.001s0.001s2.009s0.779s101.06x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.581s (+108.8% 🔺)2.012s (+95.5% 🔺)0.009s (-9.4% 🟢)2.022s (+94.5% 🔺)0.441s301.00x
🐘 PostgresNitro1.583s (+153.6% 🔺)2.002s (+98.9% 🔺)0.004s (-6.5% 🟢)2.026s (+98.1% 🔺)0.443s301.00x
💻 LocalNitro1.597s (+90.4% 🔺)2.011s (+98.8% 🔺)0.010s (+8.5% 🔺)2.024s (+81.3% 🔺)0.427s301.01x
🐘 PostgresExpress1.606s (+154.9% 🔺)2.006s (+99.3% 🔺)0.004s (+1.8%)2.025s (+97.9% 🔺)0.419s301.02x
🐘 PostgresNext.js (Turbopack)1.723s2.010s0.004s2.025s0.301s301.09x
💻 LocalNext.js (Turbopack)1.734s2.044s0.011s2.057s0.323s301.10x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.704s (-27.4% 🟢)1.015s (-18.6% 🟢)0.000s (-100.0% 🟢)1.024s (-18.6% 🟢)0.321s591.00x
🐘 PostgresExpress0.706s (-26.5% 🟢)1.014s (-20.6% 🟢)0.000s (+16.9% 🔺)1.026s (-21.5% 🟢)0.319s591.00x
🐘 PostgresNext.js (Turbopack)0.838s1.052s0.000s1.060s0.221s571.19x
💻 LocalExpress1.413s (+15.4% 🔺)2.015s (~)0.000s (-60.0% 🟢)2.017s (~)0.603s302.01x
💻 LocalNitro1.469s (+20.2% 🔺)2.014s (~)0.000s (+66.7% 🔺)2.016s (~)0.547s302.09x
💻 LocalNext.js (Turbopack)1.492s2.014s0.000s2.017s0.525s302.12x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.285s (-28.3% 🟢)2.067s (-3.5%)0.000s (+93.1% 🔺)2.108s (-3.1%)0.823s291.00x
🐘 PostgresExpress1.374s (-22.5% 🟢)2.068s (-5.0% 🟢)0.000s (+Infinity% 🔺)2.096s (-4.7%)0.722s291.07x
🐘 PostgresNext.js (Turbopack)1.812s2.350s0.000s2.392s0.580s261.41x
💻 LocalExpress3.165s (-8.7% 🟢)3.843s (-4.7%)0.001s (-29.7% 🟢)3.846s (-4.7%)0.681s162.46x
💻 LocalNext.js (Turbopack)3.200s3.778s0.000s3.782s0.581s162.49x
💻 LocalNitro3.307s (-2.4%)3.769s (-6.5% 🟢)0.001s (+75.8% 🔺)3.785s (-6.2% 🟢)0.478s162.57x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@VaguelySerious
VaguelySerious marked this pull request as ready for review May 28, 2026 11:18
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMay 28, 2026 11:18
@VaguelySerious
VaguelySerious enabled auto-merge (squash) May 28, 2026 11:20

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — this is exactly the fix the PR #2088 review flagged

I'd called out the Maximum call stack size exceeded regression on PR #2088 and noted that Peter's earlier attempt (930886fe3 fix(next): replace base64 sourcemap regex with string scan on the attributes-mvp-plan branch) targeted the wrong file — builder-deferred.ts. The actual failing path was workflow-handler error stack remapping in source-map.ts, which uses an independent copy of the same regex. This PR fixes the right file.

Diagnosis confirmed

The original regex:

workflowCode.match(/\/\/#sourceMappingURL=data:application\/json;base64,(.+)/)

The (.+) greedy capture against multi-MB base64 payloads is what triggers V8's irregexp recursion stack overflow. Same root cause as the matchAll regex Peter previously hit in the deferred-entries discoverer.

What I verified locally

  • pnpm turbo run build --filter @workflow/core
  • pnpm --filter @workflow/core test ✓ (1024 pass — 1 new, 1023 existing)
  • pnpm --filter @workflow/core exec vitest run src/source-map.test.ts
  • Manual smoke test of 5 edge cases against the built artifact:
    • Happy path with valid map ✓
    • 1MB padding (would crash the regex) ✓
    • No-map case returns original stack ✓
    • data:application/json;charset=utf-8;base64,… parameter handling ✓
    • Comma-before-;base64, correctly bails ✓

Bonus: the new scanner is strictly more permissive than the old regex

The old regex required the data URL to be exactly data:application/json;base64,… — no parameters allowed ((.+) would never match if e.g. ;charset=utf-8; appeared between json and ;base64,). The new scanner searches for ;base64, after the prefix, so it also handles data:application/json;charset=utf-8;base64,… correctly. So this isn't just a stack-overflow fix — it also extends remapping to data URLs that were silently skipped before.

Test design

The test is good:

constmatch=vi.spyOn(String.prototype,'match');remapErrorStack(...);expect(match.mock.calls.some(([pattern])=>String(pattern).includes('sourceMappingURL'))).toBe(false);

Enforcing the regex is NEVER called on the bundle is the right invariant — it documents that the implementation has moved off the regex path entirely, and would fail if someone accidentally regressed to match. The 1MB padding setup is enough to actually trigger the V8 stack overflow if the regex came back.

Small observation (not a blocker)

The implementation duplicates the same pattern Peter has in packages/next/src/builder-deferred.ts:956 (or had on the attributes-mvp-plan branch). If a third place ever needs to scan inline base64 sourcemaps, worth extracting extractInlineSourceMapBase64() + isBase64Char() to a shared util. Not needed now — two callsites doesn't justify the extraction overhead.

CI

No failures so far on the run (mostly in-progress), and most importantly the local test passes. Once the in-progress nextjs-webpack Local Dev jobs land green, this confirms the fix for the regression I flagged on PR #2088.

Approving.

@pranaygp
pranaygp disabled auto-merge May 28, 2026 17:42
@pranaygp
pranaygp enabled auto-merge (squash) May 28, 2026 17:43
@pranaygp
pranaygp merged commit 1e6b1fd into mainMay 28, 2026
181 of 191 checks passed
@pranaygp
pranaygp deleted the peter/fix-large-inline-sourcemap-remap branch May 28, 2026 18:06
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 1e6b1fd (AI decision).

This commit bundles the Attributes MVP — a new experimental v5-targeted feature with cross-package API additions (new experimental_setAttributes SDK export, new optional experimentalSetAttributes method on the World interface, a new Postgres migration adding an attributes JSONB column, new wire endpoint in world-vercel, schema changes to WorkflowRunBaseSchema, and v5 changelog docs) — alongside a small inline-sourcemap regex hardening fix. The dominant change is a deliberate v5 feature addition (documented under docs/content/docs/v5/changelog/) that should not land on the v4 stable branch. The embedded sourcemap fix could be cherry-picked separately if desired, but backporting this combined commit would inappropriately add the experimental Attributes API to the GA branch.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

1e6b1fdea2010c1f55b3e6fb5386d436c4406eb4

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.

3 participants

@VaguelySerious@TooTallNate@pranaygp
, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' Attributes MVP (experimental and write-only) and CI hardening by VaguelySerious · Pull Request #2134 · vercel/workflow · GitHub
Skip to content

Attributes MVP (experimental and write-only) and CI hardening - #2134

Merged
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap
May 28, 2026
Merged

Attributes MVP (experimental and write-only) and CI hardening#2134
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 28, 2026

Copy link
Copy Markdown
Member

Includes all of #2088

and additionally fixes nextjs-webpack errors surfaced by doing:

  • replace workflow error remapping's inline sourcemap regex with string scanning
  • add regression coverage so large inline sourcemap bundles do not invoke the regex path
  • add a core changeset

@changeset-bot

changeset-botBot commented May 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 606af96

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

This PR includes changesets to release 20 packages
NameType
@workflow/corePatch
@workflow/worldPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@vercel

vercelBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 28, 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 (-4.3%)1.005s (~)0.963s101.00x
💻 LocalNitro0.044s (+1.6%)1.005s (~)0.961s101.03x
🐘 PostgresExpress0.060s (+3.3%)1.013s (~)0.953s101.41x
🐘 PostgresNitro0.062s (-34.5% 🟢)1.012s (-3.0%)0.950s101.47x
💻 LocalNext.js (Turbopack)0.065s1.006s0.941s101.52x
🐘 PostgresNext.js (Turbopack)0.068s1.012s0.944s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.3%)2.006s (~)0.917s101.00x
💻 LocalNitro1.100s (-2.7%)2.006s (~)0.906s101.01x
🐘 PostgresExpress1.109s (-3.3%)2.010s (~)0.901s101.02x
🐘 PostgresNitro1.111s (-2.5%)2.010s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.126s2.006s0.880s101.03x
🐘 PostgresNext.js (Turbopack)1.140s2.008s0.868s101.05x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.495s (-3.9%)11.021s (~)0.526s31.00x
🐘 PostgresNitro10.537s (-3.1%)11.019s (~)0.482s31.00x
💻 LocalNitro10.544s (-3.7%)11.024s (~)0.480s31.00x
🐘 PostgresExpress10.560s (-3.7%)11.013s (~)0.454s31.01x
💻 LocalNext.js (Turbopack)10.778s11.023s0.245s31.03x
🐘 PostgresNext.js (Turbopack)10.782s11.018s0.236s31.03x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.682s (-8.6% 🟢)14.026s (-6.7% 🟢)0.345s51.00x
🐘 PostgresNitro13.734s (-5.9% 🟢)14.019s (-6.7% 🟢)0.285s51.00x
🐘 PostgresExpress13.847s (-5.0% 🟢)14.021s (-6.7% 🟢)0.174s51.01x
💻 LocalNitro13.866s (-7.9% 🟢)14.026s (-12.5% 🟢)0.160s51.01x
💻 LocalNext.js (Turbopack)14.329s15.030s0.701s41.05x
🐘 PostgresNext.js (Turbopack)14.399s15.014s0.616s41.05x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express12.360s (-25.5% 🟢)13.024s (-23.5% 🟢)0.664s71.00x
💻 LocalNitro12.512s (-25.4% 🟢)13.026s (-23.5% 🟢)0.514s71.01x
🐘 PostgresNitro12.552s (-10.1% 🟢)13.020s (-9.0% 🟢)0.468s71.02x
🐘 PostgresExpress12.820s (-8.5% 🟢)13.164s (-9.8% 🟢)0.344s71.04x
💻 LocalNext.js (Turbopack)13.578s14.025s0.447s71.10x
🐘 PostgresNext.js (Turbopack)13.607s14.018s0.411s71.10x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.185s (-7.1% 🟢)2.008s (~)0.823s151.00x
💻 LocalExpress1.186s (-20.4% 🟢)2.005s (~)0.820s151.00x
🐘 PostgresExpress1.192s (-5.4% 🟢)2.008s (~)0.816s151.01x
💻 LocalNitro1.214s (-25.6% 🟢)2.006s (-3.3%)0.792s151.03x
🐘 PostgresNext.js (Turbopack)1.222s2.007s0.784s151.03x
💻 LocalNext.js (Turbopack)1.332s2.005s0.673s151.12x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.008s (-33.3% 🟢)0.761s151.00x
🐘 PostgresExpress1.264s (-46.5% 🟢)2.009s (-33.2% 🟢)0.745s151.01x
🐘 PostgresNext.js (Turbopack)1.381s2.007s0.626s151.11x
💻 LocalNitro1.651s (-47.5% 🟢)2.006s (-48.4% 🟢)0.354s151.32x
💻 LocalExpress1.722s (-41.7% 🟢)2.005s (-41.9% 🟢)0.283s151.38x
💻 LocalNext.js (Turbopack)1.863s2.006s0.143s151.49x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.373s (-60.5% 🟢)2.008s (-49.9% 🟢)0.634s151.00x
🐘 PostgresExpress1.407s (-59.6% 🟢)2.008s (-49.9% 🟢)0.600s151.02x
🐘 PostgresNext.js (Turbopack)1.734s2.223s0.489s141.26x
💻 LocalExpress4.768s (-42.8% 🟢)5.346s (-40.8% 🟢)0.579s63.47x
💻 LocalNitro4.806s (-42.4% 🟢)5.345s (-40.7% 🟢)0.539s63.50x
💻 LocalNext.js (Turbopack)5.709s6.214s0.505s54.16x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.182s (-6.0% 🟢)2.008s (~)0.826s151.00x
🐘 PostgresExpress1.187s (-5.6% 🟢)2.009s (~)0.822s151.00x
🐘 PostgresNext.js (Turbopack)1.225s2.009s0.784s151.04x
💻 LocalNext.js (Turbopack)1.383s2.006s0.623s151.17x
💻 LocalExpress1.529s (-19.3% 🟢)2.007s (-15.1% 🟢)0.478s151.29x
💻 LocalNitro1.976s (+5.9% 🔺)2.391s (+2.2%)0.416s131.67x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-47.3% 🟢)2.008s (-33.3% 🟢)0.774s151.00x
🐘 PostgresExpress1.266s (-45.9% 🟢)2.008s (-33.3% 🟢)0.742s151.03x
🐘 PostgresNext.js (Turbopack)1.363s2.006s0.644s151.10x
💻 LocalNitro1.729s (-43.6% 🟢)2.008s (-48.3% 🟢)0.280s151.40x
💻 LocalExpress1.962s (-37.4% 🟢)2.316s (-38.4% 🟢)0.354s131.59x
💻 LocalNext.js (Turbopack)2.054s2.507s0.453s121.66x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.367s (-60.7% 🟢)2.008s (-49.9% 🟢)0.641s151.00x
🐘 PostgresExpress1.398s (-60.0% 🟢)2.008s (-49.9% 🟢)0.610s151.02x
🐘 PostgresNext.js (Turbopack)1.685s2.145s0.460s151.23x
💻 LocalNitro4.761s (-47.9% 🟢)5.346s (-46.7% 🟢)0.585s63.48x
💻 LocalNext.js (Turbopack)5.478s6.215s0.737s54.01x
💻 LocalExpress5.671s (-35.6% 🟢)6.414s (-30.8% 🟢)0.743s54.15x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
🐘 PostgresExpress0.579s (-31.0% 🟢)1.007s (-1.6%)0.428s601.07x
💻 LocalExpress0.597s (-39.4% 🟢)1.005s (-6.6% 🟢)0.408s601.10x
💻 LocalNitro0.643s (-34.4% 🟢)1.039s (-5.0% 🟢)0.396s581.18x
🐘 PostgresNext.js (Turbopack)0.805s1.024s0.219s591.48x
💻 LocalNext.js (Turbopack)0.933s1.095s0.163s551.72x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.364s (-29.2% 🟢)2.031s (-3.3%)0.667s451.00x
🐘 PostgresExpress1.391s (-29.6% 🟢)2.030s (-10.1% 🟢)0.640s451.02x
💻 LocalNitro1.522s (-49.9% 🟢)2.006s (-46.6% 🟢)0.484s451.12x
💻 LocalExpress1.634s (-45.8% 🟢)2.122s (-40.8% 🟢)0.489s431.20x
🐘 PostgresNext.js (Turbopack)1.891s2.029s0.138s451.39x
💻 LocalNext.js (Turbopack)2.053s2.734s0.681s331.50x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.704s (-34.1% 🟢)3.085s (-33.0% 🟢)0.381s391.00x
🐘 PostgresExpress2.727s (-31.7% 🟢)3.137s (-28.2% 🟢)0.410s391.01x
💻 LocalExpress3.175s (-65.5% 🟢)4.009s (-60.0% 🟢)0.834s301.17x
💻 LocalNitro3.252s (-65.0% 🟢)4.009s (-60.0% 🟢)0.757s301.20x
🐘 PostgresNext.js (Turbopack)3.743s4.042s0.299s301.38x
💻 LocalNext.js (Turbopack)4.274s5.010s0.736s241.58x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.218s (-23.0% 🟢)1.006s (~)0.788s601.00x
🐘 PostgresExpress0.226s (-19.8% 🟢)1.006s (~)0.780s601.04x
🐘 PostgresNext.js (Turbopack)0.277s1.006s0.729s601.27x
💻 LocalExpress0.401s (-28.4% 🟢)1.004s (~)0.603s601.84x
💻 LocalNitro0.445s (-26.3% 🟢)1.004s (-1.7%)0.559s602.04x
💻 LocalNext.js (Turbopack)0.596s1.039s0.443s582.73x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.351s (-29.3% 🟢)1.006s (~)0.655s901.00x
🐘 PostgresExpress0.353s (-30.8% 🟢)1.006s (~)0.653s901.01x
🐘 PostgresNext.js (Turbopack)0.473s1.006s0.533s901.35x
💻 LocalExpress2.037s (-19.0% 🟢)2.580s (-14.3% 🟢)0.543s355.80x
💻 LocalNitro2.130s (-16.1% 🟢)2.766s (-8.1% 🟢)0.636s336.07x
💻 LocalNext.js (Turbopack)2.296s3.077s0.781s306.54x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.678s (-14.2% 🟢)1.006s (~)0.329s1201.00x
🐘 PostgresExpress0.715s (-12.6% 🟢)1.006s (-1.1%)0.291s1201.06x
🐘 PostgresNext.js (Turbopack)0.964s1.508s0.543s801.42x
💻 LocalNitro9.308s (-16.8% 🟢)9.872s (-15.4% 🟢)0.564s1313.73x
💻 LocalExpress9.466s (-15.4% 🟢)10.111s (-15.3% 🟢)0.646s1213.96x
💻 LocalNext.js (Turbopack)10.478s11.299s0.821s1115.46x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.159s (+482.0% 🔺)2.005s (+99.6% 🔺)0.012s (-1.7%)2.019s (+98.3% 🔺)0.860s101.00x
💻 LocalNitro1.159s (+442.5% 🔺)2.006s (+99.7% 🔺)0.013s (+7.2% 🔺)2.022s (+98.4% 🔺)0.862s101.00x
🐘 PostgresNitro1.160s (+465.9% 🔺)1.998s (+99.9% 🔺)0.001s (-33.3% 🟢)2.009s (+98.7% 🔺)0.849s101.00x
🐘 PostgresExpress1.176s (+473.5% 🔺)1.997s (+100.0% 🔺)0.001s (-18.8% 🟢)2.010s (+98.8% 🔺)0.834s101.02x
💻 LocalNext.js (Turbopack)1.208s2.004s0.013s2.020s0.812s101.04x
🐘 PostgresNext.js (Turbopack)1.230s2.001s0.001s2.009s0.779s101.06x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.581s (+108.8% 🔺)2.012s (+95.5% 🔺)0.009s (-9.4% 🟢)2.022s (+94.5% 🔺)0.441s301.00x
🐘 PostgresNitro1.583s (+153.6% 🔺)2.002s (+98.9% 🔺)0.004s (-6.5% 🟢)2.026s (+98.1% 🔺)0.443s301.00x
💻 LocalNitro1.597s (+90.4% 🔺)2.011s (+98.8% 🔺)0.010s (+8.5% 🔺)2.024s (+81.3% 🔺)0.427s301.01x
🐘 PostgresExpress1.606s (+154.9% 🔺)2.006s (+99.3% 🔺)0.004s (+1.8%)2.025s (+97.9% 🔺)0.419s301.02x
🐘 PostgresNext.js (Turbopack)1.723s2.010s0.004s2.025s0.301s301.09x
💻 LocalNext.js (Turbopack)1.734s2.044s0.011s2.057s0.323s301.10x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.704s (-27.4% 🟢)1.015s (-18.6% 🟢)0.000s (-100.0% 🟢)1.024s (-18.6% 🟢)0.321s591.00x
🐘 PostgresExpress0.706s (-26.5% 🟢)1.014s (-20.6% 🟢)0.000s (+16.9% 🔺)1.026s (-21.5% 🟢)0.319s591.00x
🐘 PostgresNext.js (Turbopack)0.838s1.052s0.000s1.060s0.221s571.19x
💻 LocalExpress1.413s (+15.4% 🔺)2.015s (~)0.000s (-60.0% 🟢)2.017s (~)0.603s302.01x
💻 LocalNitro1.469s (+20.2% 🔺)2.014s (~)0.000s (+66.7% 🔺)2.016s (~)0.547s302.09x
💻 LocalNext.js (Turbopack)1.492s2.014s0.000s2.017s0.525s302.12x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.285s (-28.3% 🟢)2.067s (-3.5%)0.000s (+93.1% 🔺)2.108s (-3.1%)0.823s291.00x
🐘 PostgresExpress1.374s (-22.5% 🟢)2.068s (-5.0% 🟢)0.000s (+Infinity% 🔺)2.096s (-4.7%)0.722s291.07x
🐘 PostgresNext.js (Turbopack)1.812s2.350s0.000s2.392s0.580s261.41x
💻 LocalExpress3.165s (-8.7% 🟢)3.843s (-4.7%)0.001s (-29.7% 🟢)3.846s (-4.7%)0.681s162.46x
💻 LocalNext.js (Turbopack)3.200s3.778s0.000s3.782s0.581s162.49x
💻 LocalNitro3.307s (-2.4%)3.769s (-6.5% 🟢)0.001s (+75.8% 🔺)3.785s (-6.2% 🟢)0.478s162.57x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@VaguelySerious
VaguelySerious marked this pull request as ready for review May 28, 2026 11:18
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMay 28, 2026 11:18
@VaguelySerious
VaguelySerious enabled auto-merge (squash) May 28, 2026 11:20

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — this is exactly the fix the PR #2088 review flagged

I'd called out the Maximum call stack size exceeded regression on PR #2088 and noted that Peter's earlier attempt (930886fe3 fix(next): replace base64 sourcemap regex with string scan on the attributes-mvp-plan branch) targeted the wrong file — builder-deferred.ts. The actual failing path was workflow-handler error stack remapping in source-map.ts, which uses an independent copy of the same regex. This PR fixes the right file.

Diagnosis confirmed

The original regex:

workflowCode.match(/\/\/#sourceMappingURL=data:application\/json;base64,(.+)/)

The (.+) greedy capture against multi-MB base64 payloads is what triggers V8's irregexp recursion stack overflow. Same root cause as the matchAll regex Peter previously hit in the deferred-entries discoverer.

What I verified locally

  • pnpm turbo run build --filter @workflow/core
  • pnpm --filter @workflow/core test ✓ (1024 pass — 1 new, 1023 existing)
  • pnpm --filter @workflow/core exec vitest run src/source-map.test.ts
  • Manual smoke test of 5 edge cases against the built artifact:
    • Happy path with valid map ✓
    • 1MB padding (would crash the regex) ✓
    • No-map case returns original stack ✓
    • data:application/json;charset=utf-8;base64,… parameter handling ✓
    • Comma-before-;base64, correctly bails ✓

Bonus: the new scanner is strictly more permissive than the old regex

The old regex required the data URL to be exactly data:application/json;base64,… — no parameters allowed ((.+) would never match if e.g. ;charset=utf-8; appeared between json and ;base64,). The new scanner searches for ;base64, after the prefix, so it also handles data:application/json;charset=utf-8;base64,… correctly. So this isn't just a stack-overflow fix — it also extends remapping to data URLs that were silently skipped before.

Test design

The test is good:

constmatch=vi.spyOn(String.prototype,'match');remapErrorStack(...);expect(match.mock.calls.some(([pattern])=>String(pattern).includes('sourceMappingURL'))).toBe(false);

Enforcing the regex is NEVER called on the bundle is the right invariant — it documents that the implementation has moved off the regex path entirely, and would fail if someone accidentally regressed to match. The 1MB padding setup is enough to actually trigger the V8 stack overflow if the regex came back.

Small observation (not a blocker)

The implementation duplicates the same pattern Peter has in packages/next/src/builder-deferred.ts:956 (or had on the attributes-mvp-plan branch). If a third place ever needs to scan inline base64 sourcemaps, worth extracting extractInlineSourceMapBase64() + isBase64Char() to a shared util. Not needed now — two callsites doesn't justify the extraction overhead.

CI

No failures so far on the run (mostly in-progress), and most importantly the local test passes. Once the in-progress nextjs-webpack Local Dev jobs land green, this confirms the fix for the regression I flagged on PR #2088.

Approving.

@pranaygp
pranaygp disabled auto-merge May 28, 2026 17:42
@pranaygp
pranaygp enabled auto-merge (squash) May 28, 2026 17:43
@pranaygp
pranaygp merged commit 1e6b1fd into mainMay 28, 2026
181 of 191 checks passed
@pranaygp
pranaygp deleted the peter/fix-large-inline-sourcemap-remap branch May 28, 2026 18:06
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 1e6b1fd (AI decision).

This commit bundles the Attributes MVP — a new experimental v5-targeted feature with cross-package API additions (new experimental_setAttributes SDK export, new optional experimentalSetAttributes method on the World interface, a new Postgres migration adding an attributes JSONB column, new wire endpoint in world-vercel, schema changes to WorkflowRunBaseSchema, and v5 changelog docs) — alongside a small inline-sourcemap regex hardening fix. The dominant change is a deliberate v5 feature addition (documented under docs/content/docs/v5/changelog/) that should not land on the v4 stable branch. The embedded sourcemap fix could be cherry-picked separately if desired, but backporting this combined commit would inappropriately add the experimental Attributes API to the GA branch.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

1e6b1fdea2010c1f55b3e6fb5386d436c4406eb4

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.

3 participants

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

Attributes MVP (experimental and write-only) and CI hardening - #2134

Merged
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap
May 28, 2026
Merged

Attributes MVP (experimental and write-only) and CI hardening#2134
pranaygp merged 2 commits into
mainfrom
peter/fix-large-inline-sourcemap-remap

Conversation

@VaguelySerious

@VaguelySeriousVaguelySerious commented May 28, 2026

Copy link
Copy Markdown
Member

Includes all of #2088

and additionally fixes nextjs-webpack errors surfaced by doing:

  • replace workflow error remapping's inline sourcemap regex with string scanning
  • add regression coverage so large inline sourcemap bundles do not invoke the regex path
  • add a core changeset

@changeset-bot

changeset-botBot commented May 28, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 606af96

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

This PR includes changesets to release 20 packages
NameType
@workflow/corePatch
@workflow/worldPatch
@workflow/world-localPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
workflowPatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@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

@vercel

vercelBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented May 28, 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 (-4.3%)1.005s (~)0.963s101.00x
💻 LocalNitro0.044s (+1.6%)1.005s (~)0.961s101.03x
🐘 PostgresExpress0.060s (+3.3%)1.013s (~)0.953s101.41x
🐘 PostgresNitro0.062s (-34.5% 🟢)1.012s (-3.0%)0.950s101.47x
💻 LocalNext.js (Turbopack)0.065s1.006s0.941s101.52x
🐘 PostgresNext.js (Turbopack)0.068s1.012s0.944s101.60x
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-3.3%)2.006s (~)0.917s101.00x
💻 LocalNitro1.100s (-2.7%)2.006s (~)0.906s101.01x
🐘 PostgresExpress1.109s (-3.3%)2.010s (~)0.901s101.02x
🐘 PostgresNitro1.111s (-2.5%)2.010s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.126s2.006s0.880s101.03x
🐘 PostgresNext.js (Turbopack)1.140s2.008s0.868s101.05x
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express10.495s (-3.9%)11.021s (~)0.526s31.00x
🐘 PostgresNitro10.537s (-3.1%)11.019s (~)0.482s31.00x
💻 LocalNitro10.544s (-3.7%)11.024s (~)0.480s31.00x
🐘 PostgresExpress10.560s (-3.7%)11.013s (~)0.454s31.01x
💻 LocalNext.js (Turbopack)10.778s11.023s0.245s31.03x
🐘 PostgresNext.js (Turbopack)10.782s11.018s0.236s31.03x
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.682s (-8.6% 🟢)14.026s (-6.7% 🟢)0.345s51.00x
🐘 PostgresNitro13.734s (-5.9% 🟢)14.019s (-6.7% 🟢)0.285s51.00x
🐘 PostgresExpress13.847s (-5.0% 🟢)14.021s (-6.7% 🟢)0.174s51.01x
💻 LocalNitro13.866s (-7.9% 🟢)14.026s (-12.5% 🟢)0.160s51.01x
💻 LocalNext.js (Turbopack)14.329s15.030s0.701s41.05x
🐘 PostgresNext.js (Turbopack)14.399s15.014s0.616s41.05x
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express12.360s (-25.5% 🟢)13.024s (-23.5% 🟢)0.664s71.00x
💻 LocalNitro12.512s (-25.4% 🟢)13.026s (-23.5% 🟢)0.514s71.01x
🐘 PostgresNitro12.552s (-10.1% 🟢)13.020s (-9.0% 🟢)0.468s71.02x
🐘 PostgresExpress12.820s (-8.5% 🟢)13.164s (-9.8% 🟢)0.344s71.04x
💻 LocalNext.js (Turbopack)13.578s14.025s0.447s71.10x
🐘 PostgresNext.js (Turbopack)13.607s14.018s0.411s71.10x
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.185s (-7.1% 🟢)2.008s (~)0.823s151.00x
💻 LocalExpress1.186s (-20.4% 🟢)2.005s (~)0.820s151.00x
🐘 PostgresExpress1.192s (-5.4% 🟢)2.008s (~)0.816s151.01x
💻 LocalNitro1.214s (-25.6% 🟢)2.006s (-3.3%)0.792s151.03x
🐘 PostgresNext.js (Turbopack)1.222s2.007s0.784s151.03x
💻 LocalNext.js (Turbopack)1.332s2.005s0.673s151.12x
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.247s (-47.0% 🟢)2.008s (-33.3% 🟢)0.761s151.00x
🐘 PostgresExpress1.264s (-46.5% 🟢)2.009s (-33.2% 🟢)0.745s151.01x
🐘 PostgresNext.js (Turbopack)1.381s2.007s0.626s151.11x
💻 LocalNitro1.651s (-47.5% 🟢)2.006s (-48.4% 🟢)0.354s151.32x
💻 LocalExpress1.722s (-41.7% 🟢)2.005s (-41.9% 🟢)0.283s151.38x
💻 LocalNext.js (Turbopack)1.863s2.006s0.143s151.49x
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.373s (-60.5% 🟢)2.008s (-49.9% 🟢)0.634s151.00x
🐘 PostgresExpress1.407s (-59.6% 🟢)2.008s (-49.9% 🟢)0.600s151.02x
🐘 PostgresNext.js (Turbopack)1.734s2.223s0.489s141.26x
💻 LocalExpress4.768s (-42.8% 🟢)5.346s (-40.8% 🟢)0.579s63.47x
💻 LocalNitro4.806s (-42.4% 🟢)5.345s (-40.7% 🟢)0.539s63.50x
💻 LocalNext.js (Turbopack)5.709s6.214s0.505s54.16x
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.182s (-6.0% 🟢)2.008s (~)0.826s151.00x
🐘 PostgresExpress1.187s (-5.6% 🟢)2.009s (~)0.822s151.00x
🐘 PostgresNext.js (Turbopack)1.225s2.009s0.784s151.04x
💻 LocalNext.js (Turbopack)1.383s2.006s0.623s151.17x
💻 LocalExpress1.529s (-19.3% 🟢)2.007s (-15.1% 🟢)0.478s151.29x
💻 LocalNitro1.976s (+5.9% 🔺)2.391s (+2.2%)0.416s131.67x
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-47.3% 🟢)2.008s (-33.3% 🟢)0.774s151.00x
🐘 PostgresExpress1.266s (-45.9% 🟢)2.008s (-33.3% 🟢)0.742s151.03x
🐘 PostgresNext.js (Turbopack)1.363s2.006s0.644s151.10x
💻 LocalNitro1.729s (-43.6% 🟢)2.008s (-48.3% 🟢)0.280s151.40x
💻 LocalExpress1.962s (-37.4% 🟢)2.316s (-38.4% 🟢)0.354s131.59x
💻 LocalNext.js (Turbopack)2.054s2.507s0.453s121.66x
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.367s (-60.7% 🟢)2.008s (-49.9% 🟢)0.641s151.00x
🐘 PostgresExpress1.398s (-60.0% 🟢)2.008s (-49.9% 🟢)0.610s151.02x
🐘 PostgresNext.js (Turbopack)1.685s2.145s0.460s151.23x
💻 LocalNitro4.761s (-47.9% 🟢)5.346s (-46.7% 🟢)0.585s63.48x
💻 LocalNext.js (Turbopack)5.478s6.215s0.737s54.01x
💻 LocalExpress5.671s (-35.6% 🟢)6.414s (-30.8% 🟢)0.743s54.15x
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.543s (-33.8% 🟢)1.007s (~)0.464s601.00x
🐘 PostgresExpress0.579s (-31.0% 🟢)1.007s (-1.6%)0.428s601.07x
💻 LocalExpress0.597s (-39.4% 🟢)1.005s (-6.6% 🟢)0.408s601.10x
💻 LocalNitro0.643s (-34.4% 🟢)1.039s (-5.0% 🟢)0.396s581.18x
🐘 PostgresNext.js (Turbopack)0.805s1.024s0.219s591.48x
💻 LocalNext.js (Turbopack)0.933s1.095s0.163s551.72x
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.364s (-29.2% 🟢)2.031s (-3.3%)0.667s451.00x
🐘 PostgresExpress1.391s (-29.6% 🟢)2.030s (-10.1% 🟢)0.640s451.02x
💻 LocalNitro1.522s (-49.9% 🟢)2.006s (-46.6% 🟢)0.484s451.12x
💻 LocalExpress1.634s (-45.8% 🟢)2.122s (-40.8% 🟢)0.489s431.20x
🐘 PostgresNext.js (Turbopack)1.891s2.029s0.138s451.39x
💻 LocalNext.js (Turbopack)2.053s2.734s0.681s331.50x
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.704s (-34.1% 🟢)3.085s (-33.0% 🟢)0.381s391.00x
🐘 PostgresExpress2.727s (-31.7% 🟢)3.137s (-28.2% 🟢)0.410s391.01x
💻 LocalExpress3.175s (-65.5% 🟢)4.009s (-60.0% 🟢)0.834s301.17x
💻 LocalNitro3.252s (-65.0% 🟢)4.009s (-60.0% 🟢)0.757s301.20x
🐘 PostgresNext.js (Turbopack)3.743s4.042s0.299s301.38x
💻 LocalNext.js (Turbopack)4.274s5.010s0.736s241.58x
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.218s (-23.0% 🟢)1.006s (~)0.788s601.00x
🐘 PostgresExpress0.226s (-19.8% 🟢)1.006s (~)0.780s601.04x
🐘 PostgresNext.js (Turbopack)0.277s1.006s0.729s601.27x
💻 LocalExpress0.401s (-28.4% 🟢)1.004s (~)0.603s601.84x
💻 LocalNitro0.445s (-26.3% 🟢)1.004s (-1.7%)0.559s602.04x
💻 LocalNext.js (Turbopack)0.596s1.039s0.443s582.73x
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.351s (-29.3% 🟢)1.006s (~)0.655s901.00x
🐘 PostgresExpress0.353s (-30.8% 🟢)1.006s (~)0.653s901.01x
🐘 PostgresNext.js (Turbopack)0.473s1.006s0.533s901.35x
💻 LocalExpress2.037s (-19.0% 🟢)2.580s (-14.3% 🟢)0.543s355.80x
💻 LocalNitro2.130s (-16.1% 🟢)2.766s (-8.1% 🟢)0.636s336.07x
💻 LocalNext.js (Turbopack)2.296s3.077s0.781s306.54x
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.678s (-14.2% 🟢)1.006s (~)0.329s1201.00x
🐘 PostgresExpress0.715s (-12.6% 🟢)1.006s (-1.1%)0.291s1201.06x
🐘 PostgresNext.js (Turbopack)0.964s1.508s0.543s801.42x
💻 LocalNitro9.308s (-16.8% 🟢)9.872s (-15.4% 🟢)0.564s1313.73x
💻 LocalExpress9.466s (-15.4% 🟢)10.111s (-15.3% 🟢)0.646s1213.96x
💻 LocalNext.js (Turbopack)10.478s11.299s0.821s1115.46x
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.159s (+482.0% 🔺)2.005s (+99.6% 🔺)0.012s (-1.7%)2.019s (+98.3% 🔺)0.860s101.00x
💻 LocalNitro1.159s (+442.5% 🔺)2.006s (+99.7% 🔺)0.013s (+7.2% 🔺)2.022s (+98.4% 🔺)0.862s101.00x
🐘 PostgresNitro1.160s (+465.9% 🔺)1.998s (+99.9% 🔺)0.001s (-33.3% 🟢)2.009s (+98.7% 🔺)0.849s101.00x
🐘 PostgresExpress1.176s (+473.5% 🔺)1.997s (+100.0% 🔺)0.001s (-18.8% 🟢)2.010s (+98.8% 🔺)0.834s101.02x
💻 LocalNext.js (Turbopack)1.208s2.004s0.013s2.020s0.812s101.04x
🐘 PostgresNext.js (Turbopack)1.230s2.001s0.001s2.009s0.779s101.06x
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.581s (+108.8% 🔺)2.012s (+95.5% 🔺)0.009s (-9.4% 🟢)2.022s (+94.5% 🔺)0.441s301.00x
🐘 PostgresNitro1.583s (+153.6% 🔺)2.002s (+98.9% 🔺)0.004s (-6.5% 🟢)2.026s (+98.1% 🔺)0.443s301.00x
💻 LocalNitro1.597s (+90.4% 🔺)2.011s (+98.8% 🔺)0.010s (+8.5% 🔺)2.024s (+81.3% 🔺)0.427s301.01x
🐘 PostgresExpress1.606s (+154.9% 🔺)2.006s (+99.3% 🔺)0.004s (+1.8%)2.025s (+97.9% 🔺)0.419s301.02x
🐘 PostgresNext.js (Turbopack)1.723s2.010s0.004s2.025s0.301s301.09x
💻 LocalNext.js (Turbopack)1.734s2.044s0.011s2.057s0.323s301.10x
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.704s (-27.4% 🟢)1.015s (-18.6% 🟢)0.000s (-100.0% 🟢)1.024s (-18.6% 🟢)0.321s591.00x
🐘 PostgresExpress0.706s (-26.5% 🟢)1.014s (-20.6% 🟢)0.000s (+16.9% 🔺)1.026s (-21.5% 🟢)0.319s591.00x
🐘 PostgresNext.js (Turbopack)0.838s1.052s0.000s1.060s0.221s571.19x
💻 LocalExpress1.413s (+15.4% 🔺)2.015s (~)0.000s (-60.0% 🟢)2.017s (~)0.603s302.01x
💻 LocalNitro1.469s (+20.2% 🔺)2.014s (~)0.000s (+66.7% 🔺)2.016s (~)0.547s302.09x
💻 LocalNext.js (Turbopack)1.492s2.014s0.000s2.017s0.525s302.12x
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.285s (-28.3% 🟢)2.067s (-3.5%)0.000s (+93.1% 🔺)2.108s (-3.1%)0.823s291.00x
🐘 PostgresExpress1.374s (-22.5% 🟢)2.068s (-5.0% 🟢)0.000s (+Infinity% 🔺)2.096s (-4.7%)0.722s291.07x
🐘 PostgresNext.js (Turbopack)1.812s2.350s0.000s2.392s0.580s261.41x
💻 LocalExpress3.165s (-8.7% 🟢)3.843s (-4.7%)0.001s (-29.7% 🟢)3.846s (-4.7%)0.681s162.46x
💻 LocalNext.js (Turbopack)3.200s3.778s0.000s3.782s0.581s162.49x
💻 LocalNitro3.307s (-2.4%)3.769s (-6.5% 🟢)0.001s (+75.8% 🔺)3.785s (-6.2% 🟢)0.478s162.57x

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalExpress15/21
🐘 PostgresNitro19/21
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run


Some benchmark jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented May 28, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production125502191474
✅ 💻 Local Development165702191876
✅ 📦 Local Production165702191876
✅ 🐘 Local Postgres165702191876
✅ 🪟 Windows13400134
✅ 📋 Other7620176938
Total7122010528174

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro108026
✅ example108026
✅ express108026
✅ fastify108026
✅ hono108026
✅ nextjs-turbopack13202
✅ nextjs-webpack13202
✅ nitro108026
✅ nuxt108026
✅ sveltekit12707
✅ vite108026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable109025
✅ express-stable109025
✅ fastify-stable109025
✅ hono-stable109025
✅ nextjs-turbopack-canary115019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13400
✅ nextjs-turbopack-stable-lazy-discovery-enabled13400
✅ nextjs-webpack-canary115019
✅ nextjs-webpack-stable-lazy-discovery-disabled13400
✅ nextjs-webpack-stable-lazy-discovery-enabled13400
✅ nitro-stable109025
✅ nuxt-stable109025
✅ sveltekit-stable12806
✅ vite-stable109025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13400
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable109025
✅ e2e-local-dev-tanstack-start-109025
✅ e2e-local-postgres-nest-stable109025
✅ e2e-local-postgres-tanstack-start-109025
✅ e2e-local-prod-nest-stable109025
✅ e2e-local-prod-tanstack-start-109025
✅ e2e-vercel-prod-tanstack-start108026

📋 View full workflow run

@VaguelySerious
VaguelySerious marked this pull request as ready for review May 28, 2026 11:18
@VaguelySerious
VaguelySerious requested a review from a team as a code ownerMay 28, 2026 11:18
@VaguelySerious
VaguelySerious enabled auto-merge (squash) May 28, 2026 11:20

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approve — this is exactly the fix the PR #2088 review flagged

I'd called out the Maximum call stack size exceeded regression on PR #2088 and noted that Peter's earlier attempt (930886fe3 fix(next): replace base64 sourcemap regex with string scan on the attributes-mvp-plan branch) targeted the wrong file — builder-deferred.ts. The actual failing path was workflow-handler error stack remapping in source-map.ts, which uses an independent copy of the same regex. This PR fixes the right file.

Diagnosis confirmed

The original regex:

workflowCode.match(/\/\/#sourceMappingURL=data:application\/json;base64,(.+)/)

The (.+) greedy capture against multi-MB base64 payloads is what triggers V8's irregexp recursion stack overflow. Same root cause as the matchAll regex Peter previously hit in the deferred-entries discoverer.

What I verified locally

  • pnpm turbo run build --filter @workflow/core
  • pnpm --filter @workflow/core test ✓ (1024 pass — 1 new, 1023 existing)
  • pnpm --filter @workflow/core exec vitest run src/source-map.test.ts
  • Manual smoke test of 5 edge cases against the built artifact:
    • Happy path with valid map ✓
    • 1MB padding (would crash the regex) ✓
    • No-map case returns original stack ✓
    • data:application/json;charset=utf-8;base64,… parameter handling ✓
    • Comma-before-;base64, correctly bails ✓

Bonus: the new scanner is strictly more permissive than the old regex

The old regex required the data URL to be exactly data:application/json;base64,… — no parameters allowed ((.+) would never match if e.g. ;charset=utf-8; appeared between json and ;base64,). The new scanner searches for ;base64, after the prefix, so it also handles data:application/json;charset=utf-8;base64,… correctly. So this isn't just a stack-overflow fix — it also extends remapping to data URLs that were silently skipped before.

Test design

The test is good:

constmatch=vi.spyOn(String.prototype,'match');remapErrorStack(...);expect(match.mock.calls.some(([pattern])=>String(pattern).includes('sourceMappingURL'))).toBe(false);

Enforcing the regex is NEVER called on the bundle is the right invariant — it documents that the implementation has moved off the regex path entirely, and would fail if someone accidentally regressed to match. The 1MB padding setup is enough to actually trigger the V8 stack overflow if the regex came back.

Small observation (not a blocker)

The implementation duplicates the same pattern Peter has in packages/next/src/builder-deferred.ts:956 (or had on the attributes-mvp-plan branch). If a third place ever needs to scan inline base64 sourcemaps, worth extracting extractInlineSourceMapBase64() + isBase64Char() to a shared util. Not needed now — two callsites doesn't justify the extraction overhead.

CI

No failures so far on the run (mostly in-progress), and most importantly the local test passes. Once the in-progress nextjs-webpack Local Dev jobs land green, this confirms the fix for the regression I flagged on PR #2088.

Approving.

@pranaygp
pranaygp disabled auto-merge May 28, 2026 17:42
@pranaygp
pranaygp enabled auto-merge (squash) May 28, 2026 17:43
@pranaygp
pranaygp merged commit 1e6b1fd into mainMay 28, 2026
181 of 191 checks passed
@pranaygp
pranaygp deleted the peter/fix-large-inline-sourcemap-remap branch May 28, 2026 18:06
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 1e6b1fd (AI decision).

This commit bundles the Attributes MVP — a new experimental v5-targeted feature with cross-package API additions (new experimental_setAttributes SDK export, new optional experimentalSetAttributes method on the World interface, a new Postgres migration adding an attributes JSONB column, new wire endpoint in world-vercel, schema changes to WorkflowRunBaseSchema, and v5 changelog docs) — alongside a small inline-sourcemap regex hardening fix. The dominant change is a deliberate v5 feature addition (documented under docs/content/docs/v5/changelog/) that should not land on the v4 stable branch. The embedded sourcemap fix could be cherry-picked separately if desired, but backporting this combined commit would inappropriately add the experimental Attributes API to the GA branch.

To override, re-run the Backport to stable workflow manually via workflow_dispatch and paste this commit SHA into the ref input:

1e6b1fdea2010c1f55b3e6fb5386d436c4406eb4

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.

3 participants

@VaguelySerious@TooTallNate@pranaygp