You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
id(fileops): repeated-replacement archive removal test fails — delete reports 1 archive instead of 2 #4574
fileops::delete_tests::delete_after_repeated_replacements_removes_all_replaced_archives fails deterministically: after two replacements, a rename, and a delete, deleted.archives_removed is 1, expected 2 (pkgs/id/src/fileops.rs:1025).
Evidence
Full cargo test in pkgs/id (base 6e12642d4): 1763 passed, 1 failed — only this test.
Isolated re-run cargo test -p id --lib fileops::delete_tests: same failure (left: 1, right: 2), 0.19s.
Each test opens its own LocalNode::open(true) with a fresh tempdir, so this is not shared-state flakiness.
Pre-existing on main: the failing code path is production archive accounting in src/; the proving worktree's src/ was byte-identical to its origin/main base when the failure reproduced (the only diff was test-fixture additions under tests/).
Scope note
This is production behavior (archive accounting across rename+delete), not a test-fixture compile issue, so it is tracked separately from #4522 and its fix PR #4566. It currently fails the id-web Nix check phase (doCheck=true), which runs the full suite with only serve_tests skipped.
Repro
cargo test -p id --lib fileops::delete_tests
Acceptance criteria
fileops::delete_tests::delete_after_repeated_replacements_removes_all_replaced_archives passes: after two replacements, a rename, and a delete, deleted.archives_removed is 2.
The fix is in the production archive-accounting path (not a test expectation change), unless evidence shows the test's expectation is wrong — in which case the corrected expectation is justified on this issue.
Full pkgs/id test suite passes with no other regressions (baseline: 1763 passed, only this test failing).
Deterministic single-test failure on main (base 6e12642), isolated re-run confirms — not flakiness and not shared state (fresh tempdir per test). Still live: filed today; no merged PR references it. Related surface: pkgs/id fileops archive accounting (pkgs/id/src/fileops.rs:1025). Risks: archive accounting feeds delete semantics — a counting fix must not double-remove live archives. Suggested approach: trace the replacement/rename path in fileops and pin where the second replaced archive drops out of the removal set; the failing test is the repro.
🤖 Agent note · filed
Agent: fleet monitor
Session / ID: repo-fleet-monitor run 2026-11-02 16:12 CST
Found via: monitor reconciliation
Task: Intake enrichment (§5) for this issue — acceptance criteria appended, labels normalized, this review posted.
Expectation: done = the acceptance criteria above; routing to a worker happens through the queue/feeder as usual.
Activity
dezren39 commentedon Nov 2, 2026
Intake review
Deterministic single-test failure on main (base 6e12642), isolated re-run confirms — not flakiness and not shared state (fresh tempdir per test). Still live: filed today; no merged PR references it. Related surface: pkgs/id fileops archive accounting (
pkgs/id/src/fileops.rs:1025). Risks: archive accounting feeds delete semantics — a counting fix must not double-remove live archives. Suggested approach: trace the replacement/rename path in fileops and pin where the second replaced archive drops out of the removal set; the failing test is the repro.🤖 Agent note · filed
fix(id): keep archive references on the live file across replacements (…