Commit Graph
6860 Commits
Author SHA1 Message Date
Oleg Isonen 6820a7e71c perf: balance Builder E2E browser load 2026-11-16 19:37:18 +00:00
Oleg Isonen 8c76d4db13 perf: rebalance remaining Builder E2E shards 2026-11-16 19:20:57 +00:00
Oleg Isonen 5a319f96af perf: balance Builder E2E shard runtimes 2026-11-16 19:14:08 +00:00
Oleg Isonen 07c7162c0e perf: share form redirect Preview setup 2026-11-16 18:47:12 +00:00
Oleg Isonen 775c8880e6 perf: overlap Builder E2E preview work 2026-11-16 18:27:15 +00:00
Oleg Isonen cbee37d2e1 perf: combine Builder variable E2E setup 2026-11-16 18:15:24 +00:00
Oleg Isonen b58c6e1561 perf: trim redundant Builder E2E form work 2026-11-16 17:57:36 +00:00
Oleg Isonen b0ea706bc1 Keep three workers for five E2E shards 2026-11-16 17:10:36 +00:00
Oleg Isonen dce6e4b500 Test four workers across five E2E shards 2026-11-16 16:58:41 +00:00
Oleg Isonen 76b1e72235 Reduce builder E2E to five shards 2026-11-16 16:03:50 +00:00
Oleg Isonen f926689c93 Move asset folder E2E to lighter shard 2026-11-16 15:10:23 +00:00
Oleg Isonen 514ed3228a Balance builder E2E across eight shards 2026-11-16 15:01:54 +00:00
Oleg Isonen 27ff50a5a5 Reduce builder E2E shards to eight 2026-11-16 14:52:36 +00:00
Oleg Isonen 2fc183121b test: measure generated email preview startup phases 2026-11-16 13:58:59 +00:00
Oleg Isonen 5fa2864e80 perf: Rebalance Builder E2E shards 2026-11-16 10:41:06 +00:00
Oleg Isonen f506a568a1 perf: Rebalance Builder E2E shards 2026-11-16 10:26:17 +00:00
Oleg Isonen 34f78a9e98 test: Wait for duplicate page save before deletion 2026-11-16 10:08:08 +00:00
Oleg Isonen 2f4f83e3be Add headroom to the slowest nine E2E shards 2026-11-16 09:59:00 +00:00
Oleg Isonen 90274cc99c Balance nine E2E jobs using cold run timings 2026-11-16 02:35:27 +00:00
Oleg Isonen 43f1dd095c Rebalance nine shards and share Preview author startup 2026-11-16 02:25:23 +00:00
Oleg Isonen 9c75f6388d Run Builder E2E in nine measured shards 2026-11-16 02:11:40 +00:00
Oleg Isonen 668bbc2ec7 Leave headroom in the slowest E2E shards 2026-11-16 01:58:14 +00:00
Oleg Isonen 005e408efb Spread E2E work within the ten fixed shards 2026-11-16 01:49:38 +00:00
Oleg Isonen 958c4ad061 Use spare capacity in the existing E2E shards 2026-11-16 01:41:51 +00:00
Oleg Isonen 5e160f4bd6 Combine shard 1 Preview startup and shorten shard 2 saves 2026-11-16 01:34:14 +00:00
Oleg Isonen ad4eded7f9 Reuse shard 9 setup pages and shorten style saves 2026-11-16 01:28:52 +00:00
Oleg Isonen b89c68acf0 Run Preview authoring in its build process 2026-11-16 01:27:00 +00:00
Oleg Isonen 4b8e74d14a Require asset drag autoscroll in shard 4 2026-11-16 01:25:33 +00:00
Oleg Isonen a125ea504a Reduce shard 4 browser setup and asset drag work 2026-11-16 01:21:35 +00:00
Oleg Isonen 08aa6c492e Shorten shard 10 setup and rich text reloads 2026-11-16 01:20:52 +00:00
Oleg Isonen 005f4992a6 Reuse E2E pages and confirm saved navigator changes 2026-11-16 01:17:07 +00:00
Oleg Isonen eacb24ea79 Remove temporary shard 6 timing markers 2026-11-16 01:05:07 +00:00
Oleg Isonen dbb365e5e5 Reuse workflow pages in shard 6 project setup 2026-11-16 01:00:32 +00:00
Oleg Isonen 493f6518ad Temporarily measure shard 6 Preview cleanup on CI 2026-11-16 00:52:48 +00:00
Oleg Isonen 7bb66916b9 Reduce shard 4 and 6 Builder sessions and saves 2026-11-16 00:52:45 +00:00
Oleg Isonen 634ffb002f Trim cold E2E build setup and slow shard paths 2026-11-16 00:38:20 +00:00
Oleg Isonen 83abffabb8 Reduce E2E shard work and remove duplicate CI discovery 2026-11-16 00:22:20 +00:00
Oleg Isonen c0572f35c2 Cut repeated E2E authoring and overlap shard setup with build wait 2026-11-16 00:03:14 +00:00
Oleg Isonen 253d63562c perf: Reduce Builder E2E reloads and fix artifact lookup 2026-11-15 23:49:58 +00:00
Oleg Isonen 1b41123a2a perf: Share E2E production Previews across scenarios 2026-11-15 23:43:36 +00:00
Oleg Isonen 692d2978ac fix: Wait for MDX asset save instead of project sync 2026-11-15 23:32:58 +00:00
Oleg Isonen d872c11406 perf: Reuse E2E projects and Preview builds 2026-11-15 23:27:08 +00:00
Oleg Isonen 6ea7321b7f perf: Reuse Builder build for test-only changes 2026-11-15 23:13:59 +00:00
Oleg Isonen 88102ad3ee fix: Restore Chromium fallback in E2E 2026-11-15 23:04:57 +00:00
Oleg Isonen 588bd990f7 perf: Cut repeated Builder E2E setup 2026-11-15 23:00:28 +00:00
Oleg Isonen 56a8cdb64c perf: Speed up large Navigator E2E checks 2026-11-15 21:47:53 +00:00
Oleg Isonen d5424aa6b1 perf: Measure Builder data load before canvas insertion 2026-11-15 21:25:12 +00:00
Oleg Isonen 46cb28be69 perf: Reuse generated resources Preview for static binding 2026-11-15 19:58:07 +00:00
Oleg Isonen de54665a1d perf: Share managed Form callback Preview 2026-11-15 19:47:14 +00:00
Oleg Isonen baeaab904f perf: Measure and trim Builder E2E setup (#6699)
Builder E2E still misses the three-minute target. The latest warm
ten-shard run passed, but shard 6 took 4:29 from runner start to
completion. This PR remains a draft.

The ten shard jobs took 2:21–4:29. Their test phases took 1:20–3:31 and
their test durations summed to about 4,018 seconds across 136 tests. At
three Playwright workers per shard, that is a 2:14 average lower bound
before roughly 45–60 seconds of runner setup; some shards have much more
work than average. The latest managed Form consolidation passed on shard
7, but that shard still took 4:06. Shard 5 ranged from 4:40 to 3:20
across two warm runs with no shard 5 code change, so a single run is not
evidence of a stable speedup.

This branch caches the compiled Builder for E2E-only changes and commits
the schema snapshot so shards do not repeat migrations. The separate
Supabase migration job still applies all migrations. Each shard now
restores the compiled Builder cache directly. A warm run confirmed the
artifact wait and download were skipped; a miss run confirmed the
fallback. New runners still restore pnpm, Playwright, and Builder
caches, and start a database.

Related Form redirect, Email, feedback, resource, and managed delivery
outcomes now use fewer generated production Previews while retaining
named steps and assertions. Three generated resource tests now share one
project and Preview; the combined test passed in 52 seconds on CI versus
three prior tests of about 76–79 seconds each. The newest managed Form
test combines navigation, two Action delivery, and multipart upload in
one Preview and passed both locally and in CI.

Four workers per shard were tested and reverted: full E2E rose from 4:46
to 5:32, with 57–64% CPU scheduling pressure on several shards and zero
memory pressure. In the latest shard 7 run, seven generated Preview
startups summed to 200 seconds across parallel tests. Repeated Builder
canvas startup and saves dominate other shards. Caching and small test
consolidations are insufficient for the target; the remaining work needs
a test architecture that keeps production Preview and real Builder
coverage while avoiding full compilation or reload for every behavior
case.

### Status

- [x] Measure per-test, key phase, and runner CPU/memory times.
- [x] Cache compiled Builder inputs and commit a schema snapshot while
retaining the full migration check.
- [x] Keep dashboard UI creation coverage while using faster setup in
unrelated tests.
- [x] Fix the MCP Preview redirect observation race with a regression
test.
- [x] Consolidate related redirect, Email, feedback, resource, and
managed Form outcomes while retaining assertions.
- [x] Verify formatting, Builder typecheck, focused local tests, and the
latest warm ten-shard CI run.
- [ ] Diagnose and eliminate intermittent Chromium startup failures
beyond the concurrent Email binding case.
- [ ] Run managed Form callback protocol and browser checks against one
production Preview.
- [ ] Cut repeated Builder and production Preview work enough for every
shard to finish within three minutes.
- [ ] Verify cold and warm ten-shard CI runs under three minutes.

No user-facing documentation or fixture bundle changes are needed.
2026-11-15 20:38:14 +01:00