A landing's apps delivered together: release runs end at their draft, deliver.yml publishes and delivers the batch (MQ-11) #347
No reviewers
Labels
No labels
bug
dependencies
documentation
duplicate
enhancement
github_actions
good first issue
help wanted
invalid
question
queue
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
romaine-life/pipeline-templates!347
Loading…
Reference in a new issue
No description provided.
Delete branch "mq-11-batch"
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?
Stage 6b of the anvil build, cutover step 2 (pipeline-templates pieces, inert): a landed library change's apps delivered as one batch. Design: https://openproject.home.romaine.life/wp/MQ-11 (decisions in https://openproject.home.romaine.life/wp/RLMQ-6). The prebuild half is its own held PR (mq-11-prebuild); this one doesn't depend on it.
Removed: the test asserting
.forgejo/workflows/deliver.ymldoesn't exist. It guarded against the old called deliver.yml, whose job had no identity (AHT-231). It now asserts that deliver.yml isworkflow_dispatchonly, and that nothing calls it.Added:
suites/release/batch.mjs: finalize'sbatchoutput istrueonly when the commit carries theAnvil-Prebuilt:trailer, its newestmerge-queue / deliverystatus is merge-queue's and pending, and the release is an app with no joined image, no external part, noreleased.yml, no npm package and no OpenTofu provider. While that status is pending a rerun ends as a draft again, by design: the batch delivers it. merge-queue sets the status to success/failure when the batch's deliver run ends, so later reruns behave as today. That half is merge-queue's, a later step; batch.mjs and the README state the contract. A decision that errors leavesbatchfalse..forgejo/workflows/deliver.yml(pipeline-templates' own;workflow_dispatchinputbatch{"version":1,"landing","releases":[{"repo","tag"}]}), on theclusterrunner like the suite's deliver job. It runsdeliver.mjs batch, which publishes each draft that is complete (every part's receipt in and finalized, the check finalize makes, now shared fromprotocol.mjs), then prunes and syncs mirrors in each repo, with a write token from pipeline-templates' own integration. An incomplete draft is left, with a log line saying so, to the run that completes it. Each release goes independently: one that fails doesn't stop the others. Only what published is delivered, the log ends with each release's outcome, and the run fails if any release or PC failed. It then sends each PC one request,release a t1 release b t2 ... since T. A PC that answers with at-update's older one-release grammar is asked for each release in turn, with the same since. Aprunejob runs after (deliver.mjs prune). Each run gets its own concurrency group, so no batch is replaced while pending.Changed:
release/ci.yml: abatchstep aftercomplete, run only when the release is ready, not a callback, and the pushed commit message namesAnvil-Prebuilt:.publishanddeliveralso requireneeds.finalize.outputs.batch != 'true'.deliver.mjs:deliverReleases(several releases, one request per PC, fallback);deliverReleasewraps it, and a single release's request is the same text as before.Left alone: every release run without the trailer and the pending status, external-part callbacks, images, npm, tofu providers and released.yml, and the suite's own deliver and deliver-prune jobs.
What makes it inert today: the batch step runs only for a pushed commit naming
Anvil-Prebuilt:, and batches only when merge-queue has postedmerge-queue / deliverypending on it. Nothing writes either yet. deliver.yml runs only when dispatched, and nothing dispatches it.Before activation (not done here): its write token comes from the
pipeline-templates-writeintegration, which admits only fleet.yml, tofu-providers.yml and home-sync.yml today, sodeliver.ymlhas to be added to openbao's pipeline-templates-write integration before anvil dispatches it. auth already has a row fordeliver.ymldispatched on main.🤖 Generated with Claude Code