fix(core): skip replay after terminal event refresh - #2215

Merged
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay
Jun 2, 2026
Merged

fix(core): skip replay after terminal event refresh#2215
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Forward-ports the terminal run event replay guard from stable PR #2214 to main's refactored runtime path.

main already skipped replay when the initially loaded/preloaded event snapshot contained a terminal run event. This adds the same terminal-event check after the elapsed-wait completion path refreshes the event snapshot, so a concurrently recorded run_failed, run_cancelled, or run_completed ends the current delivery instead of being passed into workflow replay as an orphaned event.

Root Cause

A handler can load a running materialized run and an event snapshot, complete an elapsed wait, then refresh events before replaying. If another handler records a terminal run event during that refresh window, the refreshed event log already establishes the run outcome even though this handler's materialized workflowRun.status is still running.

Without a post-refresh terminal check, runWorkflow can see the terminal event as unrelated replay input and the runtime can record or queue an additional divergence/failure path for a run that is already terminal.

Validation

  • fnm exec --using v22.18.0 pnpm install
  • fnm exec --using v22.18.0 pnpm --filter '@workflow/core...' build
  • fnm exec --using v22.18.0 pnpm --dir packages/core exec vitest run src/runtime.test.ts src/runtime/wait-completion-replay.test.ts
  • git diff --check
  • fnm exec --using v22.18.0 pnpm exec biome check packages/core/src/runtime.ts packages/core/src/runtime/wait-completion-replay.test.ts .changeset/terminal-run-event-replay-main.md

Validation caveat: the Biome check completed with the pre-existing runtime.ts complexity warnings and the existing unused suppression warning around the constant replay loop; no formatting fixes were applied.

@changeset-bot

changeset-botBot commented Jun 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0658e32

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
workflowPatch
@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 Jun 2, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jun 2, 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🥇 Nitro0.039s (-3.2%)1.006s (~)0.966s101.00x
💻 LocalExpress0.044s (+5.3% 🔺)1.005s (~)0.961s101.12x
🐘 PostgresNitro0.057s (-9.7% 🟢)1.012s (~)0.954s101.45x
🐘 PostgresExpress0.059s (-6.5% 🟢)1.011s (~)0.952s101.51x
💻 LocalNext.js (Turbopack)0.061s (+28.1% 🔺)1.007s (~)0.946s101.56x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-0.7%)2.006s (~)0.917s101.00x
💻 LocalNitro1.097s (+0.7%)2.006s (~)0.909s101.01x
🐘 PostgresNitro1.108s (-0.5%)2.009s (~)0.901s101.02x
🐘 PostgresExpress1.110s (~)2.009s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.125s (+1.8%)2.006s (~)0.882s101.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.505s (~)11.022s (~)0.517s31.00x
💻 LocalExpress10.546s (~)11.023s (~)0.478s31.00x
🐘 PostgresNitro10.552s (~)11.020s (~)0.468s31.00x
🐘 PostgresExpress10.595s (~)11.018s (~)0.423s31.01x
💻 LocalNext.js (Turbopack)10.800s (+1.5%)11.021s (~)0.222s31.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.767s (~)14.025s (~)0.258s51.00x
💻 LocalNitro13.807s (+0.8%)14.026s (~)0.219s51.00x
🐘 PostgresNitro13.817s (~)14.019s (~)0.202s51.00x
🐘 PostgresExpress13.846s (~)14.018s (~)0.173s51.01x
💻 LocalNext.js (Turbopack)14.592s (+4.5%)15.281s (+7.4% 🔺)0.689s41.06x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.308s (-1.0%)13.025s (~)0.716s71.00x
💻 LocalExpress12.452s (~)13.024s (~)0.572s71.01x
🐘 PostgresExpress12.604s (~)13.017s (~)0.413s71.02x
🐘 PostgresNitro12.666s (+0.5%)13.021s (~)0.355s71.03x
💻 LocalNext.js (Turbopack)13.658s (+5.8% 🔺)14.027s (+5.4% 🔺)0.370s71.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.167s (-1.6%)2.007s (~)0.839s151.00x
💻 LocalNitro1.177s (-4.7%)2.006s (~)0.829s151.01x
🐘 PostgresExpress1.192s (~)2.007s (~)0.815s151.02x
💻 LocalExpress1.210s (~)2.006s (~)0.796s151.04x
💻 LocalNext.js (Turbopack)1.374s (+5.1% 🔺)2.006s (~)0.632s151.18x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.222s (-2.3%)2.007s (~)0.785s151.00x
🐘 PostgresExpress1.252s (~)2.007s (~)0.755s151.02x
💻 LocalNitro1.702s (~)2.005s (~)0.303s151.39x
💻 LocalNext.js (Turbopack)1.736s (+6.4% 🔺)2.073s (~)0.337s151.42x
💻 LocalExpress1.833s (+3.9%)2.140s (+3.3%)0.307s151.50x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.326s (-4.6%)2.008s (~)0.681s151.00x
🐘 PostgresExpress1.338s (-4.0%)2.008s (~)0.670s151.01x
💻 LocalNitro4.725s (+5.3% 🔺)5.344s (+6.6% 🔺)0.619s63.56x
💻 LocalNext.js (Turbopack)4.834s (+30.4% 🔺)5.345s (+25.5% 🔺)0.511s63.64x
💻 LocalExpress5.440s (+22.5% 🔺)6.013s (+20.0% 🔺)0.573s64.10x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.180s (~)2.008s (~)0.828s151.00x
🐘 PostgresExpress1.182s (-0.5%)2.008s (~)0.826s151.00x
💻 LocalNext.js (Turbopack)1.398s (+7.7% 🔺)2.006s (~)0.608s151.19x
💻 LocalNitro1.549s (+1.9%)2.073s (+3.3%)0.524s151.31x
💻 LocalExpress1.560s (-2.2%)2.007s (~)0.446s151.32x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-7.7% 🟢)2.008s (-3.3%)0.774s151.00x
🐘 PostgresExpress1.237s (-2.2%)2.007s (~)0.770s151.00x
💻 LocalNext.js (Turbopack)1.951s (+7.5% 🔺)2.316s (+11.7% 🔺)0.365s131.58x
💻 LocalNitro1.973s (-7.9% 🟢)2.393s (-15.3% 🟢)0.420s131.60x
💻 LocalExpress2.189s (+6.3% 🔺)2.735s (+9.1% 🔺)0.546s111.77x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.351s (-4.7%)2.010s (~)0.659s151.00x
🐘 PostgresExpress1.379s (-2.7%)2.073s (+3.3%)0.694s151.02x
💻 LocalNitro5.077s (-6.0% 🟢)5.682s (-5.5% 🟢)0.605s63.76x
💻 LocalNext.js (Turbopack)5.298s (+30.3% 🔺)6.016s (+27.3% 🔺)0.718s63.92x
💻 LocalExpress5.853s (+3.7%)6.617s (+6.5% 🔺)0.763s54.33x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.574s (-3.1%)1.023s (~)0.450s591.00x
🐘 PostgresNitro0.581s (-2.1%)1.006s (-1.7%)0.425s601.01x
💻 LocalNitro0.582s (-0.8%)1.005s (~)0.422s601.02x
💻 LocalExpress0.606s (+2.3%)1.005s (~)0.399s601.06x
💻 LocalNext.js (Turbopack)0.879s (+23.6% 🔺)1.057s (+1.8%)0.178s571.53x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.347s (~)2.007s (~)0.659s451.00x
🐘 PostgresExpress1.352s (-2.3%)2.007s (-1.1%)0.655s451.00x
💻 LocalNitro1.465s (-1.0%)2.006s (~)0.541s451.09x
💻 LocalExpress1.513s (~)2.006s (~)0.493s451.12x
💻 LocalNext.js (Turbopack)2.144s (+24.2% 🔺)3.008s (+50.0% 🔺)0.864s301.59x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.661s (-2.2%)3.032s (-1.7%)0.371s401.00x
🐘 PostgresExpress2.690s (-1.5%)3.111s (-0.8%)0.422s391.01x
💻 LocalNitro3.247s (+1.4%)3.912s (-2.4%)0.665s311.22x
💻 LocalExpress3.323s (+2.7%)4.010s (~)0.687s301.25x
💻 LocalNext.js (Turbopack)4.390s (+22.2% 🔺)5.010s (+25.0% 🔺)0.620s241.65x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.210s (-9.5% 🟢)1.006s (~)0.796s601.00x
🐘 PostgresNitro0.231s (+6.1% 🔺)1.023s (+1.6%)0.792s591.10x
💻 LocalNitro0.428s (-7.4% 🟢)1.004s (~)0.576s602.04x
💻 LocalExpress0.446s (+2.9%)1.004s (~)0.559s602.12x
💻 LocalNext.js (Turbopack)0.594s (+19.0% 🔺)1.040s (+1.6%)0.446s582.83x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.323s (-10.1% 🟢)1.006s (~)0.683s901.00x
🐘 PostgresNitro0.332s (-4.6%)1.006s (~)0.674s901.03x
💻 LocalExpress2.168s (+3.4%)2.736s (+6.1% 🔺)0.568s336.71x
💻 LocalNitro2.170s (+1.7%)2.714s (-0.8%)0.544s346.72x
💻 LocalNext.js (Turbopack)2.336s (+14.8% 🔺)3.078s (+18.1% 🔺)0.742s307.23x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.631s (-9.0% 🟢)1.014s (+0.8%)0.383s1191.00x
🐘 PostgresExpress0.633s (-8.0% 🟢)1.006s (~)0.373s1201.00x
💻 LocalNitro9.373s (-3.6%)9.871s (-3.2%)0.498s1314.85x
💻 LocalExpress9.736s (+2.2%)10.360s (+1.6%)0.624s1215.42x
💻 LocalNext.js (Turbopack)10.465s (+14.0% 🔺)11.121s (+11.8% 🔺)0.656s1116.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.156s (-1.2%)2.004s (~)0.011s (+1.9%)2.017s (~)0.861s101.00x
🐘 PostgresNitro1.161s (~)2.002s (~)0.001s (-35.3% 🟢)2.010s (~)0.849s101.00x
💻 LocalExpress1.162s (-0.9%)2.005s (~)0.013s (+11.1% 🔺)2.020s (~)0.858s101.01x
🐘 PostgresExpress1.196s (+1.9%)2.001s (~)0.001s (-25.0% 🟢)2.009s (~)0.813s101.03x
💻 LocalNext.js (Turbopack)1.213s (-1.9%)2.004s (~)0.011s (+34.6% 🔺)2.019s (~)0.806s101.05x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.587s (~)2.010s (~)0.010s (+14.0% 🔺)2.022s (~)0.435s301.00x
🐘 PostgresNitro1.604s (+0.6%)2.005s (~)0.003s (-22.3% 🟢)2.020s (~)0.416s301.01x
🐘 PostgresExpress1.607s (~)2.003s (~)0.003s (-8.1% 🟢)2.023s (~)0.417s301.01x
💻 LocalNext.js (Turbopack)1.715s (+8.4% 🔺)2.008s (~)0.011s (+23.9% 🔺)2.022s (~)0.307s301.08x
💻 LocalNitro1.749s (+10.9% 🔺)2.009s (~)0.010s (-6.5% 🟢)2.200s (+8.8% 🔺)0.451s281.10x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.733s (+1.3%)1.052s (+2.1%)0.000s (-32.2% 🟢)1.060s (+1.0%)0.327s571.00x
🐘 PostgresExpress0.743s (+1.5%)1.050s (-1.6%)0.000s (+96.5% 🔺)1.069s (-1.0%)0.325s571.01x
💻 LocalNitro1.395s (-1.8%)2.013s (~)0.000s (+14.3% 🔺)2.015s (~)0.620s301.90x
💻 LocalExpress1.399s (+3.6%)2.013s (~)0.000s (+16.7% 🔺)2.015s (~)0.616s301.91x
💻 LocalNext.js (Turbopack)1.485s (+25.3% 🔺)2.013s (+6.8% 🔺)0.001s (+137.0% 🔺)2.017s (+6.8% 🔺)0.532s302.03x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.383s (-2.2%)2.069s (-1.6%)0.000s (+Infinity% 🔺)2.078s (-2.2%)0.695s291.00x
🐘 PostgresExpress1.492s (-5.4% 🟢)2.104s (-8.7% 🟢)0.000s (-10.3% 🟢)2.113s (-9.0% 🟢)0.621s291.08x
💻 LocalNext.js (Turbopack)2.917s (+23.8% 🔺)3.472s (+13.1% 🔺)0.001s (+205.6% 🔺)3.476s (+13.1% 🔺)0.559s182.11x
💻 LocalNitro3.137s (-0.7%)3.965s (+1.6%)0.001s (+142.9% 🔺)3.968s (+1.6%)0.832s162.27x
💻 LocalExpress3.546s (+1.6%)3.895s (~)0.001s (~)4.232s (~)0.687s152.56x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro14/21
🐘 PostgresNitro17/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)💻 Local21/21
Nitro🐘 Postgres15/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: failure
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production126242191485
❌ 💻 Local Development155412001755
❌ 📦 Local Production167012191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7061610338100

❌ Failed Tests

▲ Vercel Production (4 failed)

express (2 failed):

  • outputStreamWorkflow no startIndex (reads all chunks)
  • AbortController abortDeterministicBranchFromStepWorkflow: branches stay consistent when abort comes from a step

hono (1 failed):

  • AbortController abortFetchInFlightWorkflow: aborting cancels an in-flight fetch

nextjs-turbopack (1 failed):

  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KT4Q2JVMAAFKP78DWXAZE7WJ | 🔍 observability
💻 Local Development (1 failed)

nextjs-turbopack-stable-lazy-discovery-disabled (1 failed):

  • addTenWorkflow | wrun_01KT4PKX0BD9YMB88GD3FKASBD
📦 Local Production (1 failed)

express-stable (1 failed):

  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01KT4Q40P52FGB90BJ0SW360F7

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro109026
✅ example109026
❌ express107226
✅ fastify109026
❌ hono108126
❌ nextjs-turbopack13212
✅ nextjs-webpack13302
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
❌ nextjs-turbopack-stable-lazy-discovery-disabled13410
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
❌ express-stable109125
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@pranaygp
pranaygpforce-pushed the pranaygp/codex/forward-port-run-failed-replay branch from 15057e7 to ebfe9eaCompareJune 2, 2026 04:06
@pranaygp
pranaygp marked this pull request as ready for review June 2, 2026 04:08
@pranaygp
pranaygp requested a review from a team as a code ownerJune 2, 2026 04:08
CopilotAI review requested due to automatic review settings June 2, 2026 04:08
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 12c35b5 (AI decision).

This commit explicitly forward-ports stable PR #2214 to main's refactored runtime path. The PR body states the fix already exists on stable via #2214, so backporting this main-specific adaptation would conflict with or duplicate the equivalent fix already present on stable.

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

12c35b54ebf3d3c9fbc30462b42b05e5ce476a2b

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

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

fix(core): skip replay after terminal event refresh - #2215

Merged
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay
Jun 2, 2026
Merged

