Pin LIVE_PARTS_SQL expiry clause and harden audit integration suite (#88) #39
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
backmeupplz/jev_antispam_bot!39
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/88-live-parts-expiry-tests"
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?
Agentboard #88 (follow-up from #84 / PR #36 review nits).
Changes
maintain()must keep (anintentand asendingreport whose leases outliveexpires_at) hold 3 unsent parts, yetLIVE_PARTS_SQLcounts 0 and capacity 2 admits two new intents and then refuses a third. Removingo.expires_at>statement_timestamp()fails this test (and only this test).beforeEach, so a timed-out test (whosefinallynever runs) cannot leave a running worker or open transaction behind.initialize(), so a straggler can't deadlock the reset and rows from an aborted run can't push index creation past the 1s statement timeout. Test pools uselock_timeout10s so a lock wait fails instead of hanging.summary()now includesretained(total retained reports); the index logs a content-freedeletion_audit_retention_highwarning on each health tick while it exceedsRETAINED_REPORTS_ALERT= 100,000 (the tested scale).Verification (local, Postgres 14, host load 37–58)
bun run typecheckclean;bun run checkwith both test DBs: 519 pass / 0 fail.beforeEachcleanup disabled, 16 following tests fail.Review
Independent Opus review at
42ed722found 2 should-fix issues plus 1 nit, all fixed in8af8907:beforeEachnow has an explicit 60s budget (Bun's 5s hook default could cut cleanup short);deletion_audit_outboxon a 004-only schema, so 005 can't copy leftover rows;Re-review at
8af8907: CLEAN. CI is green at8af8907.