strip-owner judges a release's delivery by its latest attempt (AGT-89) #13

Merged
merge-queue merged 2 commits from latest-delivery-attempt into main 2026-11-30 08:31:50 -08:00
Owner

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.

  • Attempt 1 of its deliver job (7:52 AM) failed on all four PCs: at-update refused a release without owner-guard.exe. Each PC's at-update also reported the failure on the activity topic, and strip-owner correctly sent Install failed.
  • The job was rerun. Attempt 2 began at 8:16:12 AM and installed the release on all four PCs by 8:16:22.
  • While attempt 2 ran, the job was no longer over, so strip-owner skipped its log for failures. It still held each PC's activity-topic failure from attempt 1. So it sent Install failed again: at 8:16:15 for all four PCs, and at 8:16:17 for nelsonlaptop and treadmill. Release complete followed at 8:16:22.

Removed: nothing.

Added:

  • pcwords.go: the release run's delivery job now carries since, the time its latest attempt began. That time is the job's first step start, read through Forge.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 cases since is notBegun, so no earlier failure counts. A PC failure heard before since is 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, because deliveryRun already picks that run.
  • deliver.go: Job(repo, id) is added to the Forge interface. forgejo.Client already has it, and strip-owner's eventForge embeds the client.
  • Tests built from the real logs, kept in testdata/:
    • TestADeliveryIsJudgedByItsLatestAttempt uses 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.
    • TestALatestAttemptsOwnFailureIsTold checks that a failure printed by the latest attempt is still sent as Install failed.
    • TestAFirstReleaseEveryPCRefusedIsNotComplete uses 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.

Work package: [AGT-89](https://openproject.home.romaine.life/wp/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](https://forgejo.romaine.life/romaine-life/at-home-tools/actions/runs/4384). - Attempt 1 of its deliver job (7:52 AM) failed on all four PCs: at-update refused a release without owner-guard.exe. Each PC's at-update also reported the failure on the activity topic, and strip-owner correctly sent Install failed. - The job was rerun. Attempt 2 began at 8:16:12 AM and installed the release on all four PCs by 8:16:22. - While attempt 2 ran, the job was no longer over, so strip-owner skipped its log for failures. It still held each PC's activity-topic failure from attempt 1. So it sent Install failed again: at 8:16:15 for all four PCs, and at 8:16:17 for nelsonlaptop and treadmill. Release complete followed at 8:16:22. **Removed:** nothing. **Added:** - `pcwords.go`: the release run's delivery job now carries `since`, the time its latest attempt began. That time is the job's first step start, read through `Forge.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 cases `since` is `notBegun`, so no earlier failure counts. A PC failure heard before `since` is 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, because `deliveryRun` already picks that run. - `deliver.go`: `Job(repo, id)` is added to the `Forge` interface. `forgejo.Client` already has it, and strip-owner's `eventForge` embeds the client. - Tests built from the real logs, kept in `testdata/`: - `TestADeliveryIsJudgedByItsLatestAttempt` uses 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. - `TestALatestAttemptsOwnFailureIsTold` checks that a failure printed by the latest attempt is still sent as Install failed. - `TestAFirstReleaseEveryPCRefusedIsNotComplete` uses the real deliver lines of owner-guard v0.1.0 ([run 9](https://forgejo.romaine.life/romaine-life/owner-guard/actions/runs/9)) and claude-transcripts v0.1.0 ([run 4](https://forgejo.romaine.life/romaine-life/claude-transcripts/actions/runs/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.
strip-owner judges a release's delivery by its latest attempt: a failure heard before that attempt began is of an earlier one (AGT-89)
Some checks failed
Suite go / check-test-linux (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / check-package (pull_request) Has been skipped
Suite release / finalize (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite go / check-test-windows (pull_request) Failing after 39s
merge-queue CI failed: Suite go / check-test-windows (pull_request)
Suite go / reused-checks (pull_request) Successful in 4s
Suite default / scope (pull_request) Successful in 7s
Suite go / scope (pull_request) Successful in 7s
Suite release / scope (pull_request) Successful in 8s
Suite default / check-fetches (pull_request) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite release / deliver-prune (pull_request) Has been skipped
Suite default / check-rules (pull_request) Successful in 5s
Suite go / check-format (pull_request) Successful in 6s
Suite release / check-manifest (pull_request) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 5s
Suite release / reused-checks (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite default / reused-checks (pull_request) Successful in 4s
9df345e85f
Collaborator

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 the queue label is removed and added again: the queue merges main in and CI runs on the new head.

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 the `queue` label is removed and added again: the queue merges main in and CI runs on the new head.
The deliver-job fixtures read the same from a Windows checkout's CRLF files (AGT-89)
All checks were successful
Suite default / scope (pull_request) Successful in 4s
Suite go / scope (pull_request) Successful in 4s
Suite release / scope (pull_request) Successful in 4s
Suite default / check-fetches (pull_request) Has been skipped
Suite go / check-test-linux (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / reserve (pull_request) Has been skipped
Suite release / check-manifest (pull_request) Has been skipped
Suite release / check-build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite release / check-package (pull_request) Has been skipped
Suite release / deliver-prune (pull_request) Has been skipped
Suite release / build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
Suite default / check-logs (pull_request) Successful in 5s
Suite release / finalize (pull_request) Has been skipped
Suite release / reused-checks (pull_request) Has been skipped
Suite release / publish (pull_request) Has been skipped
Suite release / deliver (pull_request) Has been skipped
Suite release / deploy-image (pull_request) Has been skipped
Suite default / reused-checks (pull_request) Successful in 6s
Suite default / check-rules (pull_request) Successful in 5s
Suite go / check-format (pull_request) Successful in 6s
merge-queue landed on main
Suite go / check-test-windows (pull_request) Successful in 37s
Suite go / reused-checks (pull_request) Successful in 3s
54072b607e
merge-queue deleted branch latest-delivery-attempt 2026-11-30 08:31:50 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
romaine-life/pr!13
No description provided.