Skip to content

ci: require stable PR gate checks - #345

Merged
proerror77 merged 3 commits into
mainfrom
codex/ci-main-gate
Jul 24, 2026
Merged

ci: require stable PR gate checks#345
proerror77 merged 3 commits into
mainfrom
codex/ci-main-gate

Conversation

@proerror77

@proerror77 proerror77 commented Jul 24, 2026

Copy link
Copy Markdown
Owner

Closes #344

Change contract

Main PRs always publish stable Monorepo and Prediction Markets gate checks; each gate fails whenever a selected dependency does not succeed, while selector-skipped jobs remain non-blocking.

Acceptance evidence

The new gate jobs run on every pull request, aggregate all conditional jobs, and reject failed or cancelled selected jobs. Main branch protection requires these gates plus the existing Security Summary Report and one fresh approval.

Out of scope

Research snapshot construction, evaluator/MCTS execution, collector deployment, catalog changes, and live execution policy.

Dependency / merge order

None. This is the prerequisite gate before #319.

Focused validation

  • shellcheck .github/scripts/verify-ci-gate.sh .github/scripts/test-select-rust-ci-scope.sh
  • bash .github/scripts/test-select-rust-ci-scope.sh
  • go run github.com/rhysd/actionlint/cmd/actionlint@v1.7.7 .github/workflows/ci.yml .github/workflows/ploy-ci.yml
  • git diff --check

Rollout / rollback impact

Rollout: main protection is enabled with the three required GitHub Actions checks and fresh approval. Rollback: revert this PR and remove the two required gate contexts before merging the revert.

@coderabbitai

coderabbitai Bot commented Jul 24, 2026

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@proerror77, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 33 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: a8e0ab9a-d32e-4d9c-b3d3-3b192731a76b

📥 Commits

Reviewing files that changed from the base of the PR and between 92b9ed6 and c7165b1.

📒 Files selected for processing (3)
  • .github/scripts/test-select-rust-ci-scope.sh
  • .github/workflows/ci.yml
  • .github/workflows/ploy-ci.yml
📝 Walkthrough

Walkthrough

Adds a shared CI gate verifier, integrates it into the main and prediction-markets workflows, broadens workflow triggering, and tests successful, skipped, failed, and cancelled job-result handling.

Changes

CI gating

Layer / File(s) Summary
Gate verifier and test coverage
.github/scripts/verify-ci-gate.sh, .github/scripts/test-select-rust-ci-scope.sh
Adds JSON-based result validation and tests acceptance of successful or skipped jobs plus rejection of failed or cancelled jobs and required workflow wiring.
Main CI workflow gate
.github/workflows/ci.yml
Adds the always-running ci-gate job and removes the prediction-markets push path exclusion.
Prediction markets workflow gate
.github/workflows/ploy-ci.yml
Removes the pull-request path filter and adds prediction-markets-gate over the workflow’s CI jobs.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related issues

Possibly related PRs

  • proerror77/monday#56 — Updates the Rust CI scope selection tests and fixtures used by this change.

Sequence Diagram(s)

sequenceDiagram
  participant SelectedCIJobs
  participant ci-gate
  participant prediction-markets-gate
  participant verify-ci-gate.sh
  SelectedCIJobs->>ci-gate: Complete prerequisite jobs
  ci-gate->>verify-ci-gate.sh: Pipe serialized needs results
  verify-ci-gate.sh-->>ci-gate: Return validation status
  SelectedCIJobs->>prediction-markets-gate: Complete prerequisite jobs
  prediction-markets-gate->>verify-ci-gate.sh: Pipe serialized needs results
  verify-ci-gate.sh-->>prediction-markets-gate: Return validation status
Loading
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Title check ✅ Passed The title is concise and accurately summarizes the main change: adding stable PR gate checks.
Description check ✅ Passed The description matches the template well; it only omits the required Scope exception section, which is acceptable here.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/ci-main-gate

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

Comment thread .github/workflows/ci.yml Fixed
Comment thread .github/workflows/ploy-ci.yml Fixed
@proerror77
proerror77 merged commit 970f456 into main Jul 24, 2026
38 checks passed
@proerror77
proerror77 deleted the codex/ci-main-gate branch July 24, 2026 12:11
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.

Enforce main PR checks before research E2E

2 participants