delivery: reading a dry-run-gated check that fails while awaiting its label #224

Open
opened 2026-11-25 18:16:28 +00:00 by Claude · 0 comments
Owner

Part of #166

Question

How should delivery read a dry-run-gated check that fails while it awaits its human label, and what goes into ansible-homelab-mono's docs/agents/delivery.md section 2 for Ansible Dry Run / ansible_dry_run (pull_request_target)?

Why this is open again

delivery: dry-run-gated role and multiple dry-run checks (delivery 0.7.0) was built on two premises:

  • A gated check that hasn't run is missing or skipped, which is read as awaiting-gate.
  • Branch protection requiring the status keeps a bot PR from merging unlabelled.

The second premise is false on Gitea 28.3. CommitStatusStates.Combine() (modules/commitstatus/commit_status.go:74) counts skipped as success for required contexts. So the workflow built in Ansible Dry Run workflow in ansible-homelab-mono (ansible-homelab-mono PR 988) never skips. It behaves as follows:

  • Bot push with affected stages: the job fails, and the PR comment's state line reads result=awaiting.
  • Another label event: it replays the head's recorded result from that comment, or fails.
  • No affected stage: success.

Under delivery 0.7.0, qa and the reviewer read that failure as a real CI failure. The implementer would then try to "fix" it and Stop after 3 qa fails. So PR 988 deliberately leaves the check out of delivery.md. Agents ignore it until this ticket is resolved, and branch protection plus the human label still gate the merge.

Inputs

  • The awaiting failure is visible on the head SHA, outside the status itself:

    • the workflow's PR comment (author gitea-actions), whose second line is <!-- ansible-dry-run sha=<sha> result=<ran|infra|awaiting|nostages> -->;
    • the job log line "Awaiting the Dry run label".

    The commit status description is Gitea's generic text.

  • delivery is generic, so a repo-specific comment marker would have to come from delivery.md, for example as a role parameter.

  • Possible options:

    • delivery.md names an "awaiting" signal per gated check;
    • dry-run-gated failures are always reported as "awaiting or failed — human reads the PR comment" and never sent back to the implementer;
    • a second, never-required context carries the gate state.
  • The skipped-is-ignored rule of 0.7.0 may still be right for other repos' gated checks. Decide whether it stays.

Part of #166 ## Question How should `delivery` read a `dry-run-gated` check that **fails** while it awaits its human label, and what goes into `ansible-homelab-mono`'s `docs/agents/delivery.md` section 2 for `Ansible Dry Run / ansible_dry_run (pull_request_target)`? ## Why this is open again [delivery: dry-run-gated role and multiple dry-run checks](https://git.rkdr.net/Mortis/Holocron/issues/218) (`delivery` 0.7.0) was built on two premises: - A gated check that hasn't run is *missing* or `skipped`, which is read as `awaiting-gate`. - Branch protection requiring the status keeps a bot PR from merging unlabelled. The second premise is false on Gitea 28.3. `CommitStatusStates.Combine()` (`modules/commitstatus/commit_status.go:74`) counts `skipped` as success for required contexts. So the workflow built in [Ansible Dry Run workflow in ansible-homelab-mono](https://git.rkdr.net/Mortis/Holocron/issues/220) (ansible-homelab-mono PR 988) never skips. It behaves as follows: - **Bot push with affected stages:** the job fails, and the PR comment's state line reads `result=awaiting`. - **Another label event:** it replays the head's recorded result from that comment, or fails. - **No affected stage:** success. Under `delivery` 0.7.0, qa and the reviewer read that failure as a real CI failure. The implementer would then try to "fix" it and Stop after 3 qa fails. So PR 988 deliberately leaves the check out of `delivery.md`. Agents ignore it until this ticket is resolved, and branch protection plus the human label still gate the merge. ## Inputs - **The awaiting failure is visible on the head SHA**, outside the status itself: - the workflow's PR comment (author `gitea-actions`), whose second line is `<!-- ansible-dry-run sha=<sha> result=<ran|infra|awaiting|nostages> -->`; - the job log line "Awaiting the Dry run label". The commit status description is Gitea's generic text. - **`delivery` is generic**, so a repo-specific comment marker would have to come from `delivery.md`, for example as a role parameter. - **Possible options:** - `delivery.md` names an "awaiting" signal per gated check; - `dry-run-gated` failures are always reported as "awaiting or failed — human reads the PR comment" and never sent back to the implementer; - a second, never-required context carries the gate state. - **The `skipped`-is-ignored rule of 0.7.0** may still be right for other repos' gated checks. Decide whether it stays.
Claude added this to the Map: Infra and agent-team packages milestone 2026-11-25 18:16:28 +00:00
Claude added the Wayfinder/Grilling label 2026-11-25 18:16:28 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Mortis/Holocron#224