Skip to content

[Fix] Release PRs no longer hold at the review gate waiting for automated review - #2868

Draft
zoomote[bot] wants to merge 1 commit into
mainfrom
fix/release-gate-bot-authored-prs
Draft

zoomote[bot] wants to merge 1 commit into
mainfrom
fix/release-gate-bot-authored-prs

Conversation

@zoomote

@zoomote zoomote Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

​Created by Roomote. Follow up by mentioning @roomote, in the web UI, or in Discord.

Related GitHub Issue

Closes: #2867

Description

The Zoo Code / PR review gate stays 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) made zoomote[bot] eligible for the automated-review wait when CodeRabbit still reviewed bot PRs. That assumption no longer holds.

This PR empties codeRabbitEligibleBotLogins in the Label PR review state workflow. Bot-authored PRs now take the existing non-eligible path: a green required-CI state moves them to awaiting-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 CodeRabbit CHANGES_REQUESTED review 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 main and the gate re-runs. Until then, use the documented fallback rule.

Investigation: 11 cancelled checks on PR #2866

Root cause found. High confidence.

  • 14:34:42 UTC — the PR's third push (96d806a1) fired synchronize events. Five PR workflows started at 14:35:32 UTC (wave 1).
  • 14:36:02 UTC — a human marked the PR ready for review. The ready_for_review event re-triggered all five workflows at 14:36:04 UTC (all list ready_for_review in their pull_request types). Each workflow keys a per-PR concurrency group with cancel-in-progress enabled for pull_request events; visual-regression.yml always cancels.
  • Wave 2 therefore cancelled the 11 in-progress wave-1 checks (validate-release, e2e-mock, webview-visual, theme-fixtures, check-translations, extension-host-visual, knip, compile, Build test VSIX, platform-unit-test ubuntu/windows).
  • Wave 2 then re-ran every check to green. The last check finished at 14:51:09 UTC. The checks did re-run; the "cancelled and never re-ran" view was transient.
  • The gate stayed pending for a different reason: the automated-review wait. CodeRabbit's own check run on 96d806a1 ended as skipped — 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-progress concurrency groups when ready_for_review follows a push within seconds.

Investigation: startup_failure on the first push

All pull_request_target runs of this workflow currently fail at startup. Moderate-to-high confidence in the diagnosis below; the exact upstream cause needs a GitHub support check.

  • 13 runs concluded startup_failure between 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, on opened, synchronize, ready_for_review, and review_requested events.
  • Zero pull_request_target runs succeeded in that window. The last successful one was 2026-11-29 23:29 UTC; no pull_request_target runs ran in between.
  • The failure is specific to the pull_request_target trigger. 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.
  • The startup-failure runs contain no jobs and no logs. startup_failure means GitHub stopped the run before any job started.
  • No tracked file that affects this workflow changed on main between the last success and the first failure. .github/workflows/label-pr-review-state.yml last 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_target processing 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, and pull_request_review triggers still reconcile PRs, so gate updates continued. Suggested follow-up: push one empty commit to a scratch branch off main to trigger a controlled pull_request_target run, 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 review replaces the old automated-review wait test, and completes zoomote-authored release review after human maintainer approval is 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.json is unchanged; the file needs no suppression for the touched test.
  • pnpm test from the repository root — 14 of 14 turbo tasks pass.
  • actionlint and yamllint are 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

  • Issue Linked: This PR is linked to an approved GitHub Issue (see "Related GitHub Issue" above).
  • Listing Discussion (new provider or MCP server only): I opened a GitHub Discussion for this listing and linked it in the PR description.
  • Recorded Stream (new provider only): I added one recorded streaming response. It shows the finish chunk. If the handler reads cost or usage from chunks, it also shows the usage chunk.
  • Scope: My changes are focused on the linked issue (one major feature/fix per PR).
  • Self-Review: I reviewed my own code with care.
  • Writing Style: The PR title and description use Simplified Technical English (ASD-STE100): short sentences, plain words, active voice, one idea per sentence, no contractions.
  • Testing: New and/or updated tests have been added to cover my changes (if applicable).
  • Test Helpers (test changes only): Shared test helpers (src/test-utils/, @/utils/test-utils) are used only for mechanical duplication; test intent and scenario-specific mocks remain visible.
  • Visual Snapshot (UI changes only): If a user would notice this change at a glance (layout, theme tokens, brand elements, empty/error states), I added or updated a *.visual.tsx snapshot in webview-ui/. See webview-ui/AGENTS.md → "When a UI change needs a snapshot".
  • Documentation Impact: I checked if my changes need documentation updates (see "Documentation Updates" section below).
  • Contribution Guidelines: I read and agree to the Contributor Guidelines.

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

  • No documentation updates are required. This is CI and release tooling, not user-facing product functionality. The Zoo-Code-Docs repository needs no change. The contributor-facing release command doc (contrib/roo/roo/commands/release.md) is updated in this PR.

Additional Notes

  • The workflow change affects only future gate reconciliations on main after this PR merges. It does not modify PR Release v3.100.0 #2866, the release/v3.100.0 branch, or any tag.
  • The dispatch path (workflow_dispatch) can reconcile a stuck PR manually after merge if needed.

Get in Touch

0x7777777_

…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
@coderabbitai

coderabbitai Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are limited based on label configuration.

🏷️ Required labels (at least one): 1

  • coderabbit-review-active

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@github-actions

github-actions Bot commented Dec 5, 2026 •

Copy link
Copy Markdown
Contributor

Review status

This 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. community-approved is managed the same way — do not add or remove it manually. It signals a fresh community code approval for the current head as an advisory priority only; maintainer review is still required.

@codecov

codecov Bot commented Dec 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

This branch has not been deployed

No deployments
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.

Release gate: bot-authored release PRs can never clear the 'Zoo Code / PR review gate' (automated reviewer no longer approves bot PRs)

1 participant