fix(core): skip replay after terminal event refresh#2215
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Forward-ports the terminal run event replay guard from stable PR #2214 to main's refactored runtime path.

main already skipped replay when the initially loaded/preloaded event snapshot contained a terminal run event. This adds the same terminal-event check after the elapsed-wait completion path refreshes the event snapshot, so a concurrently recorded run_failed, run_cancelled, or run_completed ends the current delivery instead of being passed into workflow replay as an orphaned event.

Root Cause

A handler can load a running materialized run and an event snapshot, complete an elapsed wait, then refresh events before replaying. If another handler records a terminal run event during that refresh window, the refreshed event log already establishes the run outcome even though this handler's materialized workflowRun.status is still running.

Without a post-refresh terminal check, runWorkflow can see the terminal event as unrelated replay input and the runtime can record or queue an additional divergence/failure path for a run that is already terminal.

Validation

  • fnm exec --using v22.18.0 pnpm install
  • fnm exec --using v22.18.0 pnpm --filter '@workflow/core...' build
  • fnm exec --using v22.18.0 pnpm --dir packages/core exec vitest run src/runtime.test.ts src/runtime/wait-completion-replay.test.ts
  • git diff --check
  • fnm exec --using v22.18.0 pnpm exec biome check packages/core/src/runtime.ts packages/core/src/runtime/wait-completion-replay.test.ts .changeset/terminal-run-event-replay-main.md

Validation caveat: the Biome check completed with the pre-existing runtime.ts complexity warnings and the existing unused suppression warning around the constant replay loop; no formatting fixes were applied.

@changeset-bot

changeset-botBot commented Jun 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0658e32

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
workflowPatch
@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 Jun 2, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jun 2, 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🥇 Nitro0.039s (-3.2%)1.006s (~)0.966s101.00x
💻 LocalExpress0.044s (+5.3% 🔺)1.005s (~)0.961s101.12x
🐘 PostgresNitro0.057s (-9.7% 🟢)1.012s (~)0.954s101.45x
🐘 PostgresExpress0.059s (-6.5% 🟢)1.011s (~)0.952s101.51x
💻 LocalNext.js (Turbopack)0.061s (+28.1% 🔺)1.007s (~)0.946s101.56x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-0.7%)2.006s (~)0.917s101.00x
💻 LocalNitro1.097s (+0.7%)2.006s (~)0.909s101.01x
🐘 PostgresNitro1.108s (-0.5%)2.009s (~)0.901s101.02x
🐘 PostgresExpress1.110s (~)2.009s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.125s (+1.8%)2.006s (~)0.882s101.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.505s (~)11.022s (~)0.517s31.00x
💻 LocalExpress10.546s (~)11.023s (~)0.478s31.00x
🐘 PostgresNitro10.552s (~)11.020s (~)0.468s31.00x
🐘 PostgresExpress10.595s (~)11.018s (~)0.423s31.01x
💻 LocalNext.js (Turbopack)10.800s (+1.5%)11.021s (~)0.222s31.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.767s (~)14.025s (~)0.258s51.00x
💻 LocalNitro13.807s (+0.8%)14.026s (~)0.219s51.00x
🐘 PostgresNitro13.817s (~)14.019s (~)0.202s51.00x
🐘 PostgresExpress13.846s (~)14.018s (~)0.173s51.01x
💻 LocalNext.js (Turbopack)14.592s (+4.5%)15.281s (+7.4% 🔺)0.689s41.06x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.308s (-1.0%)13.025s (~)0.716s71.00x
💻 LocalExpress12.452s (~)13.024s (~)0.572s71.01x
🐘 PostgresExpress12.604s (~)13.017s (~)0.413s71.02x
🐘 PostgresNitro12.666s (+0.5%)13.021s (~)0.355s71.03x
💻 LocalNext.js (Turbopack)13.658s (+5.8% 🔺)14.027s (+5.4% 🔺)0.370s71.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.167s (-1.6%)2.007s (~)0.839s151.00x
💻 LocalNitro1.177s (-4.7%)2.006s (~)0.829s151.01x
🐘 PostgresExpress1.192s (~)2.007s (~)0.815s151.02x
💻 LocalExpress1.210s (~)2.006s (~)0.796s151.04x
💻 LocalNext.js (Turbopack)1.374s (+5.1% 🔺)2.006s (~)0.632s151.18x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.222s (-2.3%)2.007s (~)0.785s151.00x
🐘 PostgresExpress1.252s (~)2.007s (~)0.755s151.02x
💻 LocalNitro1.702s (~)2.005s (~)0.303s151.39x
💻 LocalNext.js (Turbopack)1.736s (+6.4% 🔺)2.073s (~)0.337s151.42x
💻 LocalExpress1.833s (+3.9%)2.140s (+3.3%)0.307s151.50x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.326s (-4.6%)2.008s (~)0.681s151.00x
🐘 PostgresExpress1.338s (-4.0%)2.008s (~)0.670s151.01x
💻 LocalNitro4.725s (+5.3% 🔺)5.344s (+6.6% 🔺)0.619s63.56x
💻 LocalNext.js (Turbopack)4.834s (+30.4% 🔺)5.345s (+25.5% 🔺)0.511s63.64x
💻 LocalExpress5.440s (+22.5% 🔺)6.013s (+20.0% 🔺)0.573s64.10x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.180s (~)2.008s (~)0.828s151.00x
🐘 PostgresExpress1.182s (-0.5%)2.008s (~)0.826s151.00x
💻 LocalNext.js (Turbopack)1.398s (+7.7% 🔺)2.006s (~)0.608s151.19x
💻 LocalNitro1.549s (+1.9%)2.073s (+3.3%)0.524s151.31x
💻 LocalExpress1.560s (-2.2%)2.007s (~)0.446s151.32x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-7.7% 🟢)2.008s (-3.3%)0.774s151.00x
🐘 PostgresExpress1.237s (-2.2%)2.007s (~)0.770s151.00x
💻 LocalNext.js (Turbopack)1.951s (+7.5% 🔺)2.316s (+11.7% 🔺)0.365s131.58x
💻 LocalNitro1.973s (-7.9% 🟢)2.393s (-15.3% 🟢)0.420s131.60x
💻 LocalExpress2.189s (+6.3% 🔺)2.735s (+9.1% 🔺)0.546s111.77x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.351s (-4.7%)2.010s (~)0.659s151.00x
🐘 PostgresExpress1.379s (-2.7%)2.073s (+3.3%)0.694s151.02x
💻 LocalNitro5.077s (-6.0% 🟢)5.682s (-5.5% 🟢)0.605s63.76x
💻 LocalNext.js (Turbopack)5.298s (+30.3% 🔺)6.016s (+27.3% 🔺)0.718s63.92x
💻 LocalExpress5.853s (+3.7%)6.617s (+6.5% 🔺)0.763s54.33x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.574s (-3.1%)1.023s (~)0.450s591.00x
🐘 PostgresNitro0.581s (-2.1%)1.006s (-1.7%)0.425s601.01x
💻 LocalNitro0.582s (-0.8%)1.005s (~)0.422s601.02x
💻 LocalExpress0.606s (+2.3%)1.005s (~)0.399s601.06x
💻 LocalNext.js (Turbopack)0.879s (+23.6% 🔺)1.057s (+1.8%)0.178s571.53x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.347s (~)2.007s (~)0.659s451.00x
🐘 PostgresExpress1.352s (-2.3%)2.007s (-1.1%)0.655s451.00x
💻 LocalNitro1.465s (-1.0%)2.006s (~)0.541s451.09x
💻 LocalExpress1.513s (~)2.006s (~)0.493s451.12x
💻 LocalNext.js (Turbopack)2.144s (+24.2% 🔺)3.008s (+50.0% 🔺)0.864s301.59x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.661s (-2.2%)3.032s (-1.7%)0.371s401.00x
🐘 PostgresExpress2.690s (-1.5%)3.111s (-0.8%)0.422s391.01x
💻 LocalNitro3.247s (+1.4%)3.912s (-2.4%)0.665s311.22x
💻 LocalExpress3.323s (+2.7%)4.010s (~)0.687s301.25x
💻 LocalNext.js (Turbopack)4.390s (+22.2% 🔺)5.010s (+25.0% 🔺)0.620s241.65x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.210s (-9.5% 🟢)1.006s (~)0.796s601.00x
🐘 PostgresNitro0.231s (+6.1% 🔺)1.023s (+1.6%)0.792s591.10x
💻 LocalNitro0.428s (-7.4% 🟢)1.004s (~)0.576s602.04x
💻 LocalExpress0.446s (+2.9%)1.004s (~)0.559s602.12x
💻 LocalNext.js (Turbopack)0.594s (+19.0% 🔺)1.040s (+1.6%)0.446s582.83x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.323s (-10.1% 🟢)1.006s (~)0.683s901.00x
🐘 PostgresNitro0.332s (-4.6%)1.006s (~)0.674s901.03x
💻 LocalExpress2.168s (+3.4%)2.736s (+6.1% 🔺)0.568s336.71x
💻 LocalNitro2.170s (+1.7%)2.714s (-0.8%)0.544s346.72x
💻 LocalNext.js (Turbopack)2.336s (+14.8% 🔺)3.078s (+18.1% 🔺)0.742s307.23x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.631s (-9.0% 🟢)1.014s (+0.8%)0.383s1191.00x
🐘 PostgresExpress0.633s (-8.0% 🟢)1.006s (~)0.373s1201.00x
💻 LocalNitro9.373s (-3.6%)9.871s (-3.2%)0.498s1314.85x
💻 LocalExpress9.736s (+2.2%)10.360s (+1.6%)0.624s1215.42x
💻 LocalNext.js (Turbopack)10.465s (+14.0% 🔺)11.121s (+11.8% 🔺)0.656s1116.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.156s (-1.2%)2.004s (~)0.011s (+1.9%)2.017s (~)0.861s101.00x
🐘 PostgresNitro1.161s (~)2.002s (~)0.001s (-35.3% 🟢)2.010s (~)0.849s101.00x
💻 LocalExpress1.162s (-0.9%)2.005s (~)0.013s (+11.1% 🔺)2.020s (~)0.858s101.01x
🐘 PostgresExpress1.196s (+1.9%)2.001s (~)0.001s (-25.0% 🟢)2.009s (~)0.813s101.03x
💻 LocalNext.js (Turbopack)1.213s (-1.9%)2.004s (~)0.011s (+34.6% 🔺)2.019s (~)0.806s101.05x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.587s (~)2.010s (~)0.010s (+14.0% 🔺)2.022s (~)0.435s301.00x
🐘 PostgresNitro1.604s (+0.6%)2.005s (~)0.003s (-22.3% 🟢)2.020s (~)0.416s301.01x
🐘 PostgresExpress1.607s (~)2.003s (~)0.003s (-8.1% 🟢)2.023s (~)0.417s301.01x
💻 LocalNext.js (Turbopack)1.715s (+8.4% 🔺)2.008s (~)0.011s (+23.9% 🔺)2.022s (~)0.307s301.08x
💻 LocalNitro1.749s (+10.9% 🔺)2.009s (~)0.010s (-6.5% 🟢)2.200s (+8.8% 🔺)0.451s281.10x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.733s (+1.3%)1.052s (+2.1%)0.000s (-32.2% 🟢)1.060s (+1.0%)0.327s571.00x
🐘 PostgresExpress0.743s (+1.5%)1.050s (-1.6%)0.000s (+96.5% 🔺)1.069s (-1.0%)0.325s571.01x
💻 LocalNitro1.395s (-1.8%)2.013s (~)0.000s (+14.3% 🔺)2.015s (~)0.620s301.90x
💻 LocalExpress1.399s (+3.6%)2.013s (~)0.000s (+16.7% 🔺)2.015s (~)0.616s301.91x
💻 LocalNext.js (Turbopack)1.485s (+25.3% 🔺)2.013s (+6.8% 🔺)0.001s (+137.0% 🔺)2.017s (+6.8% 🔺)0.532s302.03x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.383s (-2.2%)2.069s (-1.6%)0.000s (+Infinity% 🔺)2.078s (-2.2%)0.695s291.00x
🐘 PostgresExpress1.492s (-5.4% 🟢)2.104s (-8.7% 🟢)0.000s (-10.3% 🟢)2.113s (-9.0% 🟢)0.621s291.08x
💻 LocalNext.js (Turbopack)2.917s (+23.8% 🔺)3.472s (+13.1% 🔺)0.001s (+205.6% 🔺)3.476s (+13.1% 🔺)0.559s182.11x
💻 LocalNitro3.137s (-0.7%)3.965s (+1.6%)0.001s (+142.9% 🔺)3.968s (+1.6%)0.832s162.27x
💻 LocalExpress3.546s (+1.6%)3.895s (~)0.001s (~)4.232s (~)0.687s152.56x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro14/21
🐘 PostgresNitro17/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)💻 Local21/21
Nitro🐘 Postgres15/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: failure
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production126242191485
❌ 💻 Local Development155412001755
❌ 📦 Local Production167012191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7061610338100

❌ Failed Tests

▲ Vercel Production (4 failed)

express (2 failed):

  • outputStreamWorkflow no startIndex (reads all chunks)
  • AbortController abortDeterministicBranchFromStepWorkflow: branches stay consistent when abort comes from a step

hono (1 failed):

  • AbortController abortFetchInFlightWorkflow: aborting cancels an in-flight fetch

nextjs-turbopack (1 failed):

  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KT4Q2JVMAAFKP78DWXAZE7WJ | 🔍 observability
💻 Local Development (1 failed)

nextjs-turbopack-stable-lazy-discovery-disabled (1 failed):

  • addTenWorkflow | wrun_01KT4PKX0BD9YMB88GD3FKASBD
📦 Local Production (1 failed)

express-stable (1 failed):

  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01KT4Q40P52FGB90BJ0SW360F7

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro109026
✅ example109026
❌ express107226
✅ fastify109026
❌ hono108126
❌ nextjs-turbopack13212
✅ nextjs-webpack13302
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
❌ nextjs-turbopack-stable-lazy-discovery-disabled13410
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
❌ express-stable109125
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@pranaygp
pranaygpforce-pushed the pranaygp/codex/forward-port-run-failed-replay branch from 15057e7 to ebfe9eaCompareJune 2, 2026 04:06
@pranaygp
pranaygp marked this pull request as ready for review June 2, 2026 04:08
@pranaygp
pranaygp requested a review from a team as a code ownerJune 2, 2026 04:08
CopilotAI review requested due to automatic review settings June 2, 2026 04:08
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 12c35b5 (AI decision).

This commit explicitly forward-ports stable PR #2214 to main's refactored runtime path. The PR body states the fix already exists on stable via #2214, so backporting this main-specific adaptation would conflict with or duplicate the equivalent fix already present on stable.

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

12c35b54ebf3d3c9fbc30462b42b05e5ce476a2b

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

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

fix(core): skip replay after terminal event refresh - #2215

Merged
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay
Jun 2, 2026
Merged

fix(core): skip replay after terminal event refresh#2215
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Forward-ports the terminal run event replay guard from stable PR #2214 to main's refactored runtime path.

