Ratchet supervise coverage to >=90% (ADR 0004) #300
Reference in New Issue
Block a user
Delete Branch "ratchet-supervise-90"
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?
Stacked on #299 (base =
ratchet-manifest-90). Sixth per-module ratchet under ADR 0004.Summary
Covers the supervise queue/audit error + fallback branches:
bot_bottle_root,queue_dir_for_slug,_id_from_proposal_filenamenon-match)read_proposal/read_responsereject non-object JSONlist_pending_proposalsskips unreadable / non-dict / incomplete proposals and ones with a response already presentwait_for_responsetolerates a malformed or incomplete response file and times out at the deadlineread_audit_entriesreturns[]for a missing log and skips blank / non-JSON / non-dict / missing-field linesfcntlflock helpers swallowOSErroron a bad fdCoverage
supervise.pyThe one remaining line is an unreachable
continue(the glob already guarantees the.proposal.jsonsuffix). 12 new tests; full suite (1490) passes; pyright clean; pylint 9.62.View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.