Skip to content

Conversation

@TooTallNate
Copy link
Member

@TooTallNate TooTallNate commented Feb 8, 2026

Summary

Makes all 8 dehydrate/hydrate serialization functions async, returning Promise<...> instead of synchronous values. This is a prerequisite for E2E encryption where encrypt/decrypt operations are inherently asynchronous.

This is a no-op refactor — the function bodies remain synchronous, only the signatures and call sites are updated.

Changes

  • Add async keyword to all 8 serialization functions in serialization.ts
  • Add explicit Promise<Uint8Array | unknown> return types where needed
  • Update all callers throughout the codebase with await
  • For callers in synchronous callbacks (step.ts, hook.ts), use .then()/.catch() pattern
  • Make hydrateResourceIO and its internal helpers in observability.ts async
  • Update CLI (inspect/output.ts) and web (workflow-server-actions.ts) callers with await/Promise.all
  • Relax Promise.race ordering test assertion (microtask timing changes with async hydration)

Files changed (21)

Core serialization: serialization.ts (signatures only)
Runtime callers: start.ts, workflow.ts, step.ts, hook.ts, step-handler.ts, suspension-handler.ts, resume-hook.ts, run.ts, runs.ts
Observability: observability.ts
CLI/Web: inspect/output.ts, workflow-server-actions.ts
Workbenches: trigger-pages.ts (2 files)
Tests: serialization.test.ts, workflow.test.ts, step.test.ts, hook.test.ts, observability.test.ts

Test plan

All 305 core tests pass. Build succeeds.

@changeset-bot
Copy link

changeset-bot bot commented Feb 8, 2026

🦋 Changeset detected

Latest commit: 2bfd380

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

This PR includes changesets to release 15 packages
Name Type
@workflow/core Patch
@workflow/cli Patch
@workflow/web Patch
@workflow/world-testing Patch
@workflow/builders Patch
@workflow/next Patch
@workflow/nitro Patch
@workflow/web-shared Patch
workflow Patch
@workflow/astro Patch
@workflow/nest Patch
@workflow/rollup Patch
@workflow/sveltekit Patch
@workflow/vite Patch
@workflow/nuxt Patch

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

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

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
❌ ▲ Vercel Production 358 44 30 432
✅ 💻 Local Development 418 0 62 480
✅ 📦 Local Production 418 0 62 480
✅ 🐘 Local Postgres 418 0 62 480
✅ 🪟 Windows 45 0 3 48
❌ 🌍 Community Worlds 103 41 9 153
✅ 📋 Other 123 0 21 144
Total 1883 85 249 2217

❌ Failed Tests

▲ Vercel Production (44 failed)

nextjs-webpack (44 failed):

  • addTenWorkflow
  • addTenWorkflow
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • readableStreamWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • outputStreamWorkflow
  • outputStreamInsideStepWorkflow - getWritable() called inside step functions
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • health check (CLI) - workflow health command reports healthy endpoints
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
🌍 Community Worlds (41 failed)

turso (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • promiseAllWorkflow
  • promiseRaceWorkflow
  • promiseAnyWorkflow
  • hookWorkflow
  • webhookWorkflow
  • sleepingWorkflow
  • nullByteWorkflow
  • workflowAndStepMetadataWorkflow
  • fetchWorkflow
  • promiseRaceStressTestWorkflow
  • 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
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars)
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument
  • closureVariableWorkflow - nested step functions with closure variables
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly
  • Calculator.calculate - static workflow method using static step methods from another class
  • AllInOneService.processNumber - static workflow method using sibling static step methods
  • ChainableService.processWithThis - static step methods using this to reference the class
  • thisSerializationWorkflow - step function invoked with .call() and .apply()
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE
  • instanceMethodStepWorkflow - instance methods with "use step" directive
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

Details by Category