main already skipped replay when the initially loaded/preloaded event snapshot contained a terminal run event. This adds the same terminal-event check after the elapsed-wait completion path refreshes the event snapshot, so a concurrently recorded run_failed, run_cancelled, or run_completed ends the current delivery instead of being passed into workflow replay as an orphaned event.

Root Cause

A handler can load a running materialized run and an event snapshot, complete an elapsed wait, then refresh events before replaying. If another handler records a terminal run event during that refresh window, the refreshed event log already establishes the run outcome even though this handler's materialized workflowRun.status is still running.

Without a post-refresh terminal check, runWorkflow can see the terminal event as unrelated replay input and the runtime can record or queue an additional divergence/failure path for a run that is already terminal.

Validation

  • fnm exec --using v22.18.0 pnpm install
  • fnm exec --using v22.18.0 pnpm --filter '@workflow/core...' build
  • fnm exec --using v22.18.0 pnpm --dir packages/core exec vitest run src/runtime.test.ts src/runtime/wait-completion-replay.test.ts
  • git diff --check
  • fnm exec --using v22.18.0 pnpm exec biome check packages/core/src/runtime.ts packages/core/src/runtime/wait-completion-replay.test.ts .changeset/terminal-run-event-replay-main.md

Validation caveat: the Biome check completed with the pre-existing runtime.ts complexity warnings and the existing unused suppression warning around the constant replay loop; no formatting fixes were applied.

@changeset-bot

changeset-botBot commented Jun 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0658e32

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
workflowPatch
@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 Jun 2, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jun 2, 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🥇 Nitro0.039s (-3.2%)1.006s (~)0.966s101.00x
💻 LocalExpress0.044s (+5.3% 🔺)1.005s (~)0.961s101.12x
🐘 PostgresNitro0.057s (-9.7% 🟢)1.012s (~)0.954s101.45x
🐘 PostgresExpress0.059s (-6.5% 🟢)1.011s (~)0.952s101.51x
💻 LocalNext.js (Turbopack)0.061s (+28.1% 🔺)1.007s (~)0.946s101.56x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-0.7%)2.006s (~)0.917s101.00x
💻 LocalNitro1.097s (+0.7%)2.006s (~)0.909s101.01x
🐘 PostgresNitro1.108s (-0.5%)2.009s (~)0.901s101.02x
🐘 PostgresExpress1.110s (~)2.009s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.125s (+1.8%)2.006s (~)0.882s101.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.505s (~)11.022s (~)0.517s31.00x
💻 LocalExpress10.546s (~)11.023s (~)0.478s31.00x
🐘 PostgresNitro10.552s (~)11.020s (~)0.468s31.00x
🐘 PostgresExpress10.595s (~)11.018s (~)0.423s31.01x
💻 LocalNext.js (Turbopack)10.800s (+1.5%)11.021s (~)0.222s31.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.767s (~)14.025s (~)0.258s51.00x
💻 LocalNitro13.807s (+0.8%)14.026s (~)0.219s51.00x
🐘 PostgresNitro13.817s (~)14.019s (~)0.202s51.00x
🐘 PostgresExpress13.846s (~)14.018s (~)0.173s51.01x
💻 LocalNext.js (Turbopack)14.592s (+4.5%)15.281s (+7.4% 🔺)0.689s41.06x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.308s (-1.0%)13.025s (~)0.716s71.00x
💻 LocalExpress12.452s (~)13.024s (~)0.572s71.01x
🐘 PostgresExpress12.604s (~)13.017s (~)0.413s71.02x
🐘 PostgresNitro12.666s (+0.5%)13.021s (~)0.355s71.03x
💻 LocalNext.js (Turbopack)13.658s (+5.8% 🔺)14.027s (+5.4% 🔺)0.370s71.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.167s (-1.6%)2.007s (~)0.839s151.00x
💻 LocalNitro1.177s (-4.7%)2.006s (~)0.829s151.01x
🐘 PostgresExpress1.192s (~)2.007s (~)0.815s151.02x
💻 LocalExpress1.210s (~)2.006s (~)0.796s151.04x
💻 LocalNext.js (Turbopack)1.374s (+5.1% 🔺)2.006s (~)0.632s151.18x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.222s (-2.3%)2.007s (~)0.785s151.00x
🐘 PostgresExpress1.252s (~)2.007s (~)0.755s151.02x
💻 LocalNitro1.702s (~)2.005s (~)0.303s151.39x
💻 LocalNext.js (Turbopack)1.736s (+6.4% 🔺)2.073s (~)0.337s151.42x
💻 LocalExpress1.833s (+3.9%)2.140s (+3.3%)0.307s151.50x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.326s (-4.6%)2.008s (~)0.681s151.00x
🐘 PostgresExpress1.338s (-4.0%)2.008s (~)0.670s151.01x
💻 LocalNitro4.725s (+5.3% 🔺)5.344s (+6.6% 🔺)0.619s63.56x
💻 LocalNext.js (Turbopack)4.834s (+30.4% 🔺)5.345s (+25.5% 🔺)0.511s63.64x
💻 LocalExpress5.440s (+22.5% 🔺)6.013s (+20.0% 🔺)0.573s64.10x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.180s (~)2.008s (~)0.828s151.00x
🐘 PostgresExpress1.182s (-0.5%)2.008s (~)0.826s151.00x
💻 LocalNext.js (Turbopack)1.398s (+7.7% 🔺)2.006s (~)0.608s151.19x
💻 LocalNitro1.549s (+1.9%)2.073s (+3.3%)0.524s151.31x
💻 LocalExpress1.560s (-2.2%)2.007s (~)0.446s151.32x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-7.7% 🟢)2.008s (-3.3%)0.774s151.00x
🐘 PostgresExpress1.237s (-2.2%)2.007s (~)0.770s151.00x
💻 LocalNext.js (Turbopack)1.951s (+7.5% 🔺)2.316s (+11.7% 🔺)0.365s131.58x
💻 LocalNitro1.973s (-7.9% 🟢)2.393s (-15.3% 🟢)0.420s131.60x
💻 LocalExpress2.189s (+6.3% 🔺)2.735s (+9.1% 🔺)0.546s111.77x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.351s (-4.7%)2.010s (~)0.659s151.00x
🐘 PostgresExpress1.379s (-2.7%)2.073s (+3.3%)0.694s151.02x
💻 LocalNitro5.077s (-6.0% 🟢)5.682s (-5.5% 🟢)0.605s63.76x
💻 LocalNext.js (Turbopack)5.298s (+30.3% 🔺)6.016s (+27.3% 🔺)0.718s63.92x
💻 LocalExpress5.853s (+3.7%)6.617s (+6.5% 🔺)0.763s54.33x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.574s (-3.1%)1.023s (~)0.450s591.00x
🐘 PostgresNitro0.581s (-2.1%)1.006s (-1.7%)0.425s601.01x
💻 LocalNitro0.582s (-0.8%)1.005s (~)0.422s601.02x
💻 LocalExpress0.606s (+2.3%)1.005s (~)0.399s601.06x
💻 LocalNext.js (Turbopack)0.879s (+23.6% 🔺)1.057s (+1.8%)0.178s571.53x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.347s (~)2.007s (~)0.659s451.00x
🐘 PostgresExpress1.352s (-2.3%)2.007s (-1.1%)0.655s451.00x
💻 LocalNitro1.465s (-1.0%)2.006s (~)0.541s451.09x
💻 LocalExpress1.513s (~)2.006s (~)0.493s451.12x
💻 LocalNext.js (Turbopack)2.144s (+24.2% 🔺)3.008s (+50.0% 🔺)0.864s301.59x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.661s (-2.2%)3.032s (-1.7%)0.371s401.00x
🐘 PostgresExpress2.690s (-1.5%)3.111s (-0.8%)0.422s391.01x
💻 LocalNitro3.247s (+1.4%)3.912s (-2.4%)0.665s311.22x
💻 LocalExpress3.323s (+2.7%)4.010s (~)0.687s301.25x
💻 LocalNext.js (Turbopack)4.390s (+22.2% 🔺)5.010s (+25.0% 🔺)0.620s241.65x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.210s (-9.5% 🟢)1.006s (~)0.796s601.00x
🐘 PostgresNitro0.231s (+6.1% 🔺)1.023s (+1.6%)0.792s591.10x
💻 LocalNitro0.428s (-7.4% 🟢)1.004s (~)0.576s602.04x
💻 LocalExpress0.446s (+2.9%)1.004s (~)0.559s602.12x
💻 LocalNext.js (Turbopack)0.594s (+19.0% 🔺)1.040s (+1.6%)0.446s582.83x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.323s (-10.1% 🟢)1.006s (~)0.683s901.00x
🐘 PostgresNitro0.332s (-4.6%)1.006s (~)0.674s901.03x
💻 LocalExpress2.168s (+3.4%)2.736s (+6.1% 🔺)0.568s336.71x
💻 LocalNitro2.170s (+1.7%)2.714s (-0.8%)0.544s346.72x
💻 LocalNext.js (Turbopack)2.336s (+14.8% 🔺)3.078s (+18.1% 🔺)0.742s307.23x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.631s (-9.0% 🟢)1.014s (+0.8%)0.383s1191.00x
🐘 PostgresExpress0.633s (-8.0% 🟢)1.006s (~)0.373s1201.00x
💻 LocalNitro9.373s (-3.6%)9.871s (-3.2%)0.498s1314.85x
💻 LocalExpress9.736s (+2.2%)10.360s (+1.6%)0.624s1215.42x
💻 LocalNext.js (Turbopack)10.465s (+14.0% 🔺)11.121s (+11.8% 🔺)0.656s1116.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.156s (-1.2%)2.004s (~)0.011s (+1.9%)2.017s (~)0.861s101.00x
🐘 PostgresNitro1.161s (~)2.002s (~)0.001s (-35.3% 🟢)2.010s (~)0.849s101.00x
💻 LocalExpress1.162s (-0.9%)2.005s (~)0.013s (+11.1% 🔺)2.020s (~)0.858s101.01x
🐘 PostgresExpress1.196s (+1.9%)2.001s (~)0.001s (-25.0% 🟢)2.009s (~)0.813s101.03x
💻 LocalNext.js (Turbopack)1.213s (-1.9%)2.004s (~)0.011s (+34.6% 🔺)2.019s (~)0.806s101.05x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.587s (~)2.010s (~)0.010s (+14.0% 🔺)2.022s (~)0.435s301.00x
🐘 PostgresNitro1.604s (+0.6%)2.005s (~)0.003s (-22.3% 🟢)2.020s (~)0.416s301.01x
🐘 PostgresExpress1.607s (~)2.003s (~)0.003s (-8.1% 🟢)2.023s (~)0.417s301.01x
💻 LocalNext.js (Turbopack)1.715s (+8.4% 🔺)2.008s (~)0.011s (+23.9% 🔺)2.022s (~)0.307s301.08x
💻 LocalNitro1.749s (+10.9% 🔺)2.009s (~)0.010s (-6.5% 🟢)2.200s (+8.8% 🔺)0.451s281.10x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.733s (+1.3%)1.052s (+2.1%)0.000s (-32.2% 🟢)1.060s (+1.0%)0.327s571.00x
🐘 PostgresExpress0.743s (+1.5%)1.050s (-1.6%)0.000s (+96.5% 🔺)1.069s (-1.0%)0.325s571.01x
💻 LocalNitro1.395s (-1.8%)2.013s (~)0.000s (+14.3% 🔺)2.015s (~)0.620s301.90x
💻 LocalExpress1.399s (+3.6%)2.013s (~)0.000s (+16.7% 🔺)2.015s (~)0.616s301.91x
💻 LocalNext.js (Turbopack)1.485s (+25.3% 🔺)2.013s (+6.8% 🔺)0.001s (+137.0% 🔺)2.017s (+6.8% 🔺)0.532s302.03x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.383s (-2.2%)2.069s (-1.6%)0.000s (+Infinity% 🔺)2.078s (-2.2%)0.695s291.00x
🐘 PostgresExpress1.492s (-5.4% 🟢)2.104s (-8.7% 🟢)0.000s (-10.3% 🟢)2.113s (-9.0% 🟢)0.621s291.08x
💻 LocalNext.js (Turbopack)2.917s (+23.8% 🔺)3.472s (+13.1% 🔺)0.001s (+205.6% 🔺)3.476s (+13.1% 🔺)0.559s182.11x
💻 LocalNitro3.137s (-0.7%)3.965s (+1.6%)0.001s (+142.9% 🔺)3.968s (+1.6%)0.832s162.27x
💻 LocalExpress3.546s (+1.6%)3.895s (~)0.001s (~)4.232s (~)0.687s152.56x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro14/21
🐘 PostgresNitro17/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)💻 Local21/21
Nitro🐘 Postgres15/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: failure
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production126242191485
❌ 💻 Local Development155412001755
❌ 📦 Local Production167012191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7061610338100

❌ Failed Tests

▲ Vercel Production (4 failed)

express (2 failed):

  • outputStreamWorkflow no startIndex (reads all chunks)
  • AbortController abortDeterministicBranchFromStepWorkflow: branches stay consistent when abort comes from a step

hono (1 failed):

  • AbortController abortFetchInFlightWorkflow: aborting cancels an in-flight fetch

nextjs-turbopack (1 failed):

  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KT4Q2JVMAAFKP78DWXAZE7WJ | 🔍 observability
💻 Local Development (1 failed)

nextjs-turbopack-stable-lazy-discovery-disabled (1 failed):

  • addTenWorkflow | wrun_01KT4PKX0BD9YMB88GD3FKASBD
📦 Local Production (1 failed)

express-stable (1 failed):

  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01KT4Q40P52FGB90BJ0SW360F7

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro109026
✅ example109026
❌ express107226
✅ fastify109026
❌ hono108126
❌ nextjs-turbopack13212
✅ nextjs-webpack13302
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
❌ nextjs-turbopack-stable-lazy-discovery-disabled13410
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
❌ express-stable109125
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@pranaygp
pranaygpforce-pushed the pranaygp/codex/forward-port-run-failed-replay branch from 15057e7 to ebfe9eaCompareJune 2, 2026 04:06
@pranaygp
pranaygp marked this pull request as ready for review June 2, 2026 04:08
@pranaygp
pranaygp requested a review from a team as a code ownerJune 2, 2026 04:08
CopilotAI review requested due to automatic review settings June 2, 2026 04:08
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 12c35b5 (AI decision).

This commit explicitly forward-ports stable PR #2214 to main's refactored runtime path. The PR body states the fix already exists on stable via #2214, so backporting this main-specific adaptation would conflict with or duplicate the equivalent fix already present on stable.

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

12c35b54ebf3d3c9fbc30462b42b05e5ce476a2b

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

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

fix(core): skip replay after terminal event refresh - #2215

Merged
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay
Jun 2, 2026
Merged

fix(core): skip replay after terminal event refresh#2215
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Forward-ports the terminal run event replay guard from stable PR #2214 to main's refactored runtime path.

