strip-owner judges a release's delivery by its latest attempt (AGT-89) #13
Loading…
Reference in a new issue
No description provided.
Delete branch "latest-delivery-attempt"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Work package: AGT-89
strip-owner judges a release's install by its delivery job's latest attempt. A PC failure heard before that attempt began came from an earlier attempt, so it no longer counts.
What went wrong. at-home-tools v1.0.592 went out in run 4384.
Removed: nothing.
Added:
pcwords.go: the release run's delivery job now carriessince, the time its latest attempt began. That time is the job's first step start, read throughForge.Job; Forgejo returns the steps of the job's current task. A job that is waiting or blocked, or running with no step started, has not begun its attempt yet. A rerun sets Forgejo's task to 0 and clears the steps until a runner picks the job up. In those casessinceisnotBegun, so no earlier failure counts. A PC failure heard beforesinceis cleared, and the latest attempt then decides that PC: its lines while it runs, and its result once it ends. The same applies when the latest attempt is a newer run at the tag's commit, becausedeliveryRunalready picks that run.deliver.go:Job(repo, id)is added to theForgeinterface.forgejo.Clientalready has it, and strip-owner'seventForgeembeds the client.testdata/:TestADeliveryIsJudgedByItsLatestAttemptuses run 4384's two attempts. It runs once for a rerun of the job and once for a newer run at the tag. Attempt 1's failure is still sent as Install failed. Nothing is sent while the next attempt waits, at 8:16:15, or at 8:16:17. At 8:16:23 the release is complete, with every PC on v1.0.592. On main this test fails: strip-owner sends attempt 1's Install failed for all four PCs while attempt 2 waits.TestALatestAttemptsOwnFailureIsToldchecks that a failure printed by the latest attempt is still sent as Install failed.TestAFirstReleaseEveryPCRefusedIsNotCompleteuses the real deliver lines of owner-guard v0.1.0 (run 9) and claude-transcripts v0.1.0 (run 4). On 2026-11-29, a strip-owner build from before agent-tools PR 244 told both as Release complete. With this test each is Install failed, naming every PC's at-app.json refusal, and the delivery stays open. This case is already covered on main by PR 244's logic; the test pins it to the real runs.Left alone: strip-owner already kept a delivery open after Install failed and looked at it again, and that still sends Release complete once the latest attempt delivers. A PC's failure heard after the latest attempt began still counts as soon as it is heard. PC reports of an install, a PC that is checked out, and the reading of each PC's lines (AGT-81, AGT-84) are unchanged.
merge-queue stopped this at
9df345e: CI failed: Suite go / check-test-windows (pull_request). Push a fix. A failure fixed on main lands once thequeuelabel is removed and added again: the queue merges main in and CI runs on the new head.