Skip to content

docs: rename Control Flow Patterns to Common Patterns and add new content#846

Merged
pranaygp merged 6 commits into
mainfrom
happy-moon
Jan 26, 2026
Merged

docs: rename Control Flow Patterns to Common Patterns and add new content#846
pranaygp merged 6 commits into
mainfrom
happy-moon

Conversation

@pranaygp
Copy link
Copy Markdown
Contributor

Summary

Renames the "Control Flow Patterns" documentation page to "Common Patterns" and expands it with new content.

Changes

Page Rename

  • Renamed control-flow-patterns.mdxcommon-patterns.mdx
  • Updated title from "Control Flow Patterns" to "Common Patterns"
  • Added permanent redirect from old URL to prevent broken external links
  • Updated all internal references (navigation, links)

New Content

  • Timeout Pattern: Shows how to use Promise.race with sleep() to add timeouts to steps, hooks, and webhooks
  • Workflow Composition: Documents two approaches for calling workflows from workflows:
    • Direct await (flattening) - synchronous, single event log
    • Background execution via step - async, independent tracking

Code Block Enhancement

  • Implemented // @setup comment marker that hides lines from rendered output
  • Allows doc authors to include type declarations for type checking while keeping examples clean
  • Uses client-side DOM filtering via useEffect in the CodeBlock component

Testing

  • Verified all code examples render without setup lines
  • Confirmed redirect works for old URL
  • Link validation passes

Copilot AI review requested due to automatic review settings January 24, 2026 01:19
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 24, 2026

⚠️ No Changeset found

Latest commit: 8f029d4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

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

Click here to learn what changesets are, and how to add one.

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

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Jan 24, 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 Jan 26, 2026 7:22pm
example-nextjs-workflow-webpack Ready Ready Preview, Comment Jan 26, 2026 7:22pm
example-workflow Ready Ready Preview, Comment Jan 26, 2026 7:22pm
workbench-astro-workflow Ready Ready Preview, Comment Jan 26, 2026 7:22pm
workbench-express-workflow Ready Ready Preview, Comment Jan 26, 2026 7:22pm
workbench-fastify-workflow Ready Ready Preview, Comment Jan 26, 2026 7:22pm
workbench-hono-workflow Ready Ready Preview, Comment Jan 26, 2026 7:22pm
workbench-nitro-workflow Ready Ready Preview, Comment Jan 26, 2026 7:22pm
workbench-nuxt-workflow Ready Ready Preview, Comment Jan 26, 2026 7:22pm
workbench-sveltekit-workflow Ready Ready Preview, Comment Jan 26, 2026 7:22pm
workbench-vite-workflow Ready Ready Preview, Comment Jan 26, 2026 7:22pm
workflow-docs Ready Ready Preview, Comment Jan 26, 2026 7:22pm

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 24, 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.029s (-36.6% 🟢) 1.008s (~) 0.979s 10 1.00x
💻 Local Next.js (Turbopack) 0.043s (-1.8%) 1.018s (~) 0.974s 10 1.50x
💻 Local Nitro 0.044s (+1.4%) 1.008s (~) 0.964s 10 1.52x
🐘 Postgres Next.js (Turbopack) 0.195s (+36.2% 🔺) 1.021s (~) 0.826s 10 6.74x
🐘 Postgres Nitro 0.237s (-6.4% 🟢) 1.019s (+0.6%) 0.782s 10 8.21x
🐘 Postgres Express 0.272s (-6.2% 🟢) 1.013s (~) 0.742s 10 9.41x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 0.635s (-28.5% 🟢) 1.479s (-16.1% 🟢) 0.844s 10 1.00x
▲ Vercel Nitro 0.668s (-15.5% 🟢) 1.530s (-9.6% 🟢) 0.861s 10 1.05x
▲ Vercel Next.js (Turbopack) 0.686s (-9.1% 🟢) 1.742s (-11.3% 🟢) 1.055s 10 1.08x

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

