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 the Redaction Tool's Uncommitted-History and Restore-First Refusals #373
Two refusals in scripts/redact-media.py have no test, so a regression in either passes the whole suite. Both predate #371, whose local review found them.
The history check's read of the on-disk manifest.recorded_results() collects result hashes from the manifest on disk as well as from every committed revision. The on-disk read is what refuses a file carrying fills from a round that was recorded but never committed. A mutation that drops that read passes every test, since the only history test commits each round first.
The "restore its original first" refusal. An entry whose declared digest is missing or stale, with its file still at its recorded result, is refused before anything is redacted. The documented re-record path reaches it when the declared digest is deleted before the original is restored. No test asserts the refusal or that it leaves the manifest and the file unchanged.
Done looks like a test for each that fails when its refusal is removed.
Activity