ci: a queued PR skips its own checks; the required check fails fast #86

Merged
jmz merged 1 commit from ci/skip-queued-ci into main 2026-11-24 17:15:28 +00:00
Member

A queued PR no longer pays for its own CI run. The merge train tests it in its rung PRs (train/* heads), which always run in full.

Change:

  • When the PR carries merge-train/queued, merge-train/now or merge-train/riding and its head is not train/*, the expensive jobs skip.
  • The required check still runs and fails fast: "queued: the merge train tests this PR in its rung PRs; remove the merge-train label to run the full checks here".
    • Skipping it instead would be fail-open: Forgejo counts a skipped required job as passing. A green-but-untested head would invite a direct web merge.
  • pull_request also triggers on labeled/unlabeled, so removing the queue label starts the full checks again.
  • Closed PRs are skipped, so the train's label cleanup after landing does not start a run.

Order: this must land only after jmz/nixos-hosts #1147 is deployed on spl-vm05. #1147 stops the queue from bouncing a PR because of its own red CI. Before that, a queued PR's deliberate red gate would get it bounced.

Not yet seen on a real Forgejo. The first queued PR should confirm three things: it fails fast, unlabelling starts a full run, and a rung PR runs fully.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XMf4ELSbWvtUkEeVky4wWr

A queued PR no longer pays for its own CI run. The merge train tests it in its rung PRs (`train/*` heads), which always run in full. **Change:** - When the PR carries `merge-train/queued`, `merge-train/now` or `merge-train/riding` and its head is not `train/*`, the expensive jobs skip. - The required check still runs and **fails fast**: "queued: the merge train tests this PR in its rung PRs; remove the merge-train label to run the full checks here". - Skipping it instead would be fail-open: Forgejo counts a skipped required job as passing. A green-but-untested head would invite a direct web merge. - `pull_request` also triggers on `labeled`/`unlabeled`, so removing the queue label starts the full checks again. - Closed PRs are skipped, so the train's label cleanup after landing does not start a run. **Order:** this must land only after jmz/nixos-hosts #1147 is deployed on spl-vm05. #1147 stops the queue from bouncing a PR because of its own red CI. Before that, a queued PR's deliberate red gate would get it bounced. **Not yet seen on a real Forgejo.** The first queued PR should confirm three things: it fails fast, unlabelling starts a full run, and a rung PR runs fully. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01XMf4ELSbWvtUkEeVky4wWr
ci: fail go and web fast for a PR in the merge queue
All checks were successful
CI / web (pull_request) Successful in 1m26s
CI / go (pull_request) Successful in 14m13s
e728ddf191
A PR labelled merge-train/queued, /now or /riding (head not train/...)
is tested by the train's rung PRs, which always run in full. Both
required jobs now fail in their first step instead of running the
checks, so the untested head cannot be merged in the web UI (a skipped
required job counts as passing).

pull_request now also triggers on labeled/unlabeled, so removing the
queue label re-runs the full checks. A closed PR runs nothing: the train
unlabels a PR after it landed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01XMf4ELSbWvtUkEeVky4wWr
jmz merged commit e728ddf191 into main 2026-11-24 17:15:28 +00:00
jmz deleted branch ci/skip-queued-ci 2026-11-24 17:15:29 +00:00
Sign in to join this conversation.
No reviewers
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
public/wanderer!86
No description provided.