From 053dfbca8a4955a616e9b2c0f5a5d664c0db7aef Mon Sep 17 00:00:00 2001 From: aur-build Date: Sun, 22 Nov 2026 10:51:45 +0000 Subject: src,tests: retire the census commentary from the source A gated item used to carry its own defence: why it is `pub` only under `test-support`, which census once mistook a filename for a caller, why a wrapper is compiled out rather than deleted. The budget file already holds those claims and the ratchet already checks them, so the source keeps the one line that says what the item is. The module headers stop narrating the refactor that produced them. What survives is the wire protocol, the git pipe, the poisoned lock that must be recovered rather than unwedged. --- src/db/builds/mod.rs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/db/builds') diff --git a/src/db/builds/mod.rs b/src/db/builds/mod.rs index e31543e..50aee63 100644 --- a/src/db/builds/mod.rs +++ b/src/db/builds/mod.rs @@ -119,13 +119,8 @@ pub fn queued(db: &Db, limit: i64) -> Result> { }) } -/// Lease one named build to a worker. -/// -/// Test-tier only. Production leases a *batch* — `claim_batch` is what the -/// dispatcher runs — and nothing in the crate calls this single-build form. -/// It stays because three test files lease one build at a time on purpose, -/// and a test that wants to reason about one lease should not have to -/// arrange for the batch form to hand back exactly one. +/// Lease one named build to a worker. Production leases batches through +/// `claim_batch`. #[cfg(feature = "test-support")] pub fn claim(db: &Db, owner: &str, id: &str, lease_secs: i64) -> Result { let (owner, id) = (owner.to_string(), id.to_string()); @@ -267,8 +262,6 @@ pub fn cancel_requested(db: &Db, id: &str) -> Result { }) } -// The step machine is its own concern: same build, one row per step, its own -// legal moves. mod steps; pub use steps::{ -- cgit v1.2.3