❌ ▲ Vercel Production
App Passed Failed Skipped
✅ astro 44 0 4
✅ example 44 0 4
✅ fastify 44 0 4
✅ hono 44 0 4
✅ nextjs-turbopack 47 0 1
❌ nextjs-webpack 3 44 1
✅ nitro 44 0 4
✅ nuxt 44 0 4
✅ vite 44 0 4
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 41 0 7
✅ express-stable 41 0 7
✅ fastify-stable 41 0 7
✅ hono-stable 41 0 7
✅ nextjs-turbopack-stable 45 0 3
✅ nextjs-webpack-stable 45 0 3
✅ nitro-stable 41 0 7
✅ nuxt-stable 41 0 7
✅ sveltekit-stable 41 0 7
✅ vite-stable 41 0 7
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 41 0 7
✅ express-stable 41 0 7
✅ fastify-stable 41 0 7
✅ hono-stable 41 0 7
✅ nextjs-turbopack-stable 45 0 3
✅ nextjs-webpack-stable 45 0 3
✅ nitro-stable 41 0 7
✅ nuxt-stable 41 0 7
✅ sveltekit-stable 41 0 7
✅ vite-stable 41 0 7
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 41 0 7
✅ express-stable 41 0 7
✅ fastify-stable 41 0 7
✅ hono-stable 41 0 7
✅ nextjs-turbopack-stable 45 0 3
✅ nextjs-webpack-stable 45 0 3
✅ nitro-stable 41 0 7
✅ nuxt-stable 41 0 7
✅ sveltekit-stable 41 0 7
✅ vite-stable 41 0 7
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 45 0 3
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 0
✅ mongodb 45 0 3
✅ redis-dev 3 0 0
✅ redis 45 0 3
✅ turso-dev 3 0 0
❌ turso 4 41 3
✅ 📋 Other
App Passed Failed Skipped
✅ e2e-local-dev-nest-stable 41 0 7
✅ e2e-local-postgres-nest-stable 41 0 7
✅ e2e-local-prod-nest-stable 41 0 7

📋 View full workflow run


Some E2E test jobs failed:

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

Check the workflow run for details.

@github-actions
Copy link
Contributor

github-actions bot commented Feb 8, 2026

📊 Benchmark Results

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

