test: improve e2e test failure diagnostics - #1426

Merged
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements
Mar 18, 2026
Merged

test: improve e2e test failure diagnostics#1426
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

  • Add automatic workflow run diagnostics on e2e test failure (status, input/output, error, event timeline, Vercel dashboard link)
  • Emit GitHub Actions ::error annotations that surface on PR file diffs pointing at the workflow source
  • Fix collectedRunIds which was declared but never populated — observability links in PR comments now work
  • Add custom vitest GithubAnnotationReporter that writes enriched failure sidecar files
  • Enrich the aggregation script to show run IDs and dashboard URLs for failed tests in the PR comment

Test plan

  • Verify CI runs pass (e2e tests should work exactly as before when passing)
  • Intentionally break a test locally to verify diagnostics output
  • Check that the PR comment includes observability links for Vercel prod failures

🤖 Generated with Claude Code

…b annotations
When e2e tests fail, automatically dump workflow run diagnostics (status,
input/output, error details, event timeline, dashboard link) to the CI
logs. Emit GitHub Actions annotations that surface on PR file diffs.
Fix collectedRunIds which was declared but never populated, enabling
observability links in the PR comment. Enrich the aggregation script
to include run IDs and dashboard URLs for failed tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Mar 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c82f089

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production757167825
✅ 💻 Local Development7820118900
✅ 📦 Local Production7820118900
❌ 🐘 Local Postgres7802118900
✅ 🪟 Windows720375
❌ 🌍 Community Worlds1195515189
✅ 📋 Other198027225
Total3490584664014

❌ Failed Tests

▲ Vercel Production (1 failed)

express (1 failed):

  • DurableAgent e2e experimental_onToolCallFinish (GAP) completes but callbacks are not called (GAP)
🐘 Local Postgres (2 failed)

express-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36

nextjs-turbopack-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
🌍 Community Worlds (55 failed)

