Skip to content

fix(fr-gate): release-train promotion PRs are transparent plumbing - #94

Merged
LukasWodka merged 1 commit into
developfrom
fix/fr-gate-promotion-pr-transparency
Jul 28, 2026
Merged

fix(fr-gate): release-train promotion PRs are transparent plumbing#94
LukasWodka merged 1 commit into
developfrom
fix/fr-gate-promotion-pr-transparency

Conversation

@LukasWodka

@LukasWodkaLukasWodka commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Problem

On the staging→prod hop, the gate pulls the previous dev→staging promotion PRs themselves into the checked set (their merges are those PRs' merge_commit_sha). Plumbing PRs sit at FR on staging forever — nobody functional-reviews plumbing — so they would block every prod promotion (live today: averaging-service#211, frontend-app#709). Pass 2 has the inverse hole: commits/pulls lists the promotion PR for every commit it carried, so a direct push could be attributed to the promotion PR and ride to prod laundered.

Fix

Filter head: release-train/* out of attribution in both passes — promotion PRs never appear as gated items and never vouch for their range. Cargo attributes individually (feature merges in Pass 1, squash commits in Pass 2). A commit whose only merged PR is a promotion PR is a direct push that rode the train → stays unattributed → fails closed (D27-L1 preserved).

Test plan

🤖 Generated with Claude Code


Note

Medium Risk
Changes promotion-blocking logic in a required merge gate; mis-filtering could fail open or closed, but scope is limited to jq filters and comments in one workflow.

Overview
FR gate commit→PR discovery no longer treats release-train promotion PRs (headrelease-train/*) as items to gate or as proof that their range was reviewed.

In Pass 1 (merge commits), promotion PRs are dropped from attribution and do not enter the merge “vouch” set, so only real feature/cargo PR merges count. In Pass 2 (individual commits), the same filter stops every carried commit from being credited to the promotion PR; commits whose only merged PR is a promotion PR stay unattributed and still fail closed.

Header comments now document API-based discovery and this transparent-plumbing behavior instead of subject-line PR parsing.

Reviewed by Cursor Bugbot for commit 83c40b0. Bugbot is set up for automated code reviews on this repo. Configure here.

Without this, the staging->prod hop gates the PREVIOUS promotion PRs
themselves: a release-train/to-staging merge is that PR's merge_commit_sha,
so Pass 1 pulls e.g. averaging-service#211 / frontend-app#709 into the
checked set, where they sit at 'FR on staging' forever (nobody FRs plumbing)
and block the prod promotion. Worse, commits/pulls lists the promotion PR
for every commit it carried, so Pass 2 could attribute a direct push to the
promotion PR and launder it into 'covered'.
Fix: filter head release-train/* out of attribution in both passes. The
promotion merge neither vouches for its range nor appears as a gated item;
its cargo attributes individually (feature merges in Pass 1, squash commits
in Pass 2). A commit whose only merged PR is a promotion PR is a direct
push that rode the train -- it stays unattributed and fails closed (D27-L1).
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@LukasWodka
LukasWodka merged commit 79f3293 into developJul 28, 2026
5 checks passed
@LukasWodka
LukasWodka deleted the fix/fr-gate-promotion-pr-transparency branch August 1, 2026 21:45
Sign up for freeto 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

@LukasWodka