main already skipped replay when the initially loaded/preloaded event snapshot contained a terminal run event. This adds the same terminal-event check after the elapsed-wait completion path refreshes the event snapshot, so a concurrently recorded run_failed, run_cancelled, or run_completed ends the current delivery instead of being passed into workflow replay as an orphaned event.

Root Cause

A handler can load a running materialized run and an event snapshot, complete an elapsed wait, then refresh events before replaying. If another handler records a terminal run event during that refresh window, the refreshed event log already establishes the run outcome even though this handler's materialized workflowRun.status is still running.

Without a post-refresh terminal check, runWorkflow can see the terminal event as unrelated replay input and the runtime can record or queue an additional divergence/failure path for a run that is already terminal.

Validation

  • fnm exec --using v22.18.0 pnpm install
  • fnm exec --using v22.18.0 pnpm --filter '@workflow/core...' build
  • fnm exec --using v22.18.0 pnpm --dir packages/core exec vitest run src/runtime.test.ts src/runtime/wait-completion-replay.test.ts
  • git diff --check
  • fnm exec --using v22.18.0 pnpm exec biome check packages/core/src/runtime.ts packages/core/src/runtime/wait-completion-replay.test.ts .changeset/terminal-run-event-replay-main.md

Validation caveat: the Biome check completed with the pre-existing runtime.ts complexity warnings and the existing unused suppression warning around the constant replay loop; no formatting fixes were applied.

@changeset-bot

changeset-botBot commented Jun 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0658e32

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
workflowPatch
@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 Jun 2, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jun 2, 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🥇 Nitro0.039s (-3.2%)1.006s (~)0.966s101.00x
💻 LocalExpress0.044s (+5.3% 🔺)1.005s (~)0.961s101.12x
🐘 PostgresNitro0.057s (-9.7% 🟢)1.012s (~)0.954s101.45x
🐘 PostgresExpress0.059s (-6.5% 🟢)1.011s (~)0.952s101.51x
💻 LocalNext.js (Turbopack)0.061s (+28.1% 🔺)1.007s (~)0.946s101.56x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-0.7%)2.006s (~)0.917s101.00x
💻 LocalNitro1.097s (+0.7%)2.006s (~)0.909s101.01x
🐘 PostgresNitro1.108s (-0.5%)2.009s (~)0.901s101.02x
🐘 PostgresExpress1.110s (~)2.009s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.125s (+1.8%)2.006s (~)0.882s101.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.505s (~)11.022s (~)0.517s31.00x
💻 LocalExpress10.546s (~)11.023s (~)0.478s31.00x
🐘 PostgresNitro10.552s (~)11.020s (~)0.468s31.00x
🐘 PostgresExpress10.595s (~)11.018s (~)0.423s31.01x
💻 LocalNext.js (Turbopack)10.800s (+1.5%)11.021s (~)0.222s31.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.767s (~)14.025s (~)0.258s51.00x
💻 LocalNitro13.807s (+0.8%)14.026s (~)0.219s51.00x
🐘 PostgresNitro13.817s (~)14.019s (~)0.202s51.00x
🐘 PostgresExpress13.846s (~)14.018s (~)0.173s51.01x
💻 LocalNext.js (Turbopack)14.592s (+4.5%)15.281s (+7.4% 🔺)0.689s41.06x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.308s (-1.0%)13.025s (~)0.716s71.00x
💻 LocalExpress12.452s (~)13.024s (~)0.572s71.01x
🐘 PostgresExpress12.604s (~)13.017s (~)0.413s71.02x
🐘 PostgresNitro12.666s (+0.5%)13.021s (~)0.355s71.03x
💻 LocalNext.js (Turbopack)13.658s (+5.8% 🔺)14.027s (+5.4% 🔺)0.370s71.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.167s (-1.6%)2.007s (~)0.839s151.00x
💻 LocalNitro1.177s (-4.7%)2.006s (~)0.829s151.01x
🐘 PostgresExpress1.192s (~)2.007s (~)0.815s151.02x
💻 LocalExpress1.210s (~)2.006s (~)0.796s151.04x
💻 LocalNext.js (Turbopack)1.374s (+5.1% 🔺)2.006s (~)0.632s151.18x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.222s (-2.3%)2.007s (~)0.785s151.00x
🐘 PostgresExpress1.252s (~)2.007s (~)0.755s151.02x
💻 LocalNitro1.702s (~)2.005s (~)0.303s151.39x
💻 LocalNext.js (Turbopack)1.736s (+6.4% 🔺)2.073s (~)0.337s151.42x
💻 LocalExpress1.833s (+3.9%)2.140s (+3.3%)0.307s151.50x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.326s (-4.6%)2.008s (~)0.681s151.00x
🐘 PostgresExpress1.338s (-4.0%)2.008s (~)0.670s151.01x
💻 LocalNitro4.725s (+5.3% 🔺)5.344s (+6.6% 🔺)0.619s63.56x
💻 LocalNext.js (Turbopack)4.834s (+30.4% 🔺)5.345s (+25.5% 🔺)0.511s63.64x
💻 LocalExpress5.440s (+22.5% 🔺)6.013s (+20.0% 🔺)0.573s64.10x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.180s (~)2.008s (~)0.828s151.00x
🐘 PostgresExpress1.182s (-0.5%)2.008s (~)0.826s151.00x
💻 LocalNext.js (Turbopack)1.398s (+7.7% 🔺)2.006s (~)0.608s151.19x
💻 LocalNitro1.549s (+1.9%)2.073s (+3.3%)0.524s151.31x
💻 LocalExpress1.560s (-2.2%)2.007s (~)0.446s151.32x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-7.7% 🟢)2.008s (-3.3%)0.774s151.00x
🐘 PostgresExpress1.237s (-2.2%)2.007s (~)0.770s151.00x
💻 LocalNext.js (Turbopack)1.951s (+7.5% 🔺)2.316s (+11.7% 🔺)0.365s131.58x
💻 LocalNitro1.973s (-7.9% 🟢)2.393s (-15.3% 🟢)0.420s131.60x
💻 LocalExpress2.189s (+6.3% 🔺)2.735s (+9.1% 🔺)0.546s111.77x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.351s (-4.7%)2.010s (~)0.659s151.00x
🐘 PostgresExpress1.379s (-2.7%)2.073s (+3.3%)0.694s151.02x
💻 LocalNitro5.077s (-6.0% 🟢)5.682s (-5.5% 🟢)0.605s63.76x
💻 LocalNext.js (Turbopack)5.298s (+30.3% 🔺)6.016s (+27.3% 🔺)0.718s63.92x
💻 LocalExpress5.853s (+3.7%)6.617s (+6.5% 🔺)0.763s54.33x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.574s (-3.1%)1.023s (~)0.450s591.00x
🐘 PostgresNitro0.581s (-2.1%)1.006s (-1.7%)0.425s601.01x
💻 LocalNitro0.582s (-0.8%)1.005s (~)0.422s601.02x
💻 LocalExpress0.606s (+2.3%)1.005s (~)0.399s601.06x
💻 LocalNext.js (Turbopack)0.879s (+23.6% 🔺)1.057s (+1.8%)0.178s571.53x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.347s (~)2.007s (~)0.659s451.00x
🐘 PostgresExpress1.352s (-2.3%)2.007s (-1.1%)0.655s451.00x
💻 LocalNitro1.465s (-1.0%)2.006s (~)0.541s451.09x
💻 LocalExpress1.513s (~)2.006s (~)0.493s451.12x
💻 LocalNext.js (Turbopack)2.144s (+24.2% 🔺)3.008s (+50.0% 🔺)0.864s301.59x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.661s (-2.2%)3.032s (-1.7%)0.371s401.00x
🐘 PostgresExpress2.690s (-1.5%)3.111s (-0.8%)0.422s391.01x
💻 LocalNitro3.247s (+1.4%)3.912s (-2.4%)0.665s311.22x
💻 LocalExpress3.323s (+2.7%)4.010s (~)0.687s301.25x
💻 LocalNext.js (Turbopack)4.390s (+22.2% 🔺)5.010s (+25.0% 🔺)0.620s241.65x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.210s (-9.5% 🟢)1.006s (~)0.796s601.00x
🐘 PostgresNitro0.231s (+6.1% 🔺)1.023s (+1.6%)0.792s591.10x
💻 LocalNitro0.428s (-7.4% 🟢)1.004s (~)0.576s602.04x
💻 LocalExpress0.446s (+2.9%)1.004s (~)0.559s602.12x
💻 LocalNext.js (Turbopack)0.594s (+19.0% 🔺)1.040s (+1.6%)0.446s582.83x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.323s (-10.1% 🟢)1.006s (~)0.683s901.00x
🐘 PostgresNitro0.332s (-4.6%)1.006s (~)0.674s901.03x
💻 LocalExpress2.168s (+3.4%)2.736s (+6.1% 🔺)0.568s336.71x
💻 LocalNitro2.170s (+1.7%)2.714s (-0.8%)0.544s346.72x
💻 LocalNext.js (Turbopack)2.336s (+14.8% 🔺)3.078s (+18.1% 🔺)0.742s307.23x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.631s (-9.0% 🟢)1.014s (+0.8%)0.383s1191.00x
🐘 PostgresExpress0.633s (-8.0% 🟢)1.006s (~)0.373s1201.00x
💻 LocalNitro9.373s (-3.6%)9.871s (-3.2%)0.498s1314.85x
💻 LocalExpress9.736s (+2.2%)10.360s (+1.6%)0.624s1215.42x
💻 LocalNext.js (Turbopack)10.465s (+14.0% 🔺)11.121s (+11.8% 🔺)0.656s1116.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.156s (-1.2%)2.004s (~)0.011s (+1.9%)2.017s (~)0.861s101.00x
🐘 PostgresNitro1.161s (~)2.002s (~)0.001s (-35.3% 🟢)2.010s (~)0.849s101.00x
💻 LocalExpress1.162s (-0.9%)2.005s (~)0.013s (+11.1% 🔺)2.020s (~)0.858s101.01x
🐘 PostgresExpress1.196s (+1.9%)2.001s (~)0.001s (-25.0% 🟢)2.009s (~)0.813s101.03x
💻 LocalNext.js (Turbopack)1.213s (-1.9%)2.004s (~)0.011s (+34.6% 🔺)2.019s (~)0.806s101.05x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.587s (~)2.010s (~)0.010s (+14.0% 🔺)2.022s (~)0.435s301.00x
🐘 PostgresNitro1.604s (+0.6%)2.005s (~)0.003s (-22.3% 🟢)2.020s (~)0.416s301.01x
🐘 PostgresExpress1.607s (~)2.003s (~)0.003s (-8.1% 🟢)2.023s (~)0.417s301.01x
💻 LocalNext.js (Turbopack)1.715s (+8.4% 🔺)2.008s (~)0.011s (+23.9% 🔺)2.022s (~)0.307s301.08x
💻 LocalNitro1.749s (+10.9% 🔺)2.009s (~)0.010s (-6.5% 🟢)2.200s (+8.8% 🔺)0.451s281.10x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.733s (+1.3%)1.052s (+2.1%)0.000s (-32.2% 🟢)1.060s (+1.0%)0.327s571.00x
🐘 PostgresExpress0.743s (+1.5%)1.050s (-1.6%)0.000s (+96.5% 🔺)1.069s (-1.0%)0.325s571.01x
💻 LocalNitro1.395s (-1.8%)2.013s (~)0.000s (+14.3% 🔺)2.015s (~)0.620s301.90x
💻 LocalExpress1.399s (+3.6%)2.013s (~)0.000s (+16.7% 🔺)2.015s (~)0.616s301.91x
💻 LocalNext.js (Turbopack)1.485s (+25.3% 🔺)2.013s (+6.8% 🔺)0.001s (+137.0% 🔺)2.017s (+6.8% 🔺)0.532s302.03x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.383s (-2.2%)2.069s (-1.6%)0.000s (+Infinity% 🔺)2.078s (-2.2%)0.695s291.00x
🐘 PostgresExpress1.492s (-5.4% 🟢)2.104s (-8.7% 🟢)0.000s (-10.3% 🟢)2.113s (-9.0% 🟢)0.621s291.08x
💻 LocalNext.js (Turbopack)2.917s (+23.8% 🔺)3.472s (+13.1% 🔺)0.001s (+205.6% 🔺)3.476s (+13.1% 🔺)0.559s182.11x
💻 LocalNitro3.137s (-0.7%)3.965s (+1.6%)0.001s (+142.9% 🔺)3.968s (+1.6%)0.832s162.27x
💻 LocalExpress3.546s (+1.6%)3.895s (~)0.001s (~)4.232s (~)0.687s152.56x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro14/21
🐘 PostgresNitro17/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)💻 Local21/21
Nitro🐘 Postgres15/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: failure
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production126242191485
❌ 💻 Local Development155412001755
❌ 📦 Local Production167012191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7061610338100

❌ Failed Tests

▲ Vercel Production (4 failed)

express (2 failed):

  • outputStreamWorkflow no startIndex (reads all chunks)
  • AbortController abortDeterministicBranchFromStepWorkflow: branches stay consistent when abort comes from a step

hono (1 failed):

  • AbortController abortFetchInFlightWorkflow: aborting cancels an in-flight fetch

nextjs-turbopack (1 failed):

  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KT4Q2JVMAAFKP78DWXAZE7WJ | 🔍 observability
💻 Local Development (1 failed)

nextjs-turbopack-stable-lazy-discovery-disabled (1 failed):

  • addTenWorkflow | wrun_01KT4PKX0BD9YMB88GD3FKASBD
📦 Local Production (1 failed)

express-stable (1 failed):

  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01KT4Q40P52FGB90BJ0SW360F7

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro109026
✅ example109026
❌ express107226
✅ fastify109026
❌ hono108126
❌ nextjs-turbopack13212
✅ nextjs-webpack13302
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
❌ nextjs-turbopack-stable-lazy-discovery-disabled13410
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
❌ express-stable109125
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@pranaygp
pranaygpforce-pushed the pranaygp/codex/forward-port-run-failed-replay branch from 15057e7 to ebfe9eaCompareJune 2, 2026 04:06
@pranaygp
pranaygp marked this pull request as ready for review June 2, 2026 04:08
@pranaygp
pranaygp requested a review from a team as a code ownerJune 2, 2026 04:08
CopilotAI review requested due to automatic review settings June 2, 2026 04:08
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 12c35b5 (AI decision).

This commit explicitly forward-ports stable PR #2214 to main's refactored runtime path. The PR body states the fix already exists on stable via #2214, so backporting this main-specific adaptation would conflict with or duplicate the equivalent fix already present on stable.

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

12c35b54ebf3d3c9fbc30462b42b05e5ce476a2b

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

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

fix(core): skip replay after terminal event refresh - #2215

Merged
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay
Jun 2, 2026
Merged

fix(core): skip replay after terminal event refresh#2215
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Forward-ports the terminal run event replay guard from stable PR #2214 to main's refactored runtime path.

main already skipped replay when the initially loaded/preloaded event snapshot contained a terminal run event. This adds the same terminal-event check after the elapsed-wait completion path refreshes the event snapshot, so a concurrently recorded run_failed, run_cancelled, or run_completed ends the current delivery instead of being passed into workflow replay as an orphaned event.

