fix(governance): honor resolved review threads - #1180
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe governance gate detects incomplete review-thread metadata, tracks unresolved review comment IDs, and filters CodeRabbit blockers against those IDs. Tests cover resolved comments and truncated thread metadata. ChangesGovernance evidence validation
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
|
PR governance metadata gate update for PR governance metadata gate is ready; all current-head requirements passed. |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
scripts/ci/test_pr_governance_gate.sh (1)
87-89: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCover truncated per-thread comment pagination.
This only exercises
reviewThreads.pageInfo.hasNextPage; add a scenario wherereviewThreads.pageInfo.hasNextPageis false but an unresolved thread hascomments.pageInfo.hasNextPage: true, then assert the same fail-closed blocker and no merge.Also applies to: 784-793
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@scripts/ci/test_pr_governance_gate.sh` around lines 87 - 89, Add a governance test scenario alongside the existing review_threads_truncated handling in the PR gate script where reviewThreads.pageInfo.hasNextPage is false but an unresolved thread’s comments.pageInfo.hasNextPage is true. Assert that this truncated per-thread pagination produces the same fail-closed blocker and prevents merging, matching the existing truncated review-thread scenario.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@scripts/ci/test_pr_governance_gate.sh`:
- Around line 87-89: Add a governance test scenario alongside the existing
review_threads_truncated handling in the PR gate script where
reviewThreads.pageInfo.hasNextPage is false but an unresolved thread’s
comments.pageInfo.hasNextPage is true. Assert that this truncated per-thread
pagination produces the same fail-closed blocker and prevents merging, matching
the existing truncated review-thread scenario.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 409f12e0-5c41-4333-a7f9-bde9d09dc467
📒 Files selected for processing (2)
scripts/ci/pr_governance_gate.shscripts/ci/test_pr_governance_gate.sh
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Closing after Loop drain: permanently blocked — branch was updated onto develop for mergeability, which cleared prior APPROVED robot evidence; re-review (CodeRabbit/OpenCode) and/or central gate jobs (metadata-only gate evaluation, coverage-evidence) remained pending/stuck without a re-runnable workflow handle. Not force-merging (merge-gate policy). Re-open a focused PR when robot capacity is available. Related product security fixes that reimplemented cleanly remain on branch goal/carddav-path-traversal-decode (#1206) for relaunch. |
Summary
Why
PR #1112 has five resolved threads and no unresolved current thread, but the metadata gate still treated resolved CodeRabbit text containing
potential issueas blocking because it inspected only the REST comment body and current commit ID.Validation
bash scripts/ci/test_pr_governance_gate.sh— PASSshellcheck scripts/ci/pr_governance_gate.sh scripts/ci/test_pr_governance_gate.sh— PASSbash -n scripts/ci/pr_governance_gate.sh scripts/ci/test_pr_governance_gate.sh— PASSgit diff --check— PASSCurrent-head revalidation
792e1922ce0be81283468d55ca8183100753ef7bcomments.pageInfo.hasNextPagefail-closed regression scenario; full governance gate PASSgit diff --check: PASSThe workflow remains metadata-only. This PR does not dismiss reviews, merge PRs, execute PR-head code, or change central OpenCode dispatch.
Summary by CodeRabbit
Bug Fixes
Tests