Stability: auth counter_concurrent_mutations_drift_and_restart counted one extra moved file once #1021

Open
opened 2026-11-09 06:01:43 +00:00 by kayg · 1 comment
Owner

Seen once in the slice 2 workspace run on dev-01 (#1008 head eaeb417e7, 11-09):

crates/auth/tests/reliability_review.rs:282: left: 16577 right: 16440

The difference is exactly one 137-byte file: a recount that ran during concurrent write_atomic + rename_safely + remove_file published one file too many. Single-root recount code is the same on dev and the branch.

Repeat check (flaky rule): 10/10 pass on the branch (eaeb417e7) and 10/10 on dev (d4b32af94), command cargo test -j4 --locked -p calternal-auth --test reliability_review counter_concurrent_mutations_drift_and_restart under ~/bin/slot. Not blocking; needs a stability fix in Usage::recount_using (rename/remove ordering vs the walk) or a deterministic version of the test like 0bc11a974.

Seen once in the slice 2 workspace run on dev-01 (#1008 head `eaeb417e7`, 11-09): ``` crates/auth/tests/reliability_review.rs:282: left: 16577 right: 16440 ``` The difference is exactly one 137-byte file: a recount that ran during concurrent `write_atomic` + `rename_safely` + `remove_file` published one file too many. Single-root recount code is the same on dev and the branch. Repeat check (flaky rule): 10/10 pass on the branch (`eaeb417e7`) and 10/10 on dev (`d4b32af94`), command `cargo test -j4 --locked -p calternal-auth --test reliability_review counter_concurrent_mutations_drift_and_restart` under `~/bin/slot`. Not blocking; needs a stability fix in `Usage::recount_using` (rename/remove ordering vs the walk) or a deterministic version of the test like 0bc11a974.
Author
Owner

Same cause and same fix as #1119 (the +137 is one file counted under both names after a rename during a recount walk). See the analysis and the red/green test there.

Same cause and same fix as #1119 (the +137 is one file counted under both names after a rename during a recount walk). See the analysis and the red/green test there.
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#1021
No description provided.