Root Cause

A handler can load a running materialized run and an event snapshot, complete an elapsed wait, then refresh events before replaying. If another handler records a terminal run event during that refresh window, the refreshed event log already establishes the run outcome even though this handler's materialized workflowRun.status is still running.

Without a post-refresh terminal check, runWorkflow can see the terminal event as unrelated replay input and the runtime can record or queue an additional divergence/failure path for a run that is already terminal.

Validation

  • fnm exec --using v22.18.0 pnpm install
  • fnm exec --using v22.18.0 pnpm --filter '@workflow/core...' build
  • fnm exec --using v22.18.0 pnpm --dir packages/core exec vitest run src/runtime.test.ts src/runtime/wait-completion-replay.test.ts
  • git diff --check
  • fnm exec --using v22.18.0 pnpm exec biome check packages/core/src/runtime.ts packages/core/src/runtime/wait-completion-replay.test.ts .changeset/terminal-run-event-replay-main.md

Validation caveat: the Biome check completed with the pre-existing runtime.ts complexity warnings and the existing unused suppression warning around the constant replay loop; no formatting fixes were applied.

@changeset-bot

changeset-botBot commented Jun 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0658e32

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
workflowPatch
@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 Jun 2, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jun 2, 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🥇 Nitro0.039s (-3.2%)1.006s (~)0.966s101.00x
💻 LocalExpress0.044s (+5.3% 🔺)1.005s (~)0.961s101.12x
🐘 PostgresNitro0.057s (-9.7% 🟢)1.012s (~)0.954s101.45x
🐘 PostgresExpress0.059s (-6.5% 🟢)1.011s (~)0.952s101.51x
💻 LocalNext.js (Turbopack)0.061s (+28.1% 🔺)1.007s (~)0.946s101.56x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-0.7%)2.006s (~)0.917s101.00x
💻 LocalNitro1.097s (+0.7%)2.006s (~)0.909s101.01x
🐘 PostgresNitro1.108s (-0.5%)2.009s (~)0.901s101.02x
🐘 PostgresExpress1.110s (~)2.009s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.125s (+1.8%)2.006s (~)0.882s101.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.505s (~)11.022s (~)0.517s31.00x
💻 LocalExpress10.546s (~)11.023s (~)0.478s31.00x
🐘 PostgresNitro10.552s (~)11.020s (~)0.468s31.00x
🐘 PostgresExpress10.595s (~)11.018s (~)0.423s31.01x
💻 LocalNext.js (Turbopack)10.800s (+1.5%)11.021s (~)0.222s31.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.767s (~)14.025s (~)0.258s51.00x
💻 LocalNitro13.807s (+0.8%)14.026s (~)0.219s51.00x
🐘 PostgresNitro13.817s (~)14.019s (~)0.202s51.00x
🐘 PostgresExpress13.846s (~)14.018s (~)0.173s51.01x
💻 LocalNext.js (Turbopack)14.592s (+4.5%)15.281s (+7.4% 🔺)0.689s41.06x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.308s (-1.0%)13.025s (~)0.716s71.00x
💻 LocalExpress12.452s (~)13.024s (~)0.572s71.01x
🐘 PostgresExpress12.604s (~)13.017s (~)0.413s71.02x
🐘 PostgresNitro12.666s (+0.5%)13.021s (~)0.355s71.03x
💻 LocalNext.js (Turbopack)13.658s (+5.8% 🔺)14.027s (+5.4% 🔺)0.370s71.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.167s (-1.6%)2.007s (~)0.839s151.00x
💻 LocalNitro1.177s (-4.7%)2.006s (~)0.829s151.01x
🐘 PostgresExpress1.192s (~)2.007s (~)0.815s151.02x
💻 LocalExpress1.210s (~)2.006s (~)0.796s151.04x
💻 LocalNext.js (Turbopack)1.374s (+5.1% 🔺)2.006s (~)0.632s151.18x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.222s (-2.3%)2.007s (~)0.785s151.00x
🐘 PostgresExpress1.252s (~)2.007s (~)0.755s151.02x
💻 LocalNitro1.702s (~)2.005s (~)0.303s151.39x
💻 LocalNext.js (Turbopack)1.736s (+6.4% 🔺)2.073s (~)0.337s151.42x
💻 LocalExpress1.833s (+3.9%)2.140s (+3.3%)0.307s151.50x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.326s (-4.6%)2.008s (~)0.681s151.00x
🐘 PostgresExpress1.338s (-4.0%)2.008s (~)0.670s151.01x
💻 LocalNitro4.725s (+5.3% 🔺)5.344s (+6.6% 🔺)0.619s63.56x
💻 LocalNext.js (Turbopack)4.834s (+30.4% 🔺)5.345s (+25.5% 🔺)0.511s63.64x
💻 LocalExpress5.440s (+22.5% 🔺)6.013s (+20.0% 🔺)0.573s64.10x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.180s (~)2.008s (~)0.828s151.00x
🐘 PostgresExpress1.182s (-0.5%)2.008s (~)0.826s151.00x
💻 LocalNext.js (Turbopack)1.398s (+7.7% 🔺)2.006s (~)0.608s151.19x
💻 LocalNitro1.549s (+1.9%)2.073s (+3.3%)0.524s151.31x
💻 LocalExpress1.560s (-2.2%)2.007s (~)0.446s151.32x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-7.7% 🟢)2.008s (-3.3%)0.774s151.00x
🐘 PostgresExpress1.237s (-2.2%)2.007s (~)0.770s151.00x
💻 LocalNext.js (Turbopack)1.951s (+7.5% 🔺)2.316s (+11.7% 🔺)0.365s131.58x
💻 LocalNitro1.973s (-7.9% 🟢)2.393s (-15.3% 🟢)0.420s131.60x
💻 LocalExpress2.189s (+6.3% 🔺)2.735s (+9.1% 🔺)0.546s111.77x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.351s (-4.7%)2.010s (~)0.659s151.00x
🐘 PostgresExpress1.379s (-2.7%)2.073s (+3.3%)0.694s151.02x
💻 LocalNitro5.077s (-6.0% 🟢)5.682s (-5.5% 🟢)0.605s63.76x
💻 LocalNext.js (Turbopack)5.298s (+30.3% 🔺)6.016s (+27.3% 🔺)0.718s63.92x
💻 LocalExpress5.853s (+3.7%)6.617s (+6.5% 🔺)0.763s54.33x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.574s (-3.1%)1.023s (~)0.450s591.00x
🐘 PostgresNitro0.581s (-2.1%)1.006s (-1.7%)0.425s601.01x
💻 LocalNitro0.582s (-0.8%)1.005s (~)0.422s601.02x
💻 LocalExpress0.606s (+2.3%)1.005s (~)0.399s601.06x
💻 LocalNext.js (Turbopack)0.879s (+23.6% 🔺)1.057s (+1.8%)0.178s571.53x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.347s (~)2.007s (~)0.659s451.00x
🐘 PostgresExpress1.352s (-2.3%)2.007s (-1.1%)0.655s451.00x
💻 LocalNitro1.465s (-1.0%)2.006s (~)0.541s451.09x
💻 LocalExpress1.513s (~)2.006s (~)0.493s451.12x
💻 LocalNext.js (Turbopack)2.144s (+24.2% 🔺)3.008s (+50.0% 🔺)0.864s301.59x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.661s (-2.2%)3.032s (-1.7%)0.371s401.00x
🐘 PostgresExpress2.690s (-1.5%)3.111s (-0.8%)0.422s391.01x
💻 LocalNitro3.247s (+1.4%)3.912s (-2.4%)0.665s311.22x
💻 LocalExpress3.323s (+2.7%)4.010s (~)0.687s301.25x
💻 LocalNext.js (Turbopack)4.390s (+22.2% 🔺)5.010s (+25.0% 🔺)0.620s241.65x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.210s (-9.5% 🟢)1.006s (~)0.796s601.00x
🐘 PostgresNitro0.231s (+6.1% 🔺)1.023s (+1.6%)0.792s591.10x
💻 LocalNitro0.428s (-7.4% 🟢)1.004s (~)0.576s602.04x
💻 LocalExpress0.446s (+2.9%)1.004s (~)0.559s602.12x
💻 LocalNext.js (Turbopack)0.594s (+19.0% 🔺)1.040s (+1.6%)0.446s582.83x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.323s (-10.1% 🟢)1.006s (~)0.683s901.00x
🐘 PostgresNitro0.332s (-4.6%)1.006s (~)0.674s901.03x
💻 LocalExpress2.168s (+3.4%)2.736s (+6.1% 🔺)0.568s336.71x
💻 LocalNitro2.170s (+1.7%)2.714s (-0.8%)0.544s346.72x
💻 LocalNext.js (Turbopack)2.336s (+14.8% 🔺)3.078s (+18.1% 🔺)0.742s307.23x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.631s (-9.0% 🟢)1.014s (+0.8%)0.383s1191.00x
🐘 PostgresExpress0.633s (-8.0% 🟢)1.006s (~)0.373s1201.00x
💻 LocalNitro9.373s (-3.6%)9.871s (-3.2%)0.498s1314.85x
💻 LocalExpress9.736s (+2.2%)10.360s (+1.6%)0.624s1215.42x
💻 LocalNext.js (Turbopack)10.465s (+14.0% 🔺)11.121s (+11.8% 🔺)0.656s1116.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.156s (-1.2%)2.004s (~)0.011s (+1.9%)2.017s (~)0.861s101.00x
🐘 PostgresNitro1.161s (~)2.002s (~)0.001s (-35.3% 🟢)2.010s (~)0.849s101.00x
💻 LocalExpress1.162s (-0.9%)2.005s (~)0.013s (+11.1% 🔺)2.020s (~)0.858s101.01x
🐘 PostgresExpress1.196s (+1.9%)2.001s (~)0.001s (-25.0% 🟢)2.009s (~)0.813s101.03x
💻 LocalNext.js (Turbopack)1.213s (-1.9%)2.004s (~)0.011s (+34.6% 🔺)2.019s (~)0.806s101.05x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.587s (~)2.010s (~)0.010s (+14.0% 🔺)2.022s (~)0.435s301.00x
🐘 PostgresNitro1.604s (+0.6%)2.005s (~)0.003s (-22.3% 🟢)2.020s (~)0.416s301.01x
🐘 PostgresExpress1.607s (~)2.003s (~)0.003s (-8.1% 🟢)2.023s (~)0.417s301.01x
💻 LocalNext.js (Turbopack)1.715s (+8.4% 🔺)2.008s (~)0.011s (+23.9% 🔺)2.022s (~)0.307s301.08x
💻 LocalNitro1.749s (+10.9% 🔺)2.009s (~)0.010s (-6.5% 🟢)2.200s (+8.8% 🔺)0.451s281.10x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.733s (+1.3%)1.052s (+2.1%)0.000s (-32.2% 🟢)1.060s (+1.0%)0.327s571.00x
🐘 PostgresExpress0.743s (+1.5%)1.050s (-1.6%)0.000s (+96.5% 🔺)1.069s (-1.0%)0.325s571.01x
💻 LocalNitro1.395s (-1.8%)2.013s (~)0.000s (+14.3% 🔺)2.015s (~)0.620s301.90x
💻 LocalExpress1.399s (+3.6%)2.013s (~)0.000s (+16.7% 🔺)2.015s (~)0.616s301.91x
💻 LocalNext.js (Turbopack)1.485s (+25.3% 🔺)2.013s (+6.8% 🔺)0.001s (+137.0% 🔺)2.017s (+6.8% 🔺)0.532s302.03x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.383s (-2.2%)2.069s (-1.6%)0.000s (+Infinity% 🔺)2.078s (-2.2%)0.695s291.00x
🐘 PostgresExpress1.492s (-5.4% 🟢)2.104s (-8.7% 🟢)0.000s (-10.3% 🟢)2.113s (-9.0% 🟢)0.621s291.08x
💻 LocalNext.js (Turbopack)2.917s (+23.8% 🔺)3.472s (+13.1% 🔺)0.001s (+205.6% 🔺)3.476s (+13.1% 🔺)0.559s182.11x
💻 LocalNitro3.137s (-0.7%)3.965s (+1.6%)0.001s (+142.9% 🔺)3.968s (+1.6%)0.832s162.27x
💻 LocalExpress3.546s (+1.6%)3.895s (~)0.001s (~)4.232s (~)0.687s152.56x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro14/21
🐘 PostgresNitro17/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)💻 Local21/21
Nitro🐘 Postgres15/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: failure
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production126242191485
❌ 💻 Local Development155412001755
❌ 📦 Local Production167012191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7061610338100

❌ Failed Tests

▲ Vercel Production (4 failed)

express (2 failed):

  • outputStreamWorkflow no startIndex (reads all chunks)
  • AbortController abortDeterministicBranchFromStepWorkflow: branches stay consistent when abort comes from a step

hono (1 failed):

  • AbortController abortFetchInFlightWorkflow: aborting cancels an in-flight fetch

nextjs-turbopack (1 failed):

  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KT4Q2JVMAAFKP78DWXAZE7WJ | 🔍 observability
💻 Local Development (1 failed)

nextjs-turbopack-stable-lazy-discovery-disabled (1 failed):

  • addTenWorkflow | wrun_01KT4PKX0BD9YMB88GD3FKASBD
📦 Local Production (1 failed)

express-stable (1 failed):

  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01KT4Q40P52FGB90BJ0SW360F7

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro109026
✅ example109026
❌ express107226
✅ fastify109026
❌ hono108126
❌ nextjs-turbopack13212
✅ nextjs-webpack13302
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
❌ nextjs-turbopack-stable-lazy-discovery-disabled13410
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
❌ express-stable109125
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@pranaygp
pranaygpforce-pushed the pranaygp/codex/forward-port-run-failed-replay branch from 15057e7 to ebfe9eaCompareJune 2, 2026 04:06
@pranaygp
pranaygp marked this pull request as ready for review June 2, 2026 04:08
@pranaygp
pranaygp requested a review from a team as a code ownerJune 2, 2026 04:08
CopilotAI review requested due to automatic review settings June 2, 2026 04:08
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 12c35b5 (AI decision).

This commit explicitly forward-ports stable PR #2214 to main's refactored runtime path. The PR body states the fix already exists on stable via #2214, so backporting this main-specific adaptation would conflict with or duplicate the equivalent fix already present on stable.

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

12c35b54ebf3d3c9fbc30462b42b05e5ce476a2b

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

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

fix(core): skip replay after terminal event refresh - #2215

Merged
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay
Jun 2, 2026
Merged

fix(core): skip replay after terminal event refresh#2215
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Forward-ports the terminal run event replay guard from stable PR #2214 to main's refactored runtime path.

main already skipped replay when the initially loaded/preloaded event snapshot contained a terminal run event. This adds the same terminal-event check after the elapsed-wait completion path refreshes the event snapshot, so a concurrently recorded run_failed, run_cancelled, or run_completed ends the current delivery instead of being passed into workflow replay as an orphaned event.

