From 4ac1d19ca5dc540db0478943a0cd70a5353307da Mon Sep 17 00:00:00 2001 From: aur-build Date: Tue, 17 Nov 2026 21:57:58 +0000 Subject: pipeline: ten-step build machine with atomic signed publish materialize -> plan -> chroot -> sources -> pkgver -> build -> collect -> verify -> ingest -> publish, each checkpointed in build_step so a worker that dies resumes at the next incomplete step without repeating the expensive one (I5). Step 0 materializes from the local mirror only and re-hashes the tree: there is no path from 'AUR moved since the review' to 'we built it anyway' (I3). Step 4 re-resolves a VCS pkgver and refuses when it no longer matches the approved identity. Publish renders the index to .tmp, fsyncs, commits release + package rows and the accepted pointer under a compare-and-swap, then renames over the served database and signs it, so a crash leaves the old index byte-for-byte intact (I4) and every index entry traces back to an approval (I1). Ingest records the world snapshot as the BUILDINFO installed set intersected with our own packages, which is what keeps staleness meaningful (I12). 17 shim-driven end-to-end tests, including kill-mid-publish and crash-resume, with no root, network, or real chroot. --- src/review/approve.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/review/approve.rs') diff --git a/src/review/approve.rs b/src/review/approve.rs index b62adec..0fdf2b2 100644 --- a/src/review/approve.rs +++ b/src/review/approve.rs @@ -72,7 +72,7 @@ pub fn approve( let row: Option = tx .query_row( "SELECT c.id, c.state, c.identity_hash, c.base_release_id, p.current_accepted_release_id, - c.risk_level, b.name + c.risk_level, p.name FROM candidate c JOIN pkgbase p ON p.id = c.pkgbase_id WHERE c.id = ?1", rusqlite::params![candidate_id], -- cgit v1.2.3