workflow with 1 step

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 1.078s (-3.2%) 2.008s (~) 0.930s 10 1.00x
💻 Local Next.js (Turbopack) 1.101s (~) 2.011s (~) 0.910s 10 1.02x
💻 Local Nitro 1.117s (~) 2.007s (~) 0.890s 10 1.04x
🐘 Postgres Next.js (Turbopack) 1.885s (-2.8%) 2.017s (-4.7%) 0.132s 10 1.75x
🐘 Postgres Express 2.118s (~) 3.014s (~) 0.896s 10 1.97x
🐘 Postgres Nitro 2.391s (+9.2% 🔺) 3.019s (~) 0.628s 10 2.22x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.006s (+3.8%) 3.659s (-1.5%) 0.652s 10 1.00x
▲ Vercel Express 3.096s (+4.8%) 3.964s (+8.1% 🔺) 0.868s 10 1.03x
▲ Vercel Next.js (Turbopack) 3.112s (+9.4% 🔺) 4.087s (+12.2% 🔺) 0.975s 10 1.04x

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

workflow with 10 sequential steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 10.554s (-2.6%) 11.018s (~) 0.465s 5 1.00x
💻 Local Next.js (Turbopack) 10.679s (~) 11.015s (~) 0.336s 5 1.01x
💻 Local Nitro 10.839s (~) 11.017s (~) 0.178s 5 1.03x
🐘 Postgres Next.js (Turbopack) 15.169s (-0.6%) 16.036s (~) 0.867s 5 1.44x
🐘 Postgres Nitro 20.192s (-1.2%) 21.055s (~) 0.863s 5 1.91x
🐘 Postgres Express 20.444s (+14.4% 🔺) 21.035s (+15.4% 🔺) 0.591s 5 1.94x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 24.583s (-6.6% 🟢) 25.291s (-5.6% 🟢) 0.708s 5 1.00x
▲ Vercel Express 25.001s (-0.8%) 26.020s (+0.8%) 1.019s 5 1.02x
▲ Vercel Nitro 25.117s (-4.7%) 25.655s (-4.7%) 0.538s 5 1.02x

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

Promise.all with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 1.352s (-4.3%) 2.007s (~) 0.654s 15 1.00x
💻 Local Next.js (Turbopack) 1.370s (-1.5%) 2.010s (~) 0.639s 15 1.01x
💻 Local Nitro 1.399s (~) 2.005s (~) 0.606s 15 1.04x
🐘 Postgres Next.js (Turbopack) 1.720s (+1.8%) 2.012s (-1.3%) 0.293s 15 1.27x
🐘 Postgres Express 2.178s (+7.2% 🔺) 3.013s (+9.8% 🔺) 0.835s 10 1.61x
🐘 Postgres Nitro 2.345s (+6.4% 🔺) 3.016s (~) 0.672s 10 1.73x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.468s (+11.1% 🔺) 4.169s (+7.1% 🔺) 0.701s 8 1.00x
▲ Vercel Next.js (Turbopack) 3.485s (+16.4% 🔺) 4.121s (+13.4% 🔺) 0.636s 8 1.00x
▲ Vercel Express 3.867s (+33.6% 🔺) 4.564s (+24.7% 🔺) 0.698s 7 1.11x

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

Promise.all with 25 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 2.172s (-12.3% 🟢) 3.158s (+4.1%) 0.986s 10 1.00x
💻 Local Next.js (Turbopack) 2.447s (+1.4%) 3.115s (-7.8% 🟢) 0.669s 10 1.13x
💻 Local Nitro 2.533s (~) 3.035s (+0.6%) 0.503s 10 1.17x
🐘 Postgres Nitro 6.774s (-20.2% 🟢) 7.244s (-20.2% 🟢) 0.470s 5 3.12x
🐘 Postgres Express 8.295s (-6.4% 🟢) 9.064s (-5.1% 🟢) 0.769s 4 3.82x
🐘 Postgres Next.js (Turbopack) 10.296s (-6.2% 🟢) 11.026s (-5.7% 🟢) 0.730s 3 4.74x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Next.js (Turbopack) 3.885s (+20.9% 🔺) 4.758s (+28.1% 🔺) 0.873s 7 1.00x
▲ Vercel Express 4.487s (+25.7% 🔺) 5.107s (+22.4% 🔺) 0.620s 6 1.15x
▲ Vercel Nitro 5.034s (+39.9% 🔺) 5.868s (+42.6% 🔺) 0.833s 6 1.30x

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

Promise.race with 10 concurrent steps