Root Cause

A handler can load a running materialized run and an event snapshot, complete an elapsed wait, then refresh events before replaying. If another handler records a terminal run event during that refresh window, the refreshed event log already establishes the run outcome even though this handler's materialized workflowRun.status is still running.

Without a post-refresh terminal check, runWorkflow can see the terminal event as unrelated replay input and the runtime can record or queue an additional divergence/failure path for a run that is already terminal.

Validation

  • fnm exec --using v22.18.0 pnpm install
  • fnm exec --using v22.18.0 pnpm --filter '@workflow/core...' build
  • fnm exec --using v22.18.0 pnpm --dir packages/core exec vitest run src/runtime.test.ts src/runtime/wait-completion-replay.test.ts
  • git diff --check
  • fnm exec --using v22.18.0 pnpm exec biome check packages/core/src/runtime.ts packages/core/src/runtime/wait-completion-replay.test.ts .changeset/terminal-run-event-replay-main.md

Validation caveat: the Biome check completed with the pre-existing runtime.ts complexity warnings and the existing unused suppression warning around the constant replay loop; no formatting fixes were applied.

@changeset-bot

changeset-botBot commented Jun 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0658e32

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
workflowPatch
@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 Jun 2, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jun 2, 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🥇 Nitro0.039s (-3.2%)1.006s (~)0.966s101.00x
💻 LocalExpress0.044s (+5.3% 🔺)1.005s (~)0.961s101.12x
🐘 PostgresNitro0.057s (-9.7% 🟢)1.012s (~)0.954s101.45x
🐘 PostgresExpress0.059s (-6.5% 🟢)1.011s (~)0.952s101.51x
💻 LocalNext.js (Turbopack)0.061s (+28.1% 🔺)1.007s (~)0.946s101.56x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-0.7%)2.006s (~)0.917s101.00x
💻 LocalNitro1.097s (+0.7%)2.006s (~)0.909s101.01x
🐘 PostgresNitro1.108s (-0.5%)2.009s (~)0.901s101.02x
🐘 PostgresExpress1.110s (~)2.009s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.125s (+1.8%)2.006s (~)0.882s101.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.505s (~)11.022s (~)0.517s31.00x
💻 LocalExpress10.546s (~)11.023s (~)0.478s31.00x
🐘 PostgresNitro10.552s (~)11.020s (~)0.468s31.00x
🐘 PostgresExpress10.595s (~)11.018s (~)0.423s31.01x
💻 LocalNext.js (Turbopack)10.800s (+1.5%)11.021s (~)0.222s31.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.767s (~)14.025s (~)0.258s51.00x
💻 LocalNitro13.807s (+0.8%)14.026s (~)0.219s51.00x
🐘 PostgresNitro13.817s (~)14.019s (~)0.202s51.00x
🐘 PostgresExpress13.846s (~)14.018s (~)0.173s51.01x
💻 LocalNext.js (Turbopack)14.592s (+4.5%)15.281s (+7.4% 🔺)0.689s41.06x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.308s (-1.0%)13.025s (~)0.716s71.00x
💻 LocalExpress12.452s (~)13.024s (~)0.572s71.01x
🐘 PostgresExpress12.604s (~)13.017s (~)0.413s71.02x
🐘 PostgresNitro12.666s (+0.5%)13.021s (~)0.355s71.03x
💻 LocalNext.js (Turbopack)13.658s (+5.8% 🔺)14.027s (+5.4% 🔺)0.370s71.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.167s (-1.6%)2.007s (~)0.839s151.00x
💻 LocalNitro1.177s (-4.7%)2.006s (~)0.829s151.01x
🐘 PostgresExpress1.192s (~)2.007s (~)0.815s151.02x
💻 LocalExpress1.210s (~)2.006s (~)0.796s151.04x
💻 LocalNext.js (Turbopack)1.374s (+5.1% 🔺)2.006s (~)0.632s151.18x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.222s (-2.3%)2.007s (~)0.785s151.00x
🐘 PostgresExpress1.252s (~)2.007s (~)0.755s151.02x
💻 LocalNitro1.702s (~)2.005s (~)0.303s151.39x
💻 LocalNext.js (Turbopack)1.736s (+6.4% 🔺)2.073s (~)0.337s151.42x
💻 LocalExpress1.833s (+3.9%)2.140s (+3.3%)0.307s151.50x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.326s (-4.6%)2.008s (~)0.681s151.00x
🐘 PostgresExpress1.338s (-4.0%)2.008s (~)0.670s151.01x
💻 LocalNitro4.725s (+5.3% 🔺)5.344s (+6.6% 🔺)0.619s63.56x
💻 LocalNext.js (Turbopack)4.834s (+30.4% 🔺)5.345s (+25.5% 🔺)0.511s63.64x
💻 LocalExpress5.440s (+22.5% 🔺)6.013s (+20.0% 🔺)0.573s64.10x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.180s (~)2.008s (~)0.828s151.00x
🐘 PostgresExpress1.182s (-0.5%)2.008s (~)0.826s151.00x
💻 LocalNext.js (Turbopack)1.398s (+7.7% 🔺)2.006s (~)0.608s151.19x
💻 LocalNitro1.549s (+1.9%)2.073s (+3.3%)0.524s151.31x
💻 LocalExpress1.560s (-2.2%)2.007s (~)0.446s151.32x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-7.7% 🟢)2.008s (-3.3%)0.774s151.00x
🐘 PostgresExpress1.237s (-2.2%)2.007s (~)0.770s151.00x
💻 LocalNext.js (Turbopack)1.951s (+7.5% 🔺)2.316s (+11.7% 🔺)0.365s131.58x
💻 LocalNitro1.973s (-7.9% 🟢)2.393s (-15.3% 🟢)0.420s131.60x
💻 LocalExpress2.189s (+6.3% 🔺)2.735s (+9.1% 🔺)0.546s111.77x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.351s (-4.7%)2.010s (~)0.659s151.00x
🐘 PostgresExpress1.379s (-2.7%)2.073s (+3.3%)0.694s151.02x
💻 LocalNitro5.077s (-6.0% 🟢)5.682s (-5.5% 🟢)0.605s63.76x
💻 LocalNext.js (Turbopack)5.298s (+30.3% 🔺)6.016s (+27.3% 🔺)0.718s63.92x
💻 LocalExpress5.853s (+3.7%)6.617s (+6.5% 🔺)0.763s54.33x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.574s (-3.1%)1.023s (~)0.450s591.00x
🐘 PostgresNitro0.581s (-2.1%)1.006s (-1.7%)0.425s601.01x
💻 LocalNitro0.582s (-0.8%)1.005s (~)0.422s601.02x
💻 LocalExpress0.606s (+2.3%)1.005s (~)0.399s601.06x
💻 LocalNext.js (Turbopack)0.879s (+23.6% 🔺)1.057s (+1.8%)0.178s571.53x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.347s (~)2.007s (~)0.659s451.00x
🐘 PostgresExpress1.352s (-2.3%)2.007s (-1.1%)0.655s451.00x
💻 LocalNitro1.465s (-1.0%)2.006s (~)0.541s451.09x
💻 LocalExpress1.513s (~)2.006s (~)0.493s451.12x
💻 LocalNext.js (Turbopack)2.144s (+24.2% 🔺)3.008s (+50.0% 🔺)0.864s301.59x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.661s (-2.2%)3.032s (-1.7%)0.371s401.00x
🐘 PostgresExpress2.690s (-1.5%)3.111s (-0.8%)0.422s391.01x
💻 LocalNitro3.247s (+1.4%)3.912s (-2.4%)0.665s311.22x
💻 LocalExpress3.323s (+2.7%)4.010s (~)0.687s301.25x
💻 LocalNext.js (Turbopack)4.390s (+22.2% 🔺)5.010s (+25.0% 🔺)0.620s241.65x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.210s (-9.5% 🟢)1.006s (~)0.796s601.00x
🐘 PostgresNitro0.231s (+6.1% 🔺)1.023s (+1.6%)0.792s591.10x
💻 LocalNitro0.428s (-7.4% 🟢)1.004s (~)0.576s602.04x
💻 LocalExpress0.446s (+2.9%)1.004s (~)0.559s602.12x
💻 LocalNext.js (Turbopack)0.594s (+19.0% 🔺)1.040s (+1.6%)0.446s582.83x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.323s (-10.1% 🟢)1.006s (~)0.683s901.00x
🐘 PostgresNitro0.332s (-4.6%)1.006s (~)0.674s901.03x
💻 LocalExpress2.168s (+3.4%)2.736s (+6.1% 🔺)0.568s336.71x
💻 LocalNitro2.170s (+1.7%)2.714s (-0.8%)0.544s346.72x
💻 LocalNext.js (Turbopack)2.336s (+14.8% 🔺)3.078s (+18.1% 🔺)0.742s307.23x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.631s (-9.0% 🟢)1.014s (+0.8%)0.383s1191.00x
🐘 PostgresExpress0.633s (-8.0% 🟢)1.006s (~)0.373s1201.00x
💻 LocalNitro9.373s (-3.6%)9.871s (-3.2%)0.498s1314.85x
💻 LocalExpress9.736s (+2.2%)10.360s (+1.6%)0.624s1215.42x
💻 LocalNext.js (Turbopack)10.465s (+14.0% 🔺)11.121s (+11.8% 🔺)0.656s1116.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.156s (-1.2%)2.004s (~)0.011s (+1.9%)2.017s (~)0.861s101.00x
🐘 PostgresNitro1.161s (~)2.002s (~)0.001s (-35.3% 🟢)2.010s (~)0.849s101.00x
💻 LocalExpress1.162s (-0.9%)2.005s (~)0.013s (+11.1% 🔺)2.020s (~)0.858s101.01x
🐘 PostgresExpress1.196s (+1.9%)2.001s (~)0.001s (-25.0% 🟢)2.009s (~)0.813s101.03x
💻 LocalNext.js (Turbopack)1.213s (-1.9%)2.004s (~)0.011s (+34.6% 🔺)2.019s (~)0.806s101.05x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.587s (~)2.010s (~)0.010s (+14.0% 🔺)2.022s (~)0.435s301.00x
🐘 PostgresNitro1.604s (+0.6%)2.005s (~)0.003s (-22.3% 🟢)2.020s (~)0.416s301.01x
🐘 PostgresExpress1.607s (~)2.003s (~)0.003s (-8.1% 🟢)2.023s (~)0.417s301.01x
💻 LocalNext.js (Turbopack)1.715s (+8.4% 🔺)2.008s (~)0.011s (+23.9% 🔺)2.022s (~)0.307s301.08x
💻 LocalNitro1.749s (+10.9% 🔺)2.009s (~)0.010s (-6.5% 🟢)2.200s (+8.8% 🔺)0.451s281.10x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.733s (+1.3%)1.052s (+2.1%)0.000s (-32.2% 🟢)1.060s (+1.0%)0.327s571.00x
🐘 PostgresExpress0.743s (+1.5%)1.050s (-1.6%)0.000s (+96.5% 🔺)1.069s (-1.0%)0.325s571.01x
💻 LocalNitro1.395s (-1.8%)2.013s (~)0.000s (+14.3% 🔺)2.015s (~)0.620s301.90x
💻 LocalExpress1.399s (+3.6%)2.013s (~)0.000s (+16.7% 🔺)2.015s (~)0.616s301.91x
💻 LocalNext.js (Turbopack)1.485s (+25.3% 🔺)2.013s (+6.8% 🔺)0.001s (+137.0% 🔺)2.017s (+6.8% 🔺)0.532s302.03x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.383s (-2.2%)2.069s (-1.6%)0.000s (+Infinity% 🔺)2.078s (-2.2%)0.695s291.00x
🐘 PostgresExpress1.492s (-5.4% 🟢)2.104s (-8.7% 🟢)0.000s (-10.3% 🟢)2.113s (-9.0% 🟢)0.621s291.08x
💻 LocalNext.js (Turbopack)2.917s (+23.8% 🔺)3.472s (+13.1% 🔺)0.001s (+205.6% 🔺)3.476s (+13.1% 🔺)0.559s182.11x
💻 LocalNitro3.137s (-0.7%)3.965s (+1.6%)0.001s (+142.9% 🔺)3.968s (+1.6%)0.832s162.27x
💻 LocalExpress3.546s (+1.6%)3.895s (~)0.001s (~)4.232s (~)0.687s152.56x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro14/21
🐘 PostgresNitro17/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)💻 Local21/21
Nitro🐘 Postgres15/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: failure
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production126242191485
❌ 💻 Local Development155412001755
❌ 📦 Local Production167012191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7061610338100

❌ Failed Tests

▲ Vercel Production (4 failed)

express (2 failed):

  • outputStreamWorkflow no startIndex (reads all chunks)
  • AbortController abortDeterministicBranchFromStepWorkflow: branches stay consistent when abort comes from a step

hono (1 failed):

  • AbortController abortFetchInFlightWorkflow: aborting cancels an in-flight fetch

nextjs-turbopack (1 failed):

  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KT4Q2JVMAAFKP78DWXAZE7WJ | 🔍 observability
💻 Local Development (1 failed)

nextjs-turbopack-stable-lazy-discovery-disabled (1 failed):

  • addTenWorkflow | wrun_01KT4PKX0BD9YMB88GD3FKASBD
📦 Local Production (1 failed)

express-stable (1 failed):

  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01KT4Q40P52FGB90BJ0SW360F7

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro109026
✅ example109026
❌ express107226
✅ fastify109026
❌ hono108126
❌ nextjs-turbopack13212
✅ nextjs-webpack13302
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
❌ nextjs-turbopack-stable-lazy-discovery-disabled13410
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
❌ express-stable109125
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@pranaygp
pranaygpforce-pushed the pranaygp/codex/forward-port-run-failed-replay branch from 15057e7 to ebfe9eaCompareJune 2, 2026 04:06
@pranaygp
pranaygp marked this pull request as ready for review June 2, 2026 04:08
@pranaygp
pranaygp requested a review from a team as a code ownerJune 2, 2026 04:08
CopilotAI review requested due to automatic review settings June 2, 2026 04:08
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 12c35b5 (AI decision).

This commit explicitly forward-ports stable PR #2214 to main's refactored runtime path. The PR body states the fix already exists on stable via #2214, so backporting this main-specific adaptation would conflict with or duplicate the equivalent fix already present on stable.

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

12c35b54ebf3d3c9fbc30462b42b05e5ce476a2b

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

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

fix(core): skip replay after terminal event refresh - #2215

Merged
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay
Jun 2, 2026
Merged

fix(core): skip replay after terminal event refresh#2215
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Forward-ports the terminal run event replay guard from stable PR #2214 to main's refactored runtime path.

main already skipped replay when the initially loaded/preloaded event snapshot contained a terminal run event. This adds the same terminal-event check after the elapsed-wait completion path refreshes the event snapshot, so a concurrently recorded run_failed, run_cancelled, or run_completed ends the current delivery instead of being passed into workflow replay as an orphaned event.

Root Cause

