diff options
| author | aur-build <aur-build@localhost> | 2026-11-23 13:44:20 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-23 13:44:20 +0000 |
| commit | 4c143e969dcd7b6a18e5a86f9a754c9b62979ccf (patch) | |
| tree | c61c2274e3810669cef8319cf9980cbbe031f840 /src/usecase/builds.rs | |
| parent | 053dfbca8a4955a616e9b2c0f5a5d664c0db7aef (diff) | |
| download | aur-build-4c143e969dcd7b6a18e5a86f9a754c9b62979ccf.tar.gz aur-build-4c143e969dcd7b6a18e5a86f9a754c9b62979ccf.zip | |
usecase,http,pipeline,ops: keep the contract, drop the argument
A workflow's doc now says what it guarantees and stops defending its
existence: `subscribe` resolves the repo row, `approve` queues what the
approval buys, a per-item failure comes back as a value instead of a
panic. The history of which front end used to open-code it is gone.
The last census-war notes go with it — three places that explained why a
name in a test string was not a caller.
Diffstat (limited to 'src/usecase/builds.rs')
| -rw-r--r-- | src/usecase/builds.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/usecase/builds.rs b/src/usecase/builds.rs index 265e6cb..152959f 100644 --- a/src/usecase/builds.rs +++ b/src/usecase/builds.rs @@ -22,11 +22,7 @@ pub fn cancel(db: &Db, build_id: &str) -> Result<()> { builds::request_cancel(db, build_id) } -/// Retry a failed build, and record that someone asked. -/// -/// The audit row is part of the workflow rather than the caller's homework: a -/// retry changes what a build means, and a retry nobody asked for is exactly -/// what the audit trail is there to rule out. +/// Retry a failed build, and audit that someone asked. pub fn retry(db: &Db, actor: &str, build_id: &str) -> Result<()> { builds::retry(db, build_id)?; db::audit(&db.writer, actor, actor, "build.retry", "build", build_id, serde_json::json!({})) |
