flaky: notes_crash kill_nine_mid_append_on_a_long_note (note file missing, only temp file left) #1023

Open
opened 2026-11-09 08:09:05 +00:00 by kayg · 0 comments
Owner

Seen once on dev-01 at 11-09 ~10:10 IST, in a full cargo test -p calternal run on the sharing branch (feat/sharing-ui-float, under load from parallel builds):

kill_nine_mid_append_on_a_long_note ... FAILED
crates/calternal/tests/notes_crash.rs:384: …/Notes/Crash test.md could not be read (No such file or directory); its folder holds [".calternal-tmp-…-Crash test.md"]

Not reproduced: --test notes_crash kill_nine_mid_append_on_a_long_note ran 10× on the branch and 10× on dev 661123e94, with 0 failures each (flaky rule, kayg 11-04). The test never touches sharing code.

The failure state is that after a SIGKILL, only the temp file exists and the note file does not. Either the test's kill landed between the unlink and the rename, or the recovery-on-start step didn't promote the temp file before the read. Worth a look at the rename path and the test's read timing. Stability fix only; doesn't block #842.

Seen once on dev-01 at 11-09 ~10:10 IST, in a full `cargo test -p calternal` run on the sharing branch (feat/sharing-ui-float, under load from parallel builds): ``` kill_nine_mid_append_on_a_long_note ... FAILED crates/calternal/tests/notes_crash.rs:384: …/Notes/Crash test.md could not be read (No such file or directory); its folder holds [".calternal-tmp-…-Crash test.md"] ``` Not reproduced: `--test notes_crash kill_nine_mid_append_on_a_long_note` ran 10× on the branch and 10× on dev `661123e94`, with 0 failures each (flaky rule, kayg 11-04). The test never touches sharing code. The failure state is that after a SIGKILL, only the temp file exists and the note file does not. Either the test's kill landed between the unlink and the rename, or the recovery-on-start step didn't promote the temp file before the read. Worth a look at the rename path and the test's read timing. Stability fix only; doesn't block #842.
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#1023
No description provided.