A handler can load a running materialized run and an event snapshot, complete an elapsed wait, then refresh events before replaying. If another handler records a terminal run event during that refresh window, the refreshed event log already establishes the run outcome even though this handler's materialized workflowRun.status is still running.

Without a post-refresh terminal check, runWorkflow can see the terminal event as unrelated replay input and the runtime can record or queue an additional divergence/failure path for a run that is already terminal.

Validation

  • fnm exec --using v22.18.0 pnpm install
  • fnm exec --using v22.18.0 pnpm --filter '@workflow/core...' build
  • fnm exec --using v22.18.0 pnpm --dir packages/core exec vitest run src/runtime.test.ts src/runtime/wait-completion-replay.test.ts
  • git diff --check
  • fnm exec --using v22.18.0 pnpm exec biome check packages/core/src/runtime.ts packages/core/src/runtime/wait-completion-replay.test.ts .changeset/terminal-run-event-replay-main.md

Validation caveat: the Biome check completed with the pre-existing runtime.ts complexity warnings and the existing unused suppression warning around the constant replay loop; no formatting fixes were applied.

@changeset-bot

changeset-botBot commented Jun 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0658e32

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
workflowPatch
@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 Jun 2, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jun 2, 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🥇 Nitro0.039s (-3.2%)1.006s (~)0.966s101.00x
💻 LocalExpress0.044s (+5.3% 🔺)1.005s (~)0.961s101.12x
🐘 PostgresNitro0.057s (-9.7% 🟢)1.012s (~)0.954s101.45x
🐘 PostgresExpress0.059s (-6.5% 🟢)1.011s (~)0.952s101.51x
💻 LocalNext.js (Turbopack)0.061s (+28.1% 🔺)1.007s (~)0.946s101.56x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-0.7%)2.006s (~)0.917s101.00x
💻 LocalNitro1.097s (+0.7%)2.006s (~)0.909s101.01x
🐘 PostgresNitro1.108s (-0.5%)2.009s (~)0.901s101.02x
🐘 PostgresExpress1.110s (~)2.009s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.125s (+1.8%)2.006s (~)0.882s101.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.505s (~)11.022s (~)0.517s31.00x
💻 LocalExpress10.546s (~)11.023s (~)0.478s31.00x
🐘 PostgresNitro10.552s (~)11.020s (~)0.468s31.00x
🐘 PostgresExpress10.595s (~)11.018s (~)0.423s31.01x
💻 LocalNext.js (Turbopack)10.800s (+1.5%)11.021s (~)0.222s31.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.767s (~)14.025s (~)0.258s51.00x
💻 LocalNitro13.807s (+0.8%)14.026s (~)0.219s51.00x
🐘 PostgresNitro13.817s (~)14.019s (~)0.202s51.00x
🐘 PostgresExpress13.846s (~)14.018s (~)0.173s51.01x
💻 LocalNext.js (Turbopack)14.592s (+4.5%)15.281s (+7.4% 🔺)0.689s41.06x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.308s (-1.0%)13.025s (~)0.716s71.00x
💻 LocalExpress12.452s (~)13.024s (~)0.572s71.01x
🐘 PostgresExpress12.604s (~)13.017s (~)0.413s71.02x
🐘 PostgresNitro12.666s (+0.5%)13.021s (~)0.355s71.03x
💻 LocalNext.js (Turbopack)13.658s (+5.8% 🔺)14.027s (+5.4% 🔺)0.370s71.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.167s (-1.6%)2.007s (~)0.839s151.00x
💻 LocalNitro1.177s (-4.7%)2.006s (~)0.829s151.01x
🐘 PostgresExpress1.192s (~)2.007s (~)0.815s151.02x
💻 LocalExpress1.210s (~)2.006s (~)0.796s151.04x
💻 LocalNext.js (Turbopack)1.374s (+5.1% 🔺)2.006s (~)0.632s151.18x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.222s (-2.3%)2.007s (~)0.785s151.00x
🐘 PostgresExpress1.252s (~)2.007s (~)0.755s151.02x
💻 LocalNitro1.702s (~)2.005s (~)0.303s151.39x
💻 LocalNext.js (Turbopack)1.736s (+6.4% 🔺)2.073s (~)0.337s151.42x
💻 LocalExpress1.833s (+3.9%)2.140s (+3.3%)0.307s151.50x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.326s (-4.6%)2.008s (~)0.681s151.00x
🐘 PostgresExpress1.338s (-4.0%)2.008s (~)0.670s151.01x
💻 LocalNitro4.725s (+5.3% 🔺)5.344s (+6.6% 🔺)0.619s63.56x
💻 LocalNext.js (Turbopack)4.834s (+30.4% 🔺)5.345s (+25.5% 🔺)0.511s63.64x
💻 LocalExpress5.440s (+22.5% 🔺)6.013s (+20.0% 🔺)0.573s64.10x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.180s (~)2.008s (~)0.828s151.00x
🐘 PostgresExpress1.182s (-0.5%)2.008s (~)0.826s151.00x
💻 LocalNext.js (Turbopack)1.398s (+7.7% 🔺)2.006s (~)0.608s151.19x
💻 LocalNitro1.549s (+1.9%)2.073s (+3.3%)0.524s151.31x
💻 LocalExpress1.560s (-2.2%)2.007s (~)0.446s151.32x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-7.7% 🟢)2.008s (-3.3%)0.774s151.00x
🐘 PostgresExpress1.237s (-2.2%)2.007s (~)0.770s151.00x
💻 LocalNext.js (Turbopack)1.951s (+7.5% 🔺)2.316s (+11.7% 🔺)0.365s131.58x
💻 LocalNitro1.973s (-7.9% 🟢)2.393s (-15.3% 🟢)0.420s131.60x
💻 LocalExpress2.189s (+6.3% 🔺)2.735s (+9.1% 🔺)0.546s111.77x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.351s (-4.7%)2.010s (~)0.659s151.00x
🐘 PostgresExpress1.379s (-2.7%)2.073s (+3.3%)0.694s151.02x
💻 LocalNitro5.077s (-6.0% 🟢)5.682s (-5.5% 🟢)0.605s63.76x
💻 LocalNext.js (Turbopack)5.298s (+30.3% 🔺)6.016s (+27.3% 🔺)0.718s63.92x
💻 LocalExpress5.853s (+3.7%)6.617s (+6.5% 🔺)0.763s54.33x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.574s (-3.1%)1.023s (~)0.450s591.00x
🐘 PostgresNitro0.581s (-2.1%)1.006s (-1.7%)0.425s601.01x
💻 LocalNitro0.582s (-0.8%)1.005s (~)0.422s601.02x
💻 LocalExpress0.606s (+2.3%)1.005s (~)0.399s601.06x
💻 LocalNext.js (Turbopack)0.879s (+23.6% 🔺)1.057s (+1.8%)0.178s571.53x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.347s (~)2.007s (~)0.659s451.00x
🐘 PostgresExpress1.352s (-2.3%)2.007s (-1.1%)0.655s451.00x
💻 LocalNitro1.465s (-1.0%)2.006s (~)0.541s451.09x
💻 LocalExpress1.513s (~)2.006s (~)0.493s451.12x
💻 LocalNext.js (Turbopack)2.144s (+24.2% 🔺)3.008s (+50.0% 🔺)0.864s301.59x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.661s (-2.2%)3.032s (-1.7%)0.371s401.00x
🐘 PostgresExpress2.690s (-1.5%)3.111s (-0.8%)0.422s391.01x
💻 LocalNitro3.247s (+1.4%)3.912s (-2.4%)0.665s311.22x
💻 LocalExpress3.323s (+2.7%)4.010s (~)0.687s301.25x
💻 LocalNext.js (Turbopack)4.390s (+22.2% 🔺)5.010s (+25.0% 🔺)0.620s241.65x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.210s (-9.5% 🟢)1.006s (~)0.796s601.00x
🐘 PostgresNitro0.231s (+6.1% 🔺)1.023s (+1.6%)0.792s591.10x
💻 LocalNitro0.428s (-7.4% 🟢)1.004s (~)0.576s602.04x
💻 LocalExpress0.446s (+2.9%)1.004s (~)0.559s602.12x
💻 LocalNext.js (Turbopack)0.594s (+19.0% 🔺)1.040s (+1.6%)0.446s582.83x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.323s (-10.1% 🟢)1.006s (~)0.683s901.00x
🐘 PostgresNitro0.332s (-4.6%)1.006s (~)0.674s901.03x
💻 LocalExpress2.168s (+3.4%)2.736s (+6.1% 🔺)0.568s336.71x
💻 LocalNitro2.170s (+1.7%)2.714s (-0.8%)0.544s346.72x
💻 LocalNext.js (Turbopack)2.336s (+14.8% 🔺)3.078s (+18.1% 🔺)0.742s307.23x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.631s (-9.0% 🟢)1.014s (+0.8%)0.383s1191.00x
🐘 PostgresExpress0.633s (-8.0% 🟢)1.006s (~)0.373s1201.00x
💻 LocalNitro9.373s (-3.6%)9.871s (-3.2%)0.498s1314.85x
💻 LocalExpress9.736s (+2.2%)10.360s (+1.6%)0.624s1215.42x
💻 LocalNext.js (Turbopack)10.465s (+14.0% 🔺)11.121s (+11.8% 🔺)0.656s1116.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.156s (-1.2%)2.004s (~)0.011s (+1.9%)2.017s (~)0.861s101.00x
🐘 PostgresNitro1.161s (~)2.002s (~)0.001s (-35.3% 🟢)2.010s (~)0.849s101.00x
💻 LocalExpress1.162s (-0.9%)2.005s (~)0.013s (+11.1% 🔺)2.020s (~)0.858s101.01x
🐘 PostgresExpress1.196s (+1.9%)2.001s (~)0.001s (-25.0% 🟢)2.009s (~)0.813s101.03x
💻 LocalNext.js (Turbopack)1.213s (-1.9%)2.004s (~)0.011s (+34.6% 🔺)2.019s (~)0.806s101.05x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.587s (~)2.010s (~)0.010s (+14.0% 🔺)2.022s (~)0.435s301.00x
🐘 PostgresNitro1.604s (+0.6%)2.005s (~)0.003s (-22.3% 🟢)2.020s (~)0.416s301.01x
🐘 PostgresExpress1.607s (~)2.003s (~)0.003s (-8.1% 🟢)2.023s (~)0.417s301.01x
💻 LocalNext.js (Turbopack)1.715s (+8.4% 🔺)2.008s (~)0.011s (+23.9% 🔺)2.022s (~)0.307s301.08x
💻 LocalNitro1.749s (+10.9% 🔺)2.009s (~)0.010s (-6.5% 🟢)2.200s (+8.8% 🔺)0.451s281.10x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.733s (+1.3%)1.052s (+2.1%)0.000s (-32.2% 🟢)1.060s (+1.0%)0.327s571.00x
🐘 PostgresExpress0.743s (+1.5%)1.050s (-1.6%)0.000s (+96.5% 🔺)1.069s (-1.0%)0.325s571.01x
💻 LocalNitro1.395s (-1.8%)2.013s (~)0.000s (+14.3% 🔺)2.015s (~)0.620s301.90x
💻 LocalExpress1.399s (+3.6%)2.013s (~)0.000s (+16.7% 🔺)2.015s (~)0.616s301.91x
💻 LocalNext.js (Turbopack)1.485s (+25.3% 🔺)2.013s (+6.8% 🔺)0.001s (+137.0% 🔺)2.017s (+6.8% 🔺)0.532s302.03x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.383s (-2.2%)2.069s (-1.6%)0.000s (+Infinity% 🔺)2.078s (-2.2%)0.695s291.00x
🐘 PostgresExpress1.492s (-5.4% 🟢)2.104s (-8.7% 🟢)0.000s (-10.3% 🟢)2.113s (-9.0% 🟢)0.621s291.08x
💻 LocalNext.js (Turbopack)2.917s (+23.8% 🔺)3.472s (+13.1% 🔺)0.001s (+205.6% 🔺)3.476s (+13.1% 🔺)0.559s182.11x
💻 LocalNitro3.137s (-0.7%)3.965s (+1.6%)0.001s (+142.9% 🔺)3.968s (+1.6%)0.832s162.27x
💻 LocalExpress3.546s (+1.6%)3.895s (~)0.001s (~)4.232s (~)0.687s152.56x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro14/21
🐘 PostgresNitro17/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)💻 Local21/21
Nitro🐘 Postgres15/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: failure
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production126242191485
❌ 💻 Local Development155412001755
❌ 📦 Local Production167012191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7061610338100

❌ Failed Tests

▲ Vercel Production (4 failed)

express (2 failed):

  • outputStreamWorkflow no startIndex (reads all chunks)
  • AbortController abortDeterministicBranchFromStepWorkflow: branches stay consistent when abort comes from a step

hono (1 failed):

  • AbortController abortFetchInFlightWorkflow: aborting cancels an in-flight fetch

nextjs-turbopack (1 failed):

  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KT4Q2JVMAAFKP78DWXAZE7WJ | 🔍 observability
💻 Local Development (1 failed)

nextjs-turbopack-stable-lazy-discovery-disabled (1 failed):

  • addTenWorkflow | wrun_01KT4PKX0BD9YMB88GD3FKASBD
📦 Local Production (1 failed)

express-stable (1 failed):

  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01KT4Q40P52FGB90BJ0SW360F7

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro109026
✅ example109026
❌ express107226
✅ fastify109026
❌ hono108126
❌ nextjs-turbopack13212
✅ nextjs-webpack13302
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
❌ nextjs-turbopack-stable-lazy-discovery-disabled13410
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
❌ express-stable109125
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@pranaygp
pranaygpforce-pushed the pranaygp/codex/forward-port-run-failed-replay branch from 15057e7 to ebfe9eaCompareJune 2, 2026 04:06
@pranaygp
pranaygp marked this pull request as ready for review June 2, 2026 04:08
@pranaygp
pranaygp requested a review from a team as a code ownerJune 2, 2026 04:08
CopilotAI review requested due to automatic review settings June 2, 2026 04:08
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 12c35b5 (AI decision).

This commit explicitly forward-ports stable PR #2214 to main's refactored runtime path. The PR body states the fix already exists on stable via #2214, so backporting this main-specific adaptation would conflict with or duplicate the equivalent fix already present on stable.

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

12c35b54ebf3d3c9fbc30462b42b05e5ce476a2b

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

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

fix(core): skip replay after terminal event refresh - #2215

Merged
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay
Jun 2, 2026
Merged

fix(core): skip replay after terminal event refresh#2215
pranaygp merged 1 commit into
mainfrom
pranaygp/codex/forward-port-run-failed-replay

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

Forward-ports the terminal run event replay guard from stable PR #2214 to main's refactored runtime path.

main already skipped replay when the initially loaded/preloaded event snapshot contained a terminal run event. This adds the same terminal-event check after the elapsed-wait completion path refreshes the event snapshot, so a concurrently recorded run_failed, run_cancelled, or run_completed ends the current delivery instead of being passed into workflow replay as an orphaned event.

Root Cause

