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
test_autonomous_log_retention_487.py's fast-path test has no positive evidence the fast path actually ran #951
filed-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-storagewhere memory lives — external storage mode, git backup/restore, data files, memory dirpriority:lowReal, but neither blocking nor compounding fast
From self-review on #933 (fast-path/fallback retention boundary fix), re-checked against current HEAD while curating trap.d/ (2026-10-07) -- still true.
tests/test_autonomous_log_retention_487.py::TestHousekeepingSweepFallbackAndEdgeCases::test_must_not_fire_fast_path_keeps_a_log_between_n_and_n_plus_one_days names itself as exercising the fast path specifically, but nothing in the test confirms _remember_auto_ref was actually built by mktemp/touch -d on the runner it executes on -- there is no filesystem-evidence or captured-output check proving the fast path, rather than the fallback, ran. The sibling fallback test two functions below (added for #933, lines ~1041-1068) does exercise this by overriding mktemp via a broken_bin PATH prefix that forces failure -- but the fast-path test itself has no equivalent positive check.
mktemp failing is swallowed silently (|| _remember_auto_ref="", scripts/save-session.sh, no warning logged), so if it ever failed on some CI runner, this test would silently re-run as a duplicate of its sibling fallback test, and a green run would not reveal that the fast path itself was never exercised.
Not unique to this one test: every pre-existing (#914-era) fast-path test in this file follows the identical convention of relying on the real environment's mktemp succeeding, with no positive check that it did.
What would settle it: an assertion (or a captured marker written by the extracted housekeeping block itself) proving _remember_auto_ref was non-empty / the reference file existed during the specific test run, for every fast-path test in this file, not just a single one -- worth doing as a class across the file rather than a one-off patch.
Original fragment: trap.d/933.fast-path-test-does-not-confirm-fast-path-ran.md (deleted by this same curate pass).
filed-by-loopFiled by the maintainer loop, not by a human. Sets the author axis in dispatch_rank.lane-storagewhere memory lives — external storage mode, git backup/restore, data files, memory dirpriority:lowReal, but neither blocking nor compounding fast
Activity
curate: promote 2 rules, decline 11 fragments (5 new issues, 3 alread…
fix(#951): forward-slash the mktemp-shim's own paths for windows-latest
fix(#951): write every shell shim via newline="\n", never Path.write_…
fix(#951): build PATH for the Windows subprocess inside the script, n…
fix(#951): self-review follow-up -- quote the injected PATH, handle e…
trap: log #951 investigation -- PR #960's separate macOS reconcile-90…
fix(#952,#953): close three reconcile regressions, 3-state rebase che…
curate: promote 1 rule, decline 10 fragments (5 new issues, 1 stale) (#…
fix(Digital-Process-Tools#951): fast-path tests now carry positive mk…