mongodb (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

redis (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

turso (51 failed):

  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KKZCF4ZDWJHZ4AHBG80EYTNW
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KKZCE3PC0E4B7S0QKFMNGZXA
  • promiseRaceWorkflow | wrun_01KKZCE8WF7624JC2J6DBFZK7N
  • promiseAnyWorkflow | wrun_01KKZCECG0K902T0JMK9N4NKSF
  • importedStepOnlyWorkflow | wrun_01KKZCFJ0R9KHSFFEXGAEBEBCQ
  • hookWorkflow | wrun_01KKZCES2PYX8PZNF7H466FB1K
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
  • sleepingWorkflow | wrun_01KKZCFGQ4M2FXERBZSD9VXBHM
  • parallelSleepWorkflow | wrun_01KKZCFX1AP5CRC73NKWBA5TNA
  • nullByteWorkflow | wrun_01KKZCG00A7J2BBR34HK7DMRMD
  • workflowAndStepMetadataWorkflow | wrun_01KKZCG1VDK9KK6WVGQ51NCZSK
  • fetchWorkflow | wrun_01KKZCGW2S1JV0Y4WZXTHXQWM5
  • promiseRaceStressTestWorkflow | wrun_01KKZCGZQMHJ1HB5T26CRJ9T41
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KKZCKQCPWAWDDACW8H8GC5FX
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KKZCMWGWJVCXRXVHC0743PHY
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KKZCNEP0X5F25EWFHPFNCR0M
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KKZCNP3M8MWC1JHMSEXMEQ3G
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KKZCNTRFF1MY5EZ6C44G2QJ8
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KKZCNWGWHFD5PR9GVA1RZGWW
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KKZCP9RZZ9B8WZVCYT5RMCHQ
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KKZCPF6E2X672Y296EDZ8GMJ
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KKZCPNHMPAMEMWJ4D8GQ8P6B
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KKZCPV77KXKKP98DFQK5XBNT
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KKZCQ0YSZ6H6VVMBV0BD4TRS
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KKZCQ6VR19M0B0W88ZB7ZFX1
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KKZCQCKYVY9ETWMAGMBV5AAD
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KKZCQP01E197K25R7758DT06
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KKZCQY83YDDJ48A4CZM52YX1
  • cancelRun - cancelling a running workflow | wrun_01KKZCR3ZK5930M4DS120Z73P4
  • cancelRun via CLI - cancelling a running workflow | wrun_01KKZCRCDAA2DKSYNV1SA3F4E0
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KKZCRQE6V6HGBD3VP8PR0Q0Q
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KKZCSAJ50NFCWBWCT8ZJ5Z7T
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KKZCSM4KZJAAB70F6YDJHGEC

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro6807
✅ example6807
❌ express6717
✅ fastify6807
✅ hono6807
✅ nextjs-turbopack7302
✅ nextjs-webpack7302
✅ nitro6807
✅ nuxt6807
✅ sveltekit6807
✅ vite6807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable6609
❌ express-stable6519
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
❌ nextjs-turbopack-stable7113
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7203
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
❌ mongodb5323
✅ redis-dev302
❌ redis5323
✅ turso-dev302
❌ turso4513
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable6609
✅ e2e-local-postgres-nest-stable6609
✅ e2e-local-prod-nest-stable6609

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 17, 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.042s (-1.9%)1.006s (~)0.963s101.00x
💻 LocalExpress0.045s (+1.8%)1.005s (~)0.960s101.06x
💻 LocalNext.js (Turbopack)0.051s (+3.5%)1.005s (~)0.955s101.20x
🌐 RedisNext.js (Turbopack)0.055s (+1.5%)1.005s (~)0.950s101.31x
🐘 PostgresNitro0.059s (+4.2%)1.010s (~)0.951s101.40x
🐘 PostgresNext.js (Turbopack)0.060s (+2.1%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.067s (-14.7% 🟢)1.011s (-0.8%)0.945s101.57x
🌐 MongoDBNext.js (Turbopack)0.128s (-2.4%)1.007s (~)0.880s103.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.471s (-1.8%)2.506s (+9.2% 🔺)2.035s101.00x
▲ VercelNext.js (Turbopack)0.477s (+14.1% 🔺)2.472s (+22.9% 🔺)1.995s101.01x
▲ VercelExpress0.539s (+18.7% 🔺)2.562s (+9.8% 🔺)2.023s101.15x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.113s (-1.1%)2.006s (~)0.893s101.00x
💻 LocalNext.js (Turbopack)1.125s (+1.1%)2.006s (~)0.881s101.01x
🌐 RedisNext.js (Turbopack)1.127s (~)2.007s (~)0.879s101.01x
💻 LocalExpress1.128s (-1.1%)2.005s (~)0.877s101.01x
🐘 PostgresNitro1.144s (~)2.012s (~)0.868s101.03x
🐘 PostgresNext.js (Turbopack)1.147s (+0.8%)2.013s (~)0.866s101.03x
🐘 PostgresExpress1.151s (~)2.012s (~)0.862s101.03x
🌐 MongoDBNext.js (Turbopack)1.304s (-1.8%)2.008s (~)0.704s101.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.977s (-3.6%)3.695s (+3.1%)1.717s101.00x
▲ VercelNext.js (Turbopack)2.003s (+1.8%)3.648s (+13.0% 🔺)1.645s101.01x
▲ VercelNitro2.039s (-4.4%)3.730s (+4.1%)1.692s101.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.683s (-2.3%)11.021s (~)0.338s31.00x
🌐 RedisNext.js (Turbopack)10.761s (~)11.023s (~)0.262s31.01x
💻 LocalNext.js (Turbopack)10.795s (~)11.023s (~)0.228s31.01x
🐘 PostgresNext.js (Turbopack)10.885s (~)11.042s (~)0.158s31.02x
💻 LocalExpress10.910s (~)11.024s (~)0.113s31.02x
🐘 PostgresExpress10.942s (-0.6%)11.040s (~)0.097s31.02x
🐘 PostgresNitro11.012s (+0.8%)11.380s (+3.0%)0.368s31.03x
🌐 MongoDBNext.js (Turbopack)12.228s (-0.6%)13.017s (~)0.789s31.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.324s (-4.9%)18.399s (-4.2%)2.075s21.00x
▲ VercelNitro16.497s (-3.5%)18.423s (~)1.926s21.01x
▲ VercelNext.js (Turbopack)17.104s (-0.9%)19.010s (+3.4%)1.906s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.794s (~)27.050s (~)0.256s31.00x
💻 LocalNitro26.944s (-2.0%)27.052s (-3.6%)0.108s31.01x
💻 LocalNext.js (Turbopack)27.147s (~)28.052s (+2.4%)0.905s31.01x
🐘 PostgresNitro27.192s (~)28.064s (~)0.872s31.01x
🐘 PostgresExpress27.210s (~)28.061s (~)0.851s31.02x
🐘 PostgresNext.js (Turbopack)27.284s (+0.7%)28.065s (+1.2%)0.781s31.02x
💻 LocalExpress27.573s (~)28.055s (~)0.482s31.03x
🌐 MongoDBNext.js (Turbopack)30.376s (-0.6%)31.032s (~)0.656s21.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro43.680s (+1.0%)45.538s (+2.7%)1.858s21.00x
▲ VercelExpress45.411s (+5.9% 🔺)47.334s (+7.1% 🔺)1.922s21.04x
▲ VercelNext.js (Turbopack)45.914s (+4.4%)47.479s (+4.2%)1.565s21.05x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)53.460s (~)54.096s (~)0.636s21.00x
🐘 PostgresNext.js (Turbopack)53.957s (~)54.110s (~)0.153s21.01x
🐘 PostgresExpress54.325s (~)55.094s (~)0.770s21.02x
🐘 PostgresNitro54.371s (~)55.104s (~)0.733s21.02x
💻 LocalNitro55.253s (-2.4%)56.101s (-1.7%)0.848s21.03x
💻 LocalNext.js (Turbopack)55.987s (~)56.103s (~)0.115s21.05x
💻 LocalExpress56.830s (~)57.103s (~)0.273s21.06x
🌐 MongoDBNext.js (Turbopack)60.852s (~)61.068s (~)0.216s21.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express90.619s (-5.4% 🟢)92.426s (-5.3% 🟢)1.807s11.00x
▲ VercelNitro91.414s (-4.4%)92.690s (-5.3% 🟢)1.276s11.01x
▲ VercelNext.js (Turbopack)92.733s (-3.0%)94.287s (-4.6%)1.554s11.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.263s (+0.6%)2.011s (~)0.748s151.00x
🐘 PostgresExpress1.277s (-2.3%)2.011s (~)0.733s151.01x
🐘 PostgresNitro1.290s (+1.3%)2.011s (~)0.721s151.02x
🌐 RedisNext.js (Turbopack)1.386s (+1.7%)2.006s (~)0.621s151.10x
💻 LocalNitro1.506s (-2.5%)2.005s (~)0.499s151.19x
💻 LocalExpress1.516s (-1.1%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.548s (~)2.005s (~)0.458s151.23x
🌐 MongoDBNext.js (Turbopack)2.149s (~)3.009s (~)0.860s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.247s (-6.3% 🟢)3.614s (-10.2% 🟢)1.368s91.00x
▲ VercelNext.js (Turbopack)2.359s (-6.1% 🟢)4.019s (+6.9% 🔺)1.660s81.05x
▲ VercelExpress2.604s (-2.2%)4.385s (-1.8%)1.781s81.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNitro2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNext.js (Turbopack)2.479s (-1.4%)3.012s (~)0.533s101.01x
🌐 RedisNext.js (Turbopack)2.613s (+1.9%)3.009s (~)0.395s101.06x
💻 LocalNext.js (Turbopack)2.799s (+3.6%)3.208s (-4.0%)0.408s101.14x
💻 LocalNitro2.805s (-2.3%)3.107s (-3.1%)0.302s101.14x
💻 LocalExpress2.992s (+6.1% 🔺)3.563s (+14.6% 🔺)0.571s91.22x
🌐 MongoDBNext.js (Turbopack)4.699s (~)5.177s (-3.1%)0.478s61.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.536s (-6.1% 🟢)4.004s (-4.3%)1.468s81.00x
▲ VercelNext.js (Turbopack)2.614s (-24.1% 🟢)3.868s (-17.8% 🟢)1.255s81.03x
▲ VercelExpress3.239s (-11.5% 🟢)4.658s (-7.0% 🟢)1.419s71.28x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.595s (-0.9%)4.013s (~)0.419s81.00x
🐘 PostgresExpress3.632s (+0.6%)4.013s (~)0.381s81.01x
🐘 PostgresNext.js (Turbopack)3.742s (-1.1%)4.015s (~)0.273s81.04x
🌐 RedisNext.js (Turbopack)4.079s (-1.5%)5.011s (+9.3% 🔺)0.932s61.13x
💻 LocalNitro7.424s (-11.0% 🟢)8.019s (-11.1% 🟢)0.595s42.07x
💻 LocalNext.js (Turbopack)7.531s (-4.7%)8.015s (-5.9% 🟢)0.484s42.10x
💻 LocalExpress8.929s (+17.9% 🔺)9.272s (+15.6% 🔺)0.343s42.48x
🌐 MongoDBNext.js (Turbopack)9.930s (-2.7%)10.684s (~)0.753s32.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.720s (-13.9% 🟢)4.029s (-13.7% 🟢)1.309s81.00x
▲ VercelNitro3.102s (+0.6%)4.552s (-13.2% 🟢)1.450s71.14x
▲ VercelNext.js (Turbopack)3.450s (-1.8%)5.101s (+7.2% 🔺)1.651s61.27x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.260s (-0.9%)2.011s (~)0.750s151.00x
🐘 PostgresExpress1.278s (~)2.010s (~)0.732s151.01x
🐘 PostgresNitro1.289s (+1.2%)2.011s (~)0.722s151.02x
🌐 RedisNext.js (Turbopack)1.313s (+0.8%)2.006s (~)0.694s151.04x
💻 LocalNitro1.516s (+0.8%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.525s (+1.6%)2.006s (~)0.481s151.21x
💻 LocalExpress1.540s (+0.8%)2.006s (~)0.466s151.22x
🌐 MongoDBNext.js (Turbopack)2.175s (-0.8%)3.008s (~)0.833s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.095s (-10.2% 🟢)3.691s (-1.6%)1.596s91.00x
▲ VercelNitro2.258s (-29.6% 🟢)3.674s (-18.0% 🟢)1.416s91.08x
▲ VercelNext.js (Turbopack)2.270s (+5.7% 🔺)3.896s (+17.2% 🔺)1.626s81.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.434s (-1.0%)3.012s (~)0.578s101.00x
🐘 PostgresNext.js (Turbopack)2.454s (~)3.013s (~)0.558s101.01x
🐘 PostgresNitro2.456s (~)3.011s (~)0.555s101.01x
🌐 RedisNext.js (Turbopack)2.580s (+0.6%)3.008s (~)0.428s101.06x
💻 LocalNitro2.861s (-3.1%)3.108s (-7.0% 🟢)0.247s101.18x
💻 LocalExpress3.100s (+4.1%)4.011s (+21.2% 🔺)0.911s81.27x
💻 LocalNext.js (Turbopack)3.182s (+13.6% 🔺)3.759s (+12.5% 🔺)0.577s81.31x
🌐 MongoDBNext.js (Turbopack)4.675s (-1.5%)5.177s (~)0.502s61.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.433s (-22.6% 🟢)3.867s (-9.9% 🟢)1.434s81.00x
▲ VercelNext.js (Turbopack)2.467s (-25.6% 🟢)4.034s (-15.2% 🟢)1.566s81.01x
▲ VercelNitro2.615s (-17.5% 🟢)4.100s (-9.1% 🟢)1.485s81.07x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.613s (~)4.012s (~)0.399s81.00x
🐘 PostgresNitro3.614s (~)4.015s (~)0.401s81.00x
🐘 PostgresNext.js (Turbopack)3.746s (~)4.139s (+3.1%)0.392s81.04x
🌐 RedisNext.js (Turbopack)4.157s (-3.3%)5.011s (~)0.855s61.15x
💻 LocalNext.js (Turbopack)7.721s (-6.5% 🟢)8.267s (-5.7% 🟢)0.547s42.14x
💻 LocalNitro8.416s (-1.7%)9.018s (~)0.601s42.33x
💻 LocalExpress9.103s (+14.5% 🔺)9.523s (+8.6% 🔺)0.420s42.52x
🌐 MongoDBNext.js (Turbopack)9.844s (-2.6%)10.350s (-3.1%)0.507s32.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.777s (-5.2% 🟢)4.469s (+7.3% 🔺)1.692s71.00x
▲ VercelNitro3.054s (-1.6%)4.679s (~)1.624s71.10x
▲ VercelNext.js (Turbopack)3.278s (-20.6% 🟢)5.050s (-7.7% 🟢)1.772s61.18x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.145s (-26.8% 🟢)1.003s (~)0.010s (-14.7% 🟢)1.015s (~)0.870s101.00x
💻 LocalNext.js (Turbopack)0.175s (+2.0%)1.002s (~)0.011s (+1.8%)1.017s (~)0.842s101.21x
🌐 RedisNext.js (Turbopack)0.176s (+1.5%)1.000s (~)0.002s (+21.4% 🔺)1.008s (~)0.831s101.21x
🐘 PostgresNext.js (Turbopack)0.208s (+4.6%)1.002s (~)0.001s (-20.0% 🟢)1.013s (~)0.804s101.43x
💻 LocalExpress0.210s (+3.2%)1.003s (~)0.011s (+7.5% 🔺)1.018s (~)0.808s101.44x
🐘 PostgresExpress0.219s (-20.9% 🟢)0.992s (~)0.002s (-16.7% 🟢)1.011s (~)0.793s101.50x
🐘 PostgresNitro0.230s (~)0.998s (+0.7%)0.001s (-22.2% 🟢)1.014s (~)0.784s101.58x
🌐 MongoDBNext.js (Turbopack)0.489s (-2.7%)0.966s (+1.1%)0.002s (+6.7% 🔺)1.009s (~)0.520s103.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.572s (-1.9%)2.201s (-19.2% 🟢)0.004s (-19.6% 🟢)2.797s (-15.3% 🟢)1.225s101.00x
▲ VercelNext.js (Turbopack)1.589s (-14.1% 🟢)2.625s (-8.7% 🟢)0.005s (-15.5% 🟢)3.186s (-5.2% 🟢)1.597s101.01x
▲ VercelExpress1.701s (+7.1% 🔺)2.434s (-4.1%)0.005s (-9.4% 🟢)3.049s (-1.7%)1.348s101.08x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro10/12
🐘 PostgresNext.js (Turbopack)5/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

- Increase onTestFailed hook timeout to 30s (default was 10s) so
diagnostics can fetch run data even after slow test timeouts
- parallelSleepWorkflow: increase elapsed threshold from 10s to 25s to
accommodate Vercel cold start latency
- webhookWorkflow: increase hook polling deadline from 30s to 60s and
test timeout from 60s to 120s for slow Vercel webhook registration
- readableStreamWorkflow: stop reading once expected content is received
instead of waiting for stream close (which can hang on Vercel), and
increase test timeout to 120s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…rces
The workflow source files in workbench/ are symlinks that GitHub can't
resolve, causing annotations to show raw paths like #L0 instead of
linking to code. Now:
- utils.ts: omit file= from onTestFailed annotations (just show title)
- github-reporter.ts: use the actual test file path (e.g.
packages/core/e2e/e2e.test.ts) which GitHub can resolve
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Improves CI/e2e failure diagnostics by tracking workflow run IDs per test, emitting GitHub Actions annotations, and enriching the aggregation script output with run metadata and observability links.

Changes:

  • Add run tracking + automatic diagnostics dump on test failures (status/input/output/error + event timeline + dashboard URL).
  • Add a custom Vitest reporter that emits ::error annotations and writes enriched failure sidecar JSON.
  • Update CI workflows and the aggregation script to consume/upload new sidecar artifacts and render run IDs/URLs in PR summaries.

Reviewed changes

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

Show a summary per file
FileDescription
packages/core/e2e/utils.tsAdds run tracking, diagnostics fetching, and CI annotations on test failure.
packages/core/e2e/github-reporter.tsNew Vitest reporter emitting GitHub annotations + failure sidecar JSON.
packages/core/e2e/e2e.test.tsWraps start() to auto-track runs; writes metadata + diagnostics sidecar; adjusts a few flaky test timeouts/stream reading.
packages/core/e2e/e2e-agent.test.tsAdds tracking hooks and wraps start() to record runs for diagnostics.
.github/workflows/tests.ymlAdds custom reporter to e2e runs; uploads new sidecar artifacts for vercel-prod.
.github/workflows/e2e-community-world.ymlAdds custom reporter to community-world e2e runs.
.github/scripts/aggregate-e2e-results.jsLoads sidecar diagnostics/failures and prints run IDs/observability URLs in aggregated output.
.changeset/fresh-rocks-reply.mdAdds a new changeset file (currently empty).

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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +1 to +2
---
---
Comment on lines +668 to +688
export function setupRunTracking(testName: string) {
currentTestName = testName;
trackedRuns = [];
onTestFailed(
async (result) => {
const errorMessage = result.errors?.[0]?.message || 'Test failed';

for (const tracked of trackedRuns) {
try {
const diagnostics = await getRunDiagnostics(tracked);
console.error(diagnostics);
emitGitHubAnnotation(testName, tracked, errorMessage);
} catch {
console.error(
`[diagnostics] Failed to fetch diagnostics for run ${tracked.run.runId}`
);
}
}
},
30_000 // Allow 30s for diagnostics fetching (default hookTimeout is 10s)
);
Comment on lines +652 to +658
const annotation = parts.join(' | ');

// Write directly to stdout bypassing vitest's console interceptor.
// Vitest prefixes console.log output with ANSI codes which prevents
// GitHub Actions from parsing the ::error workflow command.
process.stdout.write(`\n::error title=E2E: ${testName}::${annotation}\n`);
}
Comment on lines +36 to +40
private ctx!: Vitest;
private failedTests: FailedTestInfo[] = [];

onInit(ctx: Vitest) {
this.ctx = ctx;
Comment on lines +149 to +154
process.stdout.write(
`\n::error file=${relFile},title=${title}::${body}\n`
);
}
}

Comment on lines +118 to +126
const byTestName = new Map(entries.map((e) => [e.testName, e]));

for (const test of this.failedTests) {
if (test.runId && test.dashboardUrl) continue; // Already have data from error output
const diag = byTestName.get(test.testName);
if (diag) {
test.runId ??= diag.runId;
test.dashboardUrl ??= diag.dashboardUrl ?? undefined;
}
const entries = JSON.parse(fs.readFileSync(file, 'utf-8'));
for (const entry of entries) {
if (entry.testName && entry.runId) {
diagnostics.set(entry.testName, entry);
Comment on lines 49 to +55
beforeAll(async () => {
setupWorld(deploymentUrl);
});

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

test: improve e2e test failure diagnostics - #1426

Merged
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements
Mar 18, 2026
Merged

test: improve e2e test failure diagnostics#1426
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

  • Add automatic workflow run diagnostics on e2e test failure (status, input/output, error, event timeline, Vercel dashboard link)
  • Emit GitHub Actions ::error annotations that surface on PR file diffs pointing at the workflow source
  • Fix collectedRunIds which was declared but never populated — observability links in PR comments now work
  • Add custom vitest GithubAnnotationReporter that writes enriched failure sidecar files
  • Enrich the aggregation script to show run IDs and dashboard URLs for failed tests in the PR comment

Test plan

  • Verify CI runs pass (e2e tests should work exactly as before when passing)
  • Intentionally break a test locally to verify diagnostics output
  • Check that the PR comment includes observability links for Vercel prod failures

🤖 Generated with Claude Code

…b annotations
When e2e tests fail, automatically dump workflow run diagnostics (status,
input/output, error details, event timeline, dashboard link) to the CI
logs. Emit GitHub Actions annotations that surface on PR file diffs.
Fix collectedRunIds which was declared but never populated, enabling
observability links in the PR comment. Enrich the aggregation script
to include run IDs and dashboard URLs for failed tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Mar 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c82f089

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production757167825
✅ 💻 Local Development7820118900
✅ 📦 Local Production7820118900
❌ 🐘 Local Postgres7802118900
✅ 🪟 Windows720375
❌ 🌍 Community Worlds1195515189
✅ 📋 Other198027225
Total3490584664014

❌ Failed Tests

▲ Vercel Production (1 failed)

express (1 failed):

  • DurableAgent e2e experimental_onToolCallFinish (GAP) completes but callbacks are not called (GAP)
🐘 Local Postgres (2 failed)

express-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36

nextjs-turbopack-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
🌍 Community Worlds (55 failed)

mongodb (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

redis (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

turso (51 failed):

  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KKZCF4ZDWJHZ4AHBG80EYTNW
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KKZCE3PC0E4B7S0QKFMNGZXA
  • promiseRaceWorkflow | wrun_01KKZCE8WF7624JC2J6DBFZK7N
  • promiseAnyWorkflow | wrun_01KKZCECG0K902T0JMK9N4NKSF
  • importedStepOnlyWorkflow | wrun_01KKZCFJ0R9KHSFFEXGAEBEBCQ
  • hookWorkflow | wrun_01KKZCES2PYX8PZNF7H466FB1K
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
  • sleepingWorkflow | wrun_01KKZCFGQ4M2FXERBZSD9VXBHM
  • parallelSleepWorkflow | wrun_01KKZCFX1AP5CRC73NKWBA5TNA
  • nullByteWorkflow | wrun_01KKZCG00A7J2BBR34HK7DMRMD
  • workflowAndStepMetadataWorkflow | wrun_01KKZCG1VDK9KK6WVGQ51NCZSK
  • fetchWorkflow | wrun_01KKZCGW2S1JV0Y4WZXTHXQWM5
  • promiseRaceStressTestWorkflow | wrun_01KKZCGZQMHJ1HB5T26CRJ9T41
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KKZCKQCPWAWDDACW8H8GC5FX
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KKZCMWGWJVCXRXVHC0743PHY
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KKZCNEP0X5F25EWFHPFNCR0M
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KKZCNP3M8MWC1JHMSEXMEQ3G
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KKZCNTRFF1MY5EZ6C44G2QJ8
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KKZCNWGWHFD5PR9GVA1RZGWW
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KKZCP9RZZ9B8WZVCYT5RMCHQ
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KKZCPF6E2X672Y296EDZ8GMJ
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KKZCPNHMPAMEMWJ4D8GQ8P6B
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KKZCPV77KXKKP98DFQK5XBNT
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KKZCQ0YSZ6H6VVMBV0BD4TRS
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KKZCQ6VR19M0B0W88ZB7ZFX1
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KKZCQCKYVY9ETWMAGMBV5AAD
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KKZCQP01E197K25R7758DT06
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KKZCQY83YDDJ48A4CZM52YX1
  • cancelRun - cancelling a running workflow | wrun_01KKZCR3ZK5930M4DS120Z73P4
  • cancelRun via CLI - cancelling a running workflow | wrun_01KKZCRCDAA2DKSYNV1SA3F4E0
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KKZCRQE6V6HGBD3VP8PR0Q0Q
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KKZCSAJ50NFCWBWCT8ZJ5Z7T
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KKZCSM4KZJAAB70F6YDJHGEC

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro6807
✅ example6807
❌ express6717
✅ fastify6807
✅ hono6807
✅ nextjs-turbopack7302
✅ nextjs-webpack7302
✅ nitro6807
✅ nuxt6807
✅ sveltekit6807
✅ vite6807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable6609
❌ express-stable6519
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
❌ nextjs-turbopack-stable7113
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7203
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
❌ mongodb5323
✅ redis-dev302
❌ redis5323
✅ turso-dev302
❌ turso4513
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable6609
✅ e2e-local-postgres-nest-stable6609
✅ e2e-local-prod-nest-stable6609

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 17, 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.042s (-1.9%)1.006s (~)0.963s101.00x
💻 LocalExpress0.045s (+1.8%)1.005s (~)0.960s101.06x
💻 LocalNext.js (Turbopack)0.051s (+3.5%)1.005s (~)0.955s101.20x
🌐 RedisNext.js (Turbopack)0.055s (+1.5%)1.005s (~)0.950s101.31x
🐘 PostgresNitro0.059s (+4.2%)1.010s (~)0.951s101.40x
🐘 PostgresNext.js (Turbopack)0.060s (+2.1%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.067s (-14.7% 🟢)1.011s (-0.8%)0.945s101.57x
🌐 MongoDBNext.js (Turbopack)0.128s (-2.4%)1.007s (~)0.880s103.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.471s (-1.8%)2.506s (+9.2% 🔺)2.035s101.00x
▲ VercelNext.js (Turbopack)0.477s (+14.1% 🔺)2.472s (+22.9% 🔺)1.995s101.01x
▲ VercelExpress0.539s (+18.7% 🔺)2.562s (+9.8% 🔺)2.023s101.15x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.113s (-1.1%)2.006s (~)0.893s101.00x
💻 LocalNext.js (Turbopack)1.125s (+1.1%)2.006s (~)0.881s101.01x
🌐 RedisNext.js (Turbopack)1.127s (~)2.007s (~)0.879s101.01x
💻 LocalExpress1.128s (-1.1%)2.005s (~)0.877s101.01x
🐘 PostgresNitro1.144s (~)2.012s (~)0.868s101.03x
🐘 PostgresNext.js (Turbopack)1.147s (+0.8%)2.013s (~)0.866s101.03x
🐘 PostgresExpress1.151s (~)2.012s (~)0.862s101.03x
🌐 MongoDBNext.js (Turbopack)1.304s (-1.8%)2.008s (~)0.704s101.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.977s (-3.6%)3.695s (+3.1%)1.717s101.00x
▲ VercelNext.js (Turbopack)2.003s (+1.8%)3.648s (+13.0% 🔺)1.645s101.01x
▲ VercelNitro2.039s (-4.4%)3.730s (+4.1%)1.692s101.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.683s (-2.3%)11.021s (~)0.338s31.00x
🌐 RedisNext.js (Turbopack)10.761s (~)11.023s (~)0.262s31.01x
💻 LocalNext.js (Turbopack)10.795s (~)11.023s (~)0.228s31.01x
🐘 PostgresNext.js (Turbopack)10.885s (~)11.042s (~)0.158s31.02x
💻 LocalExpress10.910s (~)11.024s (~)0.113s31.02x
🐘 PostgresExpress10.942s (-0.6%)11.040s (~)0.097s31.02x
🐘 PostgresNitro11.012s (+0.8%)11.380s (+3.0%)0.368s31.03x
🌐 MongoDBNext.js (Turbopack)12.228s (-0.6%)13.017s (~)0.789s31.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.324s (-4.9%)18.399s (-4.2%)2.075s21.00x
▲ VercelNitro16.497s (-3.5%)18.423s (~)1.926s21.01x
▲ VercelNext.js (Turbopack)17.104s (-0.9%)19.010s (+3.4%)1.906s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.794s (~)27.050s (~)0.256s31.00x
💻 LocalNitro26.944s (-2.0%)27.052s (-3.6%)0.108s31.01x
💻 LocalNext.js (Turbopack)27.147s (~)28.052s (+2.4%)0.905s31.01x
🐘 PostgresNitro27.192s (~)28.064s (~)0.872s31.01x
🐘 PostgresExpress27.210s (~)28.061s (~)0.851s31.02x
🐘 PostgresNext.js (Turbopack)27.284s (+0.7%)28.065s (+1.2%)0.781s31.02x
💻 LocalExpress27.573s (~)28.055s (~)0.482s31.03x
🌐 MongoDBNext.js (Turbopack)30.376s (-0.6%)31.032s (~)0.656s21.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro43.680s (+1.0%)45.538s (+2.7%)1.858s21.00x
▲ VercelExpress45.411s (+5.9% 🔺)47.334s (+7.1% 🔺)1.922s21.04x
▲ VercelNext.js (Turbopack)45.914s (+4.4%)47.479s (+4.2%)1.565s21.05x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)53.460s (~)54.096s (~)0.636s21.00x
🐘 PostgresNext.js (Turbopack)53.957s (~)54.110s (~)0.153s21.01x
🐘 PostgresExpress54.325s (~)55.094s (~)0.770s21.02x
🐘 PostgresNitro54.371s (~)55.104s (~)0.733s21.02x
💻 LocalNitro55.253s (-2.4%)56.101s (-1.7%)0.848s21.03x
💻 LocalNext.js (Turbopack)55.987s (~)56.103s (~)0.115s21.05x
💻 LocalExpress56.830s (~)57.103s (~)0.273s21.06x
🌐 MongoDBNext.js (Turbopack)60.852s (~)61.068s (~)0.216s21.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express90.619s (-5.4% 🟢)92.426s (-5.3% 🟢)1.807s11.00x
▲ VercelNitro91.414s (-4.4%)92.690s (-5.3% 🟢)1.276s11.01x
▲ VercelNext.js (Turbopack)92.733s (-3.0%)94.287s (-4.6%)1.554s11.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.263s (+0.6%)2.011s (~)0.748s151.00x
🐘 PostgresExpress1.277s (-2.3%)2.011s (~)0.733s151.01x
🐘 PostgresNitro1.290s (+1.3%)2.011s (~)0.721s151.02x
🌐 RedisNext.js (Turbopack)1.386s (+1.7%)2.006s (~)0.621s151.10x
💻 LocalNitro1.506s (-2.5%)2.005s (~)0.499s151.19x
💻 LocalExpress1.516s (-1.1%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.548s (~)2.005s (~)0.458s151.23x
🌐 MongoDBNext.js (Turbopack)2.149s (~)3.009s (~)0.860s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.247s (-6.3% 🟢)3.614s (-10.2% 🟢)1.368s91.00x
▲ VercelNext.js (Turbopack)2.359s (-6.1% 🟢)4.019s (+6.9% 🔺)1.660s81.05x
▲ VercelExpress2.604s (-2.2%)4.385s (-1.8%)1.781s81.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNitro2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNext.js (Turbopack)2.479s (-1.4%)3.012s (~)0.533s101.01x
🌐 RedisNext.js (Turbopack)2.613s (+1.9%)3.009s (~)0.395s101.06x
💻 LocalNext.js (Turbopack)2.799s (+3.6%)3.208s (-4.0%)0.408s101.14x
💻 LocalNitro2.805s (-2.3%)3.107s (-3.1%)0.302s101.14x
💻 LocalExpress2.992s (+6.1% 🔺)3.563s (+14.6% 🔺)0.571s91.22x
🌐 MongoDBNext.js (Turbopack)4.699s (~)5.177s (-3.1%)0.478s61.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.536s (-6.1% 🟢)4.004s (-4.3%)1.468s81.00x
▲ VercelNext.js (Turbopack)2.614s (-24.1% 🟢)3.868s (-17.8% 🟢)1.255s81.03x
▲ VercelExpress3.239s (-11.5% 🟢)4.658s (-7.0% 🟢)1.419s71.28x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.595s (-0.9%)4.013s (~)0.419s81.00x
🐘 PostgresExpress3.632s (+0.6%)4.013s (~)0.381s81.01x
🐘 PostgresNext.js (Turbopack)3.742s (-1.1%)4.015s (~)0.273s81.04x
🌐 RedisNext.js (Turbopack)4.079s (-1.5%)5.011s (+9.3% 🔺)0.932s61.13x
💻 LocalNitro7.424s (-11.0% 🟢)8.019s (-11.1% 🟢)0.595s42.07x
💻 LocalNext.js (Turbopack)7.531s (-4.7%)8.015s (-5.9% 🟢)0.484s42.10x
💻 LocalExpress8.929s (+17.9% 🔺)9.272s (+15.6% 🔺)0.343s42.48x
🌐 MongoDBNext.js (Turbopack)9.930s (-2.7%)10.684s (~)0.753s32.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.720s (-13.9% 🟢)4.029s (-13.7% 🟢)1.309s81.00x
▲ VercelNitro3.102s (+0.6%)4.552s (-13.2% 🟢)1.450s71.14x
▲ VercelNext.js (Turbopack)3.450s (-1.8%)5.101s (+7.2% 🔺)1.651s61.27x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.260s (-0.9%)2.011s (~)0.750s151.00x
🐘 PostgresExpress1.278s (~)2.010s (~)0.732s151.01x
🐘 PostgresNitro1.289s (+1.2%)2.011s (~)0.722s151.02x
🌐 RedisNext.js (Turbopack)1.313s (+0.8%)2.006s (~)0.694s151.04x
💻 LocalNitro1.516s (+0.8%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.525s (+1.6%)2.006s (~)0.481s151.21x
💻 LocalExpress1.540s (+0.8%)2.006s (~)0.466s151.22x
🌐 MongoDBNext.js (Turbopack)2.175s (-0.8%)3.008s (~)0.833s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.095s (-10.2% 🟢)3.691s (-1.6%)1.596s91.00x
▲ VercelNitro2.258s (-29.6% 🟢)3.674s (-18.0% 🟢)1.416s91.08x
▲ VercelNext.js (Turbopack)2.270s (+5.7% 🔺)3.896s (+17.2% 🔺)1.626s81.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.434s (-1.0%)3.012s (~)0.578s101.00x
🐘 PostgresNext.js (Turbopack)2.454s (~)3.013s (~)0.558s101.01x
🐘 PostgresNitro2.456s (~)3.011s (~)0.555s101.01x
🌐 RedisNext.js (Turbopack)2.580s (+0.6%)3.008s (~)0.428s101.06x
💻 LocalNitro2.861s (-3.1%)3.108s (-7.0% 🟢)0.247s101.18x
💻 LocalExpress3.100s (+4.1%)4.011s (+21.2% 🔺)0.911s81.27x
💻 LocalNext.js (Turbopack)3.182s (+13.6% 🔺)3.759s (+12.5% 🔺)0.577s81.31x
🌐 MongoDBNext.js (Turbopack)4.675s (-1.5%)5.177s (~)0.502s61.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.433s (-22.6% 🟢)3.867s (-9.9% 🟢)1.434s81.00x
▲ VercelNext.js (Turbopack)2.467s (-25.6% 🟢)4.034s (-15.2% 🟢)1.566s81.01x
▲ VercelNitro2.615s (-17.5% 🟢)4.100s (-9.1% 🟢)1.485s81.07x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.613s (~)4.012s (~)0.399s81.00x
🐘 PostgresNitro3.614s (~)4.015s (~)0.401s81.00x
🐘 PostgresNext.js (Turbopack)3.746s (~)4.139s (+3.1%)0.392s81.04x
🌐 RedisNext.js (Turbopack)4.157s (-3.3%)5.011s (~)0.855s61.15x
💻 LocalNext.js (Turbopack)7.721s (-6.5% 🟢)8.267s (-5.7% 🟢)0.547s42.14x
💻 LocalNitro8.416s (-1.7%)9.018s (~)0.601s42.33x
💻 LocalExpress9.103s (+14.5% 🔺)9.523s (+8.6% 🔺)0.420s42.52x
🌐 MongoDBNext.js (Turbopack)9.844s (-2.6%)10.350s (-3.1%)0.507s32.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.777s (-5.2% 🟢)4.469s (+7.3% 🔺)1.692s71.00x
▲ VercelNitro3.054s (-1.6%)4.679s (~)1.624s71.10x
▲ VercelNext.js (Turbopack)3.278s (-20.6% 🟢)5.050s (-7.7% 🟢)1.772s61.18x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.145s (-26.8% 🟢)1.003s (~)0.010s (-14.7% 🟢)1.015s (~)0.870s101.00x
💻 LocalNext.js (Turbopack)0.175s (+2.0%)1.002s (~)0.011s (+1.8%)1.017s (~)0.842s101.21x
🌐 RedisNext.js (Turbopack)0.176s (+1.5%)1.000s (~)0.002s (+21.4% 🔺)1.008s (~)0.831s101.21x
🐘 PostgresNext.js (Turbopack)0.208s (+4.6%)1.002s (~)0.001s (-20.0% 🟢)1.013s (~)0.804s101.43x
💻 LocalExpress0.210s (+3.2%)1.003s (~)0.011s (+7.5% 🔺)1.018s (~)0.808s101.44x
🐘 PostgresExpress0.219s (-20.9% 🟢)0.992s (~)0.002s (-16.7% 🟢)1.011s (~)0.793s101.50x
🐘 PostgresNitro0.230s (~)0.998s (+0.7%)0.001s (-22.2% 🟢)1.014s (~)0.784s101.58x
🌐 MongoDBNext.js (Turbopack)0.489s (-2.7%)0.966s (+1.1%)0.002s (+6.7% 🔺)1.009s (~)0.520s103.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.572s (-1.9%)2.201s (-19.2% 🟢)0.004s (-19.6% 🟢)2.797s (-15.3% 🟢)1.225s101.00x
▲ VercelNext.js (Turbopack)1.589s (-14.1% 🟢)2.625s (-8.7% 🟢)0.005s (-15.5% 🟢)3.186s (-5.2% 🟢)1.597s101.01x
▲ VercelExpress1.701s (+7.1% 🔺)2.434s (-4.1%)0.005s (-9.4% 🟢)3.049s (-1.7%)1.348s101.08x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro10/12
🐘 PostgresNext.js (Turbopack)5/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

- Increase onTestFailed hook timeout to 30s (default was 10s) so
diagnostics can fetch run data even after slow test timeouts
- parallelSleepWorkflow: increase elapsed threshold from 10s to 25s to
accommodate Vercel cold start latency
- webhookWorkflow: increase hook polling deadline from 30s to 60s and
test timeout from 60s to 120s for slow Vercel webhook registration
- readableStreamWorkflow: stop reading once expected content is received
instead of waiting for stream close (which can hang on Vercel), and
increase test timeout to 120s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…rces
The workflow source files in workbench/ are symlinks that GitHub can't
resolve, causing annotations to show raw paths like #L0 instead of
linking to code. Now:
- utils.ts: omit file= from onTestFailed annotations (just show title)
- github-reporter.ts: use the actual test file path (e.g.
packages/core/e2e/e2e.test.ts) which GitHub can resolve
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Improves CI/e2e failure diagnostics by tracking workflow run IDs per test, emitting GitHub Actions annotations, and enriching the aggregation script output with run metadata and observability links.

Changes:

  • Add run tracking + automatic diagnostics dump on test failures (status/input/output/error + event timeline + dashboard URL).
  • Add a custom Vitest reporter that emits ::error annotations and writes enriched failure sidecar JSON.
  • Update CI workflows and the aggregation script to consume/upload new sidecar artifacts and render run IDs/URLs in PR summaries.

Reviewed changes

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

Show a summary per file
FileDescription
packages/core/e2e/utils.tsAdds run tracking, diagnostics fetching, and CI annotations on test failure.
packages/core/e2e/github-reporter.tsNew Vitest reporter emitting GitHub annotations + failure sidecar JSON.
packages/core/e2e/e2e.test.tsWraps start() to auto-track runs; writes metadata + diagnostics sidecar; adjusts a few flaky test timeouts/stream reading.
packages/core/e2e/e2e-agent.test.tsAdds tracking hooks and wraps start() to record runs for diagnostics.
.github/workflows/tests.ymlAdds custom reporter to e2e runs; uploads new sidecar artifacts for vercel-prod.
.github/workflows/e2e-community-world.ymlAdds custom reporter to community-world e2e runs.
.github/scripts/aggregate-e2e-results.jsLoads sidecar diagnostics/failures and prints run IDs/observability URLs in aggregated output.
.changeset/fresh-rocks-reply.mdAdds a new changeset file (currently empty).

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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +1 to +2
---
---
Comment on lines +668 to +688
export function setupRunTracking(testName: string) {
currentTestName = testName;
trackedRuns = [];
onTestFailed(
async (result) => {
const errorMessage = result.errors?.[0]?.message || 'Test failed';

for (const tracked of trackedRuns) {
try {
const diagnostics = await getRunDiagnostics(tracked);
console.error(diagnostics);
emitGitHubAnnotation(testName, tracked, errorMessage);
} catch {
console.error(
`[diagnostics] Failed to fetch diagnostics for run ${tracked.run.runId}`
);
}
}
},
30_000 // Allow 30s for diagnostics fetching (default hookTimeout is 10s)
);
Comment on lines +652 to +658
const annotation = parts.join(' | ');

// Write directly to stdout bypassing vitest's console interceptor.
// Vitest prefixes console.log output with ANSI codes which prevents
// GitHub Actions from parsing the ::error workflow command.
process.stdout.write(`\n::error title=E2E: ${testName}::${annotation}\n`);
}
Comment on lines +36 to +40
private ctx!: Vitest;
private failedTests: FailedTestInfo[] = [];

onInit(ctx: Vitest) {
this.ctx = ctx;
Comment on lines +149 to +154
process.stdout.write(
`\n::error file=${relFile},title=${title}::${body}\n`
);
}
}

Comment on lines +118 to +126
const byTestName = new Map(entries.map((e) => [e.testName, e]));

for (const test of this.failedTests) {
if (test.runId && test.dashboardUrl) continue; // Already have data from error output
const diag = byTestName.get(test.testName);
if (diag) {
test.runId ??= diag.runId;
test.dashboardUrl ??= diag.dashboardUrl ?? undefined;
}
const entries = JSON.parse(fs.readFileSync(file, 'utf-8'));
for (const entry of entries) {
if (entry.testName && entry.runId) {
diagnostics.set(entry.testName, entry);
Comment on lines 49 to +55
beforeAll(async () => {
setupWorld(deploymentUrl);
});

beforeEach((ctx) => {
setupRunTracking(ctx.task.name);
});
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)) { // Force GitHub README to respect dark mode (function() { var style = document.createElement('style'); style.textContent = ' .markdown-body { color-scheme: dark light; } .markdown-body pre { background: #161b22 !important; } .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; } .markdown-body table th, .markdown-body table td { border-color: #30363d !important; } .markdown-body img { background: #0d1117; } .markdown-body blockquote { border-left-color: #8b949e; } .markdown-body hr { border-color: #30363d; } '; document.head.appendChild(style); })(); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

test: improve e2e test failure diagnostics - #1426

Merged
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements
Mar 18, 2026
Merged

test: improve e2e test failure diagnostics#1426
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

  • Add automatic workflow run diagnostics on e2e test failure (status, input/output, error, event timeline, Vercel dashboard link)
  • Emit GitHub Actions ::error annotations that surface on PR file diffs pointing at the workflow source
  • Fix collectedRunIds which was declared but never populated — observability links in PR comments now work
  • Add custom vitest GithubAnnotationReporter that writes enriched failure sidecar files
  • Enrich the aggregation script to show run IDs and dashboard URLs for failed tests in the PR comment

Test plan

  • Verify CI runs pass (e2e tests should work exactly as before when passing)
  • Intentionally break a test locally to verify diagnostics output
  • Check that the PR comment includes observability links for Vercel prod failures

🤖 Generated with Claude Code

…b annotations
When e2e tests fail, automatically dump workflow run diagnostics (status,
input/output, error details, event timeline, dashboard link) to the CI
logs. Emit GitHub Actions annotations that surface on PR file diffs.
Fix collectedRunIds which was declared but never populated, enabling
observability links in the PR comment. Enrich the aggregation script
to include run IDs and dashboard URLs for failed tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Mar 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c82f089

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production757167825
✅ 💻 Local Development7820118900
✅ 📦 Local Production7820118900
❌ 🐘 Local Postgres7802118900
✅ 🪟 Windows720375
❌ 🌍 Community Worlds1195515189
✅ 📋 Other198027225
Total3490584664014

❌ Failed Tests

▲ Vercel Production (1 failed)

express (1 failed):

  • DurableAgent e2e experimental_onToolCallFinish (GAP) completes but callbacks are not called (GAP)
🐘 Local Postgres (2 failed)

express-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36

nextjs-turbopack-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
🌍 Community Worlds (55 failed)

mongodb (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

redis (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

turso (51 failed):

  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KKZCF4ZDWJHZ4AHBG80EYTNW
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KKZCE3PC0E4B7S0QKFMNGZXA
  • promiseRaceWorkflow | wrun_01KKZCE8WF7624JC2J6DBFZK7N
  • promiseAnyWorkflow | wrun_01KKZCECG0K902T0JMK9N4NKSF
  • importedStepOnlyWorkflow | wrun_01KKZCFJ0R9KHSFFEXGAEBEBCQ
  • hookWorkflow | wrun_01KKZCES2PYX8PZNF7H466FB1K
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
  • sleepingWorkflow | wrun_01KKZCFGQ4M2FXERBZSD9VXBHM
  • parallelSleepWorkflow | wrun_01KKZCFX1AP5CRC73NKWBA5TNA
  • nullByteWorkflow | wrun_01KKZCG00A7J2BBR34HK7DMRMD
  • workflowAndStepMetadataWorkflow | wrun_01KKZCG1VDK9KK6WVGQ51NCZSK
  • fetchWorkflow | wrun_01KKZCGW2S1JV0Y4WZXTHXQWM5
  • promiseRaceStressTestWorkflow | wrun_01KKZCGZQMHJ1HB5T26CRJ9T41
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KKZCKQCPWAWDDACW8H8GC5FX
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KKZCMWGWJVCXRXVHC0743PHY
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KKZCNEP0X5F25EWFHPFNCR0M
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KKZCNP3M8MWC1JHMSEXMEQ3G
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KKZCNTRFF1MY5EZ6C44G2QJ8
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KKZCNWGWHFD5PR9GVA1RZGWW
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KKZCP9RZZ9B8WZVCYT5RMCHQ
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KKZCPF6E2X672Y296EDZ8GMJ
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KKZCPNHMPAMEMWJ4D8GQ8P6B
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KKZCPV77KXKKP98DFQK5XBNT
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KKZCQ0YSZ6H6VVMBV0BD4TRS
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KKZCQ6VR19M0B0W88ZB7ZFX1
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KKZCQCKYVY9ETWMAGMBV5AAD
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KKZCQP01E197K25R7758DT06
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KKZCQY83YDDJ48A4CZM52YX1
  • cancelRun - cancelling a running workflow | wrun_01KKZCR3ZK5930M4DS120Z73P4
  • cancelRun via CLI - cancelling a running workflow | wrun_01KKZCRCDAA2DKSYNV1SA3F4E0
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KKZCRQE6V6HGBD3VP8PR0Q0Q
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KKZCSAJ50NFCWBWCT8ZJ5Z7T
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KKZCSM4KZJAAB70F6YDJHGEC

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro6807
✅ example6807
❌ express6717
✅ fastify6807
✅ hono6807
✅ nextjs-turbopack7302
✅ nextjs-webpack7302
✅ nitro6807
✅ nuxt6807
✅ sveltekit6807
✅ vite6807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable6609
❌ express-stable6519
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
❌ nextjs-turbopack-stable7113
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7203
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
❌ mongodb5323
✅ redis-dev302
❌ redis5323
✅ turso-dev302
❌ turso4513
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable6609
✅ e2e-local-postgres-nest-stable6609
✅ e2e-local-prod-nest-stable6609

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 17, 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.042s (-1.9%)1.006s (~)0.963s101.00x
💻 LocalExpress0.045s (+1.8%)1.005s (~)0.960s101.06x
💻 LocalNext.js (Turbopack)0.051s (+3.5%)1.005s (~)0.955s101.20x
🌐 RedisNext.js (Turbopack)0.055s (+1.5%)1.005s (~)0.950s101.31x
🐘 PostgresNitro0.059s (+4.2%)1.010s (~)0.951s101.40x
🐘 PostgresNext.js (Turbopack)0.060s (+2.1%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.067s (-14.7% 🟢)1.011s (-0.8%)0.945s101.57x
🌐 MongoDBNext.js (Turbopack)0.128s (-2.4%)1.007s (~)0.880s103.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.471s (-1.8%)2.506s (+9.2% 🔺)2.035s101.00x
▲ VercelNext.js (Turbopack)0.477s (+14.1% 🔺)2.472s (+22.9% 🔺)1.995s101.01x
▲ VercelExpress0.539s (+18.7% 🔺)2.562s (+9.8% 🔺)2.023s101.15x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.113s (-1.1%)2.006s (~)0.893s101.00x
💻 LocalNext.js (Turbopack)1.125s (+1.1%)2.006s (~)0.881s101.01x
🌐 RedisNext.js (Turbopack)1.127s (~)2.007s (~)0.879s101.01x
💻 LocalExpress1.128s (-1.1%)2.005s (~)0.877s101.01x
🐘 PostgresNitro1.144s (~)2.012s (~)0.868s101.03x
🐘 PostgresNext.js (Turbopack)1.147s (+0.8%)2.013s (~)0.866s101.03x
🐘 PostgresExpress1.151s (~)2.012s (~)0.862s101.03x
🌐 MongoDBNext.js (Turbopack)1.304s (-1.8%)2.008s (~)0.704s101.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.977s (-3.6%)3.695s (+3.1%)1.717s101.00x
▲ VercelNext.js (Turbopack)2.003s (+1.8%)3.648s (+13.0% 🔺)1.645s101.01x
▲ VercelNitro2.039s (-4.4%)3.730s (+4.1%)1.692s101.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.683s (-2.3%)11.021s (~)0.338s31.00x
🌐 RedisNext.js (Turbopack)10.761s (~)11.023s (~)0.262s31.01x
💻 LocalNext.js (Turbopack)10.795s (~)11.023s (~)0.228s31.01x
🐘 PostgresNext.js (Turbopack)10.885s (~)11.042s (~)0.158s31.02x
💻 LocalExpress10.910s (~)11.024s (~)0.113s31.02x
🐘 PostgresExpress10.942s (-0.6%)11.040s (~)0.097s31.02x
🐘 PostgresNitro11.012s (+0.8%)11.380s (+3.0%)0.368s31.03x
🌐 MongoDBNext.js (Turbopack)12.228s (-0.6%)13.017s (~)0.789s31.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.324s (-4.9%)18.399s (-4.2%)2.075s21.00x
▲ VercelNitro16.497s (-3.5%)18.423s (~)1.926s21.01x
▲ VercelNext.js (Turbopack)17.104s (-0.9%)19.010s (+3.4%)1.906s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.794s (~)27.050s (~)0.256s31.00x
💻 LocalNitro26.944s (-2.0%)27.052s (-3.6%)0.108s31.01x
💻 LocalNext.js (Turbopack)27.147s (~)28.052s (+2.4%)0.905s31.01x
🐘 PostgresNitro27.192s (~)28.064s (~)0.872s31.01x
🐘 PostgresExpress27.210s (~)28.061s (~)0.851s31.02x
🐘 PostgresNext.js (Turbopack)27.284s (+0.7%)28.065s (+1.2%)0.781s31.02x
💻 LocalExpress27.573s (~)28.055s (~)0.482s31.03x
🌐 MongoDBNext.js (Turbopack)30.376s (-0.6%)31.032s (~)0.656s21.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro43.680s (+1.0%)45.538s (+2.7%)1.858s21.00x
▲ VercelExpress45.411s (+5.9% 🔺)47.334s (+7.1% 🔺)1.922s21.04x
▲ VercelNext.js (Turbopack)45.914s (+4.4%)47.479s (+4.2%)1.565s21.05x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)53.460s (~)54.096s (~)0.636s21.00x
🐘 PostgresNext.js (Turbopack)53.957s (~)54.110s (~)0.153s21.01x
🐘 PostgresExpress54.325s (~)55.094s (~)0.770s21.02x
🐘 PostgresNitro54.371s (~)55.104s (~)0.733s21.02x
💻 LocalNitro55.253s (-2.4%)56.101s (-1.7%)0.848s21.03x
💻 LocalNext.js (Turbopack)55.987s (~)56.103s (~)0.115s21.05x
💻 LocalExpress56.830s (~)57.103s (~)0.273s21.06x
🌐 MongoDBNext.js (Turbopack)60.852s (~)61.068s (~)0.216s21.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express90.619s (-5.4% 🟢)92.426s (-5.3% 🟢)1.807s11.00x
▲ VercelNitro91.414s (-4.4%)92.690s (-5.3% 🟢)1.276s11.01x
▲ VercelNext.js (Turbopack)92.733s (-3.0%)94.287s (-4.6%)1.554s11.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.263s (+0.6%)2.011s (~)0.748s151.00x
🐘 PostgresExpress1.277s (-2.3%)2.011s (~)0.733s151.01x
🐘 PostgresNitro1.290s (+1.3%)2.011s (~)0.721s151.02x
🌐 RedisNext.js (Turbopack)1.386s (+1.7%)2.006s (~)0.621s151.10x
💻 LocalNitro1.506s (-2.5%)2.005s (~)0.499s151.19x
💻 LocalExpress1.516s (-1.1%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.548s (~)2.005s (~)0.458s151.23x
🌐 MongoDBNext.js (Turbopack)2.149s (~)3.009s (~)0.860s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.247s (-6.3% 🟢)3.614s (-10.2% 🟢)1.368s91.00x
▲ VercelNext.js (Turbopack)2.359s (-6.1% 🟢)4.019s (+6.9% 🔺)1.660s81.05x
▲ VercelExpress2.604s (-2.2%)4.385s (-1.8%)1.781s81.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNitro2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNext.js (Turbopack)2.479s (-1.4%)3.012s (~)0.533s101.01x
🌐 RedisNext.js (Turbopack)2.613s (+1.9%)3.009s (~)0.395s101.06x
💻 LocalNext.js (Turbopack)2.799s (+3.6%)3.208s (-4.0%)0.408s101.14x
💻 LocalNitro2.805s (-2.3%)3.107s (-3.1%)0.302s101.14x
💻 LocalExpress2.992s (+6.1% 🔺)3.563s (+14.6% 🔺)0.571s91.22x
🌐 MongoDBNext.js (Turbopack)4.699s (~)5.177s (-3.1%)0.478s61.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.536s (-6.1% 🟢)4.004s (-4.3%)1.468s81.00x
▲ VercelNext.js (Turbopack)2.614s (-24.1% 🟢)3.868s (-17.8% 🟢)1.255s81.03x
▲ VercelExpress3.239s (-11.5% 🟢)4.658s (-7.0% 🟢)1.419s71.28x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.595s (-0.9%)4.013s (~)0.419s81.00x
🐘 PostgresExpress3.632s (+0.6%)4.013s (~)0.381s81.01x
🐘 PostgresNext.js (Turbopack)3.742s (-1.1%)4.015s (~)0.273s81.04x
🌐 RedisNext.js (Turbopack)4.079s (-1.5%)5.011s (+9.3% 🔺)0.932s61.13x
💻 LocalNitro7.424s (-11.0% 🟢)8.019s (-11.1% 🟢)0.595s42.07x
💻 LocalNext.js (Turbopack)7.531s (-4.7%)8.015s (-5.9% 🟢)0.484s42.10x
💻 LocalExpress8.929s (+17.9% 🔺)9.272s (+15.6% 🔺)0.343s42.48x
🌐 MongoDBNext.js (Turbopack)9.930s (-2.7%)10.684s (~)0.753s32.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.720s (-13.9% 🟢)4.029s (-13.7% 🟢)1.309s81.00x
▲ VercelNitro3.102s (+0.6%)4.552s (-13.2% 🟢)1.450s71.14x
▲ VercelNext.js (Turbopack)3.450s (-1.8%)5.101s (+7.2% 🔺)1.651s61.27x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.260s (-0.9%)2.011s (~)0.750s151.00x
🐘 PostgresExpress1.278s (~)2.010s (~)0.732s151.01x
🐘 PostgresNitro1.289s (+1.2%)2.011s (~)0.722s151.02x
🌐 RedisNext.js (Turbopack)1.313s (+0.8%)2.006s (~)0.694s151.04x
💻 LocalNitro1.516s (+0.8%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.525s (+1.6%)2.006s (~)0.481s151.21x
💻 LocalExpress1.540s (+0.8%)2.006s (~)0.466s151.22x
🌐 MongoDBNext.js (Turbopack)2.175s (-0.8%)3.008s (~)0.833s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.095s (-10.2% 🟢)3.691s (-1.6%)1.596s91.00x
▲ VercelNitro2.258s (-29.6% 🟢)3.674s (-18.0% 🟢)1.416s91.08x
▲ VercelNext.js (Turbopack)2.270s (+5.7% 🔺)3.896s (+17.2% 🔺)1.626s81.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.434s (-1.0%)3.012s (~)0.578s101.00x
🐘 PostgresNext.js (Turbopack)2.454s (~)3.013s (~)0.558s101.01x
🐘 PostgresNitro2.456s (~)3.011s (~)0.555s101.01x
🌐 RedisNext.js (Turbopack)2.580s (+0.6%)3.008s (~)0.428s101.06x
💻 LocalNitro2.861s (-3.1%)3.108s (-7.0% 🟢)0.247s101.18x
💻 LocalExpress3.100s (+4.1%)4.011s (+21.2% 🔺)0.911s81.27x
💻 LocalNext.js (Turbopack)3.182s (+13.6% 🔺)3.759s (+12.5% 🔺)0.577s81.31x
🌐 MongoDBNext.js (Turbopack)4.675s (-1.5%)5.177s (~)0.502s61.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.433s (-22.6% 🟢)3.867s (-9.9% 🟢)1.434s81.00x
▲ VercelNext.js (Turbopack)2.467s (-25.6% 🟢)4.034s (-15.2% 🟢)1.566s81.01x
▲ VercelNitro2.615s (-17.5% 🟢)4.100s (-9.1% 🟢)1.485s81.07x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.613s (~)4.012s (~)0.399s81.00x
🐘 PostgresNitro3.614s (~)4.015s (~)0.401s81.00x
🐘 PostgresNext.js (Turbopack)3.746s (~)4.139s (+3.1%)0.392s81.04x
🌐 RedisNext.js (Turbopack)4.157s (-3.3%)5.011s (~)0.855s61.15x
💻 LocalNext.js (Turbopack)7.721s (-6.5% 🟢)8.267s (-5.7% 🟢)0.547s42.14x
💻 LocalNitro8.416s (-1.7%)9.018s (~)0.601s42.33x
💻 LocalExpress9.103s (+14.5% 🔺)9.523s (+8.6% 🔺)0.420s42.52x
🌐 MongoDBNext.js (Turbopack)9.844s (-2.6%)10.350s (-3.1%)0.507s32.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.777s (-5.2% 🟢)4.469s (+7.3% 🔺)1.692s71.00x
▲ VercelNitro3.054s (-1.6%)4.679s (~)1.624s71.10x
▲ VercelNext.js (Turbopack)3.278s (-20.6% 🟢)5.050s (-7.7% 🟢)1.772s61.18x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.145s (-26.8% 🟢)1.003s (~)0.010s (-14.7% 🟢)1.015s (~)0.870s101.00x
💻 LocalNext.js (Turbopack)0.175s (+2.0%)1.002s (~)0.011s (+1.8%)1.017s (~)0.842s101.21x
🌐 RedisNext.js (Turbopack)0.176s (+1.5%)1.000s (~)0.002s (+21.4% 🔺)1.008s (~)0.831s101.21x
🐘 PostgresNext.js (Turbopack)0.208s (+4.6%)1.002s (~)0.001s (-20.0% 🟢)1.013s (~)0.804s101.43x
💻 LocalExpress0.210s (+3.2%)1.003s (~)0.011s (+7.5% 🔺)1.018s (~)0.808s101.44x
🐘 PostgresExpress0.219s (-20.9% 🟢)0.992s (~)0.002s (-16.7% 🟢)1.011s (~)0.793s101.50x
🐘 PostgresNitro0.230s (~)0.998s (+0.7%)0.001s (-22.2% 🟢)1.014s (~)0.784s101.58x
🌐 MongoDBNext.js (Turbopack)0.489s (-2.7%)0.966s (+1.1%)0.002s (+6.7% 🔺)1.009s (~)0.520s103.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.572s (-1.9%)2.201s (-19.2% 🟢)0.004s (-19.6% 🟢)2.797s (-15.3% 🟢)1.225s101.00x
▲ VercelNext.js (Turbopack)1.589s (-14.1% 🟢)2.625s (-8.7% 🟢)0.005s (-15.5% 🟢)3.186s (-5.2% 🟢)1.597s101.01x
▲ VercelExpress1.701s (+7.1% 🔺)2.434s (-4.1%)0.005s (-9.4% 🟢)3.049s (-1.7%)1.348s101.08x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro10/12
🐘 PostgresNext.js (Turbopack)5/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

- Increase onTestFailed hook timeout to 30s (default was 10s) so
diagnostics can fetch run data even after slow test timeouts
- parallelSleepWorkflow: increase elapsed threshold from 10s to 25s to
accommodate Vercel cold start latency
- webhookWorkflow: increase hook polling deadline from 30s to 60s and
test timeout from 60s to 120s for slow Vercel webhook registration
- readableStreamWorkflow: stop reading once expected content is received
instead of waiting for stream close (which can hang on Vercel), and
increase test timeout to 120s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…rces
The workflow source files in workbench/ are symlinks that GitHub can't
resolve, causing annotations to show raw paths like #L0 instead of
linking to code. Now:
- utils.ts: omit file= from onTestFailed annotations (just show title)
- github-reporter.ts: use the actual test file path (e.g.
packages/core/e2e/e2e.test.ts) which GitHub can resolve
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Improves CI/e2e failure diagnostics by tracking workflow run IDs per test, emitting GitHub Actions annotations, and enriching the aggregation script output with run metadata and observability links.

Changes:

  • Add run tracking + automatic diagnostics dump on test failures (status/input/output/error + event timeline + dashboard URL).
  • Add a custom Vitest reporter that emits ::error annotations and writes enriched failure sidecar JSON.
  • Update CI workflows and the aggregation script to consume/upload new sidecar artifacts and render run IDs/URLs in PR summaries.

Reviewed changes

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

Show a summary per file
FileDescription
packages/core/e2e/utils.tsAdds run tracking, diagnostics fetching, and CI annotations on test failure.
packages/core/e2e/github-reporter.tsNew Vitest reporter emitting GitHub annotations + failure sidecar JSON.
packages/core/e2e/e2e.test.tsWraps start() to auto-track runs; writes metadata + diagnostics sidecar; adjusts a few flaky test timeouts/stream reading.
packages/core/e2e/e2e-agent.test.tsAdds tracking hooks and wraps start() to record runs for diagnostics.
.github/workflows/tests.ymlAdds custom reporter to e2e runs; uploads new sidecar artifacts for vercel-prod.
.github/workflows/e2e-community-world.ymlAdds custom reporter to community-world e2e runs.
.github/scripts/aggregate-e2e-results.jsLoads sidecar diagnostics/failures and prints run IDs/observability URLs in aggregated output.
.changeset/fresh-rocks-reply.mdAdds a new changeset file (currently empty).

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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +1 to +2
---
---
Comment on lines +668 to +688
export function setupRunTracking(testName: string) {
currentTestName = testName;
trackedRuns = [];
onTestFailed(
async (result) => {
const errorMessage = result.errors?.[0]?.message || 'Test failed';

for (const tracked of trackedRuns) {
try {
const diagnostics = await getRunDiagnostics(tracked);
console.error(diagnostics);
emitGitHubAnnotation(testName, tracked, errorMessage);
} catch {
console.error(
`[diagnostics] Failed to fetch diagnostics for run ${tracked.run.runId}`
);
}
}
},
30_000 // Allow 30s for diagnostics fetching (default hookTimeout is 10s)
);
Comment on lines +652 to +658
const annotation = parts.join(' | ');

// Write directly to stdout bypassing vitest's console interceptor.
// Vitest prefixes console.log output with ANSI codes which prevents
// GitHub Actions from parsing the ::error workflow command.
process.stdout.write(`\n::error title=E2E: ${testName}::${annotation}\n`);
}
Comment on lines +36 to +40
private ctx!: Vitest;
private failedTests: FailedTestInfo[] = [];

onInit(ctx: Vitest) {
this.ctx = ctx;
Comment on lines +149 to +154
process.stdout.write(
`\n::error file=${relFile},title=${title}::${body}\n`
);
}
}

Comment on lines +118 to +126
const byTestName = new Map(entries.map((e) => [e.testName, e]));

for (const test of this.failedTests) {
if (test.runId && test.dashboardUrl) continue; // Already have data from error output
const diag = byTestName.get(test.testName);
if (diag) {
test.runId ??= diag.runId;
test.dashboardUrl ??= diag.dashboardUrl ?? undefined;
}
const entries = JSON.parse(fs.readFileSync(file, 'utf-8'));
for (const entry of entries) {
if (entry.testName && entry.runId) {
diagnostics.set(entry.testName, entry);
Comment on lines 49 to +55
beforeAll(async () => {
setupWorld(deploymentUrl);
});

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

test: improve e2e test failure diagnostics - #1426

Merged
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements
Mar 18, 2026
Merged

test: improve e2e test failure diagnostics#1426
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

  • Add automatic workflow run diagnostics on e2e test failure (status, input/output, error, event timeline, Vercel dashboard link)
  • Emit GitHub Actions ::error annotations that surface on PR file diffs pointing at the workflow source
  • Fix collectedRunIds which was declared but never populated — observability links in PR comments now work
  • Add custom vitest GithubAnnotationReporter that writes enriched failure sidecar files
  • Enrich the aggregation script to show run IDs and dashboard URLs for failed tests in the PR comment

Test plan

  • Verify CI runs pass (e2e tests should work exactly as before when passing)
  • Intentionally break a test locally to verify diagnostics output
  • Check that the PR comment includes observability links for Vercel prod failures

🤖 Generated with Claude Code

…b annotations
When e2e tests fail, automatically dump workflow run diagnostics (status,
input/output, error details, event timeline, dashboard link) to the CI
logs. Emit GitHub Actions annotations that surface on PR file diffs.
Fix collectedRunIds which was declared but never populated, enabling
observability links in the PR comment. Enrich the aggregation script
to include run IDs and dashboard URLs for failed tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Mar 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c82f089

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production757167825
✅ 💻 Local Development7820118900
✅ 📦 Local Production7820118900
❌ 🐘 Local Postgres7802118900
✅ 🪟 Windows720375
❌ 🌍 Community Worlds1195515189
✅ 📋 Other198027225
Total3490584664014

❌ Failed Tests

▲ Vercel Production (1 failed)

express (1 failed):

  • DurableAgent e2e experimental_onToolCallFinish (GAP) completes but callbacks are not called (GAP)
🐘 Local Postgres (2 failed)

express-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36

nextjs-turbopack-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
🌍 Community Worlds (55 failed)

mongodb (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

redis (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

turso (51 failed):

  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KKZCF4ZDWJHZ4AHBG80EYTNW
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KKZCE3PC0E4B7S0QKFMNGZXA
  • promiseRaceWorkflow | wrun_01KKZCE8WF7624JC2J6DBFZK7N
  • promiseAnyWorkflow | wrun_01KKZCECG0K902T0JMK9N4NKSF
  • importedStepOnlyWorkflow | wrun_01KKZCFJ0R9KHSFFEXGAEBEBCQ
  • hookWorkflow | wrun_01KKZCES2PYX8PZNF7H466FB1K
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
  • sleepingWorkflow | wrun_01KKZCFGQ4M2FXERBZSD9VXBHM
  • parallelSleepWorkflow | wrun_01KKZCFX1AP5CRC73NKWBA5TNA
  • nullByteWorkflow | wrun_01KKZCG00A7J2BBR34HK7DMRMD
  • workflowAndStepMetadataWorkflow | wrun_01KKZCG1VDK9KK6WVGQ51NCZSK
  • fetchWorkflow | wrun_01KKZCGW2S1JV0Y4WZXTHXQWM5
  • promiseRaceStressTestWorkflow | wrun_01KKZCGZQMHJ1HB5T26CRJ9T41
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KKZCKQCPWAWDDACW8H8GC5FX
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KKZCMWGWJVCXRXVHC0743PHY
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KKZCNEP0X5F25EWFHPFNCR0M
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KKZCNP3M8MWC1JHMSEXMEQ3G
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KKZCNTRFF1MY5EZ6C44G2QJ8
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KKZCNWGWHFD5PR9GVA1RZGWW
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KKZCP9RZZ9B8WZVCYT5RMCHQ
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KKZCPF6E2X672Y296EDZ8GMJ
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KKZCPNHMPAMEMWJ4D8GQ8P6B
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KKZCPV77KXKKP98DFQK5XBNT
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KKZCQ0YSZ6H6VVMBV0BD4TRS
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KKZCQ6VR19M0B0W88ZB7ZFX1
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KKZCQCKYVY9ETWMAGMBV5AAD
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KKZCQP01E197K25R7758DT06
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KKZCQY83YDDJ48A4CZM52YX1
  • cancelRun - cancelling a running workflow | wrun_01KKZCR3ZK5930M4DS120Z73P4
  • cancelRun via CLI - cancelling a running workflow | wrun_01KKZCRCDAA2DKSYNV1SA3F4E0
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KKZCRQE6V6HGBD3VP8PR0Q0Q
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KKZCSAJ50NFCWBWCT8ZJ5Z7T
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KKZCSM4KZJAAB70F6YDJHGEC

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro6807
✅ example6807
❌ express6717
✅ fastify6807
✅ hono6807
✅ nextjs-turbopack7302
✅ nextjs-webpack7302
✅ nitro6807
✅ nuxt6807
✅ sveltekit6807
✅ vite6807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable6609
❌ express-stable6519
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
❌ nextjs-turbopack-stable7113
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7203
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
❌ mongodb5323
✅ redis-dev302
❌ redis5323
✅ turso-dev302
❌ turso4513
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable6609
✅ e2e-local-postgres-nest-stable6609
✅ e2e-local-prod-nest-stable6609

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 17, 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.042s (-1.9%)1.006s (~)0.963s101.00x
💻 LocalExpress0.045s (+1.8%)1.005s (~)0.960s101.06x
💻 LocalNext.js (Turbopack)0.051s (+3.5%)1.005s (~)0.955s101.20x
🌐 RedisNext.js (Turbopack)0.055s (+1.5%)1.005s (~)0.950s101.31x
🐘 PostgresNitro0.059s (+4.2%)1.010s (~)0.951s101.40x
🐘 PostgresNext.js (Turbopack)0.060s (+2.1%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.067s (-14.7% 🟢)1.011s (-0.8%)0.945s101.57x
🌐 MongoDBNext.js (Turbopack)0.128s (-2.4%)1.007s (~)0.880s103.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.471s (-1.8%)2.506s (+9.2% 🔺)2.035s101.00x
▲ VercelNext.js (Turbopack)0.477s (+14.1% 🔺)2.472s (+22.9% 🔺)1.995s101.01x
▲ VercelExpress0.539s (+18.7% 🔺)2.562s (+9.8% 🔺)2.023s101.15x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.113s (-1.1%)2.006s (~)0.893s101.00x
💻 LocalNext.js (Turbopack)1.125s (+1.1%)2.006s (~)0.881s101.01x
🌐 RedisNext.js (Turbopack)1.127s (~)2.007s (~)0.879s101.01x
💻 LocalExpress1.128s (-1.1%)2.005s (~)0.877s101.01x
🐘 PostgresNitro1.144s (~)2.012s (~)0.868s101.03x
🐘 PostgresNext.js (Turbopack)1.147s (+0.8%)2.013s (~)0.866s101.03x
🐘 PostgresExpress1.151s (~)2.012s (~)0.862s101.03x
🌐 MongoDBNext.js (Turbopack)1.304s (-1.8%)2.008s (~)0.704s101.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.977s (-3.6%)3.695s (+3.1%)1.717s101.00x
▲ VercelNext.js (Turbopack)2.003s (+1.8%)3.648s (+13.0% 🔺)1.645s101.01x
▲ VercelNitro2.039s (-4.4%)3.730s (+4.1%)1.692s101.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.683s (-2.3%)11.021s (~)0.338s31.00x
🌐 RedisNext.js (Turbopack)10.761s (~)11.023s (~)0.262s31.01x
💻 LocalNext.js (Turbopack)10.795s (~)11.023s (~)0.228s31.01x
🐘 PostgresNext.js (Turbopack)10.885s (~)11.042s (~)0.158s31.02x
💻 LocalExpress10.910s (~)11.024s (~)0.113s31.02x
🐘 PostgresExpress10.942s (-0.6%)11.040s (~)0.097s31.02x
🐘 PostgresNitro11.012s (+0.8%)11.380s (+3.0%)0.368s31.03x
🌐 MongoDBNext.js (Turbopack)12.228s (-0.6%)13.017s (~)0.789s31.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.324s (-4.9%)18.399s (-4.2%)2.075s21.00x
▲ VercelNitro16.497s (-3.5%)18.423s (~)1.926s21.01x
▲ VercelNext.js (Turbopack)17.104s (-0.9%)19.010s (+3.4%)1.906s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.794s (~)27.050s (~)0.256s31.00x
💻 LocalNitro26.944s (-2.0%)27.052s (-3.6%)0.108s31.01x
💻 LocalNext.js (Turbopack)27.147s (~)28.052s (+2.4%)0.905s31.01x
🐘 PostgresNitro27.192s (~)28.064s (~)0.872s31.01x
🐘 PostgresExpress27.210s (~)28.061s (~)0.851s31.02x
🐘 PostgresNext.js (Turbopack)27.284s (+0.7%)28.065s (+1.2%)0.781s31.02x
💻 LocalExpress27.573s (~)28.055s (~)0.482s31.03x
🌐 MongoDBNext.js (Turbopack)30.376s (-0.6%)31.032s (~)0.656s21.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro43.680s (+1.0%)45.538s (+2.7%)1.858s21.00x
▲ VercelExpress45.411s (+5.9% 🔺)47.334s (+7.1% 🔺)1.922s21.04x
▲ VercelNext.js (Turbopack)45.914s (+4.4%)47.479s (+4.2%)1.565s21.05x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)53.460s (~)54.096s (~)0.636s21.00x
🐘 PostgresNext.js (Turbopack)53.957s (~)54.110s (~)0.153s21.01x
🐘 PostgresExpress54.325s (~)55.094s (~)0.770s21.02x
🐘 PostgresNitro54.371s (~)55.104s (~)0.733s21.02x
💻 LocalNitro55.253s (-2.4%)56.101s (-1.7%)0.848s21.03x
💻 LocalNext.js (Turbopack)55.987s (~)56.103s (~)0.115s21.05x
💻 LocalExpress56.830s (~)57.103s (~)0.273s21.06x
🌐 MongoDBNext.js (Turbopack)60.852s (~)61.068s (~)0.216s21.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express90.619s (-5.4% 🟢)92.426s (-5.3% 🟢)1.807s11.00x
▲ VercelNitro91.414s (-4.4%)92.690s (-5.3% 🟢)1.276s11.01x
▲ VercelNext.js (Turbopack)92.733s (-3.0%)94.287s (-4.6%)1.554s11.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.263s (+0.6%)2.011s (~)0.748s151.00x
🐘 PostgresExpress1.277s (-2.3%)2.011s (~)0.733s151.01x
🐘 PostgresNitro1.290s (+1.3%)2.011s (~)0.721s151.02x
🌐 RedisNext.js (Turbopack)1.386s (+1.7%)2.006s (~)0.621s151.10x
💻 LocalNitro1.506s (-2.5%)2.005s (~)0.499s151.19x
💻 LocalExpress1.516s (-1.1%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.548s (~)2.005s (~)0.458s151.23x
🌐 MongoDBNext.js (Turbopack)2.149s (~)3.009s (~)0.860s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.247s (-6.3% 🟢)3.614s (-10.2% 🟢)1.368s91.00x
▲ VercelNext.js (Turbopack)2.359s (-6.1% 🟢)4.019s (+6.9% 🔺)1.660s81.05x
▲ VercelExpress2.604s (-2.2%)4.385s (-1.8%)1.781s81.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNitro2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNext.js (Turbopack)2.479s (-1.4%)3.012s (~)0.533s101.01x
🌐 RedisNext.js (Turbopack)2.613s (+1.9%)3.009s (~)0.395s101.06x
💻 LocalNext.js (Turbopack)2.799s (+3.6%)3.208s (-4.0%)0.408s101.14x
💻 LocalNitro2.805s (-2.3%)3.107s (-3.1%)0.302s101.14x
💻 LocalExpress2.992s (+6.1% 🔺)3.563s (+14.6% 🔺)0.571s91.22x
🌐 MongoDBNext.js (Turbopack)4.699s (~)5.177s (-3.1%)0.478s61.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.536s (-6.1% 🟢)4.004s (-4.3%)1.468s81.00x
▲ VercelNext.js (Turbopack)2.614s (-24.1% 🟢)3.868s (-17.8% 🟢)1.255s81.03x
▲ VercelExpress3.239s (-11.5% 🟢)4.658s (-7.0% 🟢)1.419s71.28x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.595s (-0.9%)4.013s (~)0.419s81.00x
🐘 PostgresExpress3.632s (+0.6%)4.013s (~)0.381s81.01x
🐘 PostgresNext.js (Turbopack)3.742s (-1.1%)4.015s (~)0.273s81.04x
🌐 RedisNext.js (Turbopack)4.079s (-1.5%)5.011s (+9.3% 🔺)0.932s61.13x
💻 LocalNitro7.424s (-11.0% 🟢)8.019s (-11.1% 🟢)0.595s42.07x
💻 LocalNext.js (Turbopack)7.531s (-4.7%)8.015s (-5.9% 🟢)0.484s42.10x
💻 LocalExpress8.929s (+17.9% 🔺)9.272s (+15.6% 🔺)0.343s42.48x
🌐 MongoDBNext.js (Turbopack)9.930s (-2.7%)10.684s (~)0.753s32.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.720s (-13.9% 🟢)4.029s (-13.7% 🟢)1.309s81.00x
▲ VercelNitro3.102s (+0.6%)4.552s (-13.2% 🟢)1.450s71.14x
▲ VercelNext.js (Turbopack)3.450s (-1.8%)5.101s (+7.2% 🔺)1.651s61.27x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.260s (-0.9%)2.011s (~)0.750s151.00x
🐘 PostgresExpress1.278s (~)2.010s (~)0.732s151.01x
🐘 PostgresNitro1.289s (+1.2%)2.011s (~)0.722s151.02x
🌐 RedisNext.js (Turbopack)1.313s (+0.8%)2.006s (~)0.694s151.04x
💻 LocalNitro1.516s (+0.8%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.525s (+1.6%)2.006s (~)0.481s151.21x
💻 LocalExpress1.540s (+0.8%)2.006s (~)0.466s151.22x
🌐 MongoDBNext.js (Turbopack)2.175s (-0.8%)3.008s (~)0.833s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.095s (-10.2% 🟢)3.691s (-1.6%)1.596s91.00x
▲ VercelNitro2.258s (-29.6% 🟢)3.674s (-18.0% 🟢)1.416s91.08x
▲ VercelNext.js (Turbopack)2.270s (+5.7% 🔺)3.896s (+17.2% 🔺)1.626s81.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.434s (-1.0%)3.012s (~)0.578s101.00x
🐘 PostgresNext.js (Turbopack)2.454s (~)3.013s (~)0.558s101.01x
🐘 PostgresNitro2.456s (~)3.011s (~)0.555s101.01x
🌐 RedisNext.js (Turbopack)2.580s (+0.6%)3.008s (~)0.428s101.06x
💻 LocalNitro2.861s (-3.1%)3.108s (-7.0% 🟢)0.247s101.18x
💻 LocalExpress3.100s (+4.1%)4.011s (+21.2% 🔺)0.911s81.27x
💻 LocalNext.js (Turbopack)3.182s (+13.6% 🔺)3.759s (+12.5% 🔺)0.577s81.31x
🌐 MongoDBNext.js (Turbopack)4.675s (-1.5%)5.177s (~)0.502s61.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.433s (-22.6% 🟢)3.867s (-9.9% 🟢)1.434s81.00x
▲ VercelNext.js (Turbopack)2.467s (-25.6% 🟢)4.034s (-15.2% 🟢)1.566s81.01x
▲ VercelNitro2.615s (-17.5% 🟢)4.100s (-9.1% 🟢)1.485s81.07x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.613s (~)4.012s (~)0.399s81.00x
🐘 PostgresNitro3.614s (~)4.015s (~)0.401s81.00x
🐘 PostgresNext.js (Turbopack)3.746s (~)4.139s (+3.1%)0.392s81.04x
🌐 RedisNext.js (Turbopack)4.157s (-3.3%)5.011s (~)0.855s61.15x
💻 LocalNext.js (Turbopack)7.721s (-6.5% 🟢)8.267s (-5.7% 🟢)0.547s42.14x
💻 LocalNitro8.416s (-1.7%)9.018s (~)0.601s42.33x
💻 LocalExpress9.103s (+14.5% 🔺)9.523s (+8.6% 🔺)0.420s42.52x
🌐 MongoDBNext.js (Turbopack)9.844s (-2.6%)10.350s (-3.1%)0.507s32.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.777s (-5.2% 🟢)4.469s (+7.3% 🔺)1.692s71.00x
▲ VercelNitro3.054s (-1.6%)4.679s (~)1.624s71.10x
▲ VercelNext.js (Turbopack)3.278s (-20.6% 🟢)5.050s (-7.7% 🟢)1.772s61.18x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.145s (-26.8% 🟢)1.003s (~)0.010s (-14.7% 🟢)1.015s (~)0.870s101.00x
💻 LocalNext.js (Turbopack)0.175s (+2.0%)1.002s (~)0.011s (+1.8%)1.017s (~)0.842s101.21x
🌐 RedisNext.js (Turbopack)0.176s (+1.5%)1.000s (~)0.002s (+21.4% 🔺)1.008s (~)0.831s101.21x
🐘 PostgresNext.js (Turbopack)0.208s (+4.6%)1.002s (~)0.001s (-20.0% 🟢)1.013s (~)0.804s101.43x
💻 LocalExpress0.210s (+3.2%)1.003s (~)0.011s (+7.5% 🔺)1.018s (~)0.808s101.44x
🐘 PostgresExpress0.219s (-20.9% 🟢)0.992s (~)0.002s (-16.7% 🟢)1.011s (~)0.793s101.50x
🐘 PostgresNitro0.230s (~)0.998s (+0.7%)0.001s (-22.2% 🟢)1.014s (~)0.784s101.58x
🌐 MongoDBNext.js (Turbopack)0.489s (-2.7%)0.966s (+1.1%)0.002s (+6.7% 🔺)1.009s (~)0.520s103.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.572s (-1.9%)2.201s (-19.2% 🟢)0.004s (-19.6% 🟢)2.797s (-15.3% 🟢)1.225s101.00x
▲ VercelNext.js (Turbopack)1.589s (-14.1% 🟢)2.625s (-8.7% 🟢)0.005s (-15.5% 🟢)3.186s (-5.2% 🟢)1.597s101.01x
▲ VercelExpress1.701s (+7.1% 🔺)2.434s (-4.1%)0.005s (-9.4% 🟢)3.049s (-1.7%)1.348s101.08x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro10/12
🐘 PostgresNext.js (Turbopack)5/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

- Increase onTestFailed hook timeout to 30s (default was 10s) so
diagnostics can fetch run data even after slow test timeouts
- parallelSleepWorkflow: increase elapsed threshold from 10s to 25s to
accommodate Vercel cold start latency
- webhookWorkflow: increase hook polling deadline from 30s to 60s and
test timeout from 60s to 120s for slow Vercel webhook registration
- readableStreamWorkflow: stop reading once expected content is received
instead of waiting for stream close (which can hang on Vercel), and
increase test timeout to 120s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…rces
The workflow source files in workbench/ are symlinks that GitHub can't
resolve, causing annotations to show raw paths like #L0 instead of
linking to code. Now:
- utils.ts: omit file= from onTestFailed annotations (just show title)
- github-reporter.ts: use the actual test file path (e.g.
packages/core/e2e/e2e.test.ts) which GitHub can resolve
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Improves CI/e2e failure diagnostics by tracking workflow run IDs per test, emitting GitHub Actions annotations, and enriching the aggregation script output with run metadata and observability links.

Changes:

  • Add run tracking + automatic diagnostics dump on test failures (status/input/output/error + event timeline + dashboard URL).
  • Add a custom Vitest reporter that emits ::error annotations and writes enriched failure sidecar JSON.
  • Update CI workflows and the aggregation script to consume/upload new sidecar artifacts and render run IDs/URLs in PR summaries.

Reviewed changes

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

Show a summary per file
FileDescription
packages/core/e2e/utils.tsAdds run tracking, diagnostics fetching, and CI annotations on test failure.
packages/core/e2e/github-reporter.tsNew Vitest reporter emitting GitHub annotations + failure sidecar JSON.
packages/core/e2e/e2e.test.tsWraps start() to auto-track runs; writes metadata + diagnostics sidecar; adjusts a few flaky test timeouts/stream reading.
packages/core/e2e/e2e-agent.test.tsAdds tracking hooks and wraps start() to record runs for diagnostics.
.github/workflows/tests.ymlAdds custom reporter to e2e runs; uploads new sidecar artifacts for vercel-prod.
.github/workflows/e2e-community-world.ymlAdds custom reporter to community-world e2e runs.
.github/scripts/aggregate-e2e-results.jsLoads sidecar diagnostics/failures and prints run IDs/observability URLs in aggregated output.
.changeset/fresh-rocks-reply.mdAdds a new changeset file (currently empty).

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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +1 to +2
---
---
Comment on lines +668 to +688
export function setupRunTracking(testName: string) {
currentTestName = testName;
trackedRuns = [];
onTestFailed(
async (result) => {
const errorMessage = result.errors?.[0]?.message || 'Test failed';

for (const tracked of trackedRuns) {
try {
const diagnostics = await getRunDiagnostics(tracked);
console.error(diagnostics);
emitGitHubAnnotation(testName, tracked, errorMessage);
} catch {
console.error(
`[diagnostics] Failed to fetch diagnostics for run ${tracked.run.runId}`
);
}
}
},
30_000 // Allow 30s for diagnostics fetching (default hookTimeout is 10s)
);
Comment on lines +652 to +658
const annotation = parts.join(' | ');

// Write directly to stdout bypassing vitest's console interceptor.
// Vitest prefixes console.log output with ANSI codes which prevents
// GitHub Actions from parsing the ::error workflow command.
process.stdout.write(`\n::error title=E2E: ${testName}::${annotation}\n`);
}
Comment on lines +36 to +40
private ctx!: Vitest;
private failedTests: FailedTestInfo[] = [];

onInit(ctx: Vitest) {
this.ctx = ctx;
Comment on lines +149 to +154
process.stdout.write(
`\n::error file=${relFile},title=${title}::${body}\n`
);
}
}

Comment on lines +118 to +126
const byTestName = new Map(entries.map((e) => [e.testName, e]));

for (const test of this.failedTests) {
if (test.runId && test.dashboardUrl) continue; // Already have data from error output
const diag = byTestName.get(test.testName);
if (diag) {
test.runId ??= diag.runId;
test.dashboardUrl ??= diag.dashboardUrl ?? undefined;
}
const entries = JSON.parse(fs.readFileSync(file, 'utf-8'));
for (const entry of entries) {
if (entry.testName && entry.runId) {
diagnostics.set(entry.testName, entry);
Comment on lines 49 to +55
beforeAll(async () => {
setupWorld(deploymentUrl);
});

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

test: improve e2e test failure diagnostics - #1426

Merged
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements
Mar 18, 2026
Merged

test: improve e2e test failure diagnostics#1426
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

  • Add automatic workflow run diagnostics on e2e test failure (status, input/output, error, event timeline, Vercel dashboard link)
  • Emit GitHub Actions ::error annotations that surface on PR file diffs pointing at the workflow source
  • Fix collectedRunIds which was declared but never populated — observability links in PR comments now work
  • Add custom vitest GithubAnnotationReporter that writes enriched failure sidecar files
  • Enrich the aggregation script to show run IDs and dashboard URLs for failed tests in the PR comment

Test plan

  • Verify CI runs pass (e2e tests should work exactly as before when passing)
  • Intentionally break a test locally to verify diagnostics output
  • Check that the PR comment includes observability links for Vercel prod failures

🤖 Generated with Claude Code

…b annotations
When e2e tests fail, automatically dump workflow run diagnostics (status,
input/output, error details, event timeline, dashboard link) to the CI
logs. Emit GitHub Actions annotations that surface on PR file diffs.
Fix collectedRunIds which was declared but never populated, enabling
observability links in the PR comment. Enrich the aggregation script
to include run IDs and dashboard URLs for failed tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Mar 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c82f089

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production757167825
✅ 💻 Local Development7820118900
✅ 📦 Local Production7820118900
❌ 🐘 Local Postgres7802118900
✅ 🪟 Windows720375
❌ 🌍 Community Worlds1195515189
✅ 📋 Other198027225
Total3490584664014

❌ Failed Tests

▲ Vercel Production (1 failed)

express (1 failed):

  • DurableAgent e2e experimental_onToolCallFinish (GAP) completes but callbacks are not called (GAP)
🐘 Local Postgres (2 failed)

express-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36

nextjs-turbopack-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
🌍 Community Worlds (55 failed)

mongodb (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

redis (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

turso (51 failed):

  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KKZCF4ZDWJHZ4AHBG80EYTNW
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KKZCE3PC0E4B7S0QKFMNGZXA
  • promiseRaceWorkflow | wrun_01KKZCE8WF7624JC2J6DBFZK7N
  • promiseAnyWorkflow | wrun_01KKZCECG0K902T0JMK9N4NKSF
  • importedStepOnlyWorkflow | wrun_01KKZCFJ0R9KHSFFEXGAEBEBCQ
  • hookWorkflow | wrun_01KKZCES2PYX8PZNF7H466FB1K
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
  • sleepingWorkflow | wrun_01KKZCFGQ4M2FXERBZSD9VXBHM
  • parallelSleepWorkflow | wrun_01KKZCFX1AP5CRC73NKWBA5TNA
  • nullByteWorkflow | wrun_01KKZCG00A7J2BBR34HK7DMRMD
  • workflowAndStepMetadataWorkflow | wrun_01KKZCG1VDK9KK6WVGQ51NCZSK
  • fetchWorkflow | wrun_01KKZCGW2S1JV0Y4WZXTHXQWM5
  • promiseRaceStressTestWorkflow | wrun_01KKZCGZQMHJ1HB5T26CRJ9T41
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KKZCKQCPWAWDDACW8H8GC5FX
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KKZCMWGWJVCXRXVHC0743PHY
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KKZCNEP0X5F25EWFHPFNCR0M
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KKZCNP3M8MWC1JHMSEXMEQ3G
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KKZCNTRFF1MY5EZ6C44G2QJ8
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KKZCNWGWHFD5PR9GVA1RZGWW
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KKZCP9RZZ9B8WZVCYT5RMCHQ
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KKZCPF6E2X672Y296EDZ8GMJ
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KKZCPNHMPAMEMWJ4D8GQ8P6B
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KKZCPV77KXKKP98DFQK5XBNT
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KKZCQ0YSZ6H6VVMBV0BD4TRS
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KKZCQ6VR19M0B0W88ZB7ZFX1
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KKZCQCKYVY9ETWMAGMBV5AAD
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KKZCQP01E197K25R7758DT06
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KKZCQY83YDDJ48A4CZM52YX1
  • cancelRun - cancelling a running workflow | wrun_01KKZCR3ZK5930M4DS120Z73P4
  • cancelRun via CLI - cancelling a running workflow | wrun_01KKZCRCDAA2DKSYNV1SA3F4E0
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KKZCRQE6V6HGBD3VP8PR0Q0Q
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KKZCSAJ50NFCWBWCT8ZJ5Z7T
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KKZCSM4KZJAAB70F6YDJHGEC

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro6807
✅ example6807
❌ express6717
✅ fastify6807
✅ hono6807
✅ nextjs-turbopack7302
✅ nextjs-webpack7302
✅ nitro6807
✅ nuxt6807
✅ sveltekit6807
✅ vite6807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable6609
❌ express-stable6519
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
❌ nextjs-turbopack-stable7113
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7203
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
❌ mongodb5323
✅ redis-dev302
❌ redis5323
✅ turso-dev302
❌ turso4513
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable6609
✅ e2e-local-postgres-nest-stable6609
✅ e2e-local-prod-nest-stable6609

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 17, 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.042s (-1.9%)1.006s (~)0.963s101.00x
💻 LocalExpress0.045s (+1.8%)1.005s (~)0.960s101.06x
💻 LocalNext.js (Turbopack)0.051s (+3.5%)1.005s (~)0.955s101.20x
🌐 RedisNext.js (Turbopack)0.055s (+1.5%)1.005s (~)0.950s101.31x
🐘 PostgresNitro0.059s (+4.2%)1.010s (~)0.951s101.40x
🐘 PostgresNext.js (Turbopack)0.060s (+2.1%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.067s (-14.7% 🟢)1.011s (-0.8%)0.945s101.57x
🌐 MongoDBNext.js (Turbopack)0.128s (-2.4%)1.007s (~)0.880s103.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.471s (-1.8%)2.506s (+9.2% 🔺)2.035s101.00x
▲ VercelNext.js (Turbopack)0.477s (+14.1% 🔺)2.472s (+22.9% 🔺)1.995s101.01x
▲ VercelExpress0.539s (+18.7% 🔺)2.562s (+9.8% 🔺)2.023s101.15x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.113s (-1.1%)2.006s (~)0.893s101.00x
💻 LocalNext.js (Turbopack)1.125s (+1.1%)2.006s (~)0.881s101.01x
🌐 RedisNext.js (Turbopack)1.127s (~)2.007s (~)0.879s101.01x
💻 LocalExpress1.128s (-1.1%)2.005s (~)0.877s101.01x
🐘 PostgresNitro1.144s (~)2.012s (~)0.868s101.03x
🐘 PostgresNext.js (Turbopack)1.147s (+0.8%)2.013s (~)0.866s101.03x
🐘 PostgresExpress1.151s (~)2.012s (~)0.862s101.03x
🌐 MongoDBNext.js (Turbopack)1.304s (-1.8%)2.008s (~)0.704s101.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.977s (-3.6%)3.695s (+3.1%)1.717s101.00x
▲ VercelNext.js (Turbopack)2.003s (+1.8%)3.648s (+13.0% 🔺)1.645s101.01x
▲ VercelNitro2.039s (-4.4%)3.730s (+4.1%)1.692s101.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.683s (-2.3%)11.021s (~)0.338s31.00x
🌐 RedisNext.js (Turbopack)10.761s (~)11.023s (~)0.262s31.01x
💻 LocalNext.js (Turbopack)10.795s (~)11.023s (~)0.228s31.01x
🐘 PostgresNext.js (Turbopack)10.885s (~)11.042s (~)0.158s31.02x
💻 LocalExpress10.910s (~)11.024s (~)0.113s31.02x
🐘 PostgresExpress10.942s (-0.6%)11.040s (~)0.097s31.02x
🐘 PostgresNitro11.012s (+0.8%)11.380s (+3.0%)0.368s31.03x
🌐 MongoDBNext.js (Turbopack)12.228s (-0.6%)13.017s (~)0.789s31.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.324s (-4.9%)18.399s (-4.2%)2.075s21.00x
▲ VercelNitro16.497s (-3.5%)18.423s (~)1.926s21.01x
▲ VercelNext.js (Turbopack)17.104s (-0.9%)19.010s (+3.4%)1.906s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.794s (~)27.050s (~)0.256s31.00x
💻 LocalNitro26.944s (-2.0%)27.052s (-3.6%)0.108s31.01x
💻 LocalNext.js (Turbopack)27.147s (~)28.052s (+2.4%)0.905s31.01x
🐘 PostgresNitro27.192s (~)28.064s (~)0.872s31.01x
🐘 PostgresExpress27.210s (~)28.061s (~)0.851s31.02x
🐘 PostgresNext.js (Turbopack)27.284s (+0.7%)28.065s (+1.2%)0.781s31.02x
💻 LocalExpress27.573s (~)28.055s (~)0.482s31.03x
🌐 MongoDBNext.js (Turbopack)30.376s (-0.6%)31.032s (~)0.656s21.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro43.680s (+1.0%)45.538s (+2.7%)1.858s21.00x
▲ VercelExpress45.411s (+5.9% 🔺)47.334s (+7.1% 🔺)1.922s21.04x
▲ VercelNext.js (Turbopack)45.914s (+4.4%)47.479s (+4.2%)1.565s21.05x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)53.460s (~)54.096s (~)0.636s21.00x
🐘 PostgresNext.js (Turbopack)53.957s (~)54.110s (~)0.153s21.01x
🐘 PostgresExpress54.325s (~)55.094s (~)0.770s21.02x
🐘 PostgresNitro54.371s (~)55.104s (~)0.733s21.02x
💻 LocalNitro55.253s (-2.4%)56.101s (-1.7%)0.848s21.03x
💻 LocalNext.js (Turbopack)55.987s (~)56.103s (~)0.115s21.05x
💻 LocalExpress56.830s (~)57.103s (~)0.273s21.06x
🌐 MongoDBNext.js (Turbopack)60.852s (~)61.068s (~)0.216s21.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express90.619s (-5.4% 🟢)92.426s (-5.3% 🟢)1.807s11.00x
▲ VercelNitro91.414s (-4.4%)92.690s (-5.3% 🟢)1.276s11.01x
▲ VercelNext.js (Turbopack)92.733s (-3.0%)94.287s (-4.6%)1.554s11.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.263s (+0.6%)2.011s (~)0.748s151.00x
🐘 PostgresExpress1.277s (-2.3%)2.011s (~)0.733s151.01x
🐘 PostgresNitro1.290s (+1.3%)2.011s (~)0.721s151.02x
🌐 RedisNext.js (Turbopack)1.386s (+1.7%)2.006s (~)0.621s151.10x
💻 LocalNitro1.506s (-2.5%)2.005s (~)0.499s151.19x
💻 LocalExpress1.516s (-1.1%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.548s (~)2.005s (~)0.458s151.23x
🌐 MongoDBNext.js (Turbopack)2.149s (~)3.009s (~)0.860s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.247s (-6.3% 🟢)3.614s (-10.2% 🟢)1.368s91.00x
▲ VercelNext.js (Turbopack)2.359s (-6.1% 🟢)4.019s (+6.9% 🔺)1.660s81.05x
▲ VercelExpress2.604s (-2.2%)4.385s (-1.8%)1.781s81.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNitro2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNext.js (Turbopack)2.479s (-1.4%)3.012s (~)0.533s101.01x
🌐 RedisNext.js (Turbopack)2.613s (+1.9%)3.009s (~)0.395s101.06x
💻 LocalNext.js (Turbopack)2.799s (+3.6%)3.208s (-4.0%)0.408s101.14x
💻 LocalNitro2.805s (-2.3%)3.107s (-3.1%)0.302s101.14x
💻 LocalExpress2.992s (+6.1% 🔺)3.563s (+14.6% 🔺)0.571s91.22x
🌐 MongoDBNext.js (Turbopack)4.699s (~)5.177s (-3.1%)0.478s61.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.536s (-6.1% 🟢)4.004s (-4.3%)1.468s81.00x
▲ VercelNext.js (Turbopack)2.614s (-24.1% 🟢)3.868s (-17.8% 🟢)1.255s81.03x
▲ VercelExpress3.239s (-11.5% 🟢)4.658s (-7.0% 🟢)1.419s71.28x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.595s (-0.9%)4.013s (~)0.419s81.00x
🐘 PostgresExpress3.632s (+0.6%)4.013s (~)0.381s81.01x
🐘 PostgresNext.js (Turbopack)3.742s (-1.1%)4.015s (~)0.273s81.04x
🌐 RedisNext.js (Turbopack)4.079s (-1.5%)5.011s (+9.3% 🔺)0.932s61.13x
💻 LocalNitro7.424s (-11.0% 🟢)8.019s (-11.1% 🟢)0.595s42.07x
💻 LocalNext.js (Turbopack)7.531s (-4.7%)8.015s (-5.9% 🟢)0.484s42.10x
💻 LocalExpress8.929s (+17.9% 🔺)9.272s (+15.6% 🔺)0.343s42.48x
🌐 MongoDBNext.js (Turbopack)9.930s (-2.7%)10.684s (~)0.753s32.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.720s (-13.9% 🟢)4.029s (-13.7% 🟢)1.309s81.00x
▲ VercelNitro3.102s (+0.6%)4.552s (-13.2% 🟢)1.450s71.14x
▲ VercelNext.js (Turbopack)3.450s (-1.8%)5.101s (+7.2% 🔺)1.651s61.27x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.260s (-0.9%)2.011s (~)0.750s151.00x
🐘 PostgresExpress1.278s (~)2.010s (~)0.732s151.01x
🐘 PostgresNitro1.289s (+1.2%)2.011s (~)0.722s151.02x
🌐 RedisNext.js (Turbopack)1.313s (+0.8%)2.006s (~)0.694s151.04x
💻 LocalNitro1.516s (+0.8%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.525s (+1.6%)2.006s (~)0.481s151.21x
💻 LocalExpress1.540s (+0.8%)2.006s (~)0.466s151.22x
🌐 MongoDBNext.js (Turbopack)2.175s (-0.8%)3.008s (~)0.833s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.095s (-10.2% 🟢)3.691s (-1.6%)1.596s91.00x
▲ VercelNitro2.258s (-29.6% 🟢)3.674s (-18.0% 🟢)1.416s91.08x
▲ VercelNext.js (Turbopack)2.270s (+5.7% 🔺)3.896s (+17.2% 🔺)1.626s81.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.434s (-1.0%)3.012s (~)0.578s101.00x
🐘 PostgresNext.js (Turbopack)2.454s (~)3.013s (~)0.558s101.01x
🐘 PostgresNitro2.456s (~)3.011s (~)0.555s101.01x
🌐 RedisNext.js (Turbopack)2.580s (+0.6%)3.008s (~)0.428s101.06x
💻 LocalNitro2.861s (-3.1%)3.108s (-7.0% 🟢)0.247s101.18x
💻 LocalExpress3.100s (+4.1%)4.011s (+21.2% 🔺)0.911s81.27x
💻 LocalNext.js (Turbopack)3.182s (+13.6% 🔺)3.759s (+12.5% 🔺)0.577s81.31x
🌐 MongoDBNext.js (Turbopack)4.675s (-1.5%)5.177s (~)0.502s61.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.433s (-22.6% 🟢)3.867s (-9.9% 🟢)1.434s81.00x
▲ VercelNext.js (Turbopack)2.467s (-25.6% 🟢)4.034s (-15.2% 🟢)1.566s81.01x
▲ VercelNitro2.615s (-17.5% 🟢)4.100s (-9.1% 🟢)1.485s81.07x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.613s (~)4.012s (~)0.399s81.00x
🐘 PostgresNitro3.614s (~)4.015s (~)0.401s81.00x
🐘 PostgresNext.js (Turbopack)3.746s (~)4.139s (+3.1%)0.392s81.04x
🌐 RedisNext.js (Turbopack)4.157s (-3.3%)5.011s (~)0.855s61.15x
💻 LocalNext.js (Turbopack)7.721s (-6.5% 🟢)8.267s (-5.7% 🟢)0.547s42.14x
💻 LocalNitro8.416s (-1.7%)9.018s (~)0.601s42.33x
💻 LocalExpress9.103s (+14.5% 🔺)9.523s (+8.6% 🔺)0.420s42.52x
🌐 MongoDBNext.js (Turbopack)9.844s (-2.6%)10.350s (-3.1%)0.507s32.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.777s (-5.2% 🟢)4.469s (+7.3% 🔺)1.692s71.00x
▲ VercelNitro3.054s (-1.6%)4.679s (~)1.624s71.10x
▲ VercelNext.js (Turbopack)3.278s (-20.6% 🟢)5.050s (-7.7% 🟢)1.772s61.18x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.145s (-26.8% 🟢)1.003s (~)0.010s (-14.7% 🟢)1.015s (~)0.870s101.00x
💻 LocalNext.js (Turbopack)0.175s (+2.0%)1.002s (~)0.011s (+1.8%)1.017s (~)0.842s101.21x
🌐 RedisNext.js (Turbopack)0.176s (+1.5%)1.000s (~)0.002s (+21.4% 🔺)1.008s (~)0.831s101.21x
🐘 PostgresNext.js (Turbopack)0.208s (+4.6%)1.002s (~)0.001s (-20.0% 🟢)1.013s (~)0.804s101.43x
💻 LocalExpress0.210s (+3.2%)1.003s (~)0.011s (+7.5% 🔺)1.018s (~)0.808s101.44x
🐘 PostgresExpress0.219s (-20.9% 🟢)0.992s (~)0.002s (-16.7% 🟢)1.011s (~)0.793s101.50x
🐘 PostgresNitro0.230s (~)0.998s (+0.7%)0.001s (-22.2% 🟢)1.014s (~)0.784s101.58x
🌐 MongoDBNext.js (Turbopack)0.489s (-2.7%)0.966s (+1.1%)0.002s (+6.7% 🔺)1.009s (~)0.520s103.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.572s (-1.9%)2.201s (-19.2% 🟢)0.004s (-19.6% 🟢)2.797s (-15.3% 🟢)1.225s101.00x
▲ VercelNext.js (Turbopack)1.589s (-14.1% 🟢)2.625s (-8.7% 🟢)0.005s (-15.5% 🟢)3.186s (-5.2% 🟢)1.597s101.01x
▲ VercelExpress1.701s (+7.1% 🔺)2.434s (-4.1%)0.005s (-9.4% 🟢)3.049s (-1.7%)1.348s101.08x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro10/12
🐘 PostgresNext.js (Turbopack)5/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

- Increase onTestFailed hook timeout to 30s (default was 10s) so
diagnostics can fetch run data even after slow test timeouts
- parallelSleepWorkflow: increase elapsed threshold from 10s to 25s to
accommodate Vercel cold start latency
- webhookWorkflow: increase hook polling deadline from 30s to 60s and
test timeout from 60s to 120s for slow Vercel webhook registration
- readableStreamWorkflow: stop reading once expected content is received
instead of waiting for stream close (which can hang on Vercel), and
increase test timeout to 120s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…rces
The workflow source files in workbench/ are symlinks that GitHub can't
resolve, causing annotations to show raw paths like #L0 instead of
linking to code. Now:
- utils.ts: omit file= from onTestFailed annotations (just show title)
- github-reporter.ts: use the actual test file path (e.g.
packages/core/e2e/e2e.test.ts) which GitHub can resolve
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Improves CI/e2e failure diagnostics by tracking workflow run IDs per test, emitting GitHub Actions annotations, and enriching the aggregation script output with run metadata and observability links.

Changes:

  • Add run tracking + automatic diagnostics dump on test failures (status/input/output/error + event timeline + dashboard URL).
  • Add a custom Vitest reporter that emits ::error annotations and writes enriched failure sidecar JSON.
  • Update CI workflows and the aggregation script to consume/upload new sidecar artifacts and render run IDs/URLs in PR summaries.

Reviewed changes

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

Show a summary per file
FileDescription
packages/core/e2e/utils.tsAdds run tracking, diagnostics fetching, and CI annotations on test failure.
packages/core/e2e/github-reporter.tsNew Vitest reporter emitting GitHub annotations + failure sidecar JSON.
packages/core/e2e/e2e.test.tsWraps start() to auto-track runs; writes metadata + diagnostics sidecar; adjusts a few flaky test timeouts/stream reading.
packages/core/e2e/e2e-agent.test.tsAdds tracking hooks and wraps start() to record runs for diagnostics.
.github/workflows/tests.ymlAdds custom reporter to e2e runs; uploads new sidecar artifacts for vercel-prod.
.github/workflows/e2e-community-world.ymlAdds custom reporter to community-world e2e runs.
.github/scripts/aggregate-e2e-results.jsLoads sidecar diagnostics/failures and prints run IDs/observability URLs in aggregated output.
.changeset/fresh-rocks-reply.mdAdds a new changeset file (currently empty).

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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +1 to +2
---
---
Comment on lines +668 to +688
export function setupRunTracking(testName: string) {
currentTestName = testName;
trackedRuns = [];
onTestFailed(
async (result) => {
const errorMessage = result.errors?.[0]?.message || 'Test failed';

for (const tracked of trackedRuns) {
try {
const diagnostics = await getRunDiagnostics(tracked);
console.error(diagnostics);
emitGitHubAnnotation(testName, tracked, errorMessage);
} catch {
console.error(
`[diagnostics] Failed to fetch diagnostics for run ${tracked.run.runId}`
);
}
}
},
30_000 // Allow 30s for diagnostics fetching (default hookTimeout is 10s)
);
Comment on lines +652 to +658
const annotation = parts.join(' | ');

// Write directly to stdout bypassing vitest's console interceptor.
// Vitest prefixes console.log output with ANSI codes which prevents
// GitHub Actions from parsing the ::error workflow command.
process.stdout.write(`\n::error title=E2E: ${testName}::${annotation}\n`);
}
Comment on lines +36 to +40
private ctx!: Vitest;
private failedTests: FailedTestInfo[] = [];

onInit(ctx: Vitest) {
this.ctx = ctx;
Comment on lines +149 to +154
process.stdout.write(
`\n::error file=${relFile},title=${title}::${body}\n`
);
}
}

Comment on lines +118 to +126
const byTestName = new Map(entries.map((e) => [e.testName, e]));

for (const test of this.failedTests) {
if (test.runId && test.dashboardUrl) continue; // Already have data from error output
const diag = byTestName.get(test.testName);
if (diag) {
test.runId ??= diag.runId;
test.dashboardUrl ??= diag.dashboardUrl ?? undefined;
}
const entries = JSON.parse(fs.readFileSync(file, 'utf-8'));
for (const entry of entries) {
if (entry.testName && entry.runId) {
diagnostics.set(entry.testName, entry);
Comment on lines 49 to +55
beforeAll(async () => {
setupWorld(deploymentUrl);
});

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

test: improve e2e test failure diagnostics - #1426

Merged
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements
Mar 18, 2026
Merged

test: improve e2e test failure diagnostics#1426
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

  • Add automatic workflow run diagnostics on e2e test failure (status, input/output, error, event timeline, Vercel dashboard link)
  • Emit GitHub Actions ::error annotations that surface on PR file diffs pointing at the workflow source
  • Fix collectedRunIds which was declared but never populated — observability links in PR comments now work
  • Add custom vitest GithubAnnotationReporter that writes enriched failure sidecar files
  • Enrich the aggregation script to show run IDs and dashboard URLs for failed tests in the PR comment

Test plan

  • Verify CI runs pass (e2e tests should work exactly as before when passing)
  • Intentionally break a test locally to verify diagnostics output
  • Check that the PR comment includes observability links for Vercel prod failures

🤖 Generated with Claude Code

…b annotations
When e2e tests fail, automatically dump workflow run diagnostics (status,
input/output, error details, event timeline, dashboard link) to the CI
logs. Emit GitHub Actions annotations that surface on PR file diffs.
Fix collectedRunIds which was declared but never populated, enabling
observability links in the PR comment. Enrich the aggregation script
to include run IDs and dashboard URLs for failed tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Mar 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c82f089

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production757167825
✅ 💻 Local Development7820118900
✅ 📦 Local Production7820118900
❌ 🐘 Local Postgres7802118900
✅ 🪟 Windows720375
❌ 🌍 Community Worlds1195515189
✅ 📋 Other198027225
Total3490584664014

❌ Failed Tests

▲ Vercel Production (1 failed)

express (1 failed):

  • DurableAgent e2e experimental_onToolCallFinish (GAP) completes but callbacks are not called (GAP)
🐘 Local Postgres (2 failed)

express-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36

nextjs-turbopack-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
🌍 Community Worlds (55 failed)

mongodb (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

redis (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

turso (51 failed):

  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KKZCF4ZDWJHZ4AHBG80EYTNW
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KKZCE3PC0E4B7S0QKFMNGZXA
  • promiseRaceWorkflow | wrun_01KKZCE8WF7624JC2J6DBFZK7N
  • promiseAnyWorkflow | wrun_01KKZCECG0K902T0JMK9N4NKSF
  • importedStepOnlyWorkflow | wrun_01KKZCFJ0R9KHSFFEXGAEBEBCQ
  • hookWorkflow | wrun_01KKZCES2PYX8PZNF7H466FB1K
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
  • sleepingWorkflow | wrun_01KKZCFGQ4M2FXERBZSD9VXBHM
  • parallelSleepWorkflow | wrun_01KKZCFX1AP5CRC73NKWBA5TNA
  • nullByteWorkflow | wrun_01KKZCG00A7J2BBR34HK7DMRMD
  • workflowAndStepMetadataWorkflow | wrun_01KKZCG1VDK9KK6WVGQ51NCZSK
  • fetchWorkflow | wrun_01KKZCGW2S1JV0Y4WZXTHXQWM5
  • promiseRaceStressTestWorkflow | wrun_01KKZCGZQMHJ1HB5T26CRJ9T41
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KKZCKQCPWAWDDACW8H8GC5FX
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KKZCMWGWJVCXRXVHC0743PHY
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KKZCNEP0X5F25EWFHPFNCR0M
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KKZCNP3M8MWC1JHMSEXMEQ3G
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KKZCNTRFF1MY5EZ6C44G2QJ8
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KKZCNWGWHFD5PR9GVA1RZGWW
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KKZCP9RZZ9B8WZVCYT5RMCHQ
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KKZCPF6E2X672Y296EDZ8GMJ
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KKZCPNHMPAMEMWJ4D8GQ8P6B
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KKZCPV77KXKKP98DFQK5XBNT
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KKZCQ0YSZ6H6VVMBV0BD4TRS
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KKZCQ6VR19M0B0W88ZB7ZFX1
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KKZCQCKYVY9ETWMAGMBV5AAD
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KKZCQP01E197K25R7758DT06
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KKZCQY83YDDJ48A4CZM52YX1
  • cancelRun - cancelling a running workflow | wrun_01KKZCR3ZK5930M4DS120Z73P4
  • cancelRun via CLI - cancelling a running workflow | wrun_01KKZCRCDAA2DKSYNV1SA3F4E0
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KKZCRQE6V6HGBD3VP8PR0Q0Q
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KKZCSAJ50NFCWBWCT8ZJ5Z7T
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KKZCSM4KZJAAB70F6YDJHGEC

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro6807
✅ example6807
❌ express6717
✅ fastify6807
✅ hono6807
✅ nextjs-turbopack7302
✅ nextjs-webpack7302
✅ nitro6807
✅ nuxt6807
✅ sveltekit6807
✅ vite6807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable6609
❌ express-stable6519
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
❌ nextjs-turbopack-stable7113
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7203
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
❌ mongodb5323
✅ redis-dev302
❌ redis5323
✅ turso-dev302
❌ turso4513
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable6609
✅ e2e-local-postgres-nest-stable6609
✅ e2e-local-prod-nest-stable6609

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 17, 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.042s (-1.9%)1.006s (~)0.963s101.00x
💻 LocalExpress0.045s (+1.8%)1.005s (~)0.960s101.06x
💻 LocalNext.js (Turbopack)0.051s (+3.5%)1.005s (~)0.955s101.20x
🌐 RedisNext.js (Turbopack)0.055s (+1.5%)1.005s (~)0.950s101.31x
🐘 PostgresNitro0.059s (+4.2%)1.010s (~)0.951s101.40x
🐘 PostgresNext.js (Turbopack)0.060s (+2.1%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.067s (-14.7% 🟢)1.011s (-0.8%)0.945s101.57x
🌐 MongoDBNext.js (Turbopack)0.128s (-2.4%)1.007s (~)0.880s103.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.471s (-1.8%)2.506s (+9.2% 🔺)2.035s101.00x
▲ VercelNext.js (Turbopack)0.477s (+14.1% 🔺)2.472s (+22.9% 🔺)1.995s101.01x
▲ VercelExpress0.539s (+18.7% 🔺)2.562s (+9.8% 🔺)2.023s101.15x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.113s (-1.1%)2.006s (~)0.893s101.00x
💻 LocalNext.js (Turbopack)1.125s (+1.1%)2.006s (~)0.881s101.01x
🌐 RedisNext.js (Turbopack)1.127s (~)2.007s (~)0.879s101.01x
💻 LocalExpress1.128s (-1.1%)2.005s (~)0.877s101.01x
🐘 PostgresNitro1.144s (~)2.012s (~)0.868s101.03x
🐘 PostgresNext.js (Turbopack)1.147s (+0.8%)2.013s (~)0.866s101.03x
🐘 PostgresExpress1.151s (~)2.012s (~)0.862s101.03x
🌐 MongoDBNext.js (Turbopack)1.304s (-1.8%)2.008s (~)0.704s101.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.977s (-3.6%)3.695s (+3.1%)1.717s101.00x
▲ VercelNext.js (Turbopack)2.003s (+1.8%)3.648s (+13.0% 🔺)1.645s101.01x
▲ VercelNitro2.039s (-4.4%)3.730s (+4.1%)1.692s101.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.683s (-2.3%)11.021s (~)0.338s31.00x
🌐 RedisNext.js (Turbopack)10.761s (~)11.023s (~)0.262s31.01x
💻 LocalNext.js (Turbopack)10.795s (~)11.023s (~)0.228s31.01x
🐘 PostgresNext.js (Turbopack)10.885s (~)11.042s (~)0.158s31.02x
💻 LocalExpress10.910s (~)11.024s (~)0.113s31.02x
🐘 PostgresExpress10.942s (-0.6%)11.040s (~)0.097s31.02x
🐘 PostgresNitro11.012s (+0.8%)11.380s (+3.0%)0.368s31.03x
🌐 MongoDBNext.js (Turbopack)12.228s (-0.6%)13.017s (~)0.789s31.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.324s (-4.9%)18.399s (-4.2%)2.075s21.00x
▲ VercelNitro16.497s (-3.5%)18.423s (~)1.926s21.01x
▲ VercelNext.js (Turbopack)17.104s (-0.9%)19.010s (+3.4%)1.906s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.794s (~)27.050s (~)0.256s31.00x
💻 LocalNitro26.944s (-2.0%)27.052s (-3.6%)0.108s31.01x
💻 LocalNext.js (Turbopack)27.147s (~)28.052s (+2.4%)0.905s31.01x
🐘 PostgresNitro27.192s (~)28.064s (~)0.872s31.01x
🐘 PostgresExpress27.210s (~)28.061s (~)0.851s31.02x
🐘 PostgresNext.js (Turbopack)27.284s (+0.7%)28.065s (+1.2%)0.781s31.02x
💻 LocalExpress27.573s (~)28.055s (~)0.482s31.03x
🌐 MongoDBNext.js (Turbopack)30.376s (-0.6%)31.032s (~)0.656s21.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro43.680s (+1.0%)45.538s (+2.7%)1.858s21.00x
▲ VercelExpress45.411s (+5.9% 🔺)47.334s (+7.1% 🔺)1.922s21.04x
▲ VercelNext.js (Turbopack)45.914s (+4.4%)47.479s (+4.2%)1.565s21.05x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)53.460s (~)54.096s (~)0.636s21.00x
🐘 PostgresNext.js (Turbopack)53.957s (~)54.110s (~)0.153s21.01x
🐘 PostgresExpress54.325s (~)55.094s (~)0.770s21.02x
🐘 PostgresNitro54.371s (~)55.104s (~)0.733s21.02x
💻 LocalNitro55.253s (-2.4%)56.101s (-1.7%)0.848s21.03x
💻 LocalNext.js (Turbopack)55.987s (~)56.103s (~)0.115s21.05x
💻 LocalExpress56.830s (~)57.103s (~)0.273s21.06x
🌐 MongoDBNext.js (Turbopack)60.852s (~)61.068s (~)0.216s21.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express90.619s (-5.4% 🟢)92.426s (-5.3% 🟢)1.807s11.00x
▲ VercelNitro91.414s (-4.4%)92.690s (-5.3% 🟢)1.276s11.01x
▲ VercelNext.js (Turbopack)92.733s (-3.0%)94.287s (-4.6%)1.554s11.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.263s (+0.6%)2.011s (~)0.748s151.00x
🐘 PostgresExpress1.277s (-2.3%)2.011s (~)0.733s151.01x
🐘 PostgresNitro1.290s (+1.3%)2.011s (~)0.721s151.02x
🌐 RedisNext.js (Turbopack)1.386s (+1.7%)2.006s (~)0.621s151.10x
💻 LocalNitro1.506s (-2.5%)2.005s (~)0.499s151.19x
💻 LocalExpress1.516s (-1.1%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.548s (~)2.005s (~)0.458s151.23x
🌐 MongoDBNext.js (Turbopack)2.149s (~)3.009s (~)0.860s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.247s (-6.3% 🟢)3.614s (-10.2% 🟢)1.368s91.00x
▲ VercelNext.js (Turbopack)2.359s (-6.1% 🟢)4.019s (+6.9% 🔺)1.660s81.05x
▲ VercelExpress2.604s (-2.2%)4.385s (-1.8%)1.781s81.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNitro2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNext.js (Turbopack)2.479s (-1.4%)3.012s (~)0.533s101.01x
🌐 RedisNext.js (Turbopack)2.613s (+1.9%)3.009s (~)0.395s101.06x
💻 LocalNext.js (Turbopack)2.799s (+3.6%)3.208s (-4.0%)0.408s101.14x
💻 LocalNitro2.805s (-2.3%)3.107s (-3.1%)0.302s101.14x
💻 LocalExpress2.992s (+6.1% 🔺)3.563s (+14.6% 🔺)0.571s91.22x
🌐 MongoDBNext.js (Turbopack)4.699s (~)5.177s (-3.1%)0.478s61.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.536s (-6.1% 🟢)4.004s (-4.3%)1.468s81.00x
▲ VercelNext.js (Turbopack)2.614s (-24.1% 🟢)3.868s (-17.8% 🟢)1.255s81.03x
▲ VercelExpress3.239s (-11.5% 🟢)4.658s (-7.0% 🟢)1.419s71.28x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.595s (-0.9%)4.013s (~)0.419s81.00x
🐘 PostgresExpress3.632s (+0.6%)4.013s (~)0.381s81.01x
🐘 PostgresNext.js (Turbopack)3.742s (-1.1%)4.015s (~)0.273s81.04x
🌐 RedisNext.js (Turbopack)4.079s (-1.5%)5.011s (+9.3% 🔺)0.932s61.13x
💻 LocalNitro7.424s (-11.0% 🟢)8.019s (-11.1% 🟢)0.595s42.07x
💻 LocalNext.js (Turbopack)7.531s (-4.7%)8.015s (-5.9% 🟢)0.484s42.10x
💻 LocalExpress8.929s (+17.9% 🔺)9.272s (+15.6% 🔺)0.343s42.48x
🌐 MongoDBNext.js (Turbopack)9.930s (-2.7%)10.684s (~)0.753s32.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.720s (-13.9% 🟢)4.029s (-13.7% 🟢)1.309s81.00x
▲ VercelNitro3.102s (+0.6%)4.552s (-13.2% 🟢)1.450s71.14x
▲ VercelNext.js (Turbopack)3.450s (-1.8%)5.101s (+7.2% 🔺)1.651s61.27x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.260s (-0.9%)2.011s (~)0.750s151.00x
🐘 PostgresExpress1.278s (~)2.010s (~)0.732s151.01x
🐘 PostgresNitro1.289s (+1.2%)2.011s (~)0.722s151.02x
🌐 RedisNext.js (Turbopack)1.313s (+0.8%)2.006s (~)0.694s151.04x
💻 LocalNitro1.516s (+0.8%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.525s (+1.6%)2.006s (~)0.481s151.21x
💻 LocalExpress1.540s (+0.8%)2.006s (~)0.466s151.22x
🌐 MongoDBNext.js (Turbopack)2.175s (-0.8%)3.008s (~)0.833s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.095s (-10.2% 🟢)3.691s (-1.6%)1.596s91.00x
▲ VercelNitro2.258s (-29.6% 🟢)3.674s (-18.0% 🟢)1.416s91.08x
▲ VercelNext.js (Turbopack)2.270s (+5.7% 🔺)3.896s (+17.2% 🔺)1.626s81.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.434s (-1.0%)3.012s (~)0.578s101.00x
🐘 PostgresNext.js (Turbopack)2.454s (~)3.013s (~)0.558s101.01x
🐘 PostgresNitro2.456s (~)3.011s (~)0.555s101.01x
🌐 RedisNext.js (Turbopack)2.580s (+0.6%)3.008s (~)0.428s101.06x
💻 LocalNitro2.861s (-3.1%)3.108s (-7.0% 🟢)0.247s101.18x
💻 LocalExpress3.100s (+4.1%)4.011s (+21.2% 🔺)0.911s81.27x
💻 LocalNext.js (Turbopack)3.182s (+13.6% 🔺)3.759s (+12.5% 🔺)0.577s81.31x
🌐 MongoDBNext.js (Turbopack)4.675s (-1.5%)5.177s (~)0.502s61.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.433s (-22.6% 🟢)3.867s (-9.9% 🟢)1.434s81.00x
▲ VercelNext.js (Turbopack)2.467s (-25.6% 🟢)4.034s (-15.2% 🟢)1.566s81.01x
▲ VercelNitro2.615s (-17.5% 🟢)4.100s (-9.1% 🟢)1.485s81.07x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.613s (~)4.012s (~)0.399s81.00x
🐘 PostgresNitro3.614s (~)4.015s (~)0.401s81.00x
🐘 PostgresNext.js (Turbopack)3.746s (~)4.139s (+3.1%)0.392s81.04x
🌐 RedisNext.js (Turbopack)4.157s (-3.3%)5.011s (~)0.855s61.15x
💻 LocalNext.js (Turbopack)7.721s (-6.5% 🟢)8.267s (-5.7% 🟢)0.547s42.14x
💻 LocalNitro8.416s (-1.7%)9.018s (~)0.601s42.33x
💻 LocalExpress9.103s (+14.5% 🔺)9.523s (+8.6% 🔺)0.420s42.52x
🌐 MongoDBNext.js (Turbopack)9.844s (-2.6%)10.350s (-3.1%)0.507s32.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.777s (-5.2% 🟢)4.469s (+7.3% 🔺)1.692s71.00x
▲ VercelNitro3.054s (-1.6%)4.679s (~)1.624s71.10x
▲ VercelNext.js (Turbopack)3.278s (-20.6% 🟢)5.050s (-7.7% 🟢)1.772s61.18x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.145s (-26.8% 🟢)1.003s (~)0.010s (-14.7% 🟢)1.015s (~)0.870s101.00x
💻 LocalNext.js (Turbopack)0.175s (+2.0%)1.002s (~)0.011s (+1.8%)1.017s (~)0.842s101.21x
🌐 RedisNext.js (Turbopack)0.176s (+1.5%)1.000s (~)0.002s (+21.4% 🔺)1.008s (~)0.831s101.21x
🐘 PostgresNext.js (Turbopack)0.208s (+4.6%)1.002s (~)0.001s (-20.0% 🟢)1.013s (~)0.804s101.43x
💻 LocalExpress0.210s (+3.2%)1.003s (~)0.011s (+7.5% 🔺)1.018s (~)0.808s101.44x
🐘 PostgresExpress0.219s (-20.9% 🟢)0.992s (~)0.002s (-16.7% 🟢)1.011s (~)0.793s101.50x
🐘 PostgresNitro0.230s (~)0.998s (+0.7%)0.001s (-22.2% 🟢)1.014s (~)0.784s101.58x
🌐 MongoDBNext.js (Turbopack)0.489s (-2.7%)0.966s (+1.1%)0.002s (+6.7% 🔺)1.009s (~)0.520s103.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.572s (-1.9%)2.201s (-19.2% 🟢)0.004s (-19.6% 🟢)2.797s (-15.3% 🟢)1.225s101.00x
▲ VercelNext.js (Turbopack)1.589s (-14.1% 🟢)2.625s (-8.7% 🟢)0.005s (-15.5% 🟢)3.186s (-5.2% 🟢)1.597s101.01x
▲ VercelExpress1.701s (+7.1% 🔺)2.434s (-4.1%)0.005s (-9.4% 🟢)3.049s (-1.7%)1.348s101.08x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro10/12
🐘 PostgresNext.js (Turbopack)5/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

- Increase onTestFailed hook timeout to 30s (default was 10s) so
diagnostics can fetch run data even after slow test timeouts
- parallelSleepWorkflow: increase elapsed threshold from 10s to 25s to
accommodate Vercel cold start latency
- webhookWorkflow: increase hook polling deadline from 30s to 60s and
test timeout from 60s to 120s for slow Vercel webhook registration
- readableStreamWorkflow: stop reading once expected content is received
instead of waiting for stream close (which can hang on Vercel), and
increase test timeout to 120s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…rces
The workflow source files in workbench/ are symlinks that GitHub can't
resolve, causing annotations to show raw paths like #L0 instead of
linking to code. Now:
- utils.ts: omit file= from onTestFailed annotations (just show title)
- github-reporter.ts: use the actual test file path (e.g.
packages/core/e2e/e2e.test.ts) which GitHub can resolve
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Improves CI/e2e failure diagnostics by tracking workflow run IDs per test, emitting GitHub Actions annotations, and enriching the aggregation script output with run metadata and observability links.

Changes:

  • Add run tracking + automatic diagnostics dump on test failures (status/input/output/error + event timeline + dashboard URL).
  • Add a custom Vitest reporter that emits ::error annotations and writes enriched failure sidecar JSON.
  • Update CI workflows and the aggregation script to consume/upload new sidecar artifacts and render run IDs/URLs in PR summaries.

Reviewed changes

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

Show a summary per file
FileDescription
packages/core/e2e/utils.tsAdds run tracking, diagnostics fetching, and CI annotations on test failure.
packages/core/e2e/github-reporter.tsNew Vitest reporter emitting GitHub annotations + failure sidecar JSON.
packages/core/e2e/e2e.test.tsWraps start() to auto-track runs; writes metadata + diagnostics sidecar; adjusts a few flaky test timeouts/stream reading.
packages/core/e2e/e2e-agent.test.tsAdds tracking hooks and wraps start() to record runs for diagnostics.
.github/workflows/tests.ymlAdds custom reporter to e2e runs; uploads new sidecar artifacts for vercel-prod.
.github/workflows/e2e-community-world.ymlAdds custom reporter to community-world e2e runs.
.github/scripts/aggregate-e2e-results.jsLoads sidecar diagnostics/failures and prints run IDs/observability URLs in aggregated output.
.changeset/fresh-rocks-reply.mdAdds a new changeset file (currently empty).

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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +1 to +2
---
---
Comment on lines +668 to +688
export function setupRunTracking(testName: string) {
currentTestName = testName;
trackedRuns = [];
onTestFailed(
async (result) => {
const errorMessage = result.errors?.[0]?.message || 'Test failed';

for (const tracked of trackedRuns) {
try {
const diagnostics = await getRunDiagnostics(tracked);
console.error(diagnostics);
emitGitHubAnnotation(testName, tracked, errorMessage);
} catch {
console.error(
`[diagnostics] Failed to fetch diagnostics for run ${tracked.run.runId}`
);
}
}
},
30_000 // Allow 30s for diagnostics fetching (default hookTimeout is 10s)
);
Comment on lines +652 to +658
const annotation = parts.join(' | ');

// Write directly to stdout bypassing vitest's console interceptor.
// Vitest prefixes console.log output with ANSI codes which prevents
// GitHub Actions from parsing the ::error workflow command.
process.stdout.write(`\n::error title=E2E: ${testName}::${annotation}\n`);
}
Comment on lines +36 to +40
private ctx!: Vitest;
private failedTests: FailedTestInfo[] = [];

onInit(ctx: Vitest) {
this.ctx = ctx;
Comment on lines +149 to +154
process.stdout.write(
`\n::error file=${relFile},title=${title}::${body}\n`
);
}
}

Comment on lines +118 to +126
const byTestName = new Map(entries.map((e) => [e.testName, e]));

for (const test of this.failedTests) {
if (test.runId && test.dashboardUrl) continue; // Already have data from error output
const diag = byTestName.get(test.testName);
if (diag) {
test.runId ??= diag.runId;
test.dashboardUrl ??= diag.dashboardUrl ?? undefined;
}
const entries = JSON.parse(fs.readFileSync(file, 'utf-8'));
for (const entry of entries) {
if (entry.testName && entry.runId) {
diagnostics.set(entry.testName, entry);
Comment on lines 49 to +55
beforeAll(async () => {
setupWorld(deploymentUrl);
});

beforeEach((ctx) => {
setupRunTracking(ctx.task.name);
});
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)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

test: improve e2e test failure diagnostics - #1426

Merged
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements
Mar 18, 2026
Merged

test: improve e2e test failure diagnostics#1426
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

  • Add automatic workflow run diagnostics on e2e test failure (status, input/output, error, event timeline, Vercel dashboard link)
  • Emit GitHub Actions ::error annotations that surface on PR file diffs pointing at the workflow source
  • Fix collectedRunIds which was declared but never populated — observability links in PR comments now work
  • Add custom vitest GithubAnnotationReporter that writes enriched failure sidecar files
  • Enrich the aggregation script to show run IDs and dashboard URLs for failed tests in the PR comment

Test plan

  • Verify CI runs pass (e2e tests should work exactly as before when passing)
  • Intentionally break a test locally to verify diagnostics output
  • Check that the PR comment includes observability links for Vercel prod failures

🤖 Generated with Claude Code

…b annotations
When e2e tests fail, automatically dump workflow run diagnostics (status,
input/output, error details, event timeline, dashboard link) to the CI
logs. Emit GitHub Actions annotations that surface on PR file diffs.
Fix collectedRunIds which was declared but never populated, enabling
observability links in the PR comment. Enrich the aggregation script
to include run IDs and dashboard URLs for failed tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Mar 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c82f089

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production757167825
✅ 💻 Local Development7820118900
✅ 📦 Local Production7820118900
❌ 🐘 Local Postgres7802118900
✅ 🪟 Windows720375
❌ 🌍 Community Worlds1195515189
✅ 📋 Other198027225
Total3490584664014

❌ Failed Tests

▲ Vercel Production (1 failed)

express (1 failed):

  • DurableAgent e2e experimental_onToolCallFinish (GAP) completes but callbacks are not called (GAP)
🐘 Local Postgres (2 failed)

express-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36

nextjs-turbopack-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
🌍 Community Worlds (55 failed)

mongodb (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

redis (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

turso (51 failed):

  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KKZCF4ZDWJHZ4AHBG80EYTNW
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KKZCE3PC0E4B7S0QKFMNGZXA
  • promiseRaceWorkflow | wrun_01KKZCE8WF7624JC2J6DBFZK7N
  • promiseAnyWorkflow | wrun_01KKZCECG0K902T0JMK9N4NKSF
  • importedStepOnlyWorkflow | wrun_01KKZCFJ0R9KHSFFEXGAEBEBCQ
  • hookWorkflow | wrun_01KKZCES2PYX8PZNF7H466FB1K
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
  • sleepingWorkflow | wrun_01KKZCFGQ4M2FXERBZSD9VXBHM
  • parallelSleepWorkflow | wrun_01KKZCFX1AP5CRC73NKWBA5TNA
  • nullByteWorkflow | wrun_01KKZCG00A7J2BBR34HK7DMRMD
  • workflowAndStepMetadataWorkflow | wrun_01KKZCG1VDK9KK6WVGQ51NCZSK
  • fetchWorkflow | wrun_01KKZCGW2S1JV0Y4WZXTHXQWM5
  • promiseRaceStressTestWorkflow | wrun_01KKZCGZQMHJ1HB5T26CRJ9T41
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KKZCKQCPWAWDDACW8H8GC5FX
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KKZCMWGWJVCXRXVHC0743PHY
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KKZCNEP0X5F25EWFHPFNCR0M
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KKZCNP3M8MWC1JHMSEXMEQ3G
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KKZCNTRFF1MY5EZ6C44G2QJ8
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KKZCNWGWHFD5PR9GVA1RZGWW
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KKZCP9RZZ9B8WZVCYT5RMCHQ
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KKZCPF6E2X672Y296EDZ8GMJ
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KKZCPNHMPAMEMWJ4D8GQ8P6B
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KKZCPV77KXKKP98DFQK5XBNT
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KKZCQ0YSZ6H6VVMBV0BD4TRS
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KKZCQ6VR19M0B0W88ZB7ZFX1
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KKZCQCKYVY9ETWMAGMBV5AAD
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KKZCQP01E197K25R7758DT06
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KKZCQY83YDDJ48A4CZM52YX1
  • cancelRun - cancelling a running workflow | wrun_01KKZCR3ZK5930M4DS120Z73P4
  • cancelRun via CLI - cancelling a running workflow | wrun_01KKZCRCDAA2DKSYNV1SA3F4E0
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KKZCRQE6V6HGBD3VP8PR0Q0Q
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KKZCSAJ50NFCWBWCT8ZJ5Z7T
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KKZCSM4KZJAAB70F6YDJHGEC

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro6807
✅ example6807
❌ express6717
✅ fastify6807
✅ hono6807
✅ nextjs-turbopack7302
✅ nextjs-webpack7302
✅ nitro6807
✅ nuxt6807
✅ sveltekit6807
✅ vite6807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable6609
❌ express-stable6519
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
❌ nextjs-turbopack-stable7113
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7203
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
❌ mongodb5323
✅ redis-dev302
❌ redis5323
✅ turso-dev302
❌ turso4513
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable6609
✅ e2e-local-postgres-nest-stable6609
✅ e2e-local-prod-nest-stable6609

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 17, 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.042s (-1.9%)1.006s (~)0.963s101.00x
💻 LocalExpress0.045s (+1.8%)1.005s (~)0.960s101.06x
💻 LocalNext.js (Turbopack)0.051s (+3.5%)1.005s (~)0.955s101.20x
🌐 RedisNext.js (Turbopack)0.055s (+1.5%)1.005s (~)0.950s101.31x
🐘 PostgresNitro0.059s (+4.2%)1.010s (~)0.951s101.40x
🐘 PostgresNext.js (Turbopack)0.060s (+2.1%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.067s (-14.7% 🟢)1.011s (-0.8%)0.945s101.57x
🌐 MongoDBNext.js (Turbopack)0.128s (-2.4%)1.007s (~)0.880s103.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.471s (-1.8%)2.506s (+9.2% 🔺)2.035s101.00x
▲ VercelNext.js (Turbopack)0.477s (+14.1% 🔺)2.472s (+22.9% 🔺)1.995s101.01x
▲ VercelExpress0.539s (+18.7% 🔺)2.562s (+9.8% 🔺)2.023s101.15x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.113s (-1.1%)2.006s (~)0.893s101.00x
💻 LocalNext.js (Turbopack)1.125s (+1.1%)2.006s (~)0.881s101.01x
🌐 RedisNext.js (Turbopack)1.127s (~)2.007s (~)0.879s101.01x
💻 LocalExpress1.128s (-1.1%)2.005s (~)0.877s101.01x
🐘 PostgresNitro1.144s (~)2.012s (~)0.868s101.03x
🐘 PostgresNext.js (Turbopack)1.147s (+0.8%)2.013s (~)0.866s101.03x
🐘 PostgresExpress1.151s (~)2.012s (~)0.862s101.03x
🌐 MongoDBNext.js (Turbopack)1.304s (-1.8%)2.008s (~)0.704s101.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.977s (-3.6%)3.695s (+3.1%)1.717s101.00x
▲ VercelNext.js (Turbopack)2.003s (+1.8%)3.648s (+13.0% 🔺)1.645s101.01x
▲ VercelNitro2.039s (-4.4%)3.730s (+4.1%)1.692s101.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.683s (-2.3%)11.021s (~)0.338s31.00x
🌐 RedisNext.js (Turbopack)10.761s (~)11.023s (~)0.262s31.01x
💻 LocalNext.js (Turbopack)10.795s (~)11.023s (~)0.228s31.01x
🐘 PostgresNext.js (Turbopack)10.885s (~)11.042s (~)0.158s31.02x
💻 LocalExpress10.910s (~)11.024s (~)0.113s31.02x
🐘 PostgresExpress10.942s (-0.6%)11.040s (~)0.097s31.02x
🐘 PostgresNitro11.012s (+0.8%)11.380s (+3.0%)0.368s31.03x
🌐 MongoDBNext.js (Turbopack)12.228s (-0.6%)13.017s (~)0.789s31.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.324s (-4.9%)18.399s (-4.2%)2.075s21.00x
▲ VercelNitro16.497s (-3.5%)18.423s (~)1.926s21.01x
▲ VercelNext.js (Turbopack)17.104s (-0.9%)19.010s (+3.4%)1.906s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.794s (~)27.050s (~)0.256s31.00x
💻 LocalNitro26.944s (-2.0%)27.052s (-3.6%)0.108s31.01x
💻 LocalNext.js (Turbopack)27.147s (~)28.052s (+2.4%)0.905s31.01x
🐘 PostgresNitro27.192s (~)28.064s (~)0.872s31.01x
🐘 PostgresExpress27.210s (~)28.061s (~)0.851s31.02x
🐘 PostgresNext.js (Turbopack)27.284s (+0.7%)28.065s (+1.2%)0.781s31.02x
💻 LocalExpress27.573s (~)28.055s (~)0.482s31.03x
🌐 MongoDBNext.js (Turbopack)30.376s (-0.6%)31.032s (~)0.656s21.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro43.680s (+1.0%)45.538s (+2.7%)1.858s21.00x
▲ VercelExpress45.411s (+5.9% 🔺)47.334s (+7.1% 🔺)1.922s21.04x
▲ VercelNext.js (Turbopack)45.914s (+4.4%)47.479s (+4.2%)1.565s21.05x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)53.460s (~)54.096s (~)0.636s21.00x
🐘 PostgresNext.js (Turbopack)53.957s (~)54.110s (~)0.153s21.01x
🐘 PostgresExpress54.325s (~)55.094s (~)0.770s21.02x
🐘 PostgresNitro54.371s (~)55.104s (~)0.733s21.02x
💻 LocalNitro55.253s (-2.4%)56.101s (-1.7%)0.848s21.03x
💻 LocalNext.js (Turbopack)55.987s (~)56.103s (~)0.115s21.05x
💻 LocalExpress56.830s (~)57.103s (~)0.273s21.06x
🌐 MongoDBNext.js (Turbopack)60.852s (~)61.068s (~)0.216s21.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express90.619s (-5.4% 🟢)92.426s (-5.3% 🟢)1.807s11.00x
▲ VercelNitro91.414s (-4.4%)92.690s (-5.3% 🟢)1.276s11.01x
▲ VercelNext.js (Turbopack)92.733s (-3.0%)94.287s (-4.6%)1.554s11.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.263s (+0.6%)2.011s (~)0.748s151.00x
🐘 PostgresExpress1.277s (-2.3%)2.011s (~)0.733s151.01x
🐘 PostgresNitro1.290s (+1.3%)2.011s (~)0.721s151.02x
🌐 RedisNext.js (Turbopack)1.386s (+1.7%)2.006s (~)0.621s151.10x
💻 LocalNitro1.506s (-2.5%)2.005s (~)0.499s151.19x
💻 LocalExpress1.516s (-1.1%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.548s (~)2.005s (~)0.458s151.23x
🌐 MongoDBNext.js (Turbopack)2.149s (~)3.009s (~)0.860s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.247s (-6.3% 🟢)3.614s (-10.2% 🟢)1.368s91.00x
▲ VercelNext.js (Turbopack)2.359s (-6.1% 🟢)4.019s (+6.9% 🔺)1.660s81.05x
▲ VercelExpress2.604s (-2.2%)4.385s (-1.8%)1.781s81.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNitro2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNext.js (Turbopack)2.479s (-1.4%)3.012s (~)0.533s101.01x
🌐 RedisNext.js (Turbopack)2.613s (+1.9%)3.009s (~)0.395s101.06x
💻 LocalNext.js (Turbopack)2.799s (+3.6%)3.208s (-4.0%)0.408s101.14x
💻 LocalNitro2.805s (-2.3%)3.107s (-3.1%)0.302s101.14x
💻 LocalExpress2.992s (+6.1% 🔺)3.563s (+14.6% 🔺)0.571s91.22x
🌐 MongoDBNext.js (Turbopack)4.699s (~)5.177s (-3.1%)0.478s61.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.536s (-6.1% 🟢)4.004s (-4.3%)1.468s81.00x
▲ VercelNext.js (Turbopack)2.614s (-24.1% 🟢)3.868s (-17.8% 🟢)1.255s81.03x
▲ VercelExpress3.239s (-11.5% 🟢)4.658s (-7.0% 🟢)1.419s71.28x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.595s (-0.9%)4.013s (~)0.419s81.00x
🐘 PostgresExpress3.632s (+0.6%)4.013s (~)0.381s81.01x
🐘 PostgresNext.js (Turbopack)3.742s (-1.1%)4.015s (~)0.273s81.04x
🌐 RedisNext.js (Turbopack)4.079s (-1.5%)5.011s (+9.3% 🔺)0.932s61.13x
💻 LocalNitro7.424s (-11.0% 🟢)8.019s (-11.1% 🟢)0.595s42.07x
💻 LocalNext.js (Turbopack)7.531s (-4.7%)8.015s (-5.9% 🟢)0.484s42.10x
💻 LocalExpress8.929s (+17.9% 🔺)9.272s (+15.6% 🔺)0.343s42.48x
🌐 MongoDBNext.js (Turbopack)9.930s (-2.7%)10.684s (~)0.753s32.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.720s (-13.9% 🟢)4.029s (-13.7% 🟢)1.309s81.00x
▲ VercelNitro3.102s (+0.6%)4.552s (-13.2% 🟢)1.450s71.14x
▲ VercelNext.js (Turbopack)3.450s (-1.8%)5.101s (+7.2% 🔺)1.651s61.27x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.260s (-0.9%)2.011s (~)0.750s151.00x
🐘 PostgresExpress1.278s (~)2.010s (~)0.732s151.01x
🐘 PostgresNitro1.289s (+1.2%)2.011s (~)0.722s151.02x
🌐 RedisNext.js (Turbopack)1.313s (+0.8%)2.006s (~)0.694s151.04x
💻 LocalNitro1.516s (+0.8%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.525s (+1.6%)2.006s (~)0.481s151.21x
💻 LocalExpress1.540s (+0.8%)2.006s (~)0.466s151.22x
🌐 MongoDBNext.js (Turbopack)2.175s (-0.8%)3.008s (~)0.833s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.095s (-10.2% 🟢)3.691s (-1.6%)1.596s91.00x
▲ VercelNitro2.258s (-29.6% 🟢)3.674s (-18.0% 🟢)1.416s91.08x
▲ VercelNext.js (Turbopack)2.270s (+5.7% 🔺)3.896s (+17.2% 🔺)1.626s81.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.434s (-1.0%)3.012s (~)0.578s101.00x
🐘 PostgresNext.js (Turbopack)2.454s (~)3.013s (~)0.558s101.01x
🐘 PostgresNitro2.456s (~)3.011s (~)0.555s101.01x
🌐 RedisNext.js (Turbopack)2.580s (+0.6%)3.008s (~)0.428s101.06x
💻 LocalNitro2.861s (-3.1%)3.108s (-7.0% 🟢)0.247s101.18x
💻 LocalExpress3.100s (+4.1%)4.011s (+21.2% 🔺)0.911s81.27x
💻 LocalNext.js (Turbopack)3.182s (+13.6% 🔺)3.759s (+12.5% 🔺)0.577s81.31x
🌐 MongoDBNext.js (Turbopack)4.675s (-1.5%)5.177s (~)0.502s61.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.433s (-22.6% 🟢)3.867s (-9.9% 🟢)1.434s81.00x
▲ VercelNext.js (Turbopack)2.467s (-25.6% 🟢)4.034s (-15.2% 🟢)1.566s81.01x
▲ VercelNitro2.615s (-17.5% 🟢)4.100s (-9.1% 🟢)1.485s81.07x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.613s (~)4.012s (~)0.399s81.00x
🐘 PostgresNitro3.614s (~)4.015s (~)0.401s81.00x
🐘 PostgresNext.js (Turbopack)3.746s (~)4.139s (+3.1%)0.392s81.04x
🌐 RedisNext.js (Turbopack)4.157s (-3.3%)5.011s (~)0.855s61.15x
💻 LocalNext.js (Turbopack)7.721s (-6.5% 🟢)8.267s (-5.7% 🟢)0.547s42.14x
💻 LocalNitro8.416s (-1.7%)9.018s (~)0.601s42.33x
💻 LocalExpress9.103s (+14.5% 🔺)9.523s (+8.6% 🔺)0.420s42.52x
🌐 MongoDBNext.js (Turbopack)9.844s (-2.6%)10.350s (-3.1%)0.507s32.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.777s (-5.2% 🟢)4.469s (+7.3% 🔺)1.692s71.00x
▲ VercelNitro3.054s (-1.6%)4.679s (~)1.624s71.10x
▲ VercelNext.js (Turbopack)3.278s (-20.6% 🟢)5.050s (-7.7% 🟢)1.772s61.18x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.145s (-26.8% 🟢)1.003s (~)0.010s (-14.7% 🟢)1.015s (~)0.870s101.00x
💻 LocalNext.js (Turbopack)0.175s (+2.0%)1.002s (~)0.011s (+1.8%)1.017s (~)0.842s101.21x
🌐 RedisNext.js (Turbopack)0.176s (+1.5%)1.000s (~)0.002s (+21.4% 🔺)1.008s (~)0.831s101.21x
🐘 PostgresNext.js (Turbopack)0.208s (+4.6%)1.002s (~)0.001s (-20.0% 🟢)1.013s (~)0.804s101.43x
💻 LocalExpress0.210s (+3.2%)1.003s (~)0.011s (+7.5% 🔺)1.018s (~)0.808s101.44x
🐘 PostgresExpress0.219s (-20.9% 🟢)0.992s (~)0.002s (-16.7% 🟢)1.011s (~)0.793s101.50x
🐘 PostgresNitro0.230s (~)0.998s (+0.7%)0.001s (-22.2% 🟢)1.014s (~)0.784s101.58x
🌐 MongoDBNext.js (Turbopack)0.489s (-2.7%)0.966s (+1.1%)0.002s (+6.7% 🔺)1.009s (~)0.520s103.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.572s (-1.9%)2.201s (-19.2% 🟢)0.004s (-19.6% 🟢)2.797s (-15.3% 🟢)1.225s101.00x
▲ VercelNext.js (Turbopack)1.589s (-14.1% 🟢)2.625s (-8.7% 🟢)0.005s (-15.5% 🟢)3.186s (-5.2% 🟢)1.597s101.01x
▲ VercelExpress1.701s (+7.1% 🔺)2.434s (-4.1%)0.005s (-9.4% 🟢)3.049s (-1.7%)1.348s101.08x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro10/12
🐘 PostgresNext.js (Turbopack)5/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

- Increase onTestFailed hook timeout to 30s (default was 10s) so
diagnostics can fetch run data even after slow test timeouts
- parallelSleepWorkflow: increase elapsed threshold from 10s to 25s to
accommodate Vercel cold start latency
- webhookWorkflow: increase hook polling deadline from 30s to 60s and
test timeout from 60s to 120s for slow Vercel webhook registration
- readableStreamWorkflow: stop reading once expected content is received
instead of waiting for stream close (which can hang on Vercel), and
increase test timeout to 120s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…rces
The workflow source files in workbench/ are symlinks that GitHub can't
resolve, causing annotations to show raw paths like #L0 instead of
linking to code. Now:
- utils.ts: omit file= from onTestFailed annotations (just show title)
- github-reporter.ts: use the actual test file path (e.g.
packages/core/e2e/e2e.test.ts) which GitHub can resolve
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Improves CI/e2e failure diagnostics by tracking workflow run IDs per test, emitting GitHub Actions annotations, and enriching the aggregation script output with run metadata and observability links.

Changes:

  • Add run tracking + automatic diagnostics dump on test failures (status/input/output/error + event timeline + dashboard URL).
  • Add a custom Vitest reporter that emits ::error annotations and writes enriched failure sidecar JSON.
  • Update CI workflows and the aggregation script to consume/upload new sidecar artifacts and render run IDs/URLs in PR summaries.

Reviewed changes

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

Show a summary per file
FileDescription
packages/core/e2e/utils.tsAdds run tracking, diagnostics fetching, and CI annotations on test failure.
packages/core/e2e/github-reporter.tsNew Vitest reporter emitting GitHub annotations + failure sidecar JSON.
packages/core/e2e/e2e.test.tsWraps start() to auto-track runs; writes metadata + diagnostics sidecar; adjusts a few flaky test timeouts/stream reading.
packages/core/e2e/e2e-agent.test.tsAdds tracking hooks and wraps start() to record runs for diagnostics.
.github/workflows/tests.ymlAdds custom reporter to e2e runs; uploads new sidecar artifacts for vercel-prod.
.github/workflows/e2e-community-world.ymlAdds custom reporter to community-world e2e runs.
.github/scripts/aggregate-e2e-results.jsLoads sidecar diagnostics/failures and prints run IDs/observability URLs in aggregated output.
.changeset/fresh-rocks-reply.mdAdds a new changeset file (currently empty).

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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +1 to +2
---
---
Comment on lines +668 to +688
export function setupRunTracking(testName: string) {
currentTestName = testName;
trackedRuns = [];
onTestFailed(
async (result) => {
const errorMessage = result.errors?.[0]?.message || 'Test failed';

for (const tracked of trackedRuns) {
try {
const diagnostics = await getRunDiagnostics(tracked);
console.error(diagnostics);
emitGitHubAnnotation(testName, tracked, errorMessage);
} catch {
console.error(
`[diagnostics] Failed to fetch diagnostics for run ${tracked.run.runId}`
);
}
}
},
30_000 // Allow 30s for diagnostics fetching (default hookTimeout is 10s)
);
Comment on lines +652 to +658
const annotation = parts.join(' | ');

// Write directly to stdout bypassing vitest's console interceptor.
// Vitest prefixes console.log output with ANSI codes which prevents
// GitHub Actions from parsing the ::error workflow command.
process.stdout.write(`\n::error title=E2E: ${testName}::${annotation}\n`);
}
Comment on lines +36 to +40
private ctx!: Vitest;
private failedTests: FailedTestInfo[] = [];

onInit(ctx: Vitest) {
this.ctx = ctx;
Comment on lines +149 to +154
process.stdout.write(
`\n::error file=${relFile},title=${title}::${body}\n`
);
}
}

Comment on lines +118 to +126
const byTestName = new Map(entries.map((e) => [e.testName, e]));

for (const test of this.failedTests) {
if (test.runId && test.dashboardUrl) continue; // Already have data from error output
const diag = byTestName.get(test.testName);
if (diag) {
test.runId ??= diag.runId;
test.dashboardUrl ??= diag.dashboardUrl ?? undefined;
}
const entries = JSON.parse(fs.readFileSync(file, 'utf-8'));
for (const entry of entries) {
if (entry.testName && entry.runId) {
diagnostics.set(entry.testName, entry);
Comment on lines 49 to +55
beforeAll(async () => {
setupWorld(deploymentUrl);
});

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

test: improve e2e test failure diagnostics - #1426

Merged
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements
Mar 18, 2026
Merged

test: improve e2e test failure diagnostics#1426
pranaygp merged 5 commits into
mainfrom
pgp/e2e-test-improvements

Conversation

@pranaygp

Copy link
Copy Markdown
Contributor

Summary

  • Add automatic workflow run diagnostics on e2e test failure (status, input/output, error, event timeline, Vercel dashboard link)
  • Emit GitHub Actions ::error annotations that surface on PR file diffs pointing at the workflow source
  • Fix collectedRunIds which was declared but never populated — observability links in PR comments now work
  • Add custom vitest GithubAnnotationReporter that writes enriched failure sidecar files
  • Enrich the aggregation script to show run IDs and dashboard URLs for failed tests in the PR comment

Test plan

  • Verify CI runs pass (e2e tests should work exactly as before when passing)
  • Intentionally break a test locally to verify diagnostics output
  • Check that the PR comment includes observability links for Vercel prod failures

🤖 Generated with Claude Code

…b annotations
When e2e tests fail, automatically dump workflow run diagnostics (status,
input/output, error details, event timeline, dashboard link) to the CI
logs. Emit GitHub Actions annotations that surface on PR file diffs.
Fix collectedRunIds which was declared but never populated, enabling
observability links in the PR comment. Enrich the aggregation script
to include run IDs and dashboard URLs for failed tests.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel

vercelBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

@changeset-bot

changeset-botBot commented Mar 17, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c82f089

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

This PR includes changesets to release 0 packages

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

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

@github-actions

github-actionsBot commented Mar 17, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
❌ ▲ Vercel Production757167825
✅ 💻 Local Development7820118900
✅ 📦 Local Production7820118900
❌ 🐘 Local Postgres7802118900
✅ 🪟 Windows720375
❌ 🌍 Community Worlds1195515189
✅ 📋 Other198027225
Total3490584664014

❌ Failed Tests

▲ Vercel Production (1 failed)

express (1 failed):

  • DurableAgent e2e experimental_onToolCallFinish (GAP) completes but callbacks are not called (GAP)
🐘 Local Postgres (2 failed)

express-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36

nextjs-turbopack-stable (1 failed):

  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
🌍 Community Worlds (55 failed)

mongodb (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

redis (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695

turso (51 failed):

  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • addTenWorkflow | wrun_01KKZCDXVGRMJ4AG3X5C3ZEYJ3
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KKZCF4ZDWJHZ4AHBG80EYTNW
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KKZCE3PC0E4B7S0QKFMNGZXA
  • promiseRaceWorkflow | wrun_01KKZCE8WF7624JC2J6DBFZK7N
  • promiseAnyWorkflow | wrun_01KKZCECG0K902T0JMK9N4NKSF
  • importedStepOnlyWorkflow | wrun_01KKZCFJ0R9KHSFFEXGAEBEBCQ
  • hookWorkflow | wrun_01KKZCES2PYX8PZNF7H466FB1K
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KKZCF2FCD93VYCTH7B9FTETJ
  • webhookWorkflow | wrun_01KKZCFAX8YA1Q633KSPQP5G36
  • sleepingWorkflow | wrun_01KKZCFGQ4M2FXERBZSD9VXBHM
  • parallelSleepWorkflow | wrun_01KKZCFX1AP5CRC73NKWBA5TNA
  • nullByteWorkflow | wrun_01KKZCG00A7J2BBR34HK7DMRMD
  • workflowAndStepMetadataWorkflow | wrun_01KKZCG1VDK9KK6WVGQ51NCZSK
  • fetchWorkflow | wrun_01KKZCGW2S1JV0Y4WZXTHXQWM5
  • promiseRaceStressTestWorkflow | wrun_01KKZCGZQMHJ1HB5T26CRJ9T41
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KKZCKQCPWAWDDACW8H8GC5FX
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KKZCM9QCDSX87BV8Y8CXW695
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KKZCMWGWJVCXRXVHC0743PHY
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KKZCNEP0X5F25EWFHPFNCR0M
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KKZCNP3M8MWC1JHMSEXMEQ3G
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KKZCNTRFF1MY5EZ6C44G2QJ8
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KKZCNWGWHFD5PR9GVA1RZGWW
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KKZCP9RZZ9B8WZVCYT5RMCHQ
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KKZCPF6E2X672Y296EDZ8GMJ
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KKZCPNHMPAMEMWJ4D8GQ8P6B
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KKZCPV77KXKKP98DFQK5XBNT
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KKZCQ0YSZ6H6VVMBV0BD4TRS
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KKZCQ6VR19M0B0W88ZB7ZFX1
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KKZCQCKYVY9ETWMAGMBV5AAD
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KKZCQP01E197K25R7758DT06
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KKZCQY83YDDJ48A4CZM52YX1
  • cancelRun - cancelling a running workflow | wrun_01KKZCR3ZK5930M4DS120Z73P4
  • cancelRun via CLI - cancelling a running workflow | wrun_01KKZCRCDAA2DKSYNV1SA3F4E0
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KKZCRQE6V6HGBD3VP8PR0Q0Q
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KKZCSAJ50NFCWBWCT8ZJ5Z7T
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KKZCSM4KZJAAB70F6YDJHGEC

Details by Category

❌ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro6807
✅ example6807
❌ express6717
✅ fastify6807
✅ hono6807
✅ nextjs-turbopack7302
✅ nextjs-webpack7302
✅ nitro6807
✅ nuxt6807
✅ sveltekit6807
✅ vite6807
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable6609
✅ express-stable6609
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
✅ nextjs-turbopack-stable7203
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
❌ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable6609
❌ express-stable6519
✅ fastify-stable6609
✅ hono-stable6609
✅ nextjs-turbopack-canary55020
❌ nextjs-turbopack-stable7113
✅ nextjs-webpack-canary55020
✅ nextjs-webpack-stable7203
✅ nitro-stable6609
✅ nuxt-stable6609
✅ sveltekit-stable6609
✅ vite-stable6609
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7203
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
❌ mongodb5323
✅ redis-dev302
❌ redis5323
✅ turso-dev302
❌ turso4513
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable6609
✅ e2e-local-postgres-nest-stable6609
✅ e2e-local-prod-nest-stable6609

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@github-actions

github-actionsBot commented Mar 17, 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.042s (-1.9%)1.006s (~)0.963s101.00x
💻 LocalExpress0.045s (+1.8%)1.005s (~)0.960s101.06x
💻 LocalNext.js (Turbopack)0.051s (+3.5%)1.005s (~)0.955s101.20x
🌐 RedisNext.js (Turbopack)0.055s (+1.5%)1.005s (~)0.950s101.31x
🐘 PostgresNitro0.059s (+4.2%)1.010s (~)0.951s101.40x
🐘 PostgresNext.js (Turbopack)0.060s (+2.1%)1.011s (~)0.951s101.41x
🐘 PostgresExpress0.067s (-14.7% 🟢)1.011s (-0.8%)0.945s101.57x
🌐 MongoDBNext.js (Turbopack)0.128s (-2.4%)1.007s (~)0.880s103.02x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro0.471s (-1.8%)2.506s (+9.2% 🔺)2.035s101.00x
▲ VercelNext.js (Turbopack)0.477s (+14.1% 🔺)2.472s (+22.9% 🔺)1.995s101.01x
▲ VercelExpress0.539s (+18.7% 🔺)2.562s (+9.8% 🔺)2.023s101.15x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.113s (-1.1%)2.006s (~)0.893s101.00x
💻 LocalNext.js (Turbopack)1.125s (+1.1%)2.006s (~)0.881s101.01x
🌐 RedisNext.js (Turbopack)1.127s (~)2.007s (~)0.879s101.01x
💻 LocalExpress1.128s (-1.1%)2.005s (~)0.877s101.01x
🐘 PostgresNitro1.144s (~)2.012s (~)0.868s101.03x
🐘 PostgresNext.js (Turbopack)1.147s (+0.8%)2.013s (~)0.866s101.03x
🐘 PostgresExpress1.151s (~)2.012s (~)0.862s101.03x
🌐 MongoDBNext.js (Turbopack)1.304s (-1.8%)2.008s (~)0.704s101.17x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.977s (-3.6%)3.695s (+3.1%)1.717s101.00x
▲ VercelNext.js (Turbopack)2.003s (+1.8%)3.648s (+13.0% 🔺)1.645s101.01x
▲ VercelNitro2.039s (-4.4%)3.730s (+4.1%)1.692s101.03x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro10.683s (-2.3%)11.021s (~)0.338s31.00x
🌐 RedisNext.js (Turbopack)10.761s (~)11.023s (~)0.262s31.01x
💻 LocalNext.js (Turbopack)10.795s (~)11.023s (~)0.228s31.01x
🐘 PostgresNext.js (Turbopack)10.885s (~)11.042s (~)0.158s31.02x
💻 LocalExpress10.910s (~)11.024s (~)0.113s31.02x
🐘 PostgresExpress10.942s (-0.6%)11.040s (~)0.097s31.02x
🐘 PostgresNitro11.012s (+0.8%)11.380s (+3.0%)0.368s31.03x
🌐 MongoDBNext.js (Turbopack)12.228s (-0.6%)13.017s (~)0.789s31.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express16.324s (-4.9%)18.399s (-4.2%)2.075s21.00x
▲ VercelNitro16.497s (-3.5%)18.423s (~)1.926s21.01x
▲ VercelNext.js (Turbopack)17.104s (-0.9%)19.010s (+3.4%)1.906s21.05x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)26.794s (~)27.050s (~)0.256s31.00x
💻 LocalNitro26.944s (-2.0%)27.052s (-3.6%)0.108s31.01x
💻 LocalNext.js (Turbopack)27.147s (~)28.052s (+2.4%)0.905s31.01x
🐘 PostgresNitro27.192s (~)28.064s (~)0.872s31.01x
🐘 PostgresExpress27.210s (~)28.061s (~)0.851s31.02x
🐘 PostgresNext.js (Turbopack)27.284s (+0.7%)28.065s (+1.2%)0.781s31.02x
💻 LocalExpress27.573s (~)28.055s (~)0.482s31.03x
🌐 MongoDBNext.js (Turbopack)30.376s (-0.6%)31.032s (~)0.656s21.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro43.680s (+1.0%)45.538s (+2.7%)1.858s21.00x
▲ VercelExpress45.411s (+5.9% 🔺)47.334s (+7.1% 🔺)1.922s21.04x
▲ VercelNext.js (Turbopack)45.914s (+4.4%)47.479s (+4.2%)1.565s21.05x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)53.460s (~)54.096s (~)0.636s21.00x
🐘 PostgresNext.js (Turbopack)53.957s (~)54.110s (~)0.153s21.01x
🐘 PostgresExpress54.325s (~)55.094s (~)0.770s21.02x
🐘 PostgresNitro54.371s (~)55.104s (~)0.733s21.02x
💻 LocalNitro55.253s (-2.4%)56.101s (-1.7%)0.848s21.03x
💻 LocalNext.js (Turbopack)55.987s (~)56.103s (~)0.115s21.05x
💻 LocalExpress56.830s (~)57.103s (~)0.273s21.06x
🌐 MongoDBNext.js (Turbopack)60.852s (~)61.068s (~)0.216s21.14x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express90.619s (-5.4% 🟢)92.426s (-5.3% 🟢)1.807s11.00x
▲ VercelNitro91.414s (-4.4%)92.690s (-5.3% 🟢)1.276s11.01x
▲ VercelNext.js (Turbopack)92.733s (-3.0%)94.287s (-4.6%)1.554s11.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.263s (+0.6%)2.011s (~)0.748s151.00x
🐘 PostgresExpress1.277s (-2.3%)2.011s (~)0.733s151.01x
🐘 PostgresNitro1.290s (+1.3%)2.011s (~)0.721s151.02x
🌐 RedisNext.js (Turbopack)1.386s (+1.7%)2.006s (~)0.621s151.10x
💻 LocalNitro1.506s (-2.5%)2.005s (~)0.499s151.19x
💻 LocalExpress1.516s (-1.1%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.548s (~)2.005s (~)0.458s151.23x
🌐 MongoDBNext.js (Turbopack)2.149s (~)3.009s (~)0.860s101.70x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.247s (-6.3% 🟢)3.614s (-10.2% 🟢)1.368s91.00x
▲ VercelNext.js (Turbopack)2.359s (-6.1% 🟢)4.019s (+6.9% 🔺)1.660s81.05x
▲ VercelExpress2.604s (-2.2%)4.385s (-1.8%)1.781s81.16x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNitro2.455s (~)3.013s (~)0.558s101.00x
🐘 PostgresNext.js (Turbopack)2.479s (-1.4%)3.012s (~)0.533s101.01x
🌐 RedisNext.js (Turbopack)2.613s (+1.9%)3.009s (~)0.395s101.06x
💻 LocalNext.js (Turbopack)2.799s (+3.6%)3.208s (-4.0%)0.408s101.14x
💻 LocalNitro2.805s (-2.3%)3.107s (-3.1%)0.302s101.14x
💻 LocalExpress2.992s (+6.1% 🔺)3.563s (+14.6% 🔺)0.571s91.22x
🌐 MongoDBNext.js (Turbopack)4.699s (~)5.177s (-3.1%)0.478s61.91x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.536s (-6.1% 🟢)4.004s (-4.3%)1.468s81.00x
▲ VercelNext.js (Turbopack)2.614s (-24.1% 🟢)3.868s (-17.8% 🟢)1.255s81.03x
▲ VercelExpress3.239s (-11.5% 🟢)4.658s (-7.0% 🟢)1.419s71.28x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.595s (-0.9%)4.013s (~)0.419s81.00x
🐘 PostgresExpress3.632s (+0.6%)4.013s (~)0.381s81.01x
🐘 PostgresNext.js (Turbopack)3.742s (-1.1%)4.015s (~)0.273s81.04x
🌐 RedisNext.js (Turbopack)4.079s (-1.5%)5.011s (+9.3% 🔺)0.932s61.13x
💻 LocalNitro7.424s (-11.0% 🟢)8.019s (-11.1% 🟢)0.595s42.07x
💻 LocalNext.js (Turbopack)7.531s (-4.7%)8.015s (-5.9% 🟢)0.484s42.10x
💻 LocalExpress8.929s (+17.9% 🔺)9.272s (+15.6% 🔺)0.343s42.48x
🌐 MongoDBNext.js (Turbopack)9.930s (-2.7%)10.684s (~)0.753s32.76x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.720s (-13.9% 🟢)4.029s (-13.7% 🟢)1.309s81.00x
▲ VercelNitro3.102s (+0.6%)4.552s (-13.2% 🟢)1.450s71.14x
▲ VercelNext.js (Turbopack)3.450s (-1.8%)5.101s (+7.2% 🔺)1.651s61.27x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.260s (-0.9%)2.011s (~)0.750s151.00x
🐘 PostgresExpress1.278s (~)2.010s (~)0.732s151.01x
🐘 PostgresNitro1.289s (+1.2%)2.011s (~)0.722s151.02x
🌐 RedisNext.js (Turbopack)1.313s (+0.8%)2.006s (~)0.694s151.04x
💻 LocalNitro1.516s (+0.8%)2.005s (~)0.489s151.20x
💻 LocalNext.js (Turbopack)1.525s (+1.6%)2.006s (~)0.481s151.21x
💻 LocalExpress1.540s (+0.8%)2.006s (~)0.466s151.22x
🌐 MongoDBNext.js (Turbopack)2.175s (-0.8%)3.008s (~)0.833s101.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.095s (-10.2% 🟢)3.691s (-1.6%)1.596s91.00x
▲ VercelNitro2.258s (-29.6% 🟢)3.674s (-18.0% 🟢)1.416s91.08x
▲ VercelNext.js (Turbopack)2.270s (+5.7% 🔺)3.896s (+17.2% 🔺)1.626s81.08x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.434s (-1.0%)3.012s (~)0.578s101.00x
🐘 PostgresNext.js (Turbopack)2.454s (~)3.013s (~)0.558s101.01x
🐘 PostgresNitro2.456s (~)3.011s (~)0.555s101.01x
🌐 RedisNext.js (Turbopack)2.580s (+0.6%)3.008s (~)0.428s101.06x
💻 LocalNitro2.861s (-3.1%)3.108s (-7.0% 🟢)0.247s101.18x
💻 LocalExpress3.100s (+4.1%)4.011s (+21.2% 🔺)0.911s81.27x
💻 LocalNext.js (Turbopack)3.182s (+13.6% 🔺)3.759s (+12.5% 🔺)0.577s81.31x
🌐 MongoDBNext.js (Turbopack)4.675s (-1.5%)5.177s (~)0.502s61.92x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.433s (-22.6% 🟢)3.867s (-9.9% 🟢)1.434s81.00x
▲ VercelNext.js (Turbopack)2.467s (-25.6% 🟢)4.034s (-15.2% 🟢)1.566s81.01x
▲ VercelNitro2.615s (-17.5% 🟢)4.100s (-9.1% 🟢)1.485s81.07x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express3.613s (~)4.012s (~)0.399s81.00x
🐘 PostgresNitro3.614s (~)4.015s (~)0.401s81.00x
🐘 PostgresNext.js (Turbopack)3.746s (~)4.139s (+3.1%)0.392s81.04x
🌐 RedisNext.js (Turbopack)4.157s (-3.3%)5.011s (~)0.855s61.15x
💻 LocalNext.js (Turbopack)7.721s (-6.5% 🟢)8.267s (-5.7% 🟢)0.547s42.14x
💻 LocalNitro8.416s (-1.7%)9.018s (~)0.601s42.33x
💻 LocalExpress9.103s (+14.5% 🔺)9.523s (+8.6% 🔺)0.420s42.52x
🌐 MongoDBNext.js (Turbopack)9.844s (-2.6%)10.350s (-3.1%)0.507s32.72x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.777s (-5.2% 🟢)4.469s (+7.3% 🔺)1.692s71.00x
▲ VercelNitro3.054s (-1.6%)4.679s (~)1.624s71.10x
▲ VercelNext.js (Turbopack)3.278s (-20.6% 🟢)5.050s (-7.7% 🟢)1.772s61.18x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro0.145s (-26.8% 🟢)1.003s (~)0.010s (-14.7% 🟢)1.015s (~)0.870s101.00x
💻 LocalNext.js (Turbopack)0.175s (+2.0%)1.002s (~)0.011s (+1.8%)1.017s (~)0.842s101.21x
🌐 RedisNext.js (Turbopack)0.176s (+1.5%)1.000s (~)0.002s (+21.4% 🔺)1.008s (~)0.831s101.21x
🐘 PostgresNext.js (Turbopack)0.208s (+4.6%)1.002s (~)0.001s (-20.0% 🟢)1.013s (~)0.804s101.43x
💻 LocalExpress0.210s (+3.2%)1.003s (~)0.011s (+7.5% 🔺)1.018s (~)0.808s101.44x
🐘 PostgresExpress0.219s (-20.9% 🟢)0.992s (~)0.002s (-16.7% 🟢)1.011s (~)0.793s101.50x
🐘 PostgresNitro0.230s (~)0.998s (+0.7%)0.001s (-22.2% 🟢)1.014s (~)0.784s101.58x
🌐 MongoDBNext.js (Turbopack)0.489s (-2.7%)0.966s (+1.1%)0.002s (+6.7% 🔺)1.009s (~)0.520s103.36x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.572s (-1.9%)2.201s (-19.2% 🟢)0.004s (-19.6% 🟢)2.797s (-15.3% 🟢)1.225s101.00x
▲ VercelNext.js (Turbopack)1.589s (-14.1% 🟢)2.625s (-8.7% 🟢)0.005s (-15.5% 🟢)3.186s (-5.2% 🟢)1.597s101.01x
▲ VercelExpress1.701s (+7.1% 🔺)2.434s (-4.1%)0.005s (-9.4% 🟢)3.049s (-1.7%)1.348s101.08x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro10/12
🐘 PostgresNext.js (Turbopack)5/12
▲ VercelExpress7/12
Fastest World by Framework

Winner determined by most benchmark wins

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

Worlds:

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

📋 View full workflow run

- Increase onTestFailed hook timeout to 30s (default was 10s) so
diagnostics can fetch run data even after slow test timeouts
- parallelSleepWorkflow: increase elapsed threshold from 10s to 25s to
accommodate Vercel cold start latency
- webhookWorkflow: increase hook polling deadline from 30s to 60s and
test timeout from 60s to 120s for slow Vercel webhook registration
- readableStreamWorkflow: stop reading once expected content is received
instead of waiting for stream close (which can hang on Vercel), and
increase test timeout to 120s
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
…rces
The workflow source files in workbench/ are symlinks that GitHub can't
resolve, causing annotations to show raw paths like #L0 instead of
linking to code. Now:
- utils.ts: omit file= from onTestFailed annotations (just show title)
- github-reporter.ts: use the actual test file path (e.g.
packages/core/e2e/e2e.test.ts) which GitHub can resolve
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

CopilotAI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Improves CI/e2e failure diagnostics by tracking workflow run IDs per test, emitting GitHub Actions annotations, and enriching the aggregation script output with run metadata and observability links.

Changes:

  • Add run tracking + automatic diagnostics dump on test failures (status/input/output/error + event timeline + dashboard URL).
  • Add a custom Vitest reporter that emits ::error annotations and writes enriched failure sidecar JSON.
  • Update CI workflows and the aggregation script to consume/upload new sidecar artifacts and render run IDs/URLs in PR summaries.

Reviewed changes

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

Show a summary per file
FileDescription
packages/core/e2e/utils.tsAdds run tracking, diagnostics fetching, and CI annotations on test failure.
packages/core/e2e/github-reporter.tsNew Vitest reporter emitting GitHub annotations + failure sidecar JSON.
packages/core/e2e/e2e.test.tsWraps start() to auto-track runs; writes metadata + diagnostics sidecar; adjusts a few flaky test timeouts/stream reading.
packages/core/e2e/e2e-agent.test.tsAdds tracking hooks and wraps start() to record runs for diagnostics.
.github/workflows/tests.ymlAdds custom reporter to e2e runs; uploads new sidecar artifacts for vercel-prod.
.github/workflows/e2e-community-world.ymlAdds custom reporter to community-world e2e runs.
.github/scripts/aggregate-e2e-results.jsLoads sidecar diagnostics/failures and prints run IDs/observability URLs in aggregated output.
.changeset/fresh-rocks-reply.mdAdds a new changeset file (currently empty).

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

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +1 to +2
---
---
Comment on lines +668 to +688
export function setupRunTracking(testName: string) {
currentTestName = testName;
trackedRuns = [];
onTestFailed(
async (result) => {
const errorMessage = result.errors?.[0]?.message || 'Test failed';

for (const tracked of trackedRuns) {
try {
const diagnostics = await getRunDiagnostics(tracked);
console.error(diagnostics);
emitGitHubAnnotation(testName, tracked, errorMessage);
} catch {
console.error(
`[diagnostics] Failed to fetch diagnostics for run ${tracked.run.runId}`
);
}
}
},
30_000 // Allow 30s for diagnostics fetching (default hookTimeout is 10s)
);
Comment on lines +652 to +658
const annotation = parts.join(' | ');

// Write directly to stdout bypassing vitest's console interceptor.
// Vitest prefixes console.log output with ANSI codes which prevents
// GitHub Actions from parsing the ::error workflow command.
process.stdout.write(`\n::error title=E2E: ${testName}::${annotation}\n`);
}
Comment on lines +36 to +40
private ctx!: Vitest;
private failedTests: FailedTestInfo[] = [];

onInit(ctx: Vitest) {
this.ctx = ctx;
Comment on lines +149 to +154
process.stdout.write(
`\n::error file=${relFile},title=${title}::${body}\n`
);
}
}

Comment on lines +118 to +126
const byTestName = new Map(entries.map((e) => [e.testName, e]));

for (const test of this.failedTests) {
if (test.runId && test.dashboardUrl) continue; // Already have data from error output
const diag = byTestName.get(test.testName);
if (diag) {
test.runId ??= diag.runId;
test.dashboardUrl ??= diag.dashboardUrl ?? undefined;
}
const entries = JSON.parse(fs.readFileSync(file, 'utf-8'));
for (const entry of entries) {
if (entry.testName && entry.runId) {
diagnostics.set(entry.testName, entry);
Comment on lines 49 to +55
beforeAll(async () => {
setupWorld(deploymentUrl);
});

beforeEach((ctx) => {
setupRunTracking(ctx.task.name);
});
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