Make audit-log tests hermetic (temp HOME) #302
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
From quality-eval (medium priority; the item holding Testability at 4).
Tests exercising
write_audit_entry/read_audit_entries/audit_log_pathintests/unit/test_supervise.pywrite to the real~/.bot-bottleand take aflock. A fullcoverage runhangs at 0% CPU when a live bottle's supervise sidecar holds that lock (observed). Non-hermetic / non-deterministic.Task: Pin
HOMEto atempfile.TemporaryDirectory()(setUp / patch.dict) for those tests so they never touch the real home dir or block on an unrelated lock.No PRD required (test fix).