Skip to content

Landing gate: a skipped tests-macos satisfies a required status check, so branch protection alone will not enforce the ready label #125

Closed as not planned

Description

@brettheap

Filed per Brett Heap's ruling of 2026-09-16 ("do all three") capping Copilot review at two rounds per PR: round 2 on PR #119 raised a real point that is a design decision rather than a defect in what that PR was asked to build, so it lands here instead of blocking the PR.

The finding (Copilot, round 2 on #119)

When ready is absent, tests-macos is skipped. GitHub treats skipped jobs as successful for required-status-check evaluation, so making tests-macos a required status will not actually prevent a PR from merging without a macOS run. Please add an always-running gate/aggregator that fails until the labeled macOS result exists, or enforce the label outside branch protection.

This is correct GitHub Actions behavior: a job whose if: evaluates to false reports as skipped, and a skipped conclusion satisfies a required status check in branch protection exactly as a success would. tests-macos now carries:

if: >-
  github.event_name != 'pull_request' ||
  contains(github.event.pull_request.labels.*.name, 'ready')

So on a pull_request event with no ready label, the job is skipped rather than absent — and if tests-macos is (or ever becomes) a required check in this repository's branch protection, GitHub's merge button would show it green on a PR that never ran a macOS suite at all, silently defeating the landing gate.

Why PR #119 didn't change the gate design to work around this

The ruling's own words describe a human process — "the coordinator applies it once before the squash" — not a GitHub-enforced block, and PR #119 was scoped to exactly the three rulings (the label/schedule/push gate, the two-round Copilot cap, and CI-as-suite-of-record). Building an aggregator job or otherwise making the label mechanically unbypassable is a further design decision belonging to whoever owns branch protection for this repository, not something to bolt on unasked inside that PR.

What needs a decision

  1. Is tests-macos a required status check in this repository's branch protection today? (Not checked as part of tests-macos becomes a landing gate on the ready label plus nightly on main; Copilot capped at two rounds; CI is the suite of record — Brett Heap's three rulings of 2026-09-16 #119.)
  2. If yes, or if it's meant to become one: pick one of
    • an always-running "landing gate" aggregator job (e.g. needs: [tests-macos] with if: always(), that fails when tests-macos's result is skipped on a pull_request event) that becomes the actual required check instead of tests-macos itself;
    • or keep tests-macos out of branch protection entirely and rely on the coordinator manually confirming it went green after applying ready, as the ruling's own wording suggests.
  3. Either way, docs/README-lanes.md or wherever the squash/landing procedure is written down for coordinators should say explicitly which of the two is true, so nobody assumes GitHub is blocking the merge when only a person is.

cc the three-rulings PR: #119

Activity

  1. brettheap commented on Sep 16, 2026

    @brettheap
    ContributorAuthor

    CLAIMED — lane openRepoTools-3, session 4135b2c9-34a6-47e3-a156-5adebb632fae@Eagle, 2026-09-16T13:59:46Z, for #125

    Logged in lanes/log/openRepoTools-3.md at cb34a64788d5ec7bd914af9f7f789085cd8222f7.

    The three reads (lane-collision-protocol Rule 1):

    1. existing `CLAIMED —` comments on opensoft/openRepoTools#125:
       none
    2. `gh pr list --repo opensoft/openRepoTools --state all --search "#125"`, kept where the row or its body names `#125`:
    119	tests-macos becomes a landing gate on the `ready` label plus nightly on main; Copilot capped at two rounds; CI is the suite of record — Brett Heap's three rulings of 2026-09-16	chore/macos-landing-gate-and-cycle-rules	OPEN
    3. `git ls-remote --heads [email protected]:opensoft/openRepoTools` branches naming `125` as a whole token:
       none
    
  2. brettheap commented on Nov 10, 2026

    @brettheap
    ContributorAuthor

    Lane: openRepoTools-3

    Verdict: obsolete. tests-macos no longer exists, and the always-running gate this issue asked for does. Closing as not planned.

    • tests-macos was removed by 3b196d6 on opensoft/openRepoTools-code ("ci: run the test suite on Linux only (ci: run the test suite on Linux only #227)"), from ci: run the test suite on Linux only #227, merged 2026-10-15 on Brett's decision for the whole estate. At code main 9a219ed, .github/workflows/tests.yml:7-10 says tests-macos, tests-windows and parse-macos are gone from the file.
    • The gate shape the issue wanted came with CI runs the tests as a matrix of shards, keeping the four check names (opensoft/openRepoTools#77) openRepoTools-code#22 (merge 39839dc, 2026-11-09): the jobs tests and tests-no-submodule carry if: ${{ always() }} (tests.yml:201 and :289 at 9a219ed) and fail unless every shard passed. The header (:127-129) says "a skipped job would count as passing for a required check".
    • Required checks today: no branch protection on any of the three repos (the API answers 404 "Branch not protected", checked today), but the code leg's ruleset 25966308 requires guard-launch-mode, tests, tests-no-submodule and package. The triage found no job-level if: that skips any other required job at 86d635b.
    • No PR or branch is open for it.

    Method: read, not run. Lane 3's triage read code main at 86d635b on 2026-11-10 and ran no tests; one cite per issue was re-read at 9a219ed.

    Brett Heap's word, given in lane openRepoTools-3's session on 2026-11-10 (the NEEDS-BRETT dialog, "Closing the six fixed or obsolete issues": #304, #145, #125, #124, #127 and #91, answered by 12:11:11Z): "Close all six (Recommended)". Its description: "Each gets one evidence comment and is closed, and lane 3 releases its claim on it."

    🤖 Generated with Claude Code

  3. brettheap commented on Nov 10, 2026

    @brettheap
    ContributorAuthor

    RELEASED — lane openRepoTools-3, session 83619980-06bb-4469-ae73-2a8c5e61981a@Eagle, 2026-11-10T12:44:20Z, for #125 — closed as obsolete; evidence 6767593403

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions