strip-owner follows a landing's batched delivery (MQ-11) #25
Loading…
Reference in a new issue
No description provided.
Delete branch "mq-11-batch-follow"
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: 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
deliverjob. It changes nothing for a release whose commit has nomerge-queue / deliverystatus.Added
deliveryRun(pcwords.go): when none of the release's own runs has a non-skippeddeliverjob, it reads the release commit'smerge-queue / deliverystatus (batchDelivery):deliverjob Forgejo doesn't list yet: the install step waits. No PC counts as failed or delivered.deliver.ymlrun: that run'sdeliverjob 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.deliveryWordsreads 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. Anokcounts as installed, even while the job runs. Afailed:counts as that PC's failure for that app only, ahead of the PC'sSSH exit/ firsterror: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 abatchrow 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.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 namespipeline-templates run N, job deliver, <landing>'s batch, and its rerun row says the rerun asks each PC for the whole batch again.Changed
runNumber(forgejo.go) returns 0 for themerge-queue / deliverycontext. Its link is pipeline-templates' run, never a run of the commit's repo. Without this,commitRunsfetched the app repo's run with the same number, so an unrelated old run'sdeliverjob could be followed (a test reproduces it: every PC "SSH exit 1", "run 900" linked under the app's repo). The same applied tofailedRuns,laterRunsandpull-request times.deliveryRunrecords which repo its run is in.installFailedbuilds the run's page from that, so it names pipeline-templates for a batch.Left alone
repoargument on twodeliveryWordscalls and a repo-awareRunin the fake forge, which returns the sameactionRunsfor every repo but pipeline-templates.Targetand 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)
deliver.ymlrun 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