Daily train 2026-11-05 #973

Closed
opened 2026-11-05 20:53:52 +00:00 by kayg · 3 comments
Owner

Daily train 2026-11-05: RED on 789fdaa909c91e926569ad5be88be25b36b770a2 (D)

D = origin/dev head pinned at 22:30 IST (17:00 UTC). Prod = 12103f1c (BM14e). Since prod: #926, #950, #946, #932, #967, plus docs/plans (#962, #968, #929).
Not deployable as is. One blocker, with a verified fix in #971 (not merged). Everything else is green. I did not deploy.

Gate table

Hosts: dev-01 claude@calternal-dev-01-compute02 (x86_64, Chromium), dev-02 cua@calternal-dev-02-std (aarch64, WebKit), train lock + SLOT_TRAIN=1, CI=1, --workers=1 --retries=0, first run counts. Worktree train-1105 at D.

gate command result
Playwright, Chromium (dev-01) playwright test --project=chromium-1440 --project=chromium-390 --project=flow --project=passkeys --project=admin-setup --project=admin-chromium-1440 --project=admin-chromium-390 --project=prefs-chromium --project=look-chromium-1440 --project=look-chromium-390 --project=contrast --project=sidebar-band-chromium 1413 passed, 820 skipped, 2 failed (a11y-high Style, chromium-1440 + 390)
Playwright throttled (dev-01) --project=throttled-1440 --project=throttled-390 --no-deps 8 passed
Playwright, WebKit (dev-02) --project=webkit-1440 --project=webkit-390 --project=admin-webkit-1440 --project=admin-webkit-390 --project=prefs-webkit --project=look-webkit-1440 --project=look-webkit-390 --project=sidebar-band-webkit 1409 passed, 829 skipped, 2 failed (same spec, webkit-1440 + 390)
--repeat-each=10 of the failure a11y-high.spec.ts -g Style --project=<p>-1440 reproduces on D: webkit 7/10, chromium 10/10. Prod 12103f1c (D's spec copied in): 10/10 both (it lacks #946's fix). #932 34c14822d: webkit 9/10. #946 merge 3beb9a000: chromium 10/10
lint bun run lint (apps/web) pass
bun run check (apps/web) action-types.mjs --check FAIL on D and on prod: actions.gen.ts stale (725613477, 11-01)
svelte-check bunx svelte-check --tsconfig ./tsconfig.json FAIL on D and on prod: 2 errors, e2e/review4-signout.spec.ts:225-226
unit tests bun run test (apps/web); editor test+check; packages/ui test:primitives pass
guards node --test ci/check-no-evidence.test.mjs && node ci/check-no-evidence.mjs && node --test ci/check-case-paths.test.mjs && node ci/check-case-paths.mjs pass
cargo cargo fmt --all --check; cargo clippy -j4 --workspace --all-targets --locked -- -D warnings; cargo test -j4 --workspace --locked --no-fail-fast pass / pass / pass
SMTP spike cargo build/clippy -D warnings/test --locked -p calternal-mail-smtp-spike --features spike pass
real SyncClient CALTERNAL_SYNC_BRIDGE=...history-peer.ts cargo test -p calternal-notes --lib independent_652_real_syncclient -- --test-threads=1; bun test packages/editor/integration/real-server.test.ts pass (2 tests); pass
UI primitives e2e (both browsers) bun run --cwd packages/ui e2e:primitives pass
first paint perf/web.sh --bundle-only --gate on D and on prod gate ok. brotli first JS 238,544 B vs prod 238,451 B (+93 B, +0.04%); first CSS 18,817 vs 19,017 (-200 B); JS+CSS total -107 B. Under every budget (240 KB / 22.1 KB). Note the JS is 93 B up
backend perf (perf-01 then perf-02 locks held together) calternal-perf --sizes 100k --runs 1 --cold-runs 0 --idle-secs 300, same harness binary (D's) for all, only --bin differs. 4 rounds of prod, D, Dctl (D copy as control), then 3 rounds swapped (D first, prod second) no regression (details below)
WebKit cold first row (Mac VM) perf/web.sh --sizes 10k --browsers webkit -- --grep boot, PERF_COLD_RUNS=5, 4 rounds prod/D/Dctl alternating order, own dist+binary per variant no regression; very noisy

Blocker: a11y-high.spec.ts "Style: labelled, focus in and kept" (from #946)

  • Root cause: a real bug in the shared Tab loop, packages/ui/src/lib/dialog-focus.ts. Its TABBABLE list matches every enabled button, including tabindex="-1" ones (the other options of the Text / Page roving group). "First" is then not a real Tab stop, so Shift+Tab from the real first stop is not wrapped and walks out of the sheet to the note's text. Trace on D: Shift+Tab 1..7 walk up the presets to Page, Shift+Tab 8 lands on div.cm-content.
  • Why it was missed: the sheet builds its page a frame after it opens (1.2–2.2 s on dev-02 WebKit, same at #932/#946). The spec's 80 keys mostly ran before the controls existed, so it passed or failed by timing. The earlier "passes at #946" was luck (chromium fails 10/10 at the #946 merge).
  • Owning PR: #946 (it added the trap logic and the spec).
  • Fix: #971, verified (116dc5cab): trap ignores tabindex="-1"; spec waits for the sheet's controls. a11y-high.spec.ts x10 (both widths): Chromium 120/120, WebKit 119/120; review4-signout.spec.ts Chromium 22/22, WebKit 20/20; bun run check + svelte-check 0 errors; packages/ui primitives unit + e2e (both browsers) pass.
  • The one WebKit miss: webkit-390, Style dialog not visible 5 s after Focus+Enter (not a focus-escape). It is tracked as a stability issue.

Pre-existing reds (also on prod 12103f1c), fixed in #971

  • bun run check: actions.gen.ts not regenerated after 725613477 added owner_id to notes.get (one generated line).
  • svelte-check: review4-signout.spec.ts narrowed a callback-set value to null (typed const).
    Neither CI gate caught them on prod, so CI on dev may be red too (worth a look).

Backend perf (100k notes, perf-02), median of per-rep p50

Main run (order prod, D, Dctl; 4 reps each): all within noise except open.long_note D 123.5 ms vs prod 62.5 and open.note 6.1 vs 3.7 (and home.page_big, trash.delete +16-20%). The control Dctl (same binary as D) sat at prod's level (61.7, 3.6), and D was always second. A swapped re-run (3 rounds, D first, prod second): open.long_note D 60.1 vs prod 63.8; open.note 3.26 vs 4.35; home.page_big 20.8 vs 20.5; trash.delete 129 vs 129. So the slow D was the slot (shared-disk writeback after the prior run), not the binary. Idle (0.53% CPU, 0.06-0.085 wakeups/s, rss 73-77 MB), typing CPU (1.6%), storm, sync, uploads, search, journal, trash: D equal or better. No budget breach, 0 failures, rc=0 on all 19 runs.
Sub-ms metrics (home.page*, sync.round_trip) show ±0.2 ms jitter, below the harness resolution.

WebKit cold first row, Mac VM (boot.cold_list, 10k notes, 20 samples per variant)

p50: prod 381 ms, D 283 ms, Dctl (D again) 195 ms. p90: prod 2223, D 1304, Dctl 333. D is not slower than prod. The D-vs-Dctl gap (same binary) shows the noise is about 90 ms, so only "no regression" can be claimed.

Notes / decisions

  • ci/check-ui-primitives.mjs no longer exists on D; my matrix script still called it (my script error, not a failure). The real guards ran afterwards and pass.
  • First-paint JS is +93 B brotli while total is smaller: your call whether that counts against "no bigger than prod".
  • Prod deploy needs #971 (or an equivalent fix) merged first, then a re-run of the 4 failing specs on the new head. I did not deploy.
# Daily train 2026-11-05: **RED** on `789fdaa909c91e926569ad5be88be25b36b770a2` (D) D = origin/dev head pinned at 22:30 IST (17:00 UTC). Prod = `12103f1c` (BM14e). Since prod: #926, #950, #946, #932, #967, plus docs/plans (#962, #968, #929). **Not deployable as is.** One blocker, with a verified fix in **#971** (not merged). Everything else is green. I did not deploy. ## Gate table Hosts: dev-01 `claude@calternal-dev-01-compute02` (x86_64, Chromium), dev-02 `cua@calternal-dev-02-std` (aarch64, WebKit), train lock + `SLOT_TRAIN=1`, `CI=1`, `--workers=1 --retries=0`, first run counts. Worktree `train-1105` at D. | gate | command | result | |---|---|---| | Playwright, Chromium (dev-01) | `playwright test --project=chromium-1440 --project=chromium-390 --project=flow --project=passkeys --project=admin-setup --project=admin-chromium-1440 --project=admin-chromium-390 --project=prefs-chromium --project=look-chromium-1440 --project=look-chromium-390 --project=contrast --project=sidebar-band-chromium` | 1413 passed, 820 skipped, **2 failed** (a11y-high Style, chromium-1440 + 390) | | Playwright throttled (dev-01) | `--project=throttled-1440 --project=throttled-390 --no-deps` | 8 passed | | Playwright, WebKit (dev-02) | `--project=webkit-1440 --project=webkit-390 --project=admin-webkit-1440 --project=admin-webkit-390 --project=prefs-webkit --project=look-webkit-1440 --project=look-webkit-390 --project=sidebar-band-webkit` | 1409 passed, 829 skipped, **2 failed** (same spec, webkit-1440 + 390) | | `--repeat-each=10` of the failure | `a11y-high.spec.ts -g Style --project=<p>-1440` | **reproduces on D**: webkit 7/10, chromium 10/10. Prod `12103f1c` (D's spec copied in): 10/10 both (it lacks #946's fix). #932 `34c14822d`: webkit 9/10. #946 merge `3beb9a000`: chromium 10/10 | | lint | `bun run lint` (apps/web) | pass | | `bun run check` (apps/web) | `action-types.mjs --check` | **FAIL on D and on prod**: `actions.gen.ts` stale (725613477, 11-01) | | svelte-check | `bunx svelte-check --tsconfig ./tsconfig.json` | **FAIL on D and on prod**: 2 errors, `e2e/review4-signout.spec.ts:225-226` | | unit tests | `bun run test` (apps/web); editor `test`+`check`; `packages/ui test:primitives` | pass | | guards | `node --test ci/check-no-evidence.test.mjs && node ci/check-no-evidence.mjs && node --test ci/check-case-paths.test.mjs && node ci/check-case-paths.mjs` | pass | | cargo | `cargo fmt --all --check`; `cargo clippy -j4 --workspace --all-targets --locked -- -D warnings`; `cargo test -j4 --workspace --locked --no-fail-fast` | pass / pass / pass | | SMTP spike | `cargo build/clippy -D warnings/test --locked -p calternal-mail-smtp-spike --features spike` | pass | | real SyncClient | `CALTERNAL_SYNC_BRIDGE=...history-peer.ts cargo test -p calternal-notes --lib independent_652_real_syncclient -- --test-threads=1`; `bun test packages/editor/integration/real-server.test.ts` | pass (2 tests); pass | | UI primitives e2e (both browsers) | `bun run --cwd packages/ui e2e:primitives` | pass | | first paint | `perf/web.sh --bundle-only --gate` on D and on prod | gate ok. brotli first JS 238,544 B vs prod 238,451 B (**+93 B**, +0.04%); first CSS 18,817 vs 19,017 (**-200 B**); JS+CSS total **-107 B**. Under every budget (240 KB / 22.1 KB). Note the JS is 93 B up | | backend perf (perf-01 then perf-02 locks held together) | `calternal-perf --sizes 100k --runs 1 --cold-runs 0 --idle-secs 300`, same harness binary (D's) for all, only `--bin` differs. 4 rounds of prod, D, Dctl (D copy as control), then 3 rounds swapped (D first, prod second) | **no regression** (details below) | | WebKit cold first row (Mac VM) | `perf/web.sh --sizes 10k --browsers webkit -- --grep boot`, `PERF_COLD_RUNS=5`, 4 rounds prod/D/Dctl alternating order, own dist+binary per variant | **no regression**; very noisy | ## Blocker: `a11y-high.spec.ts` "Style: labelled, focus in and kept" (from #946) - **Root cause:** a real bug in the shared Tab loop, `packages/ui/src/lib/dialog-focus.ts`. Its TABBABLE list matches every enabled button, including `tabindex="-1"` ones (the other options of the Text / Page roving group). "First" is then not a real Tab stop, so Shift+Tab from the real first stop is not wrapped and walks out of the sheet to the note's text. Trace on D: Shift+Tab 1..7 walk up the presets to `Page`, Shift+Tab 8 lands on `div.cm-content`. - Why it was missed: the sheet builds its page a frame after it opens (1.2–2.2 s on dev-02 WebKit, same at #932/#946). The spec's 80 keys mostly ran before the controls existed, so it passed or failed by timing. The earlier "passes at #946" was luck (chromium fails 10/10 at the #946 merge). - Owning PR: **#946** (it added the trap logic and the spec). - **Fix: #971**, verified (`116dc5cab`): trap ignores `tabindex="-1"`; spec waits for the sheet's controls. `a11y-high.spec.ts` x10 (both widths): Chromium 120/120, WebKit 119/120; `review4-signout.spec.ts` Chromium 22/22, WebKit 20/20; `bun run check` + svelte-check 0 errors; `packages/ui` primitives unit + e2e (both browsers) pass. - The one WebKit miss: webkit-390, Style dialog not visible 5 s after Focus+Enter (not a focus-escape). It is tracked as a stability issue. ## Pre-existing reds (also on prod `12103f1c`), fixed in #971 - `bun run check`: `actions.gen.ts` not regenerated after 725613477 added `owner_id` to `notes.get` (one generated line). - svelte-check: `review4-signout.spec.ts` narrowed a callback-set value to `null` (typed const). Neither CI gate caught them on prod, so CI on dev may be red too (worth a look). ## Backend perf (100k notes, perf-02), median of per-rep p50 Main run (order prod, D, Dctl; 4 reps each): all within noise except `open.long_note` D 123.5 ms vs prod 62.5 and `open.note` 6.1 vs 3.7 (and `home.page_big`, `trash.delete` +16-20%). The control Dctl (same binary as D) sat at prod's level (61.7, 3.6), and D was always second. A **swapped** re-run (3 rounds, D first, prod second): `open.long_note` D 60.1 vs prod 63.8; `open.note` 3.26 vs 4.35; `home.page_big` 20.8 vs 20.5; `trash.delete` 129 vs 129. So the slow D was the slot (shared-disk writeback after the prior run), not the binary. Idle (0.53% CPU, 0.06-0.085 wakeups/s, rss 73-77 MB), typing CPU (1.6%), storm, sync, uploads, search, journal, trash: D equal or better. No budget breach, 0 failures, rc=0 on all 19 runs. Sub-ms metrics (`home.page*`, `sync.round_trip`) show ±0.2 ms jitter, below the harness resolution. ## WebKit cold first row, Mac VM (`boot.cold_list`, 10k notes, 20 samples per variant) p50: prod **381 ms**, D **283 ms**, Dctl (D again) **195 ms**. p90: prod 2223, D 1304, Dctl 333. D is not slower than prod. The D-vs-Dctl gap (same binary) shows the noise is about 90 ms, so only "no regression" can be claimed. ## Notes / decisions - `ci/check-ui-primitives.mjs` no longer exists on D; my matrix script still called it (my script error, not a failure). The real guards ran afterwards and pass. - First-paint JS is +93 B brotli while total is smaller: your call whether that counts against "no bigger than prod". - Prod deploy needs #971 (or an equivalent fix) merged first, then a re-run of the 4 failing specs on the new head. I did not deploy.
Author
Owner

Re-run on release/2026-11-05 @ ad1b89e2 (D + #971): GREEN

Commands: CI=1 ~/bin/slot bunx playwright test <specs> --project=<p> --workers=1 --retries=0 (specs: a11y-high, signout, review4-signout); repeat = a11y-high.spec.ts --repeat-each=10. Debug calternal built with cargo build -j4 -p calternal --locked, web built with bun run build.

host project plain (3 specs) a11y-high x10
dev-01 chromium-1440 23 passed, 1 skipped, 0 failed 70 passed, 10 skipped, 0 failed
dev-01 chromium-390 21 passed, 3 skipped, 0 failed 50 passed, 30 skipped, 0 failed
dev-02 webkit-1440 22 passed, 2 skipped, 0 failed 70 passed, 10 skipped, 0 failed
dev-02 webkit-390 20 passed, 4 skipped, 0 failed 50 passed, 30 skipped, 0 failed

Skips are the specs' own per-viewport skips. No retries, no flakes, including the webkit-390 "Style dialog not visible" miss seen earlier.

gate command result
check bun run check (apps/web, includes svelte-check) pass: 0 errors, 16 warnings; actions.gen.ts current
first paint perf/web.sh --bundle-only --gate ok: first JS 232.8 KB brotli (budget 240), first CSS 18.4 KB (22.1), total JS 364.0 KB (404.2), plugins 38.0 KB (45)

Nothing deployed. release ad1b89e2 GREEN

## Re-run on `release/2026-11-05` @ `ad1b89e2` (D + #971): GREEN Commands: `CI=1 ~/bin/slot bunx playwright test <specs> --project=<p> --workers=1 --retries=0` (specs: a11y-high, signout, review4-signout); repeat = `a11y-high.spec.ts --repeat-each=10`. Debug `calternal` built with `cargo build -j4 -p calternal --locked`, web built with `bun run build`. | host | project | plain (3 specs) | a11y-high x10 | |---|---|---|---| | dev-01 | chromium-1440 | 23 passed, 1 skipped, 0 failed | 70 passed, 10 skipped, 0 failed | | dev-01 | chromium-390 | 21 passed, 3 skipped, 0 failed | 50 passed, 30 skipped, 0 failed | | dev-02 | webkit-1440 | 22 passed, 2 skipped, 0 failed | 70 passed, 10 skipped, 0 failed | | dev-02 | webkit-390 | 20 passed, 4 skipped, 0 failed | 50 passed, 30 skipped, 0 failed | Skips are the specs' own per-viewport skips. No retries, no flakes, including the webkit-390 "Style dialog not visible" miss seen earlier. | gate | command | result | |---|---|---| | check | `bun run check` (apps/web, includes svelte-check) | pass: 0 errors, 16 warnings; `actions.gen.ts` current | | first paint | `perf/web.sh --bundle-only --gate` | ok: first JS 232.8 KB brotli (budget 240), first CSS 18.4 KB (22.1), total JS 364.0 KB (404.2), plugins 38.0 KB (45) | Nothing deployed. release ad1b89e2 GREEN
Author
Owner

Deployed release/2026-11-05 ad1b89e2 to prod at 03:56–03:57 IST 11-06. Health 200, version 0.1.0, podman healthy. Backup backup-pre-ad1b89e2-20261105T222625547442409Z.tgz.

Deployed release/2026-11-05 ad1b89e2 to prod at 03:56–03:57 IST 11-06. Health 200, version 0.1.0, podman healthy. Backup backup-pre-ad1b89e2-20261105T222625547442409Z.tgz.
Author
Owner

Housekeeping: linked PR #971 is merged into dev. Comments record the successful corrected gate rerun and the subsequent production deployment. Closing the completed issue.

Housekeeping: linked PR #971 is merged into dev. Comments record the successful corrected gate rerun and the subsequent production deployment. Closing the completed issue.
kayg closed this issue 2026-11-10 16:07:19 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
kayg/calternal#973
No description provided.