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/review/intake.rs | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) (limited to 'src/review/intake.rs') diff --git a/src/review/intake.rs b/src/review/intake.rs index 78e4eb6..48620aa 100644 --- a/src/review/intake.rs +++ b/src/review/intake.rs @@ -1,14 +1,5 @@ -//! Turning a detected change into a scored candidate is one operation. -//! -//! The watcher used to perform review's write protocol itself: look up the -//! accepted release, upsert the candidate, assess the risk, store the risk, -//! work out the missing dependencies, store those. Six calls that only make -//! sense in that order, issued by a module that has no business knowing the -//! order — and if it got the order wrong, or skipped the scoring because it was -//! in a hurry, nothing would have complained. -//! -//! `record` is the protocol. The watcher calls it once with what it observed, -//! and review decides what a candidate means. +//! Turning a detected change into a scored candidate is one operation: +//! `record`, so the watcher never has to know the order of review's writes. use crate::config::Config; use crate::db::{ @@ -20,9 +11,8 @@ use crate::error::Result; use crate::review::candidates::{self, NewCandidate, Upsert}; use crate::review::risk; -/// Record a detected change as a candidate, scored. Returns what the upsert -/// decided so the caller can report it; a change that collapsed or was already -/// rejected is recorded as such and scored only when a candidate row exists. +/// Record a detected change as a candidate, scored. A change that collapsed or +/// was already rejected is recorded as such and scored only if a row exists. pub fn record( db: &Db, cfg: &Config, @@ -47,9 +37,8 @@ pub fn record( Ok(up) } -/// Dependencies this recipe needs that we build ourselves but have not -/// published yet — the reason a build would fail on a missing dep, said before -/// it runs. +/// Dependencies we build ourselves but have not published yet, so a build that +/// would fail on one says so before it runs. fn missing_deps(db: &Db, pb: &Pkgbase, recipe: &Recipe) -> Vec { let Ok(ours) = db::our_package_names(db) else { return Vec::new() }; let mut out = Vec::new(); -- cgit v1.2.3