strip-owner follows a landing's batched delivery (MQ-11) #25

Merged
merge-queue merged 1 commit from mq-11-batch-follow into main 2026-12-01 05:08:56 -08:00
Owner

Work package: https://openproject.home.romaine.life/wp/MQ-11 (design section "strip-owner": "strip-owner reads the delivery run from the status").

strip-owner learns to follow a delivery that merge-queue's landing batch carries out, instead of the release run's own deliver job. It changes nothing for a release whose commit has no merge-queue / delivery status.

Added

  • deliveryRun (pcwords.go): when none of the release's own runs has a non-skipped deliver job, it reads the release commit's merge-queue / delivery status (batchDelivery):
    • pending and linking no batch run, or linking a run whose deliver job Forgejo doesn't list yet: the install step waits. No PC counts as failed or delivered.
    • linking pipeline-templates' deliver.yml run: that run's deliver job is followed exactly as a release run's own (latest attempt start, per-PC words, end and pass), with its log read from pipeline-templates.
    • ended (success/failure) with no job to read: that ends the step as the status says. Ended without linking a run: today's path (the release delivers itself).
  • deliveryWords reads at-update's per-release answer lines from a multi-release request (<owner/repo> <tag>: ok / : failed: <why>, at-update#103) for the target's own repo. An ok counts as installed, even while the job runs. A failed: counts as that PC's failure for that app only, ahead of the PC's SSH exit / first error: line, which another app of the batch can cause.
  • draftRelease: a complete draft whose runs all passed and whose delivery status failed (Forgejo refused the batch run, or the run failed before publishing it) is told as Release unpublished, with a batch row linking what the status links, merge-queue's description, and the batch run's log command. While the status is pending, the draft waits, as any pending status already made it do.
  • Notices name the batch by the landing in anvil's description (delivered with <landing>'s batch, delivering with …, <landing>'s batch delivery ended …, not delivered: <landing>'s batch didn't start …). Install failed for a batch names pipeline-templates run N, job deliver, <landing>'s batch, and its rerun row says the rerun asks each PC for the whole batch again.
  • README: one sentence on batched delivery under strip-owner.

