diff options
| author | aur-build <aur-build@localhost> | 2026-11-22 10:51:45 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-22 10:51:45 +0000 |
| commit | 053dfbca8a4955a616e9b2c0f5a5d664c0db7aef (patch) | |
| tree | 969777fa32845f49723c52b1889c4870c98134cf /src/db/builds | |
| parent | 1e1e12e7220a3fd288782ae40f0823db32acf6cb (diff) | |
| download | aur-build-053dfbca8a4955a616e9b2c0f5a5d664c0db7aef.tar.gz aur-build-053dfbca8a4955a616e9b2c0f5a5d664c0db7aef.zip | |
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.
Diffstat (limited to 'src/db/builds')
| -rw-r--r-- | src/db/builds/mod.rs | 11 |
1 files changed, 2 insertions, 9 deletions
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<Vec<String>> { }) } -/// 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<bool> { let (owner, id) = (owner.to_string(), id.to_string()); @@ -267,8 +262,6 @@ pub fn cancel_requested(db: &Db, id: &str) -> Result<bool> { }) } -// The step machine is its own concern: same build, one row per step, its own -// legal moves. mod steps; pub use steps::{ |
