delivery: dry-run-gated role and multiple dry-run checks #218
Notifications
Due Date
No due date set.
Blocks
#220 Ansible Dry Run workflow in ansible-homelab-mono
Mortis/Holocron
Reference: Mortis/Holocron#218
Reference in new issue
Block a user
Part of #166
Question
Build the
deliveryside of Pre-merge Ansible dry run without exposing production credentials (decision 9).delivery-repo-docreferences/format.md, section 2 (CI checks):dry-runmay appear on one or more items unless the section is- none.dry-run-gated: a dry run that runs only after a human-allowlisted user adds a label.delivery-ci-checks, qa,delivery-review, and the review and verify handling where relevant): treat a missingdry-run-gatedstatus as "awaiting the human gate". It is not a failure and not a qa fail count, and it is noted in the Handoff. A failed or errored gated run is judged like any other check. Never set the gate label.delivery's version and record it in the marketplace. Audit withfactory-audit.Done when the format and its consumers accept the
ansible-homelab-monoentryAnsible Dry Run / ansible_dry_run (pull_request_target):dry-run-gatednext to the existing Fluxdry-run.Resolution
Built in PR 221,
delivery0.7.0.dry-runon one or more items, plus any number ofdry-run-gateditems. Adry-run-gatedworkflow must run only on its one named gate label. For that role, a missing orskippedstatus means the check is still waiting for its label. The gathering steps confirm the label filter with the human. A gated check's name must come from a run the forge has reported; if none exists, it is listed as open, because a wrong name would stayawaiting-gateforever.delivery-ci-checks. Adds a new state,awaiting-gate: a gated check with nopending,failureorsuccessstatus on the head SHA.skippedstatuses are ignored, so a later label event can't hide an earlier gated failure.awaiting-gatecounts as passing for the verdict and is never waited on. The result gains anAwaiting gate:line.<check>" under Handoff Open questions.awaiting-gaterow gets a non-blocking finding linking the PR's files.delivery-handoffall treat the gated dry run's label as human-only.factory-auditreturned fix-first with three problems, all fixed in42301cf:delivery.mdfrom the PR's checkout, not its base ref. A PR can therefore turn amissingdry run intoawaiting-gateby relabelling itdry-run-gated.