Repository navigation
[Fix] Release PRs no longer hold at the review gate waiting for automated review - #2868
zoomote[bot] wants to merge 1 commit into
Conversation
…ated review CodeRabbit skips bot-authored pull requests and no longer approves them, so the automated-review wait in the Label PR review state workflow never completed for release PRs. Empty the eligible-bot set so bot-authored PRs route straight to the maintainer queue, and keep the set for future re-enrollment. Document the gate behavior and the tag fallback rule in the release command, and cover the new routing in the workflow tests. Fixes #2867
|
Important Review skippedAuto reviews are limited based on label configuration. 🏷️ Required labels (at least one): 1
Please check the settings in the CodeRabbit UI or the
|
Review statusThis PR was opened by an automated account. A human maintainer must verify the change intent, provenance, and validation before merging. Current step: Mark the PR ready. Required CI must pass before CodeRabbit starts. Review-state labels are managed by this workflow; do not edit them manually. |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Related GitHub Issue
Closes: #2867
Description
The
Zoo Code / PR review gatestays pending until the automated review approves the PR's latest commit. CodeRabbit now skips PRs authored by bots, so bot-authored release PRs can never clear the gate. Commit 4fe5a1f (#1598) madezoomote[bot]eligible for the automated-review wait when CodeRabbit still reviewed bot PRs. That assumption no longer holds.This PR empties
codeRabbitEligibleBotLoginsin theLabel PR review stateworkflow. Bot-authored PRs now take the existing non-eligible path: a green required-CI state moves them toawaiting-maintainer, and a fresh human maintainer approval on the latest head turns the gate green (approved). Human-authored PR behavior does not change. A manual CodeRabbitCHANGES_REQUESTEDreview still blocks a bot-authored PR, because that branch runs before the eligibility branch. The set stays in place so a bot login can re-enroll if automated review for bot PRs returns.The release command doc (
contrib/roo/roo/commands/release.md) now documents the gate behavior for bot-authored release PRs and adds the fallback rule: if the gate pends only on the automated-review wait, and the release PR has human approval and green required CI, proceed with the tag.Note for release v3.100.0: this fix helps PR #2866 only after it merges to
mainand the gate re-runs. Until then, use the documented fallback rule.Investigation: 11 cancelled checks on PR #2866
Root cause found. High confidence.
96d806a1) firedsynchronizeevents. Five PR workflows started at 14:35:32 UTC (wave 1).ready_for_reviewevent re-triggered all five workflows at 14:36:04 UTC (all listready_for_reviewin theirpull_requesttypes). Each workflow keys a per-PR concurrency group withcancel-in-progressenabled forpull_requestevents;visual-regression.ymlalways cancels.96d806a1ended asskipped— it no longer reviews bot-authored PRs at all.No config change is needed for this. The cancellation is the intended behavior of
cancel-in-progressconcurrency groups whenready_for_reviewfollows a push within seconds.Investigation:
startup_failureon the first pushAll
pull_request_targetruns of this workflow currently fail at startup. Moderate-to-high confidence in the diagnosis below; the exact upstream cause needs a GitHub support check.startup_failurebetween 2026-12-04 23:01 UTC and 2026-12-05 14:36 UTC, across four branches (release/v3.100.0,sdd/issue-2504,sdd/issue-841,fix/2812-reconcile-drift) and four PRs, onopened,synchronize,ready_for_review, andreview_requestedevents.pull_request_targetruns succeeded in that window. The last successful one was 2026-11-29 23:29 UTC; nopull_request_targetruns ran in between.pull_request_targettrigger. Runs from every other trigger (pull_request,pull_request_review,workflow_run,issue_comment,schedule,push,workflow_dispatch) started fine in the same window, with the same workflow file.startup_failuremeans GitHub stopped the run before any job started.mainbetween the last success and the first failure..github/workflows/label-pr-review-state.ymllast changed on 2026-10-27 (764db84, [Fix] Link review gate Details to the workflow run #2204).Conclusion: the cause is outside the release commits and outside tracked repository files. GitHub reported Actions incidents on 2026-12-02 ("some Actions workflow runs ... fail to start") and 2026-12-04 ("delays starting about 2% of Actions runs"). A 100 percent, event-specific failure for more than 15 hours fits a platform-side
pull_request_targetprocessing problem better than a 2 percent delay, and a repository or organization settings change (not visible through the API) remains possible. Impact stayed limited: the hourly sweep,workflow_run,issue_comment, andpull_request_reviewtriggers still reconcile PRs, so gate updates continued. Suggested follow-up: push one empty commit to a scratch branch offmainto trigger a controlledpull_request_targetrun, and open a GitHub support ticket with run IDs 47503786742, 47522819905, 47524033419, 47531396894, and 47531452736 if it still fails.Test Procedure
cd src && pnpm exec vitest run services/__tests__/pr-review-state-workflow.test.ts services/__tests__/stale-pr-clock-workflow.test.ts— 293 of 293 tests pass. The harness parses the workflow YAML and executes the edited reconcile script, so this also validates the YAML structure. Updated tests:routes zoomote-authored PRs directly to maintainer reviewreplaces the old automated-review wait test, andcompletes zoomote-authored release review after human maintainer approvalis new. The draft and CI-failure zoomote tests still pass unchanged.cd src && pnpm run check-types— passes.cd src && pnpm exec eslint --prune-suppressions --max-warnings=0 services/__tests__/pr-review-state-workflow.test.ts— passes.src/eslint-suppressions.jsonis unchanged; the file needs no suppression for the touched test.pnpm testfrom the repository root — 14 of 14 turbo tasks pass.actionlintandyamllintare not installed in the authoring environment. The YAML parse check above plus the structural assertions in the workflow test suite cover the change.Recorded Stream (new provider only)
Not applicable. This PR does not add a provider.
Pre-Submission Checklist
src/test-utils/,@/utils/test-utils) are used only for mechanical duplication; test intent and scenario-specific mocks remain visible.*.visual.tsxsnapshot inwebview-ui/. Seewebview-ui/AGENTS.md→ "When a UI change needs a snapshot".Visual Snapshots
Not applicable. This PR changes CI tooling and a contributor command doc. No webview UI changes.
Videos (interaction / animation only)
Not applicable.
Documentation Updates
Zoo-Code-Docsrepository needs no change. The contributor-facing release command doc (contrib/roo/roo/commands/release.md) is updated in this PR.Additional Notes
mainafter this PR merges. It does not modify PR Release v3.100.0 #2866, therelease/v3.100.0branch, or any tag.workflow_dispatch) can reconcile a stuck PR manually after merge if needed.Get in Touch
0x7777777_