Stability: notes_crash_typing kill_nine_while_people_type_loses_and_doubles_nothing flakes (not_saved_yet) #991

Open
opened 2026-11-06 20:44:35 +00:00 by kayg · 1 comment
Owner

Seen in the daily train 2026-11-06 (#989): cargo test -j4 --workspace --locked --no-fail-fast on dev-02 (aarch64): 1597 passed, 1 failed: -p calternal --test notes_crash_typing — crates/calternal/tests/notes_crash_typing.rs:385 assertion: the server answered {"error":{"code":"not_saved_yet","message":"Not saved yet. Trying again.","retryable":true}}.
cargo test -p calternal --test notes_crash_typing x10 on dev-02, one slot job at a time: D 935fdcacd 3/10 fail, prod 71827028 6/10 fail. So it is not D-only (does not block), but the test is unreliable on both. It is a crash-recovery test: the retryable not_saved_yet should be retried by the test (or the test should wait for the save), not asserted away.

Seen in the daily train 2026-11-06 (#989): `cargo test -j4 --workspace --locked --no-fail-fast` on dev-02 (aarch64): 1597 passed, 1 failed: `-p calternal --test notes_crash_typing` — `crates/calternal/tests/notes_crash_typing.rs:385` assertion: the server answered `{"error":{"code":"not_saved_yet","message":"Not saved yet. Trying again.","retryable":true}}`. `cargo test -p calternal --test notes_crash_typing` x10 on dev-02, one slot job at a time: D `935fdcacd` 3/10 fail, prod `71827028` 6/10 fail. So it is **not** D-only (does not block), but the test is unreliable on both. It is a crash-recovery test: the retryable `not_saved_yet` should be retried by the test (or the test should wait for the save), not asserted away.
Author
Owner

traced while restoring macOS Rust gates in #1013. the refusal is persistent for malformed text, so retrying the final save would mask the cause. a new simulated tab can type into an empty CRDT before its first full sync and insert words before the properties block. the guard then correctly refuses the final save.

server trace and note text show <a-0>\n<a-1>... before the opening --- fence and the internal refusal would lose its properties block; not saved.

#1013 commit 4fd5289a2 waits for the first document sync before enabling test typing; later disconnects still type offline. no production guard is changed and no refusal is retried away. ten corrected mac repeats have passed; full Linux/macOS verification is continuing in that PR.

traced while restoring macOS Rust gates in #1013. the refusal is persistent for malformed text, so retrying the final save would mask the cause. a new simulated tab can type into an empty CRDT before its first full sync and insert words before the properties block. the guard then correctly refuses the final save. [server trace and note text](https://git.kayg.org/attachments/c19b3760-0237-44eb-a4d2-127d6fbfe6cb) show `<a-0>\n<a-1>...` before the opening `---` fence and the internal refusal `would lose its properties block; not saved`. #1013 commit `4fd5289a2` waits for the first document sync before enabling test typing; later disconnects still type offline. no production guard is changed and no refusal is retried away. ten corrected mac repeats have passed; full Linux/macOS verification is continuing in that PR.
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#991
No description provided.