Changed

  • runNumber (forgejo.go) returns 0 for the merge-queue / delivery context. Its link is pipeline-templates' run, never a run of the commit's repo. Without this, commitRuns fetched the app repo's run with the same number, so an unrelated old run's deliver job could be followed (a test reproduces it: every PC "SSH exit 1", "run 900" linked under the app's repo). The same applied to failedRuns, laterRuns and pull-request times.
  • deliveryRun records which repo its run is in. installFailed builds the run's page from that, so it names pipeline-templates for a batch.

Left alone

  • Every path with no delivery status. The 4 untouched test files and all existing tests in deliver_test.go and releaserun_test.go pass unchanged. The only edits to existing tests are the new repo argument on two deliveryWords calls and a repo-aware Run in the fake forge, which returns the same actionRuns for every repo but pipeline-templates.
  • Wording of today's PC failures ("the release run's delivery was cancelled…", "the release run's at-update failed without saying why…").
  • strip-protocol's Target and the strip's step words: a batch held at the release step still reads as the take-up/release step, and at the install step as "installing on ".

Not done (needs another repo)

  • "waiting for 's batch (k of n released)": anvil's status description carries only the landing, not k of n. A wait is never a notice (AGT-83), and the strip's step words live in strip-protocol, so showing it needs strip-protocol to carry it (and anvil to write k of n).
  • strip-owner looks at a delivery on events from that delivery's own repos. An event from pipeline-templates' deliver.yml run doesn't trigger a look of the app deliveries, so between app-repo events the batch is caught up by the late timer or the PCs' activity reports.

Tests (batch_test.go): a two-app batch, from held drafts through dispatch to a failed run where upstairspc failed beta and took alpha. Alpha is delivered. Beta's Install failed names upstairspc alone, with its own reason and the batch run. Also tested: the held states at the install step and a status-only success; refused and failed batches leaving a draft; per-release answer parsing; the status never read as the commit's run. Each new piece was reverted in turn, and its test failed.

🤖 Generated with Claude Code

Work package: https://openproject.home.romaine.life/wp/MQ-11 (design section "strip-owner": "strip-owner reads the delivery run from the status"). strip-owner learns to follow a delivery that merge-queue's landing batch carries out, instead of the release run's own `deliver` job. It changes nothing for a release whose commit has no `merge-queue / delivery` status. **Added** - `deliveryRun` (pcwords.go): when none of the release's own runs has a non-skipped `deliver` job, it reads the release commit's `merge-queue / delivery` status (`batchDelivery`): - pending and linking no batch run, or linking a run whose `deliver` job Forgejo doesn't list yet: the install step waits. No PC counts as failed or delivered. - linking pipeline-templates' `deliver.yml` run: that run's `deliver` job is followed exactly as a release run's own (latest attempt start, per-PC words, end and pass), with its log read from pipeline-templates. - ended (success/failure) with no job to read: that ends the step as the status says. Ended without linking a run: today's path (the release delivers itself). - `deliveryWords` reads at-update's per-release answer lines from a multi-release request (`<owner/repo> <tag>: ok` / `: failed: <why>`, at-update#103) for the target's own repo. An `ok` counts as installed, even while the job runs. A `failed:` counts as that PC's failure for that app only, ahead of the PC's `SSH exit` / first `error:` line, which another app of the batch can cause. - `draftRelease`: a complete draft whose runs all passed and whose delivery status failed (Forgejo refused the batch run, or the run failed before publishing it) is told as **Release unpublished**, with a `batch` row linking what the status links, merge-queue's description, and the batch run's log command. While the status is pending, the draft waits, as any pending status already made it do. - Notices name the batch by the landing in anvil's description (`delivered with <landing>'s batch`, `delivering with …`, `<landing>'s batch delivery ended …`, `not delivered: <landing>'s batch didn't start …`). **Install failed** for a batch names `pipeline-templates run N, job deliver, <landing>'s batch`, and its rerun row says the rerun asks each PC for the whole batch again. - README: one sentence on batched delivery under strip-owner. **Changed** - `runNumber` (forgejo.go) returns 0 for the `merge-queue / delivery` context. Its link is pipeline-templates' run, never a run of the commit's repo. Without this, `commitRuns` fetched the app repo's run with the same number, so an unrelated old run's `deliver` job could be followed (a test reproduces it: every PC "SSH exit 1", "run 900" linked under the app's repo). The same applied to `failedRuns`, `laterRuns` and `pull-request times`. - `deliveryRun` records which repo its run is in. `installFailed` builds the run's page from that, so it names pipeline-templates for a batch. **Left alone** - Every path with no delivery status. The 4 untouched test files and all existing tests in deliver_test.go and releaserun_test.go pass unchanged. The only edits to existing tests are the new `repo` argument on two `deliveryWords` calls and a repo-aware `Run` in the fake forge, which returns the same `actionRuns` for every repo but pipeline-templates. - Wording of today's PC failures ("the release run's delivery was cancelled…", "the release run's at-update failed without saying why…"). - strip-protocol's `Target` and the strip's step words: a batch held at the release step still reads as the take-up/release step, and at the install step as "installing <tool> <tag> on <PCs>". **Not done (needs another repo)** - "waiting for <landing>'s batch (k of n released)": anvil's status description carries only the landing, not k of n. A wait is never a notice (AGT-83), and the strip's step words live in strip-protocol, so showing it needs strip-protocol to carry it (and anvil to write k of n). - strip-owner looks at a delivery on events from that delivery's own repos. An event from pipeline-templates' `deliver.yml` run doesn't trigger a look of the app deliveries, so between app-repo events the batch is caught up by the late timer or the PCs' activity reports. Tests (batch_test.go): a two-app batch, from held drafts through dispatch to a failed run where upstairspc failed beta and took alpha. Alpha is delivered. Beta's **Install failed** names upstairspc alone, with its own reason and the batch run. Also tested: the held states at the install step and a status-only success; refused and failed batches leaving a draft; per-release answer parsing; the status never read as the commit's run. Each new piece was reverted in turn, and its test failed. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
strip-owner follows a landing's batched delivery (MQ-11)
All checks were successful
Suite release / scope (pull_request) Successful in 6s
Suite default / check-rules (pull_request) Successful in 5s
Suite default / reused-checks (pull_request) Successful in 4s
Suite go / reused-checks (pull_request) Successful in 4s
merge-queue / group passed with the 6 modules that use it [k:d77122f9]
Suite go / scope (pull_request) Successful in 6s
Suite release / check-manifest (pull_request) Has been skipped
Suite release / module (pull_request) Has been skipped
Suite release / reserve (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 / build (none, ubuntu-latest) (ubuntu-latest, none) (pull_request) Has been skipped
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 go / check-test-linux (pull_request) Has been skipped
Suite go / check-services (pull_request) Has been skipped
Suite default / check-fetches (pull_request) Has been skipped
Suite release / deliver-prune (pull_request) Has been skipped
Suite go / check-format (pull_request) Successful in 6s
Suite default / scope (pull_request) Successful in 6s
Suite default / check-logs (pull_request) Successful in 5s
merge-queue / group release built the releases of the 6 repositories its landing bumps before it lands [p:87ecf05d91e28adac5729852]
Suite go / check-test-windows (pull_request) Successful in 37s
merge-queue landed on main
29434eacc5
A release whose own run skipped its deliver job is followed through merge-queue's
`merge-queue / delivery` status on its commit: a complete draft waits while it is
pending; the install step follows the pipeline-templates deliver.yml run it links,
reading each PC's per-release answer so one app's failure on a PC isn't read as
another's; a failed status leaving the draft unpublished is told. The status's link,
pipeline-templates' run, is never read as a run of the commit's own repo.
merge-queue deleted branch mq-11-batch-follow 2026-12-01 05:08:56 -08:00
Sign in to join this conversation.
No reviewers
No labels
queue
No milestone
No project
No assignees
1 participant
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!25
No description provided.