workflow with no steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 0.025s (-25.8% 🟢) 1.005s (~) 0.980s 10 1.00x
💻 Local Nitro 0.033s (+5.1% 🔺) 1.005s (~) 0.972s 10 1.33x
🐘 Postgres Express 0.167s (~) 1.009s (~) 0.842s 10 6.68x
🐘 Postgres Nitro 0.259s (-47.5% 🟢) 1.010s (-1.1%) 0.751s 10 10.34x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 0.757s (-20.3% 🟢) 2.657s (+11.0% 🔺) 1.900s 10 1.00x
▲ Vercel Nitro 0.849s (+3.3%) 2.224s (~) 1.375s 10 1.12x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 1.073s (-2.9%) 2.006s (~) 0.932s 10 1.00x
💻 Local Nitro 1.109s (~) 2.006s (~) 0.897s 10 1.03x
🐘 Postgres Express 2.256s (-3.3%) 3.013s (~) 0.758s 10 2.10x
🐘 Postgres Nitro 2.436s (+3.2%) 3.015s (~) 0.579s 10 2.27x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.625s (-2.1%) 3.570s (-13.5% 🟢) 0.945s 10 1.00x
▲ Vercel Next.js (Turbopack) 2.688s (-2.5%) 3.618s (-6.7% 🟢) 0.930s 10 1.02x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 10.540s (-2.6%) 11.022s (~) 0.483s 3 1.00x
💻 Local Nitro 10.870s (~) 11.023s (~) 0.153s 3 1.03x
🐘 Postgres Nitro 20.271s (~) 21.058s (~) 0.787s 2 1.92x
🐘 Postgres Express 20.459s (+2.9%) 21.059s (+2.5%) 0.600s 2 1.94x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 19.854s (-4.5%) 21.173s (-3.9%) 1.319s 2 1.00x
▲ Vercel Next.js (Turbopack) 19.933s (-4.4%) 21.144s (-5.9% 🟢) 1.212s 2 1.00x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 26.750s (-2.5%) 27.050s (-3.6%) 0.300s 3 1.00x
💻 Local Nitro 27.567s (~) 28.055s (~) 0.487s 3 1.03x
🐘 Postgres Express 50.255s (+33.3% 🔺) 51.133s (+34.2% 🔺) 0.878s 2 1.88x
🐘 Postgres Nitro 50.264s (~) 50.631s (~) 0.367s 2 1.88x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 49.877s (+0.9%) 51.213s (~) 1.336s 2 1.00x
▲ Vercel Next.js (Turbopack) 50.394s (+1.2%) 51.500s (~) 1.106s 2 1.01x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 55.538s (-2.6%) 56.096s (-1.8%) 0.558s 2 1.00x
💻 Local Nitro 57.489s (+0.6%) 58.108s (+0.9%) 0.619s 2 1.04x
🐘 Postgres Nitro 93.118s (-7.1% 🟢) 93.197s (-7.9% 🟢) 0.079s 1 1.68x
🐘 Postgres Express 100.433s (+32.8% 🔺) 101.238s (+32.9% 🔺) 0.805s 1 1.81x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 104.686s (-1.3%) 106.559s (-1.1%) 1.873s 1 1.00x
▲ Vercel Next.js (Turbopack) 105.530s (-0.9%) 108.727s (+1.0%) 3.197s 1 1.01x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 1.359s (-2.4%) 2.005s (~) 0.646s 15 1.00x
💻 Local Nitro 1.431s (+1.7%) 2.005s (~) 0.574s 15 1.05x
🐘 Postgres Nitro 2.141s (+16.8% 🔺) 2.741s (+31.9% 🔺) 0.599s 11 1.58x
🐘 Postgres Express 2.470s (+9.3% 🔺) 3.012s (+10.0% 🔺) 0.543s 10 1.82x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.812s (-5.9% 🟢) 3.867s (-6.2% 🟢) 1.055s 8 1.00x
▲ Vercel Next.js (Turbopack) 3.134s (-7.5% 🟢) 4.327s (+1.7%) 1.194s 7 1.11x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 2.278s (-9.8% 🟢) 3.008s (~) 0.730s 10 1.00x
💻 Local Nitro 2.636s (+3.5%) 3.008s (~) 0.372s 10 1.16x
🐘 Postgres Express 7.411s (-25.5% 🟢) 8.279s (-17.5% 🟢) 0.867s 4 3.25x
🐘 Postgres Nitro 10.103s (+14.0% 🔺) 10.714s (+15.5% 🔺) 0.612s 3 4.44x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.603s (+1.5%) 4.618s (-6.0% 🟢) 1.015s 7 1.00x
▲ Vercel Next.js (Turbopack) 3.877s (-2.9%) 5.083s (-8.1% 🟢) 1.205s 6 1.08x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 6.091s (-15.0% 🟢) 6.614s (-12.0% 🟢) 0.523s 5 1.00x
💻 Local Nitro 7.935s (+9.7% 🔺) 8.522s (+6.3% 🔺) 0.587s 4 1.30x
🐘 Postgres Nitro 47.176s (-5.3% 🟢) 48.121s (-4.0%) 0.945s 1 7.75x
🐘 Postgres Express 49.446s (+6.6% 🔺) 50.123s (+6.4% 🔺) 0.677s 1 8.12x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 4.247s (-17.3% 🟢) 5.485s (-15.7% 🟢) 1.238s 6 1.00x
▲ Vercel Nitro 4.667s (+11.2% 🔺) 6.062s (+4.8%) 1.394s 5 1.10x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 1.370s (-2.1%) 2.004s (~) 0.634s 15 1.00x
💻 Local Nitro 1.441s (~) 2.005s (~) 0.564s 15 1.05x
🐘 Postgres Nitro 1.897s (+1.5%) 2.396s (+7.7% 🔺) 0.499s 13 1.38x
🐘 Postgres Express 1.909s (-8.6% 🟢) 2.516s (-6.1% 🟢) 0.607s 12 1.39x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.125s (+13.0% 🔺) 4.260s (+14.5% 🔺) 1.135s 9 1.00x
▲ Vercel Next.js (Turbopack) 4.053s (+46.1% 🔺) 5.221s (+44.3% 🔺) 1.168s 7 1.30x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 2.391s (-9.9% 🟢) 3.007s (~) 0.616s 10 1.00x
💻 Local Nitro 2.909s (+7.0% 🔺) 3.109s (+3.4%) 0.200s 10 1.22x
🐘 Postgres Nitro 10.799s (+3.0%) 11.364s (+3.0%) 0.565s 3 4.52x
🐘 Postgres Express 11.124s (-8.7% 🟢) 11.364s (-8.1% 🟢) 0.240s 3 4.65x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 2.997s (-10.1% 🟢) 4.121s (-6.2% 🟢) 1.124s 8 1.00x
▲ Vercel Nitro 4.968s (+64.5% 🔺) 6.297s (+50.4% 🔺) 1.329s 5 1.66x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

