Skip to content

[e2e] Shrink fibonacciWorkflow's run tree from fib(6) to fib(5) - #3619

Merged
alangenfeld merged 1 commit into
mainfrom
alangenfeld/e2e-fib-load
Aug 18, 2026
Merged

[e2e] Shrink fibonacciWorkflow's run tree from fib(6) to fib(5)#3619
alangenfeld merged 1 commit into
mainfrom
alangenfeld/e2e-fib-load

Conversation

@alangenfeld

Copy link
Copy Markdown
Collaborator

Summary & Motivation

fib(6)'s 25-run tree saturates the scheduler past this test's 180s budget when the e2e suite runs concurrently (#2083). fib(5) keeps the subject — recursive start() composition with parallel children at every level — at 15 runs.

Test Plan

Existing coverage: the modified test runs in CI across the workbench matrix.

@changeset-bot

changeset-bot Bot commented Aug 18, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: e1e2b54

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

vercel Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

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

Project Deployment Actions Updated (UTC)
example-nextjs-workflow-turbopack Ready Ready Preview Aug 18, 2026 8:15pm
example-nextjs-workflow-webpack Ready Ready Preview Aug 18, 2026 8:15pm
example-workflow Building Building Preview Aug 18, 2026 8:15pm
workbench-astro-workflow Ready Ready Preview Aug 18, 2026 8:15pm
workbench-express-workflow Ready Ready Preview Aug 18, 2026 8:15pm
workbench-fastify-workflow Ready Ready Preview Aug 18, 2026 8:15pm
workbench-hono-workflow Ready Ready Preview Aug 18, 2026 8:15pm
workbench-nestjs-workflow Ready Ready Preview Aug 18, 2026 8:15pm
workbench-nitro-workflow Ready Ready Preview Aug 18, 2026 8:15pm
workbench-nuxt-workflow Ready Ready Preview Aug 18, 2026 8:15pm
workbench-python-workflow Ready Ready Preview Aug 18, 2026 8:15pm
workbench-sveltekit-workflow Ready Ready Preview Aug 18, 2026 8:15pm
workbench-tanstack-start-workflow Ready Ready Preview Aug 18, 2026 8:15pm
workbench-vite-workflow Ready Ready Preview Aug 18, 2026 8:15pm
workflow-docs Ready Ready Preview, v0 Aug 18, 2026 8:15pm
workflow-swc-playground Ready Ready Preview Aug 18, 2026 8:15pm
workflow-tarballs Ready Ready Preview Aug 18, 2026 8:15pm
workflow-web Ready Ready Preview Aug 18, 2026 8:15pm

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

🛠 Infra Events (absorbed by the harness)

Platform anomalies the e2e harness detected and worked around (e.g. a run the queue never picked up, replaced by a fresh run). Clustered timestamps indicate a backend blip; a steady drip indicates a platform issue worth escalating.

  • run-pickup-stall · addTenWorkflow (tanstack-start) · at 20:17:58Z · abandoned wrun_01M0B8BM6ZYW4BSR4KZ5WF3PG4

E2E Test Summary

Summary
Passed Failed Skipped Total
✅ ▲ Vercel Production 3474 0 738 4212
✅ 💻 Local Development 3810 0 558 4368
✅ 📦 Local Production 3810 0 558 4368
✅ 🐘 Local Postgres 3810 0 558 4368
✅ 🪟 Windows 312 0 0 312
✅ 🌐 Cross-language Conformance 9 0 128 137
✅ vercel-multi-region 27 0 0 27
Total 15252 0 2540 17792
Details by Category

✅ ▲ Vercel Production

App Passed Failed Skipped
✅ astro-node 128 0 28
✅ astro-quickjs 128 0 28
✅ example-node 128 0 28
✅ example-quickjs 128 0 28
✅ express-node 128 0 28
✅ express-quickjs 128 0 28
✅ fastify-node 128 0 28
✅ fastify-quickjs 128 0 28
✅ hono-node 128 0 28
✅ hono-quickjs 128 0 28
✅ nest-node 128 0 28
✅ nest-quickjs 128 0 28
✅ nextjs-turbopack-node 153 0 3
✅ nextjs-turbopack-quickjs 153 0 3
✅ nextjs-webpack-node 153 0 3
✅ nextjs-webpack-quickjs 153 0 3
✅ nitro-node 128 0 28
✅ nitro-quickjs 128 0 28
✅ nuxt-node 128 0 28
✅ nuxt-quickjs 128 0 28
✅ python-node 8 0 148
✅ sveltekit-node 147 0 9
✅ sveltekit-quickjs 147 0 9
✅ tanstack-start-node 128 0 28
✅ tanstack-start-quickjs 128 0 28
✅ vite-node 128 0 28
✅ vite-quickjs 128 0 28

✅ 💻 Local Development

App Passed Failed Skipped
✅ astro-stable-node 130 0 26
✅ astro-stable-quickjs 130 0 26
✅ express-stable-node 130 0 26
✅ express-stable-quickjs 130 0 26
✅ fastify-stable-node 130 0 26
✅ fastify-stable-quickjs 130 0 26
✅ hono-stable-node 130 0 26
✅ hono-stable-quickjs 130 0 26
✅ nest-stable-node 130 0 26
✅ nest-stable-quickjs 130 0 26
✅ nextjs-turbopack-canary-node 137 0 19
✅ nextjs-turbopack-canary-quickjs 137 0 19
✅ nextjs-turbopack-stable-node 156 0 0
✅ nextjs-turbopack-stable-quickjs 156 0 0
✅ nextjs-webpack-canary-node 137 0 19
✅ nextjs-webpack-canary-quickjs 137 0 19
✅ nextjs-webpack-stable-node 156 0 0
✅ nextjs-webpack-stable-quickjs 156 0 0
✅ nitro-stable-node 130 0 26
✅ nitro-stable-quickjs 130 0 26
✅ nuxt-stable-node 130 0 26
✅ nuxt-stable-quickjs 130 0 26
✅ sveltekit-stable-node 149 0 7
✅ sveltekit-stable-quickjs 149 0 7
✅ tanstack-start-node 130 0 26
✅ tanstack-start-quickjs 130 0 26
✅ vite-stable-node 130 0 26
✅ vite-stable-quickjs 130 0 26

✅ 📦 Local Production

App Passed Failed Skipped
✅ astro-stable-node 130 0 26
✅ astro-stable-quickjs 130 0 26
✅ express-stable-node 130 0 26
✅ express-stable-quickjs 130 0 26
✅ fastify-stable-node 130 0 26
✅ fastify-stable-quickjs 130 0 26
✅ hono-stable-node 130 0 26
✅ hono-stable-quickjs 130 0 26
✅ nest-stable-node 130 0 26
✅ nest-stable-quickjs 130 0 26
✅ nextjs-turbopack-canary-node 137 0 19
✅ nextjs-turbopack-canary-quickjs 137 0 19
✅ nextjs-turbopack-stable-node 156 0 0
✅ nextjs-turbopack-stable-quickjs 156 0 0
✅ nextjs-webpack-canary-node 137 0 19
✅ nextjs-webpack-canary-quickjs 137 0 19
✅ nextjs-webpack-stable-node 156 0 0
✅ nextjs-webpack-stable-quickjs 156 0 0
✅ nitro-stable-node 130 0 26
✅ nitro-stable-quickjs 130 0 26
✅ nuxt-stable-node 130 0 26
✅ nuxt-stable-quickjs 130 0 26
✅ sveltekit-stable-node 149 0 7
✅ sveltekit-stable-quickjs 149 0 7
✅ tanstack-start-node 130 0 26
✅ tanstack-start-quickjs 130 0 26
✅ vite-stable-node 130 0 26
✅ vite-stable-quickjs 130 0 26

✅ 🐘 Local Postgres

App Passed Failed Skipped
✅ astro-stable-node 130 0 26
✅ astro-stable-quickjs 130 0 26
✅ express-stable-node 130 0 26
✅ express-stable-quickjs 130 0 26
✅ fastify-stable-node 130 0 26
✅ fastify-stable-quickjs 130 0 26
✅ hono-stable-node 130 0 26
✅ hono-stable-quickjs 130 0 26
✅ nest-stable-node 130 0 26
✅ nest-stable-quickjs 130 0 26
✅ nextjs-turbopack-canary-node 137 0 19
✅ nextjs-turbopack-canary-quickjs 137 0 19
✅ nextjs-turbopack-stable-node 156 0 0
✅ nextjs-turbopack-stable-quickjs 156 0 0
✅ nextjs-webpack-canary-node 137 0 19
✅ nextjs-webpack-canary-quickjs 137 0 19
✅ nextjs-webpack-stable-node 156 0 0
✅ nextjs-webpack-stable-quickjs 156 0 0
✅ nitro-stable-node 130 0 26
✅ nitro-stable-quickjs 130 0 26
✅ nuxt-stable-node 130 0 26
✅ nuxt-stable-quickjs 130 0 26
✅ sveltekit-stable-node 149 0 7
✅ sveltekit-stable-quickjs 149 0 7
✅ tanstack-start-node 130 0 26
✅ tanstack-start-quickjs 130 0 26
✅ vite-stable-node 130 0 26
✅ vite-stable-quickjs 130 0 26

✅ 🪟 Windows

App Passed Failed Skipped
✅ nextjs-turbopack-node 156 0 0
✅ nextjs-turbopack-quickjs 156 0 0

✅ 🌐 Cross-language Conformance

App Passed Failed Skipped
✅ python 9 0 128

✅ vercel-multi-region

App Passed Failed Skipped
✅ nextjs-turbopack 27 0 0

📋 View full workflow run

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

📊 Workflow Benchmarks

commit e1e2b54 · Tue, 18 Aug 2026 20:32:32 GMT · run logs

Backend: vercel · app: nextjs-turbopack

Metric Scenario Best (ms) P75 (ms) P90 (ms) P99 (ms) Samples
TTFS step 246 (-76%) 💚 1413 🔴 (+19%) 🔻 1505 🔴 (+14%) 1903 🔴 (+19%) 🔻 30
TTFS stream 225 (-56%) 💚 1455 🔴 (+21%) 🔻 1493 🔴 (+20%) 🔻 1736 🔴 (+33%) 🔻 30
TTFS hook + stream 413 (-21%) 💚 1778 🔴 (+17%) 🔻 1822 🔴 (+14%) 1898 🔴 (+6.0%) 30
Fan-out TTFS Promise.all(100 steps) 1390 (+14%) 2798 (+7.2%) 2803 (+5.5%) 2937 (+10%) 10
Fan-out TTLS Promise.all(100 steps) 5863 (+11%) 7743 (+12%) 7936 (+9.4%) 9560 (+10%) 10
STSO 1020 steps (inline) 142 (+2.9%) 261 (-4.0%) 296 (-4.2%) 471 (+17%) 🔻 1019
WO 1020 steps 247670 (-2.3%) 247670 (-2.3%) 247670 (-2.3%) 247670 (-2.3%) 1
CRTT first chunk (pooled) 98 (-13%) 204 (+15%) 351 (+3.5%) 555 (+46%) 🔻 28

Streams

Scenario wr c/s rd c/s wr KiB/s rd KiB/s CRTT 1st p75 p90 p99 CDV max iters
paced control (100/s, 60B) 100 (±0%) 99 (-2%) 5 (±0%) 5 (-2%) 146 (-18%) 193 (-27%) 362 (-35%) 1032 (+42%) 189 (-46%) 10
size sweep (100/s, 160B-12KB) 100 (±0%) 106 (+4%) 334 (±0%) 352 (+4%) 184 (+11%) 371 (+51%) 873 (+117%) 1036 (+45%) 439 (+127%) 10
replay gateway-gpt-5.4-nano-2000t (1x) 89.2 (±0%) 89.3 (±0%) 16.2 (±0%) 16.2 (±0%) 226 (+39%) 180 (+3%) 468 (+54%) 1136 (+60%) 855 (+71%) 3
replay eve-gpt-5.6-sol-2000t (1x) 54.7 (±0%) 54.6 (±0%) 355 (±0%) 354 (±0%) 125 (-18%) 150 (-29%) 220 (-52%) 1216 (+77%) 739 (+31%) 2
replay eve-gpt-5.6-sol-2000t (2x) 109 (±0%) 109 (±0%) 710 (±0%) 708 (±0%) 162 (-2%) 233 (-54%) 340 (-51%) 541 (-41%) 305 (-42%) 3
📈 STSO distribution vs main (inline / queue-hop histograms)

1020 steps (inline)

Cumulative STSO time: main 253258ms → this run 247440ms (Δ -5818ms, -2%)

100-150 ms  ┃                         main   2  this   1    -1
150-200 ms  █████┃                    main 131  this 138    +7
200-250 ms  ████████████████████░░░┃  main 457  this 547   +90
250-300 ms  █████████┃███             main 294  this 236   -58
300-350 ms  ██┃█                      main  98  this  59   -39
350-400 ms  ┃                         main  25  this  15   -10
400-450 ms  ┃                         main   6  this   6    +0
450-500 ms  ┃                         main   2  this  11    +9
500-550 ms  ┃                         main   2  this   2    +0
550-600 ms  ┃                         main   1  this   1    +0
600-650 ms  ┃                         main   0  this   1    +1
700-750 ms  ┃                         main   1  this   1    +0
900-950 ms  ┃                         main   0  this   1    +1
📈 CRTT drill-down vs main (RTT distributions & profiles)
variant  RTT 1ms→5s+             avg         p50          p90          p99     n
control  ······▂█▃▁▁··  164.9 (-17%)  137 (-10%)   362 (-35%)  1032 (+42%)  3000
sweep    ······▂█▅▂▁··  240.1 (+34%)  172 (+16%)  873 (+117%)  1036 (+45%)  3000
gw 1x    ·····▁▃█▁▁▁··     159 (-1%)   126 (-4%)   468 (+54%)  1136 (+60%)  5295
eve 1x   ·····▁▅█▂▁▁··  140.9 (-22%)  110 (-20%)   220 (-52%)  1216 (+77%)  5186
eve 2x   ·····▁▂█▄▁···  178.9 (-40%)  154 (-39%)   340 (-51%)   541 (-41%)  7779

RTT over stream progress (avg per tenth of stream, bars scaled min→max):

control  ▄▂▁▁▂▁▂▂█▁  147–237ms
sweep    ██▄▆▃█▇▄▂▁  160–298ms
gw 1x    ▇█▃▁▁▂▂▁▁▁  118–287ms
eve 1x   ▂▁▂█▄▃▄▄▂▃  101–226ms
eve 2x   ▅▂▃▃▁▂▄█▃▂  124–292ms

RTT by chunk size (avg per log size bin, ~160B → ~12KB serialized, bars scaled min→max):

sweep  ▇▆▂▁▆▄█  238–242ms

Delivery jitter over stream progress (avg positive CDV per tenth of stream, bars scaled min→max):

control  ▁▆▄█▃▅▃▅▇▃  37–59ms
sweep    █▃▆▁▅▇▄▅▂▇  31–70ms
gw 1x    ▃█▂▁▃▂▄▁▃▃  35–53ms
eve 1x   ▁▂▄█▃▅▇▃▅▆  19–33ms
eve 2x   █▃▂▃▁▃▄▃▃▃  26–38ms
📜 Previous results (1)

f0b125c

Tue, 18 Aug 2026 19:46:27 GMT · run logs

vercel / nextjs-turbopack

Metric Scenario Best (ms) P75 (ms) P90 (ms) P99 (ms) Samples
TTFS step 421 (+73%) 🔻 1452 🔴 (+27%) 🔻 1472 🔴 (+20%) 🔻 1536 🔴 (-12%) 30
TTFS stream 1416 (+508%) 🔻 1482 🔴 (+28%) 🔻 1506 🔴 (+26%) 🔻 1569 🔴 (+20%) 🔻 30
TTFS hook + stream 1348 (+214%) 🔻 1708 🔴 (+23%) 🔻 1768 🔴 (+25%) 🔻 1858 🔴 (+27%) 🔻 30
Fan-out TTFS Promise.all(100 steps) 1079 (-24%) 💚 2998 (+19%) 🔻 3049 (+15%) 🔻 3099 (-6.1%) 10
Fan-out TTLS Promise.all(100 steps) 5949 (-16%) 💚 7876 (-10%) 9040 (+0.7%) 9812 (+8.3%) 10
STSO 1020 steps (inline) 122 (-25%) 💚 213 (-29%) 💚 235 (-34%) 💚 308 (-44%) 💚 1019
WO 1020 steps 207016 (-28%) 💚 207016 (-28%) 💚 207016 (-28%) 💚 207016 (-28%) 💚 1
CRTT first chunk (pooled) 78 (-21%) 💚 115 (-32%) 💚 146 (-55%) 💚 173 (-62%) 💚 28

Streams

Scenario wr c/s rd c/s wr KiB/s rd KiB/s CRTT 1st p75 p90 p99 CDV max iters
paced control (100/s, 60B) 100 (±0%) 100 (-1%) 5 (±0%) 5 (-1%) 96 (-38%) 114 (-48%) 149 (-55%) 481 (-53%) 81.5 (-75%) 10
size sweep (100/s, 160B-12KB) 100 (±0%) 100 (-1%) 333 (±0%) 335 (-1%) 92 (-26%) 115 (-41%) 149 (-85%) 360 (-70%) 82 (-60%) 10
replay gateway-gpt-5.4-nano-2000t (1x) 89.2 (±0%) 89.1 (±0%) 16.2 (±0%) 16.2 (±0%) 99 (-35%) 118 (-39%) 162 (-42%) 419 (-48%) 210 (-44%) 3
replay eve-gpt-5.6-sol-2000t (1x) 54.7 (±0%) 54.7 (±0%) 355 (±0%) 355 (±0%) 126 (-19%) 117 (-26%) 146 (-26%) 322 (-22%) 240 (-28%) 2
replay eve-gpt-5.6-sol-2000t (2x) 109 (±0%) 109 (±0%) 710 (±0%) 708 (±0%) 127 (-39%) 1003 (+304%) 2919 (+782%) 4816 (+321%) 194 (-71%) 3
ℹ️ Metric definitions & methodology

Streams: writer/reader sustained rates (steady window, 10% trimmed each side), first-chunk RTT (the stream-open path, before any buffering/backpressure), CRTT percentiles, and worst delivery stall (CDV max). Cells are medians across iterations; per-run values in the artifacts. No 🔴/🟢 marks until targets attach.

The collapsed STSO distribution section above buckets every step gap, split inline (same warm process — pure framework overhead) vs queue-hop (fresh process — dispatch, reinit, replay). = main, = this run, = fill.

The collapsed CRTT drill-down: per-variant RTT histograms (fixed log bins, · = empty) and mean RTT/positive-CDV profile lines over stream progress and chunk size. Histograms, avgs, and profiles merge exactly across runs; p50–p99 are percentile-of-percentiles. Per-index rows live in the artifacts.

Best/P75/P90/P99 deltas compare against the most recent benchmark run on main at the time of this run. 🔻 flags a delta worse than +15%, 💚 one better than −15%.

Metrics — TTFS: time to first step body (in-deployment start() → first step body) · Fan-out TTFS: fan-out time to first step (in-deployment start() → first of the parallel step bodies to complete) · Fan-out TTLS: fan-out time to last step (in-deployment start() → last of the parallel step bodies to complete, i.e. when the Promise.all resolves) · STSO: step-to-step overhead (gap between consecutive step bodies) · WO: workflow overhead (whole-run time outside step bodies, in-deployment anchored) · CRTT: chunk round-trip time (per-chunk write → read latency, one clock domain: deployment → stream backend → same deployment) · CDV: chunk delay variation / delivery jitter (inter-arrival gap minus inter-write gap per seq-adjacent pair; skew-free; the row is each run's MAX positive value, so one stall moves it)

Scenarios — step: one trivial no-op step, no stream; no hooks, so the run stays in turbo mode (in-process fast path) · stream: one streaming step; no hooks, so the run stays in turbo mode (in-process fast path) · hook + stream: registers a hook before one step, which exits turbo mode (dispatch path) · 1020 steps: 1020 trivial sequential steps; STSO is measured between consecutive steps in the given step ranges, and WO is the whole-run overhead outside step bodies · Promise.all(100 steps): 100 trivial no-op steps started together in a single Promise.all; Fan-out TTFS is the first of them to complete and Fan-out TTLS the last, both from the in-deployment clientStart, so their gap is the spread the runtime adds across the fan-out · paced control (100/s, 60B): the control: 300 tiny (~60B) deltas metronome-paced at 100/s — zero workload structure, so it reads the transport floor and flush cadence, and disambiguates transport-wide vs workload-specific when a replay row moves · size sweep (100/s, 160B-12KB): same pacing as the control with deltas padded in rotation across seven log-spaced sizes (~160B–12KB) — rotation decouples size from stream position, so it isolates whether chunk size causes latency · replay gateway-gpt-5.4-nano-2000t (1x): raw provider SSE cadence captured at the AI gateway boundary (gpt-5.4-nano, the most popular gateway model; per-token deltas p50 208B = the modal production chunk size), replayed exactly as measured — the typical customer's workload; its CDV is the typical customer's real delivery jitter · replay eve-gpt-5.6-sol-2000t (1x): a captured eve turn (gpt-5.6-sol, the most-used demanding eve model; ~2000 output tokens = production p50 turn length) replayed exactly as measured — eve's envelope protocol re-ships the cumulative message so sizes ramp 142B→13KB; the demanding outlier tenant's reality · replay eve-gpt-5.6-sol-2000t (2x): the same eve capture at 2x — the headroom/stress row; real fast-tier models emit the same chunk sizes at proportionally higher rate, so time compression is a faithful speed model · first chunk (pooled): every run's seq-0 RTT pooled across all stream scenarios — the first chunk precedes any workload differentiation, so pooling samples one shared stream-open path with exact percentiles

Replay cadences (semantic sha256) — eve-gpt-5.6-sol-2000t eaf22f5946e7c61f3c65c7006d550df180cfabd4e706254a09f22aec0cfb420d · gateway-gpt-5.4-nano-2000t 6f24ac518b6b83ff1d0e85a5fe78230db192716d66a7fc6b2fe022752001d041

🔴 marks a percentile over its target (within target is left unmarked). Targets (p75/p90/p99, ms) — TTFS 200/300/600

All timestamps are deployment-side; runs are triggered in-deployment, so the CI runner and api.vercel.com sit outside every measured window. TTFS = start() → first step body (includes dispatch + any cold start); Fan-out TTFS/TTLS = first/last step completion of one Promise.all from the same anchor (the gap is the runtime’s fan-out spread); STSO/WO between step bodies; CRTT inside the workflow (excludes the api.vercel.com read path).

Cold starts stay in the numbers (real bursty-workload latency, inflates P75+); Best is the warm floor.

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Sim World

Simulated world deterministic testing for races. Traces

🟠 world-sim scenario book — 1 fail of 41 total

fence=per-spec

scenario outcome events virt replay violations
smoke-no-steps completed 3 0ms ok 0
smoke-one-step completed 6 0ms ok 0
hook-at-step-started completed 12 0ms ok 0
hook-at-step-completed completed 12 0ms ok 0
hook-at-hook-created completed 12 0ms ok 0
deadline-hook-wins completed 7 1.0h ok 0
deadline-expires completed 7 1.0h ok 0
long-sleep completed 11 30.0d ok 0
hook-never-arrives stalled 3 0ms skipped 0
step-retries-twice completed 10 2.0s ok 0
parallel-steps completed 9 0ms ok 0
hook-on-execution-state completed 12 0ms ok 0
peek-hook-before-branch completed 12 0ms ok 0
peek-hook-after-branch completed 12 0ms ok 0
peek-hook-at-registration completed 12 0ms ok 0
race-hook-before-probe completed 12 0ms ok 0
race-hook-after-probe completed 12 0ms ok 0
race-duplicate-delivery completed 13 0ms ok 0
attr-hook-before-step completed 11 0ms ok 0
attr-hook-after-step completed 11 0ms ok 0
attr-from-step-body completed 13 0ms ok 0
fork-hook-after-timeout completed 14 1.0m ok 0
fork-hook-before-timeout completed 14 1.0m ok 0
count-hook-after-timeout completed 17 1.0m ok 0
count-hook-before-timeout completed 20 1.0m ok 0
stale-read-step-count-fork completed 20 1.0m ok 0
stale-read-equal-step-counts completed 14 1.0m ok 0
step-vs-step-fork completed 12 0ms ok 0
step-vs-step-fork-fenced completed 12 0ms ok 0
fence-catches-benign-direction completed 12 5ms ok 0
in-flight-before-decision completed 17 1.0m ok 0
in-flight-before-decision-counted completed 17 1.0m ok 0
in-flight-after-decision completed 19 2.0m ok 0
stale-read-step-count-fork-fenced completed 20 1.0m ok 0
fork-hook-wins completed 13 1.0m ok 0
fork-timeout-wins completed 13 1.0m ok 0
unclaimed-payload-under-fork completed 17 1.0m ok 0
claimed-payload-under-fork completed 17 1.0m ok 0
writers-independent-step-bodies completed 12 0ms ok 0
writers-scripted-tempo completed 12 0ms ok 0
cancel-mid-step cancelled 7 0ms skipped 0

Full trace: world-sim.txt

@alangenfeld
alangenfeld marked this pull request as ready for review August 18, 2026 19:32
@alangenfeld
alangenfeld requested a review from a team as a code owner August 18, 2026 19:32
fib(6) spawns a 25-run tree whose ~24 concurrent parent polls saturate
the workflow scheduler past the test's 180s budget under a concurrent
suite (#2083 measured this as one of the three flake classes blocking
e2e concurrency re-enablement). fib(5)'s 15-run tree still exercises
the test's actual subject - recursive start() composition with parallel
children at every level - with 40% less peak load.

Signed-off-by: Alex Langenfeld <alex.langenfeld@vercel.com>
@alangenfeld
alangenfeld merged commit 09c51d8 into main Aug 18, 2026
172 checks passed
@alangenfeld
alangenfeld deleted the alangenfeld/e2e-fib-load branch August 18, 2026 20:47
@github-actions

Copy link
Copy Markdown
Contributor

No backport to stable for 09c51d8 (AI decision).

This is a test-only flake mitigation that shrinks the fibonacciWorkflow e2e run tree, which would normally qualify — but the test does not exist on stable: git show origin/stable:packages/core/e2e/e2e.test.ts contains no fibonacci reference and no fibonacci workflow fixture exists anywhere on that branch. With no corresponding test or behavior on the maintenance line, there is nothing for the backport to fix.

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

09c51d8a16b861314360b8f7e5b11ac31ca68b88

alangenfeld added a commit that referenced this pull request Aug 18, 2026
Serial execution has been the dominant wall-clock cost per matrix entry
since concurrency was disabled before conf (78048e0): ~128 tests at
~22 of 24 minutes on the Vercel lanes, and lately the slowest lane
cannot finish under its 30-minute job timeout on a slow runner day at
all. #2083 measured the concurrent suite at ~3x job wall-clock (4-5x on
the vitest phase) and identified what broke; its blockers are now fixed:
world-local writeExclusive is atomic (write-then-link), abort-fetch
tests are hermetic (#3618), the fibonacci tree fits the scheduler
(#3619), and source-map assertions are positive-only (#3620).

What this change adds is concurrency-safe per-test attribution. The
harness tracked runs and test names in module globals reset by a
beforeEach - under concurrency every test clobbered every other's
state, so a failing test dumped an unrelated sibling's diagnostics.
vitest's getCurrentTest() cannot substitute: it is a plain module
variable, wrong after any await. Instead an auto fixture - the one
place that receives the test's own context unambiguously - binds a
per-test state (name, tracked runs, the test's own skip) via
AsyncLocalStorage around each test body, and trackRun /
recordInfraEvent / requireFixture read it ambiently with no call-site
changes. The conformance gates skip through the bound state's skip, so
a mid-body requireFixture skips the right test. Sequential suites
(dev, agent, region) keep setupRunTracking's module-global fallback.

Full suite passes 137/137 concurrently against a local dev server in
under 2 minutes. A test that genuinely cannot share a deployment can
opt out with test.sequential.

Builds on VaguelySerious's investigation in #2083.

Signed-off-by: Alex Langenfeld <alex.langenfeld@vercel.com>
alangenfeld added a commit that referenced this pull request Aug 19, 2026
Serial execution has been the dominant wall-clock cost per matrix entry
since concurrency was disabled before conf (78048e0): ~128 tests at
~22 of 24 minutes on the Vercel lanes, and lately the slowest lane
cannot finish under its 30-minute job timeout on a slow runner day at
all. #2083 measured the concurrent suite at ~3x job wall-clock (4-5x on
the vitest phase) and identified what broke; its blockers are now fixed:
world-local writeExclusive is atomic (write-then-link), abort-fetch
tests are hermetic (#3618), the fibonacci tree fits the scheduler
(#3619), and source-map assertions are positive-only (#3620).

What this change adds is concurrency-safe per-test attribution. The
harness tracked runs and test names in module globals reset by a
beforeEach - under concurrency every test clobbered every other's
state, so a failing test dumped an unrelated sibling's diagnostics.
vitest's getCurrentTest() cannot substitute: it is a plain module
variable, wrong after any await. Instead an auto fixture - the one
place that receives the test's own context unambiguously - binds a
per-test state (name, tracked runs, the test's own skip) via
AsyncLocalStorage around each test body, and trackRun /
recordInfraEvent / requireFixture read it ambiently with no call-site
changes. The conformance gates skip through the bound state's skip, so
a mid-body requireFixture skips the right test. Sequential suites
(dev, agent, region) keep setupRunTracking's module-global fallback.

Full suite passes 137/137 concurrently against a local dev server in
under 2 minutes. A test that genuinely cannot share a deployment can
opt out with test.sequential.

Builds on VaguelySerious's investigation in #2083.

Signed-off-by: Alex Langenfeld <alex.langenfeld@vercel.com>
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.

2 participants