Skip to content

Keep merge-group review resolution independent of wakeup runs - #4161

Merged
kojiwakayama merged 1 commit into
mainfrom
codex/fix-merge-group-review-wakeup-20260825
Aug 25, 2026
Merged

kojiwakayama merged 1 commit into
mainfrom
codex/fix-merge-group-review-wakeup-20260825

Conversation

@kojiwakayama

Copy link
Copy Markdown
Contributor

Why

The first live merge-queue canary for the automated review gate exposed a false failure: merge-group events do not carry a workflow_run payload, but the shared resolver required workflow_run.conclusion to be success for every event type.

Change

  • apply the wakeup conclusion guard only to workflow_run events
  • retain fail-closed behavior for unsuccessful review wakeups
  • add a regression assertion that merge-group resolution is independent from workflow-run-only payload fields

Evidence

  • live failed job: automated review gate run 32860413215, target job 97842704869
  • focused workflow suite: 7 groups, 67 steps, 0 failed
  • isolated Redis timing rerun: 18 steps, 0 failed
  • pre-push on merged main: format 5,196 files, lint 5,119 files, typecheck passed, unit 4,277 groups / 34,119 steps / 0 failed / 1 ignored, cwd suites passed

The Automated review check is not yet required. Human approval remains required until this PR proves source and merge-group propagation end to end.

A live merge-queue canary showed that the shared target resolver treated the absent workflow_run payload on merge_group events as an unsuccessful review wakeup. Scope the conclusion guard to workflow_run events while retaining fail-closed handling for actual wakeup failures.

Constraint: Merge-group events do not include a workflow_run payload.

Rejected: Treat a missing workflow_run conclusion as success globally | that would weaken failure handling for actual wakeup events.

Confidence: high

Scope-risk: narrow

Reversibility: clean

Directive: Keep merge-group target resolution independent from workflow-run-only payload fields.

Tested: automated-review-gate 67 steps; fmt check; lint; focused and project typecheck; generated artifacts; git diff check.

Not-tested: Live merge-group propagation until this commit enters the queue.

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kojiwakayama has reached the 50-credit limit for trial accounts. To continue receiving code reviews, upgrade your plan.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for security reviews. Please try again later.

@coderabbitai

coderabbitai Bot commented Aug 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

Next included review available in 36 minutes.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f9165307-0cbf-4bc5-b2b5-02d1ea771f1a

📥 Commits

Reviewing files that changed from the base of the PR and between d3611cb and e7ef7ce.

📒 Files selected for processing (2)
  • .github/workflows/automated-review-gate.yml
  • scripts/ci/automated-review-gate.test.ts

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.

@kojiwakayama
kojiwakayama enabled auto-merge August 25, 2026 14:58
@sonarqubecloud

Copy link
Copy Markdown

@github-actions

Copy link
Copy Markdown

📦 Client bundle boundary

Entrypoint Modules Source size Server leaks
src/index.client.ts 330 1972 KiB ✅ 0

A server module in a client graph aborts hydration in the browser. New leaks fail CI; known leaks are tracked in scripts/lint/client-bundle-baseline.json to burn down.

@kojiwakayama
kojiwakayama disabled auto-merge August 25, 2026 15:09
@kojiwakayama
kojiwakayama added this pull request to the merge queue Aug 25, 2026
@codecov

codecov Bot commented Aug 25, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

Merged via the queue into main with commit a2a3938 Aug 25, 2026
55 of 57 checks passed
@kojiwakayama
kojiwakayama deleted the codex/fix-merge-group-review-wakeup-20260825 branch August 25, 2026 15:32
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.

2 participants