A handler can load a running materialized run and an event snapshot, complete an elapsed wait, then refresh events before replaying. If another handler records a terminal run event during that refresh window, the refreshed event log already establishes the run outcome even though this handler's materialized workflowRun.status is still running.

Without a post-refresh terminal check, runWorkflow can see the terminal event as unrelated replay input and the runtime can record or queue an additional divergence/failure path for a run that is already terminal.

Validation

  • fnm exec --using v22.18.0 pnpm install
  • fnm exec --using v22.18.0 pnpm --filter '@workflow/core...' build
  • fnm exec --using v22.18.0 pnpm --dir packages/core exec vitest run src/runtime.test.ts src/runtime/wait-completion-replay.test.ts
  • git diff --check
  • fnm exec --using v22.18.0 pnpm exec biome check packages/core/src/runtime.ts packages/core/src/runtime/wait-completion-replay.test.ts .changeset/terminal-run-event-replay-main.md

Validation caveat: the Biome check completed with the pre-existing runtime.ts complexity warnings and the existing unused suppression warning around the constant replay loop; no formatting fixes were applied.

@changeset-bot

changeset-botBot commented Jun 2, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 0658e32

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

This PR includes changesets to release 16 packages
NameType
@workflow/corePatch
@workflow/buildersPatch
@workflow/cliPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
workflowPatch
@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 Jun 2, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jun 2, 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🥇 Nitro0.039s (-3.2%)1.006s (~)0.966s101.00x
💻 LocalExpress0.044s (+5.3% 🔺)1.005s (~)0.961s101.12x
🐘 PostgresNitro0.057s (-9.7% 🟢)1.012s (~)0.954s101.45x
🐘 PostgresExpress0.059s (-6.5% 🟢)1.011s (~)0.952s101.51x
💻 LocalNext.js (Turbopack)0.061s (+28.1% 🔺)1.007s (~)0.946s101.56x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.089s (-0.7%)2.006s (~)0.917s101.00x
💻 LocalNitro1.097s (+0.7%)2.006s (~)0.909s101.01x
🐘 PostgresNitro1.108s (-0.5%)2.009s (~)0.901s101.02x
🐘 PostgresExpress1.110s (~)2.009s (~)0.899s101.02x
💻 LocalNext.js (Turbopack)1.125s (+1.8%)2.006s (~)0.882s101.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.505s (~)11.022s (~)0.517s31.00x
💻 LocalExpress10.546s (~)11.023s (~)0.478s31.00x
🐘 PostgresNitro10.552s (~)11.020s (~)0.468s31.00x
🐘 PostgresExpress10.595s (~)11.018s (~)0.423s31.01x
💻 LocalNext.js (Turbopack)10.800s (+1.5%)11.021s (~)0.222s31.03x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express13.767s (~)14.025s (~)0.258s51.00x
💻 LocalNitro13.807s (+0.8%)14.026s (~)0.219s51.00x
🐘 PostgresNitro13.817s (~)14.019s (~)0.202s51.00x
🐘 PostgresExpress13.846s (~)14.018s (~)0.173s51.01x
💻 LocalNext.js (Turbopack)14.592s (+4.5%)15.281s (+7.4% 🔺)0.689s41.06x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro12.308s (-1.0%)13.025s (~)0.716s71.00x
💻 LocalExpress12.452s (~)13.024s (~)0.572s71.01x
🐘 PostgresExpress12.604s (~)13.017s (~)0.413s71.02x
🐘 PostgresNitro12.666s (+0.5%)13.021s (~)0.355s71.03x
💻 LocalNext.js (Turbopack)13.658s (+5.8% 🔺)14.027s (+5.4% 🔺)0.370s71.11x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.167s (-1.6%)2.007s (~)0.839s151.00x
💻 LocalNitro1.177s (-4.7%)2.006s (~)0.829s151.01x
🐘 PostgresExpress1.192s (~)2.007s (~)0.815s151.02x
💻 LocalExpress1.210s (~)2.006s (~)0.796s151.04x
💻 LocalNext.js (Turbopack)1.374s (+5.1% 🔺)2.006s (~)0.632s151.18x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.222s (-2.3%)2.007s (~)0.785s151.00x
🐘 PostgresExpress1.252s (~)2.007s (~)0.755s151.02x
💻 LocalNitro1.702s (~)2.005s (~)0.303s151.39x
💻 LocalNext.js (Turbopack)1.736s (+6.4% 🔺)2.073s (~)0.337s151.42x
💻 LocalExpress1.833s (+3.9%)2.140s (+3.3%)0.307s151.50x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.326s (-4.6%)2.008s (~)0.681s151.00x
🐘 PostgresExpress1.338s (-4.0%)2.008s (~)0.670s151.01x
💻 LocalNitro4.725s (+5.3% 🔺)5.344s (+6.6% 🔺)0.619s63.56x
💻 LocalNext.js (Turbopack)4.834s (+30.4% 🔺)5.345s (+25.5% 🔺)0.511s63.64x
💻 LocalExpress5.440s (+22.5% 🔺)6.013s (+20.0% 🔺)0.573s64.10x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.180s (~)2.008s (~)0.828s151.00x
🐘 PostgresExpress1.182s (-0.5%)2.008s (~)0.826s151.00x
💻 LocalNext.js (Turbopack)1.398s (+7.7% 🔺)2.006s (~)0.608s151.19x
💻 LocalNitro1.549s (+1.9%)2.073s (+3.3%)0.524s151.31x
💻 LocalExpress1.560s (-2.2%)2.007s (~)0.446s151.32x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.234s (-7.7% 🟢)2.008s (-3.3%)0.774s151.00x
🐘 PostgresExpress1.237s (-2.2%)2.007s (~)0.770s151.00x
💻 LocalNext.js (Turbopack)1.951s (+7.5% 🔺)2.316s (+11.7% 🔺)0.365s131.58x
💻 LocalNitro1.973s (-7.9% 🟢)2.393s (-15.3% 🟢)0.420s131.60x
💻 LocalExpress2.189s (+6.3% 🔺)2.735s (+9.1% 🔺)0.546s111.77x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.351s (-4.7%)2.010s (~)0.659s151.00x
🐘 PostgresExpress1.379s (-2.7%)2.073s (+3.3%)0.694s151.02x
💻 LocalNitro5.077s (-6.0% 🟢)5.682s (-5.5% 🟢)0.605s63.76x
💻 LocalNext.js (Turbopack)5.298s (+30.3% 🔺)6.016s (+27.3% 🔺)0.718s63.92x
💻 LocalExpress5.853s (+3.7%)6.617s (+6.5% 🔺)0.763s54.33x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.574s (-3.1%)1.023s (~)0.450s591.00x
🐘 PostgresNitro0.581s (-2.1%)1.006s (-1.7%)0.425s601.01x
💻 LocalNitro0.582s (-0.8%)1.005s (~)0.422s601.02x
💻 LocalExpress0.606s (+2.3%)1.005s (~)0.399s601.06x
💻 LocalNext.js (Turbopack)0.879s (+23.6% 🔺)1.057s (+1.8%)0.178s571.53x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.347s (~)2.007s (~)0.659s451.00x
🐘 PostgresExpress1.352s (-2.3%)2.007s (-1.1%)0.655s451.00x
💻 LocalNitro1.465s (-1.0%)2.006s (~)0.541s451.09x
💻 LocalExpress1.513s (~)2.006s (~)0.493s451.12x
💻 LocalNext.js (Turbopack)2.144s (+24.2% 🔺)3.008s (+50.0% 🔺)0.864s301.59x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.661s (-2.2%)3.032s (-1.7%)0.371s401.00x
🐘 PostgresExpress2.690s (-1.5%)3.111s (-0.8%)0.422s391.01x
💻 LocalNitro3.247s (+1.4%)3.912s (-2.4%)0.665s311.22x
💻 LocalExpress3.323s (+2.7%)4.010s (~)0.687s301.25x
💻 LocalNext.js (Turbopack)4.390s (+22.2% 🔺)5.010s (+25.0% 🔺)0.620s241.65x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.210s (-9.5% 🟢)1.006s (~)0.796s601.00x
🐘 PostgresNitro0.231s (+6.1% 🔺)1.023s (+1.6%)0.792s591.10x
💻 LocalNitro0.428s (-7.4% 🟢)1.004s (~)0.576s602.04x
💻 LocalExpress0.446s (+2.9%)1.004s (~)0.559s602.12x
💻 LocalNext.js (Turbopack)0.594s (+19.0% 🔺)1.040s (+1.6%)0.446s582.83x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.323s (-10.1% 🟢)1.006s (~)0.683s901.00x
🐘 PostgresNitro0.332s (-4.6%)1.006s (~)0.674s901.03x
💻 LocalExpress2.168s (+3.4%)2.736s (+6.1% 🔺)0.568s336.71x
💻 LocalNitro2.170s (+1.7%)2.714s (-0.8%)0.544s346.72x
💻 LocalNext.js (Turbopack)2.336s (+14.8% 🔺)3.078s (+18.1% 🔺)0.742s307.23x
🐘 PostgresNext.js (Turbopack)⚠️missing----
workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.631s (-9.0% 🟢)1.014s (+0.8%)0.383s1191.00x
🐘 PostgresExpress0.633s (-8.0% 🟢)1.006s (~)0.373s1201.00x
💻 LocalNitro9.373s (-3.6%)9.871s (-3.2%)0.498s1314.85x
💻 LocalExpress9.736s (+2.2%)10.360s (+1.6%)0.624s1215.42x
💻 LocalNext.js (Turbopack)10.465s (+14.0% 🔺)11.121s (+11.8% 🔺)0.656s1116.58x
🐘 PostgresNext.js (Turbopack)⚠️missing----
Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.156s (-1.2%)2.004s (~)0.011s (+1.9%)2.017s (~)0.861s101.00x
🐘 PostgresNitro1.161s (~)2.002s (~)0.001s (-35.3% 🟢)2.010s (~)0.849s101.00x
💻 LocalExpress1.162s (-0.9%)2.005s (~)0.013s (+11.1% 🔺)2.020s (~)0.858s101.01x
🐘 PostgresExpress1.196s (+1.9%)2.001s (~)0.001s (-25.0% 🟢)2.009s (~)0.813s101.03x
💻 LocalNext.js (Turbopack)1.213s (-1.9%)2.004s (~)0.011s (+34.6% 🔺)2.019s (~)0.806s101.05x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express1.587s (~)2.010s (~)0.010s (+14.0% 🔺)2.022s (~)0.435s301.00x
🐘 PostgresNitro1.604s (+0.6%)2.005s (~)0.003s (-22.3% 🟢)2.020s (~)0.416s301.01x
🐘 PostgresExpress1.607s (~)2.003s (~)0.003s (-8.1% 🟢)2.023s (~)0.417s301.01x
💻 LocalNext.js (Turbopack)1.715s (+8.4% 🔺)2.008s (~)0.011s (+23.9% 🔺)2.022s (~)0.307s301.08x
💻 LocalNitro1.749s (+10.9% 🔺)2.009s (~)0.010s (-6.5% 🟢)2.200s (+8.8% 🔺)0.451s281.10x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.733s (+1.3%)1.052s (+2.1%)0.000s (-32.2% 🟢)1.060s (+1.0%)0.327s571.00x
🐘 PostgresExpress0.743s (+1.5%)1.050s (-1.6%)0.000s (+96.5% 🔺)1.069s (-1.0%)0.325s571.01x
💻 LocalNitro1.395s (-1.8%)2.013s (~)0.000s (+14.3% 🔺)2.015s (~)0.620s301.90x
💻 LocalExpress1.399s (+3.6%)2.013s (~)0.000s (+16.7% 🔺)2.015s (~)0.616s301.91x
💻 LocalNext.js (Turbopack)1.485s (+25.3% 🔺)2.013s (+6.8% 🔺)0.001s (+137.0% 🔺)2.017s (+6.8% 🔺)0.532s302.03x
🐘 PostgresNext.js (Turbopack)⚠️missing-----
fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.383s (-2.2%)2.069s (-1.6%)0.000s (+Infinity% 🔺)2.078s (-2.2%)0.695s291.00x
🐘 PostgresExpress1.492s (-5.4% 🟢)2.104s (-8.7% 🟢)0.000s (-10.3% 🟢)2.113s (-9.0% 🟢)0.621s291.08x
💻 LocalNext.js (Turbopack)2.917s (+23.8% 🔺)3.472s (+13.1% 🔺)0.001s (+205.6% 🔺)3.476s (+13.1% 🔺)0.559s182.11x
💻 LocalNitro3.137s (-0.7%)3.965s (+1.6%)0.001s (+142.9% 🔺)3.968s (+1.6%)0.832s162.27x
💻 LocalExpress3.546s (+1.6%)3.895s (~)0.001s (~)4.232s (~)0.687s152.56x
🐘 PostgresNext.js (Turbopack)⚠️missing-----

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro14/21
🐘 PostgresNitro17/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)💻 Local21/21
Nitro🐘 Postgres15/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: failure
  • Vercel: failure

Check the workflow run for details.

@github-actions

github-actionsBot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production126242191485
❌ 💻 Local Development155412001755
❌ 📦 Local Production167012191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7061610338100

❌ Failed Tests

▲ Vercel Production (4 failed)

express (2 failed):

  • outputStreamWorkflow no startIndex (reads all chunks)
  • AbortController abortDeterministicBranchFromStepWorkflow: branches stay consistent when abort comes from a step

hono (1 failed):

  • AbortController abortFetchInFlightWorkflow: aborting cancels an in-flight fetch

nextjs-turbopack (1 failed):

  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KT4Q2JVMAAFKP78DWXAZE7WJ | 🔍 observability
💻 Local Development (1 failed)

nextjs-turbopack-stable-lazy-discovery-disabled (1 failed):

  • addTenWorkflow | wrun_01KT4PKX0BD9YMB88GD3FKASBD
📦 Local Production (1 failed)

express-stable (1 failed):

  • hookWithSleepFinalStepWorkflow - step only on final payload | wrun_01KT4Q40P52FGB90BJ0SW360F7

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro109026
✅ example109026
❌ express107226
✅ fastify109026
❌ hono108126
❌ nextjs-turbopack13212
✅ nextjs-webpack13302
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
❌ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
❌ nextjs-turbopack-stable-lazy-discovery-disabled13410
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
❌ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
❌ express-stable109125
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@pranaygp
pranaygpforce-pushed the pranaygp/codex/forward-port-run-failed-replay branch from 15057e7 to ebfe9eaCompareJune 2, 2026 04:06
@pranaygp
pranaygp marked this pull request as ready for review June 2, 2026 04:08
@pranaygp
pranaygp requested a review from a team as a code ownerJune 2, 2026 04:08
CopilotAI review requested due to automatic review settings June 2, 2026 04:08
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 12c35b5 (AI decision).

This commit explicitly forward-ports stable PR #2214 to main's refactored runtime path. The PR body states the fix already exists on stable via #2214, so backporting this main-specific adaptation would conflict with or duplicate the equivalent fix already present on stable.

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

12c35b54ebf3d3c9fbc30462b42b05e5ce476a2b

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

@pranaygp@VaguelySerious