summaryrefslogtreecommitdiffstats
path: root/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-18 08:47:27 +0000
committeraur-build <aur-build@localhost>2026-11-18 08:47:27 +0000
commit2c5a660213ae5f9f6f12d9787c5195e2c2127e6d (patch)
tree602453277de22abf2dabc2501f2f69f2afea6e0e /.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md
parente27e90aa82b6c878e34b94a6fa238836f497b1c3 (diff)
downloadaur-build-2c5a660213ae5f9f6f12d9787c5195e2c2127e6d.tar.gz
aur-build-2c5a660213ae5f9f6f12d9787c5195e2c2127e6d.zip
pipeline: a real process kill, and the failure state the UI must show (§8.4, I5)
The crash-resume invariant was only ever simulated before: an in-process fault hook returns an error, and an error can be caught, unwound and cleaned up by accident. So the shims gained AUR_SHIM_KILL_PARENT — the named tool SIGKILLs the process running the pipeline, mid-step, with no Drop and no atexit. The test spawns the real aur-build binary, watches it die of SIGKILL inside the build step, and then asserts the things that matter: - the database is intact, because no transaction ever spans a build step - the completed steps are checkpointed succeeded and the running one is recorded running - after the lease expires the reaper requeues it and marks the step interrupted - resuming publishes exactly one release, and the shim invocation log proves mkarchroot ran once, makechrootpkg twice (crash + resume, not twice per attempt) and repo-add once **This found a real bug.** reap_expired only matched state='leased', but a worker sets state='running' the moment it starts a step, so a process that dies mid-step leaves a running row — and every real crash would have been stranded forever. The reaper now reaps leased and running. Also §8.4's other half, which was a comment rather than a feature: a failed build must not leave the old version looking healthy. db::approved_but_unbuilt finds approvals whose build failed and never published, and Attention and the package page now say 'v2 approved, build failed, index still serving v1' with a link to the log. Retrying is an explicit, audited POST, not something the system does to itself. Cancellation is asserted to be cooperative at a step boundary: a cancelled build runs no steps, publishes nothing, and is not counted as a failure.
Diffstat (limited to '.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md')
-rw-r--r--.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md20
1 files changed, 11 insertions, 9 deletions
diff --git a/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md b/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md
index 4a64017..5fd5398 100644
--- a/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md
+++ b/.pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md
@@ -5,14 +5,14 @@
"status": "active",
"autoContinue": true,
"usage": {
- "tokensUsed": 5396378,
- "activeSeconds": 10692
+ "tokensUsed": 5706771,
+ "activeSeconds": 11328
},
"sisyphus": false,
"createdAt": "2026-11-17T20:43:24.440Z",
- "updatedAt": "2026-11-18T08:36:29.628Z",
+ "updatedAt": "2026-11-18T08:47:18.474Z",
"activePath": ".pi/goals/active_goal_2026111720432444_mwl5tehk-xhe7fk.md",
- "revision": 573,
+ "revision": 602,
"scheduler": {
"version": 1,
"owner": "01a1eb32-2e3f-757c-a79a-21ac993facc5",
@@ -179,8 +179,10 @@
{
"id": "task-p3-dispatch",
"title": "Dispatcher actor, worker pool, leases, and reaper",
- "status": "pending",
- "verificationContract": "Dispatcher claims with BEGIN IMMEDIATE + lease expiry, requeues expired leases on startup, marks in-flight steps interrupted; the deterministic build id makes re-enqueue an INSERT OR IGNORE no-op; backpressure respects max_concurrent_builds and disk headroom."
+ "status": "complete",
+ "verificationContract": "Dispatcher claims with BEGIN IMMEDIATE + lease expiry, requeues expired leases on startup, marks in-flight steps interrupted; the deterministic build id makes re-enqueue an INSERT OR IGNORE no-op; backpressure respects max_concurrent_builds and disk headroom.",
+ "completedAt": "2026-11-18T08:36:46.877Z",
+ "evidence": "src/pipeline/dispatch.rs + tests/dispatch.rs (9 tests): claim_batch runs SELECT+UPDATE in one BEGIN IMMEDIATE tx (db.writer.tx uses TransactionBehavior::Immediate); an_expired_lease_is_requeued_and_it"
},
{
"id": "task-p3-crash",
@@ -237,7 +239,7 @@
"blockCompletion": true,
"proposedAt": "2026-11-17T20:39:23.165Z"
},
- "currentTaskId": "task-p3-dispatch"
+ "currentTaskId": "task-p3-crash"
}
# Goal Prompt
@@ -270,8 +272,8 @@ IF BLOCKED: stop and ask the user (e.g. no network for crates, toolchain uninsta
- Status: running
- Auto-continue: on
- Sisyphus mode: no
-- Time spent: 2h58m12s
-- Tokens used: 5.4M (5,396,378) tokens
+- Time spent: 3h08m48s
+- Tokens used: 5.7M (5,706,771) tokens
## Tasks
<!-- blockCompletion: true -->