Skip to content

ci: stop label-only events from rerunning full checks - #44

Merged
brettheap merged 1 commit into
mainfrom
ci/no-label-full-ci
Nov 11, 2026
Merged

brettheap merged 1 commit into
mainfrom
ci/no-label-full-ci

Conversation

@brettheap

@brettheap brettheap commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Purpose

Stop Mergify's automatic queued label from starting duplicate full original-PR CI, as observed in real-code batch #43. Brett explicitly approved this narrow fix while preserving lanes 1–5 and leaving bypass, app access and releases alone.

Change

Remove only the obsolete labeled activity from tests.yml's pull_request event list. No current full-CI job reads labels; that trigger belonged to the removed macOS job. All label-only events therefore start no full run, rather than publishing skipped replacement gates.

Keep opened, synchronize and reopened with no path, base, draft, candidate or label filters. Real code changes still run all four required gates even on a queued PR, and draft Mergify candidates still run full CI. Main/release-branch pushes, nightly/manual runs, all shard jobs, fail-closed gate aggregation and gate names are unchanged.

Update the trigger/queue regression tests, the operator note and one bounded feature-009 amendment. No Mergify config, release workflow, ruleset, app access, assembly pin, installed code or active-lane change. No live queue/canary is part of this PR.

Verification

  • Red first: the updated trigger contract and explicit label-event regression both failed against the original workflow's labeled event.
  • Green: 212 workflow/queue tests passed, 4351 deselected, via the canonical tests/run.sh wrapper in a disposable network-disabled container with a self-contained offline clone and the pinned dependency.
  • The initial broader read-only Windows-worktree mount failed on the container-incompatible .git pointer; that was test setup, not a successful run. The self-contained clone rerun passed.
  • git diff --check passed.
  • Release workflow, Mergify config and CI shard helper have no diff.

Cloud full CI and exact-head Codex review are still required. This PR is the narrow metadata-trigger fix, not fast-only member CI, a broader queue rollout, or elimination of ordinary post-merge main CI.

Summary by Sourcery

Stop label-only pull request events from rerunning full CI while preserving the existing full-check behavior for code changes and all other workflow triggers.

Bug Fixes:

  • Prevent label-only pull request events from starting duplicate full CI runs or replacing checks with skipped gates.

Enhancements:

  • Preserve full CI for pull request creation, code updates, reopening, draft candidates, and queued pull requests without adding filters.

CI:

  • Update CI trigger and queue regression coverage to reject label-only triggers while preserving all required gates and other workflow triggers.

Documentation:

  • Document the label-trigger behavior and the bounded scope of the queue-related CI change.

Tests:

  • Strengthen workflow trigger assertions and add regression coverage for label events and unfiltered full CI on pull request changes.

@sourcery-ai

sourcery-ai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Sorry @brettheap, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 3 days and 1 hour by commenting @sourcery-ai review. Upgrade to get a review now.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai

sourcery-ai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Remove the labeled pull-request trigger and update the workflow comments to clarify that label-only events do not run full CI while code updates retain all gates.

  • .github/workflows/tests.yml L56-65, L73

Documentation

Document the label-trigger change, its full-CI guarantees, and the bounded scope of the feature amendment.

  • .github/ci/batching-pilot.md L26-31
  • features/009-manual-two-pr-queue/openspec/queued-label-ci.md L1-22

Tests

Update workflow and queue regression tests to reject label-only triggers while preserving all full-CI pull-request triggers and unconditional gates.

  • tests/test_ci_pilot_queue.py L119
  • tests/test_tests_workflow.py L120-121, L918-920, L930-952

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-11T20:00:23.199201Z 1a49e7b Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@sonarqubecloud

Copy link
Copy Markdown

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Nice work!

Reviewed commit: 1a49e7bf3c

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@brettheap
brettheap merged commit d17421d into main Nov 11, 2026
25 of 33 checks passed
brettheap added a commit that referenced this pull request Nov 11, 2026
…osed-lane

Lane 3 asked for this merge before landing (opensoft/openRepoTools#165, 6808628795).

Lane: openRepoTools-5
Co-Authored-By: Claude Opus 5.5 <[email protected]>
brettheap added a commit that referenced this pull request Nov 11, 2026
…tten, as `--late` does, instead of taking it from CLOSED to SWAPPING (opensoft/openRepoTools#118) (#32)

A lane whose log's last lane-kind line is an `ENDED` or a `RETIRED` is
closed. `lane-handoff` on it read the lifecycle's `CLOSED` as the
compare-and-swap's expected value and took the lane to `SWAPPING`, then
`SWAPPED`, appending a `PAUSED` after the `ENDED`: a terminal lane reopened
by a `/handoff` typed in a pane that was still there.

- `lane-handoff`: `--late`'s read of `lane-last` and its `ENDED` or
  `RETIRED` refusal move into `read_last_lane_line` and
  `refuse_a_closed_lane`. Every mode but `--late` calls them right after
  the managed-ledger seam's refusal, before the restart intent, the window,
  the handoff, the register, the object log or the lifecycle is touched. A
  closed lane exits 2 with `--late`'s words, and `--late` keeps its own
  order and words.
- The log is the lane's state: a lane that a later `STARTED` or `RESUMED`
  reopened is never refused, and a `lane-last` read that fails exits 1
  before any write (Amendment 7(d)).
- tests/test_a23_lane_handoff.py: a closed lane is refused before any
  write, for the plain handoff, `--restart`, `--exit` and `--in-process`; a
  failed read of the last line is not an open lane; and a lane started
  again after its close is handed off as before.

It is the option Brett Heap chose for opensoft/openRepoTools#118, "Refuse,
as --late does (Recommended)". The issue stays open for the transition
table its "What's open" also asks for.

Lane openRepoTools-3's independent review read READY at 1915f48, after the
fix round for its MUST and SHOULD, and its delta check read READY at the
merge 959e21a. The merge 4d211d2 took code main 92f9e10
(#36 and #35): lane 3 checked that its tree
equals git merge-tree's in every file but tests/test_a23_lane_handoff.py,
which holds both sides' blocks, main's first, and Codex found no major
issue there. The head 0356714 then merges code main d3c55e5
(#44 and #45, two CI changes), and its tree,
3284253, is git merge-tree's of d3c55e5 and 4d211d2, so it adds nothing
of its own. Codex found no major issue at 0356714. All 18 checks that
ran passed at 0356714 on main d3c55e5 (Sourcery's review was skipped and
the Mergify queue check was neutral), so the tested tree is this commit's
tree, 3284253. Lane openRepoTools-3 lands it under Brett Heap's standing
landing word, which he extended on 2026-11-10 to lane-tooling fixes any
lane writes, once lane 3 has reviewed them.

Part of opensoft/openRepoTools#118

Lane: openRepoTools-5
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
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