💻 Local Development

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
💻 Local 🥇 Express 1.375s (-3.8%) 2.006s (~) 0.630s 15 1.00x
💻 Local Next.js (Turbopack) 1.384s (-1.2%) 2.008s (~) 0.624s 15 1.01x
💻 Local Nitro 1.412s (~) 2.006s (~) 0.593s 15 1.03x
🐘 Postgres Express 2.220s (+3.4%) 2.829s (+9.0% 🔺) 0.609s 11 1.61x
🐘 Postgres Nitro 2.236s (+10.6% 🔺) 2.746s (+2.3%) 0.509s 11 1.63x
🐘 Postgres Next.js (Turbopack) 2.282s (+52.5% 🔺) 2.689s (+33.6% 🔺) 0.407s 12 1.66x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 2.995s (+3.8%) 3.742s (~) 0.747s 9 1.00x
▲ Vercel Nitro 3.441s (+16.1% 🔺) 4.161s (+11.8% 🔺) 0.720s 8 1.15x
▲ Vercel Next.js (Turbopack) 3.537s (+21.7% 🔺) 4.495s (+20.3% 🔺) 0.958s 7 1.18x

🔍 Observability: Express | 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.290s (-11.2% 🟢) 3.258s (+7.7% 🔺) 0.968s 10 1.00x
💻 Local Next.js (Turbopack) 2.501s (~) 3.006s (-1.3%) 0.504s 10 1.09x
💻 Local Nitro 2.648s (~) 3.021s (~) 0.372s 10 1.16x
🐘 Postgres Express 12.342s (+7.1% 🔺) 12.694s (+8.4% 🔺) 0.352s 3 5.39x
🐘 Postgres Nitro 12.936s (+13.6% 🔺) 13.358s (+10.8% 🔺) 0.422s 3 5.65x
🐘 Postgres Next.js (Turbopack) 13.693s (+26.0% 🔺) 14.373s (+25.7% 🔺) 0.679s 3 5.98x

▲ Production (Vercel)

World Framework Workflow Time Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Express 3.634s (+16.6% 🔺) 4.296s (+18.8% 🔺) 0.662s 7 1.00x
▲ Vercel Nitro 4.020s (+27.4% 🔺) 4.680s (+23.9% 🔺) 0.660s 7 1.11x
▲ Vercel Next.js (Turbopack) 4.354s (+25.4% 🔺) 5.326s (+30.2% 🔺) 0.972s 6 1.20x

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

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.114s (-37.5% 🟢) 0.999s (+0.6%) 0.012s (-21.7% 🟢) 1.019s (~) 0.905s 10 1.00x
💻 Local Next.js (Turbopack) 0.138s (~) 1.003s (~) 0.016s (+4.5%) 1.026s (~) 0.888s 10 1.22x
💻 Local Nitro 0.183s (-2.9%) 0.992s (~) 0.015s (-12.3% 🟢) 1.021s (~) 0.837s 10 1.62x
🐘 Postgres Next.js (Turbopack) 1.272s (+3.9%) 1.629s (-10.6% 🟢) 0.000s (-100.0% 🟢) 1.819s (-10.0% 🟢) 0.548s 10 11.20x
🐘 Postgres Express 2.235s (+68.8% 🔺) 2.809s (+56.6% 🔺) 0.000s (NaN%) 3.016s (+49.7% 🔺) 0.782s 10 19.69x
🐘 Postgres Nitro 2.418s (+8.3% 🔺) 2.635s (-6.3% 🟢) 0.000s (+Infinity% 🔺) 3.021s (~) 0.603s 10 21.30x

▲ Production (Vercel)

World Framework Workflow Time TTFB Slurp Wall Time Overhead Samples vs Fastest
▲ Vercel 🥇 Nitro 3.189s (+8.0% 🔺) 3.156s (-4.0%) 0.852s (+191.7% 🔺) 4.617s (+11.3% 🔺) 1.428s 10 1.00x
▲ Vercel Next.js (Turbopack) 3.235s (+10.4% 🔺) 3.441s (+8.0% 🔺) 0.728s (+98.6% 🔺) 4.724s (+18.3% 🔺) 1.489s 10 1.01x
▲ Vercel Express 3.331s (+15.5% 🔺) 3.304s (~) 0.699s (+39.4% 🔺) 4.587s (+7.5% 🔺) 1.256s 10 1.04x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World 🥇 Fastest Framework Wins
💻 Local Express 8/8
🐘 Postgres Next.js (Turbopack) 5/8
▲ Vercel Express 3/8
Fastest World by Framework

Winner determined by most benchmark wins

Framework 🥇 Fastest World Wins
Express 💻 Local 8/8
Next.js (Turbopack) 💻 Local 8/8
Nitro 💻 Local 8/8
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
  • 🌐 Starter: Community world (local development)
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)

📋 View full workflow run

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jan 24, 2026

🧪 E2E Test Results

Some tests failed

Summary

Passed Failed Skipped Total
✅ ▲ Vercel Production 457 0 38 495
✅ 💻 Local Development 418 0 32 450
✅ 📦 Local Production 418 0 32 450
✅ 🐘 Local Postgres 418 0 32 450
✅ 🪟 Windows 45 0 0 45
❌ 🌍 Community Worlds 31 161 0 192
Total 1787 161 134 2082

❌ Failed Tests

🌍 Community Worlds (161 failed)

mongodb (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • 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
  • 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
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

redis (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • 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
  • 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
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

starter (41 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • 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 (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
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router

turso (40 failed):

  • addTenWorkflow
  • addTenWorkflow
  • should work with react rendering in step
  • 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
  • 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
  • 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 41 0 4
✅ example 41 0 4
✅ express 41 0 4
✅ fastify 41 0 4
✅ hono 41 0 4
✅ nextjs-turbopack 44 0 1
✅ nextjs-webpack 44 0 1
✅ nitro 41 0 4
✅ nuxt 41 0 4
✅ sveltekit 41 0 4
✅ vite 41 0 4
✅ 💻 Local Development
App Passed Failed Skipped
✅ astro-stable 41 0 4
✅ express-stable 41 0 4
✅ fastify-stable 41 0 4
✅ hono-stable 41 0 4
✅ nextjs-turbopack-stable 45 0 0
✅ nextjs-webpack-stable 45 0 0
✅ nitro-stable 41 0 4
✅ nuxt-stable 41 0 4
✅ sveltekit-stable 41 0 4
✅ vite-stable 41 0 4
✅ 📦 Local Production
App Passed Failed Skipped
✅ astro-stable 41 0 4
✅ express-stable 41 0 4
✅ fastify-stable 41 0 4
✅ hono-stable 41 0 4
✅ nextjs-turbopack-stable 45 0 0
✅ nextjs-webpack-stable 45 0 0
✅ nitro-stable 41 0 4
✅ nuxt-stable 41 0 4
✅ sveltekit-stable 41 0 4
✅ vite-stable 41 0 4
✅ 🐘 Local Postgres
App Passed Failed Skipped
✅ astro-stable 41 0 4
✅ express-stable 41 0 4
✅ fastify-stable 41 0 4
✅ hono-stable 41 0 4
✅ nextjs-turbopack-stable 45 0 0
✅ nextjs-webpack-stable 45 0 0
✅ nitro-stable 41 0 4
✅ nuxt-stable 41 0 4
✅ sveltekit-stable 41 0 4
✅ vite-stable 41 0 4
✅ 🪟 Windows
App Passed Failed Skipped
✅ nextjs-turbopack 45 0 0
❌ 🌍 Community Worlds
App Passed Failed Skipped
✅ mongodb-dev 3 0 0
❌ mongodb 5 40 0
✅ redis-dev 3 0 0
❌ redis 5 40 0
✅ starter-dev 3 0 0
❌ starter 4 41 0
✅ turso-dev 3 0 0
❌ turso 5 40 0

📋 View full workflow run

Copy link
Copy Markdown
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

This PR overhauls the “Worlds” documentation and UI, introduces a new /worlds section with richer CI test/benchmark visualizations, and renames/expands the “Control Flow Patterns” docs into “Common Patterns,” including the new timeout and workflow-composition patterns plus // @setup support in code blocks.

Changes:

  • Renames and extends the “Control Flow Patterns” foundations doc into “Common Patterns,” adding examples for timeouts and workflow composition plus support for hidden // @setup lines in code blocks.
  • Introduces a new /worlds landing page, per-world detail pages (including OpenGraph images), and a benchmark comparison view driven by CI artifacts, with updated world metadata and redirects from the old docs URLs.
  • Adds a benchmark history API backed by GitHub CI artifacts and corresponding UI components (charts, E2E/performance summaries, globe visualization) to surface compatibility and performance data across worlds.

Reviewed changes

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

Show a summary per file
File Description
worlds-manifest.json Updates Local/Postgres/Vercel world descriptions and adds an example URL for Postgres, supporting richer world metadata in the new Worlds UI.
pnpm-lock.yaml Locks the new cobe and transitive phenomenon dependencies for the globe visualization.
docs/package.json Adds the cobe dependency used by the Worlds globe component.
docs/next.config.ts Adds redirects from legacy world and control-flow-pattern docs URLs to the new /worlds routes and /docs/foundations/common-patterns.
docs/lib/worlds-data.ts Extends the worlds data fetcher to include framework-level E2E details, workflow timing metrics, and a derived benchmark10SeqMs KPI, plus helpers to fetch a single world and all world IDs.
docs/content/docs/worlds/meta.json Removes the old MDX-based /docs/worlds index to be replaced by the new /worlds app route.
docs/content/docs/worlds/index.mdx Removes the old Worlds ecosystem MDX page in favor of the new Worlds dashboard experience.
docs/content/docs/foundations/starting-workflows.mdx Updates the link from “Control Flow Patterns” to the new “Common Patterns” page.
docs/content/docs/foundations/meta.json Replaces control-flow-patterns with common-patterns in the foundations nav metadata.
docs/content/docs/foundations/index.mdx Updates the card to point to /docs/foundations/common-patterns with a new title and description.
docs/content/docs/foundations/control-flow-patterns.mdx Removes the old patterns page in preparation for the new common-patterns.mdx.
docs/content/docs/foundations/common-patterns.mdx New, expanded “Common Patterns” doc including sequential/parallel patterns, timeout patterns, workflow composition, and a full birthday workflow example, using // @setup-annotated declarations.
docs/content/docs/deploying/world/vercel-world.mdx Rewrites Vercel World docs to align with the new Worlds UX, link to observability, and use <WorldTestingPerformance /> for live CI data.
docs/content/docs/deploying/world/postgres-world.mdx Reworks Postgres World docs with clearer installation, configuration, and deployment guidance and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/local-world.mdx Simplifies Local World docs to emphasize zero-config usage, observability, configuration knobs, and limitations, and adds <WorldTestingPerformance />.
docs/content/docs/deploying/world/index.mdx Replaces the WIP notice with a fuller explanation of the World abstraction, how to choose worlds, and how to build/contribute worlds, linking to the new /worlds ecosystem.
docs/components/worlds/types.ts Extends typings to include per-framework E2E data, new benchmark timing fields (workflow vs wall time, TTFB, slurp), an example URL, and a benchmark10SeqMs KPI, plus a formatTime helper.
docs/components/worlds/index.ts Re-exports new world UI components (detail hero/TOC, instructions, testing/performance, benchmark history) for use across the docs/app.
docs/components/worlds/WorldTestingPerformanceMDX.tsx Wraps WorldTestingPerformance in a context-based MDX component that pulls world data from WorldDataProvider.
docs/components/worlds/WorldTestingPerformance.tsx New client component that renders E2E test summaries, benchmark tables (standard and streaming), and an interactive history chart per world.
docs/components/worlds/WorldInstructions.tsx New component rendering installation/usage and GitHub/docs links for community worlds.
docs/components/worlds/WorldDetailToc.tsx New sticky “On this page” TOC that tracks the active section via IntersectionObserver on world detail pages.
docs/components/worlds/WorldDetailHero.tsx New hero section for /worlds/[id] pages with badges, install snippets (for community worlds), quick E2E/PERF stats, and npm/GitHub/example links.
docs/components/worlds/WorldDataProvider.tsx Provides world and CI metadata via React context for world detail pages and MDX components.
docs/components/worlds/WorldCardSimple.tsx New simplified card used on the /worlds landing page, showing basic info plus condensed E2E and PERF indicators.
docs/components/worlds/WorldCard.tsx Tweaks the existing dashboard card to compute E2E pass percentage excluding skipped tests and removes the unused community emoji and average benchmark summary.
docs/components/worlds/Globe.tsx New animated globe visualization using cobe that adapts to theme and supports pointer drag.
docs/components/worlds/BenchmarkHistoryChart.tsx New dialog-driven chart showing benchmark history over releases/commits using Recharts and linking out to GitHub; powers the per-metric history view in WorldTestingPerformance.
docs/components/worlds/BenchmarkChart.tsx Updates benchmark comparison table/bar to use formatTime for displaying durations in ms/s and to consume the extended benchmark metrics.
docs/components/geistdocs/code-block.tsx Enhances the docs code block to hide any lines containing // @setup in the rendered view while retaining them in the underlying code for type checking.
docs/app/worlds/page.tsx New /worlds landing page with hero, stats, grid of WorldCardSimples, a placeholder provider benchmark visualization, explanation of Worlds, and contribution CTA, backed by getWorldsData().
docs/app/worlds/layout.tsx Wraps the Worlds routes in the shared HomeLayout with appropriate padding.
docs/app/worlds/compare/page.tsx New (non-indexed) /worlds/compare page that renders the full BenchmarkChart overview and per-benchmark BenchmarkBars using getWorldsData().
docs/app/worlds/[id]/page.tsx New /worlds/[id] detail page that stitches together the hero, MDX-based official documentation, or templated community docs, plus the sticky TOC, via WorldDataProvider.
docs/app/worlds/[id]/opengraph-image.tsx Adds per-world OpenGraph image generation using getWorldIds/getWorldData for rich link previews.
docs/app/layout.tsx Adds a “Worlds” link to the global navigation bar pointing at the new /worlds section.
docs/app/docs/[[...slug]]/page.tsx Registers WorldTestingPerformance as a no-op in the docs MDX context to avoid mismatch when world MDX pages are statically generated outside /worlds.
docs/app/api/benchmark-history/route.ts New API route that aggregates benchmark history by walking GitHub gh-pages CI artifacts and main/tags history, feeding BenchmarkHistoryChart.
.github/scripts/generate-docs-data.js Extends benchmark parsing to record separate workflow execution times, min/max, TTFB, and slurp metrics used by the Worlds dashboard and history charts.

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

Base automatically changed from pranaygp/finish-benchmarking to main January 26, 2026 19:16
- Update title format to '{Name} World | Workflow DevKit'
- Update worlds index page title to 'Worlds | Workflow DevKit'
- Improve world descriptions in worlds-manifest.json for better SEO
- Add dynamic OG image generation at /worlds/[id]/og
- Add openGraph and twitter metadata to world detail pages
- Replace route-based og/route.tsx with opengraph-image.tsx file convention
- Remove runtime = 'edge' to allow generateStaticParams for static generation
- Simplify page.tsx metadata (Next.js auto-detects opengraph-image.tsx)
…tent

- Rename page from control-flow-patterns to common-patterns
- Add redirect for old URL to prevent broken external links
- Add new Timeout Pattern section (Promise.race with sleep)
- Add new Workflow Composition section (direct await vs background execution)
- Implement @setup comment marker to hide type declarations in code examples
- Update navigation and references to new page name
The Full Example only demonstrates sequential and parallel execution,
so it should come before the new Timeout and Workflow Composition patterns.
@pranaygp pranaygp merged commit 243bf8f into main Jan 26, 2026
86 of 87 checks passed
@pranaygp pranaygp deleted the happy-moon branch January 26, 2026 19:23
pranaygp added a commit that referenced this pull request Jan 28, 2026
…s-and-commands

* origin/main:
  fix(@workflow/ai): support provider-executed tools (AI SDK v6) (#734)
  Publish "workflow" and "@workflow/core" package versions in sync (#870)
  Add SDK version to workflow run executionContext for observability (#868)
  Allow recreateRun to accept an optional deploymentId parameter (#869)
  Add support for top-level `using` declarations inside of step / workflow functions (#866)
  docs: URL in docs was missing the docs/ prefix, 404 errors (#852)
  Add "classes" object to `manifest.json` file (#864)
  Fix Nest workbench app build (#865)
  Ignore Astro on local dev tests for source map e2e tests (#863)
  Enable custom class serialization transformations for "client" mode (#860)
  Submit request bodies with CBOR encoding (#844)
  [world-vercel] Update queue to use VQS v3 API (#799)
  NestJS framework support (#840)
  Fix resolve hook theming and token fetching. (#856)
  docs: rename Control Flow Patterns to Common Patterns and add new content (#846)
  docs: revamp World documentation pages (#763)
  Remove unused `getWritable` stub function (#855)

# Conflicts:
#	packages/core/package.json
#	pnpm-lock.yaml
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.

4 participants