Promise.race with 50 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 6.879s (-9.2% 🟢) 7.215s (-10.0% 🟢) 0.335s 5 1.00x
💻 Local Nitro 8.343s (+6.1% 🔺) 9.023s (+12.5% 🔺) 0.680s 4 1.21x
🐘 Postgres Express 51.688s (-0.6%) 52.109s (~) 0.421s 1 7.51x
🐘 Postgres Nitro 54.315s (+5.7% 🔺) 55.122s (+5.8% 🔺) 0.807s 1 7.90x
💻 Local Next.js (Turbopack) ⚠️ missing - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - -

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 3.939s (+5.1% 🔺) 5.672s (+10.1% 🔺) 1.732s 6 1.00x
▲ Vercel Nitro 4.360s (+18.8% 🔺) 5.636s (+7.1% 🔺) 1.276s 6 1.11x
▲ Vercel Express ⚠️ missing - - - -

🔍 Observability: Next.js (Turbopack) | Nitro

Stream Benchmarks (includes TTFB metrics)
workflow with stream

💻 Local Development

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 0.115s (-32.1% 🟢) 1.002s (~) 0.009s (-13.1% 🟢) 1.014s (~) 0.899s 10 1.00x
💻 Local Nitro 0.181s (+3.8%) 1.003s (~) 0.011s (+17.3% 🔺) 1.017s (~) 0.836s 10 1.58x
🐘 Postgres Nitro 1.273s (-6.2% 🟢) 1.768s (+5.5% 🔺) 0.001s (-16.7% 🟢) 2.013s (~) 0.740s 10 11.12x
🐘 Postgres Express 2.291s (+56.9% 🔺) 2.751s (+71.0% 🔺) 0.001s (~) 3.014s (+49.8% 🔺) 0.723s 10 20.01x
💻 Local Next.js (Turbopack) ⚠️ missing - - - - -
🐘 Postgres Next.js (Turbopack) ⚠️ missing - - - - -

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 2.449s (+2.3%) 2.853s (-0.7%) 0.179s (-2.7%) 3.906s (+3.9%) 1.457s 10 1.00x
▲ Vercel Next.js (Turbopack) 2.570s (+2.4%) 3.206s (+7.9% 🔺) 0.107s (-46.4% 🟢) 3.933s (~) 1.363s 10 1.05x
▲ Vercel Express ⚠️ missing - - - - -

🔍 Observability: Nitro | Next.js (Turbopack)

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Express 12/12
🐘 Postgres Nitro 7/12
▲ Vercel Nitro 8/12
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 💻 Local 12/12
Next.js (Turbopack) ▲ Vercel 12/12
Nitro 💻 Local 10/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


Some benchmark jobs failed:

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

Check the workflow run for details.

@vercel
Copy link
Contributor

vercel bot commented Feb 8, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview, Comment Feb 11, 2026 4:26am
example-nextjs-workflow-webpack Ready Ready Preview, Comment Feb 11, 2026 4:26am
example-workflow Ready Ready Preview, Comment Feb 11, 2026 4:26am
workbench-astro-workflow Ready Ready Preview, Comment Feb 11, 2026 4:26am
workbench-express-workflow Error Error Feb 11, 2026 4:26am
workbench-fastify-workflow Ready Ready Preview, Comment Feb 11, 2026 4:26am
workbench-hono-workflow Ready Ready Preview, Comment Feb 11, 2026 4:26am
workbench-nitro-workflow Ready Ready Preview, Comment Feb 11, 2026 4:26am
workbench-nuxt-workflow Ready Ready Preview, Comment Feb 11, 2026 4:26am
workbench-sveltekit-workflow Error Error Feb 11, 2026 4:26am
workbench-vite-workflow Ready Ready Preview, Comment Feb 11, 2026 4:26am
workflow-docs Ready Ready Preview, Comment, Open in v0 Feb 11, 2026 4:26am
workflow-nest Ready Ready Preview, Comment Feb 11, 2026 4:26am
workflow-swc-playground Ready Ready Preview, Comment Feb 11, 2026 4:26am

