Files
ngit-grasp/tests
DanConwayDev 0edc7b834e test(git): characterize concurrent staging expiry races
Keep Rust integration probes for the staging design's Git prerequisites.
Bounded hook barriers reproduce expired-ref upload failures and a successful
receive-pack installing a commit whose parent concurrent expiry removed.
The latter documents why view compaction must exclude pushes. Verify an
unrelated live ref and the family remain intact; retain successful controls.

Assume Unix Git hooks and local alternates. Model elapsed object age through
pack timestamps without sleeps. These tests characterize unguarded Git;
server staging, guarded compaction, and restart recovery are excluded.

Validation: nix develop -c cargo test --test git_cruft_concurrency
-- --nocapture passed five characterization tests on Git 2.54.0;
nix develop -c cargo fmt --check passed.

Assisted-by: GPT-6
2026-09-29 09:14:06 +00:00
..