Repository navigation
ci(review): require code-owner approvals on gitlab merge requests #6731
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
325e95b
a3b2aa9
97b8018
18844f1
2c31fa3
cf09f99
1b4dbc4
5cc3afa
4122bf2
5e1ba33
79c507d
92bb6e2
74510f7
5b7dba3
14bfce1
3956254
3537ac2
744d876
2e7b45e
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -12,7 +12,7 @@ | |
| gym-review-pools-prepare: | ||
| extends: .review-pools-trigger | ||
| stage: test | ||
| allow_failure: true | ||
| allow_failure: false | ||
| image: python:3.12-slim-trixie@sha256:5e2bdb1b0d542d5039cffb8181c65930093949194a65c365dfb1b0fe13a4fa5b | ||
| variables: | ||
| GIT_DEPTH: "1" | ||
|
|
@@ -28,7 +28,7 @@ gym-review-pools: | |
| extends: .review-pools-trigger | ||
| stage: report | ||
| needs: [gym-review-pools-prepare] | ||
| allow_failure: true | ||
| allow_failure: false | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. RISK: Required-owner enforcement can still fail open before the adapter writes. This is unchanged from the prior review.
Could you require a successful reconciliation result bound to the MR's current SHA, or an equivalent provider-enforced backstop, before merge? Keep credentialed execution on protected, trusted code and preserve the eligible-owner approval requirement after reconciliation. Acceptance: open an MR touching an enforced path, fail setup before the adapter, and verify merge stays blocked even with green CPU CI. Restore setup and verify an eligible owner approval is required. Push again and verify an earlier reconciliation cannot satisfy the new head.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. RISK: Required-owner enforcement can still fail open before the adapter writes. This is unchanged from the prior review. Under that documented configuration, a new MR touching an enforced path can therefore have green CPU CI without an owner rule. Could you require successful reconciliation bound to the MR's current SHA, or an equivalent provider-enforced backstop, before merge? Keep credentialed execution on protected trusted code and preserve the eligible-owner approval requirement after reconciliation. Acceptance: open an MR touching an enforced path, fail setup before adapter execution, and verify merging stays blocked despite green CPU CI. Restore setup and verify an eligible owner approval is required. Push again and verify an earlier reconciliation cannot satisfy the new head.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. RISK: Required-owner enforcement can still fail open before the adapter writes. This is the unresolved prior finding. Under that documented configuration, a new MR touching an enforced path can have green CPU CI without an owner-approval rule. Could you require successful reconciliation bound to the MR's current SHA, or an equivalent provider-enforced backstop, before merge? Keep credentialed execution on trusted protected-branch code and preserve the eligible-owner approval requirement after reconciliation. Acceptance checks:
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. RISK: Required-owner enforcement can still fail open before the adapter writes. This is the unresolved baseline finding. Under that configuration, a new MR touching an enforced path can have green CPU CI without an owner-approval rule. Could you require successful reconciliation bound to the MR's current SHA, or an equivalent provider-enforced backstop, before merge? Keep credentialed execution on trusted protected-branch code and preserve the eligible-owner approval requirement after reconciliation. Acceptance checks:
|
||
| trigger: | ||
| include: | ||
| - artifact: review-pools-child.yml | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RISK: Required-owner enforcement can fail open before the adapter writes.
allow_failure: falsemakes the protected-branch trigger pipeline red, but the review-pool rules select a different pipeline from MR CPU CI. There is no dependency between them. On a new MR, an install/fetch/credential failure can therefore leave a green MR pipeline with no required owner rule. The README explicitly confirms the missing rule and absence of a backstop. My routing probe confirmed the disjoint job sets, and a failing package-manager stub stopped the real child script before adapter execution.The pipeline separation predates this PR, but it becomes an enforcement gap when these pools become required policy. Could you add a required reconciliation result bound to the MR's current SHA, or an equivalent provider-enforced backstop, so missing reconciliation blocks merge? Keep credentialed execution on trusted code rather than moving it into the untrusted MR job.
Acceptance: create an MR touching an enforced owner path, fail setup before the adapter runs, and verify it cannot merge even when CPU CI passes. After successful reconciliation, verify an eligible owner approval is still required. Repeat after a push so a stale reconciliation result cannot satisfy the requirement.