Skip to content

ci: one summary check gates the merge, and a run on main is never cancelled (C1) - #709

Merged
DrunkOnJava merged 2 commits into
mainfrom
ci/c1-ci-ok
Oct 5, 2026
Merged

DrunkOnJava merged 2 commits into
mainfrom
ci/c1-ci-ok

Conversation

@DrunkOnJava

@DrunkOnJava DrunkOnJava commented Oct 5, 2026 •

Copy link
Copy Markdown
Owner

ci: one summary check gates the merge, and a run on main is never cancelled (C1)

From the CI audit of 2026-10-05: only six fast checks were required, so
auto-merge landed pull requests before Corpus health, the writer corpus and
IfcOpenShell finished (#647 merged with 22 of 23 checks passed, then main CI
run 37213656572 failed in Corpus health on a real conflict between two pull
requests), and two merges in a row cancelled the first one's run on main.

  • A CI passed job needs every CI job and fails when any failed or was
    cancelled. The committed main-protection ruleset requires it alone; it is
    applied once the job has run green on main.
  • CI's concurrency cancels in-progress runs on pull requests only.
  • docs/maintaining.md describes the gate.

Note

Medium Risk
Changes branch protection and merge gating behavior; misconfiguration could block merges or weaken enforcement, though the intent is stricter (all jobs must complete).

Overview
Merge protection now requires a single CI passed status instead of six individual job names, so auto-merge cannot land until the full CI matrix finishes.

A new ci-ok job (CI passed) runs with if: always(), depends on every CI job in the workflow, and fails if any dependency failed or was cancelled. Branch protection in main-protection.json was updated to require only that context, so renaming or adding jobs no longer forces ruleset edits.

Concurrency on ci.yml now sets cancel-in-progress only for pull requests; pushes to main no longer cancel an in-flight run when another merge lands immediately after.

docs/maintaining.md documents the single gate and that Measure/release/deploy workflows stay outside it.

Reviewed by Cursor Bugbot for commit 4cf0ae1. Configure here.

…celled (C1)

From the CI audit of 2026-10-05: only six fast checks were required, so
auto-merge landed pull requests before Corpus health, the writer corpus and
IfcOpenShell finished (#647 merged with 22 of 23 checks passed, then main CI
run 37213656572 failed in Corpus health on a real conflict between two pull
requests), and two merges in a row cancelled the first one's run on main.

- A `CI passed` job needs every CI job and fails when any failed or was
  cancelled. The committed main-protection ruleset requires it alone; it is
  applied once the job has run green on main.
- CI's concurrency cancels in-progress runs on pull requests only.
- docs/maintaining.md describes the gate.
@DrunkOnJava
DrunkOnJava merged commit 2c5bc48 into main Oct 5, 2026
19 checks passed
@DrunkOnJava
DrunkOnJava deleted the ci/c1-ci-ok branch October 5, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant