Stability: specs that are not repeat- or parallel-safe (--workers=2 --repeat-each=10): shared vault grows, what is known #1182
Open
opened 2026-11-15 23:49:29 +00:00 by kayg
·
1 comment
No Branch/Tag specified
main
port/tasks-float-2
fix/train-1116-2
fix/train-1116-3
fix/train-1116-1
fix/flake-1134
fix/server-1182
dev
port/notes-float-3c
docs/auto-update-ig
feat/dav-transport
port/tasks-float-1
wip/mail1011-sv-order-1116
fix/flake-1179
fix/flake-1178
fix/guards-1153-fsio-split
fix/guards-1153-notes-split-we
fix/guards-1153-notes-lib
fix/guards-1153-notes-home
fix/guards-1153-ui-primitives
fix/guards-1153-primitives-e2e
fix/guards-1153-visibility-doc
feat/paper-grey-1116
fix/flake-1165
fix/flake-1119
docs/imap-766-plan-v2
fix/e2e-unique-ports
t3/paged-search-reconcile-final
wip/mail1011-final-1115
docs/tasks-float-port
perf/editor-first-paint-1c
feat/imap-notes-fetch
feat/imap-notes-projection
feat/imap-notes-readonly
feat/imap-notes-auth
feat/imap-notes-server-foundation
wip/mail1011-txn-ownvocab-1115
wip/mail1011-txn-novocab-1115
perf/p1117-final-harness
perf/single-shot-repeats
port/tasks-matrix
wip/mail1011-txn-1115
fix/static-gates-1155
feat/files-s1-identity-r7
fix/files-r7-idle-loop
fix/daily-train-1152
port/notes-float
fix/editor-tables-test-types
port/notes-float-listscript
feat/tasks-actions
port/notes-float-phone-preload
perf/sound-comparator
port/notes-float-listscroll
port/notes-float-budgets
port/notes-float-suite-fix-b
port/notes-float-sidebar-fix
port/notes-float-trim
port/notes-float-3-lists
fix/attachments-meta-capability
docs/carddav-writes-v2-plan
feat/contacts-companion-pure
issue/carddav-read-perf-fix-r2
issue/carddav-read-r2
port/notes-float-devsync2
review/calendar-2
review/switcher-a-pills
port/notes-float-switcher-a
port/port-tables-2
review/switcher-ends
wip/whiteboard-s1-1114
port/port-tables
wip/mail1011-perfneutral
review/photo-tint
port/notes-float-shell
wip/local/collections-db
wip/local/mail-p1
wip/local/cold-growth-on-tiering
wip/local/tiering-v3-s1
wip/local/wal1051-cap
wip/local/tiering-v3-s1-resume
wip/local/index-position-startup-scan
port/notes-float-flat
port/notes-float-promote
wip/handover/mail1011-candidate
wip/handover/files-s1-candidate
port/notes-float-shell-only
port/notes-float-perf
feat/whiteboard-s1
feat/tiering-v5
fix/app-switch-hitch
wip/local/files-s1-dev-v4-final
feat/files-s1-dev-v4
fix/c2-glass-shared
feat/flat-lists
wip/handover/whiteboard-s1-resume
wip/att-lazy-861
feat/switcher-browse
wip/att-lazy-860
feat/tasks-float
recovered/flat-backup-candidate
perf/stalls-1054-kc
land/ai-toolbar
feat/collections-db
feat/collections-db-fixes
codex/mail-1011-redesign-20261111
fix/ai-toolbar
backup/macos-vm/st3-head
perf/trim-candidate-phonestack
feat/switcher-three
fix/1051-index-idle-checkpoint
perf/stalls-1054-kb
perf/stalls-1054-k
perf/stalls-1054-r3
fix/c2-contrast-tail
perf/stalls-1054-r3-preview
feat/collections-before
feat/tiering-v4
fix/timelog-caret
wip/local/tasks-actions
docs/tasks-writes-v2-plan
st3-r3
feat/pass8
review/calendar-2-before-1111
wip/tiering-v3-cold4
perf/stalls-1054-r2
fix/suite-A4
fix/suite-A5-probe
fix/suite-A6
fix/suite-A3
fix/suite-A2
fix/suite-A5
fix/suite-A1
wip/local/attachments-861-fix
feat/contrast
wip/local/ports-861
storage/wal-checkpoint-off-save-1051
wip/local/mail-1011-reconcile-20261110
feat/style-sheet-fixes
feat/money-round
perf/stalls-1054
wip/tiering-v3-cold5
t3/mail-1011-liveness
feat/iphone-fixes
feat/notes-approve
wip/local/shrow-work
feat/files-s1-identity
feat/quickfix
wip/tiering-v3-cold
wip/local/shared-row-swipes
backup/macos-vm/pfx-B
backup/macos-vm/pfx-C
backup/macos-vm/pfx-D
feat/contrast-r1
feat/tiering-v3-s2-tags
feat/folder-drop
t3/photos-s1
feat/tiering-v3-s1-namespace
wip/local/photos-s1
t3/photos-plan-slice-one
recovered/backup/p1b-61505
t3/paged-search-reconcile
t3/smooth-pane-transitions
t3/index-position-startup-scan
fix/private-staging-759b-r2
backup/macos-vm/hk/hk1009/pr877
backup/macos-vm/hk/hk1009/pr878
docs/undo-block-ids-plan
fix/undo-768
backup/macos-vm/hk/hk1009/pr875
backup/macos-vm/hk/hk1009/pr904
proto/block-identity-v7d
backup/macos-vm/hk/hk1009/pr846
backup/macos-vm/hk/hk1009/pr860
backup/macos-vm/hk/hk1009/pr861
backup/macos-vm/hk/hk1009/pr849
backup/macos-vm/hk/hk1009/pr848
backup/macos-vm/hk/hk1009/pr853
backup/macos-vm/hk/hk1009/pr957
backup/macos-vm/hk/hk1009/pr893
backup/macos-vm/hk/hk1009/pr889
backup/macos-vm/hk/hk1009/pr902
docs/imap-notes-plan
docs/quota-plan-2
fix/parallel-test-flakes
docs/calendar-backend-v2-plan
feat/calendar-ical-converter
backup/macos-vm/hk/hk1009/pr808
docs/contacts-import-v2-plan
issue/610-pm-midnight
feat/calendar-v2-s1-containment
backup/macos-vm/hk/hk1009/pr854
backup/macos-vm/hk/hk1009/pr845
backup/macos-vm/hk/hk1009/pr917
docs/dav-recorder-v2-plan
plan/previews-865
plan/save-log-durable-entry
backup/macos-vm/hk/hk1009/pr934
fix/e2e-data-on-ram
backup/macos-vm/hk/hk1009/pr888
feat/appwindow3
feat/appwindow2
feat/appwindow
feat/money-p1
feat/keys-sheet
review/calendar-2-themes
feat/smooth-cursor
fix/float-style
review/calendar-2-float
release/2026-11-06-hotfix
archive/port/rows-drop-code
archive/port/rows-actions
archive/port/rows
scratch/tasks-894-ui-gates
review/calendar-2-night-wip
recovered/flaky/toast-reduced
release/2026-11-05
archive/flaky/rows-drop-fixed
archive/flaky/rows-actions
archive/flaky/rows
sim/bm15-final
sim/bm15-bis-932
sim/bm15-bis-909
sim/bm15
sim/bm15-bis-887
perf/tiering-option-b
fix/sw-lazy-precache
archive/plan/save-log-durable-entry
mock/money-fix2
archive/fix/e2e-data-on-ram
mock/appearance-all
mock/pill-press
mock/pill-press-mac
backup/macos-vm/appearance-after
mock/auto-swipes
mock/mail-actions
backup/macos-vm/mock/mail-actions
mock/money-static
archive/review/standards-917
perf/tiering-761-fix
mock/type-audit
mock/third-pane
feat/contacts-import-v2-s1
perf/executor-hot-path
archive/port/hidden-blocks
archive/port/devices
scratch/executor-on-894
scratch/executor-spans2
scratch/executor-spans
archive/port/rows-drop
feat/tiering-761-d-scale
feat/tiering-761-c-index
feat/tiering-761-b-reader
archive/review/sharing-pr3-review-9fec3d1f
perf/ports-lazy-budgets
feat/tiering-761-a-migration
archive/review/sharing-pr3-review
archive/review/sharing-pr3-review-code
archive/plan/previews-865
archive/port/port-attachments-3
archive/port/contacts-merge
fix/motion-audit-859
fix/motion-audit-859-mac
archive/port/port-pickers
archive/port/port-tables-2
archive/port/port-tables
recovered/local/sharing-s1-pr2-room-snapshot-candidate
archive/fix/parallel-test-flakes-code-minipc01
docs/imap-766-readonly-slice
feat/dav-recorder-v3
research/788-diagnosis
archive/fix/parallel-test-flakes
archive/perf/pr792-cold-index-edit
docs/sharing-slice-1
recovered/feat/dav-recorder-v2
recovered/feat/dav-recorder-v2-edd7bbb
spike/imap-766-s0-cases
archive/fix/undo-768
recovered/feat/dav-recorder
recovered/feat/dav-recorder-901acd4
feat/contacts-import
perf/cold-growth-on-764
perf/cold-growth-on-tiering
recovered/feat/tasks-set-status
feat/tasks-move-reorder
feat/tasks-delete-promote-duplicate
feat/carddav-writes
perf/quota-on-tiering
perf/quota-simple
perf/cold-growth-on-quota-stack
recovered/perf/cold-growth-on-tiering
feat/calendar-identity
feat/calendar-event-parser
feat/calendar-props-maps
port/glass-when-ring
recovered/feat/tiering-761-s1-wip-8132a84
recovered/feat/tiering-761-s1-wip-9da4094
recovered/feat/tiering-761-s1-wip-724512c
recovered/feat/tiering-761-s1-wip-66e667e
recovered/feat/tiering-761-s1
wip/6by32-01-tier-761-s1-pause-20261030
spike/imap-766-s0
wip/6by32-02-calternal-pause-20261030
wip/8by64-01-review-688-pause-20261030
wip/6by32-01-verify-744-pause-20261030
wip/6by32-01-verify-742-pause-20261030
fix/private-staging-759b
wip/6by32-01-review-748-pause-20261030
wip/6by32-01-review-733c-pause-20261030
wip/6by32-01-review-733b-pause-20261030
review/calendar-month
wip/local/bm15-trash
plan/759b-staging
review/767b-tests
review/preview-2026-10-29
docs/tiering-731-plan
wip/c6b02-review-733d
wip/c6b02-bm1-full-a
docs/deploy-plan
fix/storage-owner-liveness-642
fix/storage-fix-7
feat/tiering-731
wip/tiering-731-first-attempt
perf/idle-honest-2
fix/storage-private-tmp-642-dev
fix/storage-exact-file-quarantine-642
perf/one-flush-save
review/calendar-static
review/indexing-ring
review/when-field-2
proto/block-identity-2-review
proto/block-identity-review
review/when-field
issue/tasks-create-ids
issue/tasks-create
review/combined
review/task-polish
review/top-buttons
review/q1-q5
archive/integ325-293
archive/integ325-ci
issue/calendar-adr
archive/old/train/2026-10-23bk2
archive/old/train/2026-10-23bk
issue/469-mockup-9a
issue/smart-tasks-mockup
issue/469-menus
issue/652-signout-flake
issue/652-history-fix7
issue/652-history-fix6
archive/old/issue/spring-check-perf
issue/spring-check-perf
issue/659-rename-fast
archive/old/train/2026-10-21ar
issue/search-hardening-3
issue/652-history-fix5
issue/660-port-sheets-glass
issue/652-history-fix4
issue/652-history-fix3
issue/652-history-fix2
issue/652-history-flake
train/2026-10-21an
issue/settings-admin-port
issue/search-port
train/2026-10-20am
issue/storage-split-fix2
issue/storage-split
archive/old/issue/folder-ids-fix
train/2026-10-20al
archive/old/issue/folder-ids
train/2026-10-20ak
issue/tables-mockup
train/2026-10-19aj
train/2026-10-19ai
issue/469-merge-fixes
issue/sidebar-band
archive/old/issue/608-settings-spec
train/2026-10-19ah
issue/swipe-offscreen
train/2026-10-19ag
archive/old/issue/590-nlp-adr
archive/old/issue/587-event-after-write-2
train/2026-10-19af
archive/old/issue/587-event-after-write
issue/469-pill-room-c
issue/469-pill-room
train/2026-10-19ae
issue/469-narrow-handle
issue/397-ios-swipe-2
issue/469-desk-fixes
archive/old/issue/auto-update-adr
issue/469-filter-gap
issue/469-port-1b
issue/442-opacity-flake
issue/327-web-fast-3
archive/old/issue/469-port-1
issue/469-port-1
issue/327-web-fast-2
archive/old/issue/327-web-fast
archive/old/issue/425-stt-bench-vq1
archive/old/issue/445-no-bleed
archive/old/issue/400-swipe-mockup-2
issue/426-client-review
issue/426-client-2
issue/426-client
archive/old/issue/476-safe-area-lab
archive/old/issue/445-top-light
issue/471-blocks-mockup
archive/old/issue/448-links-app-2
archive/old/issue/448-links-app
archive/old/issue/398-cold-links
issue/434-442-small-2
issue/434-442-small
archive/old/issue/398-unload
archive/old/issue/445-bottom-band
issue/445-bottom-band
issue/351-rem-3
issue/351-rem-2
issue/351-rem
archive/old/issue/327-first-note
issue/395-width-phone
archive/old/issue/327-typing
issue/396-ios-edges
issue/397-ios-swipe
archive/old/issue/327-notes-index
issue/345-347-contrast-empty-2
archive/old/issue/44-arenas
issue/44-arenas
archive/integ325
archive/old/issue/327-perf-harness
archive/old/issue/44-thp
issue/44-thp
archive/old/issue/285-sticky-pills
archive/old/issue/44-trim-3
issue/44-trim-3
archive/old/issue/165-cards
archive/old/issue/165-picker-2
archive/old/issue/212-multi-select
No results found.
Labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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#1182
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Opened at the orchestrator's request (the #1136 lane saw
--workers=2 --repeat-each=10failures at dev42c219afdthat a--workers=1, no-repeat train does not: chromium-1440 tasks-card, tasks-swipe, tasks-tick 43 / 180; chromium-390 journal-trash, search-palette, swipe-rows, task-check, tasks-tick 32 / 540; webkit-1440 tasks-board, window-layout 9 / 140, see #1136 (comment)).All of the e2e specs share one server and one vault for the whole run: every repeat and every worker adds tasks (
made()), notes and tags, and nothing is removed. The Today list therefore keeps growing during a run (thelink-statesrequest in one trace carried 17Tasks/*.mdpaths; it carries one more per task made), and a spec that was written against a short list meets a different page from the third repeat on. What I found, with evidence, for thetasks-tickfamily (the only one I could take apart in this lane):click({ force: true })) on a tick box that Playwright left at the bottom edge of the phone's window lands on the floating Search pill and opens Searchpill field pressat y=819.8 of 844)tasks.set-statusanswered 503not_saved_yet(retryable) while the server publishes, shown as a failuretasks.set-statusanswered 409block_changedwhile the task note's room still holds the save of the write that made it (the spec's ownmade()), for several seconds on a busy server (answers took 2.9 to 4.8 s); the client retried only within 3 s of its own write and counted the window in secondsnotes.link-statesasked about ~27 times a second for ever on the open Tasks screen, every request carrying allTasks/*.mdpaths of the vault: load on the server that grows with the vaultMeasured on dev-02, chromium-1440,
tasks-tick.spec.ts,--workers=2 --repeat-each=10: dev 6 / 80 fail; #1181 alone 1 / 100; #1180 + #1181 together 1 / 100 (the one left is a server answeringchangedfor more than 14 s, i.e. server latency under load, not examined). At--workers=1 --repeat-each=30the unfixed spec failed 1 / 240 on webkit-390 (the covered click), then 239 / 240 on webkit-1440 and webkit-390 (a request answered after 20 s on a loaded host) and 240 / 240 chromium-1440 with #1167.Not examined here (no root cause claimed): tasks-card, tasks-swipe (#1176), journal-trash, swipe-rows, task-check, tasks-board, window-layout, search-palette:47 (#1113). Suggested first step for each: look at the page's network log in the failing repeat (a trace has it) for
503/409answers and forlink-statesvolume, and check whether the spec's target row is at the edge of the window (theelementFromPointcheck in #1165). A spec that needs a short list should make its own list (a tag or project of its own, as pane-transition does for notes) instead of reading Today.Added: with #1167 + #1178 + #1179 together, chromium-390
--repeat-each=30on one server still fails from about repeat 22 on (every test:set-statussent, no answer in 20 s; dev-01 shows the same without the fixes: 84 / 240 fail). Server-side cause not found.#1182 root cause found and fixed in PR #1184 (
fix/server-1182, headc5e152a7c): not a deadlock, the executor journal was re-read in full on every writeWhat hung, and how it was found
On dev-02 I reproduced the failure with one server,
tasks-tick.spec.ts,chromium-390 --workers=1 --repeat-each=30, on dev81c7fb951. While it ran I took 8gdb -psamples of the live debug server (thread apply all bt), 3 s apart.serde_jsoninsidewrite_executor::journal::read←NoteWriteExecutor::load/records(), deserialisingPayload/Imagebyte arrays or re-serialising records for their checksum.users/<id>/notes/write-executor/*.json). The newest record was 338 KB, for a 15 KB daily note.Why that is slow: each Home write (
tasks.set-status) loads the executor journal about 7 times (replay lookup, recovery ×3, admission, after commit), and every load parsed and re-hashed every record. Payload compaction is withheld, so the journal gains one record per tick. A tick therefore costs O(all earlier ticks).Test time per repeat on the baseline (dev
81c7fb951, chromium-390, one server,--workers=1):Fix 1: parse each journal file once (
journal::readcache)Validated records are kept per journal dir, keyed by the file's identity (inode, size, mtime, ctime, taken from the handle that read it). Records are only ever replaced by rename, so new bytes are always parsed and validated again, and the ancestry check still runs over all records. The cache is released when the Home unloads after going idle.
Deterministic test
a_write_parses_only_the_records_it_wrote_however_long_the_journal:0db09e0dc: "one write parsed 40 record files";Fix 2: plan again when the Home moved (the 409/503 "while saving")
Every task's owning line is in the same daily note, so concurrent ticks and captures all write that note.
write_executor::home::core). Tasks answered that as 409block_changed, although the client's version was right.not_saved_yet. One such 503 was seen 5 ms after the request in a--workers=2trace on the first fix.tasks.set-status/tasks.movenow plan again, at most 4 times (10–160 ms apart). A stale task version is still refused at once.REPLANS = 0, which is the old single pass); a Home that keeps moving is refused after 5 plans; a busy note while planning is planned again; a stale task version gets 1 plan and a 409.After
tasks-tickchromium-390 --workers=1 --repeat-each=30, one server:72948d1ec(fix 1)72948d1ec(fix 1)3e51db3acThe one dev-02 failure on fix 1 was Playwright's own
ENOENTon a trace file: I started a second run in the same worktree, which clearedtest-results. That was my mistake, not the product.tasks-tickchromium-1440 --workers=2 --repeat-each=10(the #1179 setup, dev-02):7e9ed92ed: 80/80.3e51db3ac: 79/80. The one failure (tasks-tick:107, box not checked) has notasks.set-statusrequest in its trace: the forced click never reached the row while the other worker's tasks reflowed the shared Today list. That is a client/test race of the #1165 kind, not the server.Gates at head (dev-02; per the orchestrator, chromium logic specs also ran on dev-02)
cargo fmt --all -- --checkrc 0 atc5e152a7c;cargo clippy --workspace --all-targets -- -D warningsrc 0;cargo test --workspace1905 passed, 0 failed at3e51db3ac.notes tests::event_visibility::save_outside_retry, while other jobs were running. It passed 10/10 on dev81c7fb951and 10/10 on3e51db3ac, so it does not block under the flaky rule.e2e/tasks-at3e51db3ac,--workers=1: webkit-1440 57/57, webkit-390 43 passed / 14 skipped, chromium-1440 57/57, chromium-390 43 passed / 14 skipped.c5e152a7conly reformats test-only code; the release binary's code is unchanged.Perf: ticket
srv1182is queued on perf-01, behind tf1b, dav794, mail-1011 and nf3c. Arms: deve0808d27…= dev2, inertfaf1a014…(inert-patch seed 1), candbb97fba5…(3e51db3ac). Layouts:--stateand single root; cells save_ack/typing; plus idle and typing wake-up runs. Results will follow on #1184.#1181: not needed for these failures. The 409s and 503s it retried came from the slow writes and from server-internal races that the server now absorbs. Its 503 retry still matches the
retryable: truecontract, so keeping only that part is harmless; I'd drop the retry ofblock_changedthe device didn't cause.Open (separate): the executor journal still grows until its 1 GiB budget and then refuses Home writes, because payload compaction is withheld pending a retention decision. With about 300 KB per tick on a 200-task day, that is a few thousand ticks per Home.