Skip to content

Require SonarCloud success on the exact P07/P09 batch - #113

Merged
brettheap merged 1 commit into
mainfrom
ci/p07-p09-sonar-gate
Nov 19, 2026
Merged

brettheap merged 1 commit into
mainfrom
ci/p07-p09-sonar-gate

Conversation

@brettheap

@brettheap brettheap commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

P07/P09-only queue change: require the installed SonarCloud app to report success on the batch in addition to the existing one-heavy Actions check. Keep every other queue, source admission, test workflow, ruleset, app access and release unchanged. Regression cases reject missing or neutral Sonar, a same-named check from another app, and Sonar without heavy success.

Local validation: 325 offline regressions plus seven focused tests on the reviewed head. No live refresh or canary admission is included; the new main commit will need fresh owner consent and source CI before queueing.

Refs #112 and opensoft/openRepoTools#165.

Summary by Sourcery

Require successful SonarCloud analysis alongside the existing batch-heavy check for the P07/P09 merge queue.

Bug Fixes:

  • Require the P07/P09 merge queue to receive a successful SonarCloud Code Analysis result from the SonarCloud app before merging.

Enhancements:

  • Preserve the existing GitHub Actions batch-heavy requirement while rejecting missing, neutral, or same-named checks from other apps.

Tests:

  • Add regression coverage for the exact P07/P09 merge conditions and SonarCloud check attribution.

@brettheap

Copy link
Copy Markdown
Contributor Author

@codex review

@sourcery-ai

sourcery-ai Bot commented Nov 19, 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 2 days and 20 hours by commenting @sourcery-ai review. Upgrade to get a review now.

@chatgpt-codex-connector

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-19T03:31:59.147909Z
We couldn’t complete this review. Comment @codex review to try again.
e858dd6 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.

@sourcery-ai

sourcery-ai Bot commented Nov 19, 2026

Copy link
Copy Markdown

Reviewer's Guide

Configuration

Require the installed SonarCloud app’s success check alongside the existing heavy Actions check for this queue.

  • .mergify.yml L203

Tests

Update the queue configuration expectation and add regression cases for missing, neutral, wrong-app, or insufficient Sonar and heavy-check results.

  • tests/test_ci_p07_p09.py L15, L98-101, L122-137

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

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, you can upgrade your account or add credits to your account and enable them for code reviews in your settings.

@sonarqubecloud

Copy link
Copy Markdown

@brettheap

Copy link
Copy Markdown
Contributor Author
{
  "schema_version": 1,
  "repository": "opensoft/openRepoTools-code",
  "pull_request": 113,
  "head_sha": "e858dd67025177b7b2bdb116d576c0de04fe7940",
  "base_sha": "d34963f5a25a41a5807eaa32446f7596867654d9",
  "reviewer": "codex-local",
  "skill": "pr-review",
  "status": "accepted",
  "unresolved_findings": 0,
  "findings": "Nine-role local expert panel reaffirmed the actual published head and reviewed base; no actionable findings. Hosted Codex did not complete because of quota (comment 6998838033), so this receipt is local only.",
  "resolution": "Only the P07/P09 merge condition gains the existing app-bound SonarCloud success requirement. Heavy success, source admission, other queues, workflows, retries, and branch protection remain unchanged. No CI gate or finding is waived.",
  "validation": "325 offline queue and source-gate regressions passed; seven focused checks passed on the exact committed head. The actual prior candidate had a successful SonarCloud report from app ID 12526, separate from its one heavy run. Hosted full/reuse checks remain required."
}

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