Copy link
Collaborator

@pranaygp pranaygp left a comment

Choose a reason for hiding this comment

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

Review: PR #978 - Make serialization functions async

Summary: Clean mechanical refactor that makes all 8 dehydrate/hydrate functions async. This is well-structured as a standalone PR since it's a pure no-op refactor -- the function bodies remain synchronous, only signatures and call sites are updated.

Strengths:

  • Good separation of concerns -- this refactor is isolated from the actual encryption logic
  • All callers are properly updated with await / Promise.all
  • The changeset correctly lists all affected packages
  • The Promise.race test assertion relaxation is reasonable given async microtask timing changes

Questions/Concerns:

  1. Performance consideration: In step.ts and hook.ts, the callers that were previously synchronous callbacks now use .then()/.catch() patterns. This is the right approach since you can't use await in the resolve callback of a Promise constructor, but worth noting that this adds microtask overhead on every step completion during replay. For workflows with hundreds of steps, this could add up. Not a blocker, just something to be aware of.

  2. Changeset scope: The changeset includes @workflow/world-testing but I don't see material changes to that package's public API in this diff -- it's just updating test utilities. Consider whether this really warrants a published changeset entry for that package, or if it's just an internal change.

Overall this is a clean, well-scoped PR. Looks good to land.

@TooTallNate TooTallNate marked this pull request as ready for review February 9, 2026 23:01
@TooTallNate TooTallNate requested review from a team and Copilot February 9, 2026 23:01
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Refactors the core serialization “dehydrate/hydrate” API surface to be async, returning Promise<...>, and updates runtime/CLI/web/test call sites to await (or use Promise.all / .then() where needed). This enables future async-only transforms (e.g., encrypt/decrypt) without another broad signature change.

Changes:

  • Make 8 core serialization functions in packages/core/src/serialization.ts async and update their return types to Promise<...>.
  • Update callers across runtime, observability, CLI, and web server actions to await hydration/dehydration (including batching with Promise.all).
  • Update tests for async serialization/hydration and relax a Promise.race ordering assertion.

Reviewed changes

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

Show a summary per file
File Description
packages/core/src/serialization.ts Converts core (de)serialization APIs to async/Promise return types.
packages/core/src/workflow.ts Awaits workflow argument hydration and return value dehydration.
packages/core/src/step.ts Adjusts step result hydration to async .then/.catch resolution.
packages/core/src/workflow/hook.ts Adjusts hook payload hydration to async .then/.catch resolution.
packages/core/src/runtime/start.ts Awaits workflow argument dehydration before emitting run_created.
packages/core/src/runtime/run.ts Awaits workflow return value hydration for completed runs.
packages/core/src/runtime/runs.ts Awaits workflow argument hydration when recreating runs.
packages/core/src/runtime/step-handler.ts Awaits step argument hydration and step return value dehydration.
packages/core/src/runtime/suspension-handler.ts Awaits dehydration when building hook/step events; uses Promise.all for hook events.
packages/core/src/runtime/resume-hook.ts Awaits hook metadata hydration and payload dehydration.
packages/core/src/observability.ts Makes hydrateResourceIO and helpers async; awaits internal hydration paths.
packages/cli/src/lib/inspect/output.ts Awaits hydrateResourceIO and batches hydration with Promise.all.
packages/web/src/server/workflow-server-actions.ts Makes hydration helper async and batches list hydration via Promise.all.
workbench/nextjs-webpack/pages/api/trigger-pages.ts Awaits workflow argument hydration from request body.
workbench/nextjs-turbopack/pages/api/trigger-pages.ts Awaits workflow argument hydration from request body.
packages/core/src/serialization.test.ts Updates serialization tests to async/await and promise rejection assertions.
packages/core/src/workflow.test.ts Updates workflow tests for async serde and relaxes Promise.race ordering assertion.
packages/core/src/step.test.ts Updates step tests for async dehydration.
packages/core/src/workflow/hook.test.ts Updates hook tests for async dehydration.
packages/core/src/observability.test.ts Updates observability tests for async hydration/dehydration.
.changeset/async-serde.md Publishes a patch changeset documenting async serialization refactor.

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants