Skip to content

ci(trust-gate): drop the trust gate - #630

Merged
plind-junior merged 1 commit into
testfrom
ci/drop-trust-gate
Jul 30, 2026
Merged

ci(trust-gate): drop the trust gate#630
plind-junior merged 1 commit into
testfrom
ci/drop-trust-gate

Conversation

@plind-junior

Copy link
Copy Markdown
Member

what

drops the trust-gate workflow and the pr_bot machinery behind it.

why

trust-gate.yml failed a pr when an author outside the OWNER association
touched a core path. the rewritten arm-auto-merge.yml already enforces that
bar from the other side — nothing arms without the owner's own label, a green
diff coverage on that head sha, and a closing reference to an owner-opened
issue — and CODEOWNERS still holds the review requirement on core paths. so
this removes a second, redundant expression of the same rule.

removed with it: the trust pr_bot command and the is_trusted helper it
called, plus their tests. core-path classification stays, because that is what
arm-auto-merge.yml reads.

required-check follow-up

trust-gate is currently a required status check on the auto-merge guard
(test)
ruleset, alongside the three test legs and the build. that entry has
to be removed from the ruleset — otherwise every pr targeting test blocks on
a check that no longer reports. safest order is to drop it from the ruleset
first, then merge this.

test

pytest tests/test_pr_bot.py, mypy src, ruff check src tests all green.

trust-gate.yml failed a pr when an author outside the OWNER association
touched a core path. the rewritten arm-auto-merge.yml already enforces
that bar from the other side: nothing arms without the owner's own label,
a green `diff coverage` on that head sha, and a closing reference to an
owner-opened issue. CODEOWNERS still holds the review requirement on core
paths.

removed with it: the `trust` pr_bot command and the `is_trusted` helper
it called, plus their tests. core-path classification stays — it is what
arm-auto-merge.yml reads.

trust-gate is still listed in the `test` ruleset's required checks, so
that entry has to come out or every pr will block on a check that no
longer reports.
@github-actions github-actions Bot added docs documentation, specs, examples, and repo guidance ci github actions and automation tests tests and fixtures size: S 50-199 changed non-doc lines labels Jul 30, 2026
@plind-junior
plind-junior merged commit 600ec43 into test Jul 30, 2026
15 checks passed
@github-actions github-actions Bot added the ci: passing ci is green label Jul 30, 2026
plind-junior pushed a commit that referenced this pull request Jul 30, 2026
#630 removed the trust-gate workflow and the coderabbit gate removed
coderabbit-approved, but setup_repo_guards.sh still declared both as
required status checks. a required context with nothing behind it never
reports at all, so the pr sits pending instead of failing visibly — there
is no red x to point at, and every open pr into test is stuck this way
right now.

the required list is now the four ci contexts that actually run, and the
header says why a dead context is worse than a failing one. the script
matches the live ruleset by name, so re-running it updates in place and
clears the stale contexts rather than creating a second ruleset.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci: passing ci is green ci github actions and automation docs documentation, specs, examples, and repo guidance size: S 50-199 changed non-doc lines tests tests and fixtures

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant