Check Clean and Fast-Forward Before Resetting Local Main - #939
Conversation
…e release-watch timeout Two real findings from the promotion PR's own review round: the hub Skills refresh force-reset local main with git checkout -B main origin/main without first checking the checkout was clean or the update was a fast-forward, risking a silent discard of local work under this fleet's no-discard rule. Now checks both first and stops rather than reconciling either problem. The release-watch bound was a literal timeout placeholder rather than a defined value, now set to 2700 seconds, matching the pr_review.py script's own default, adjustable when the maintainer states a different bound for a specific release.
|
Warning Review limit reached
Next review available in: 39 seconds Limit details: You’ve used all 10 included reviews currently available. Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?Wait for the limit to reset, then comment An organization admin can change what happens after included review limits in Billing. How do review limits work?CodeRabbit enforces per-developer PR review limits within each organization. For paid Pro and Pro+ reviews, CodeRabbit uses a developer's included PR review attempts over the past 7 days to set the current hourly allowance. At typical activity levels, the full plan allowance applies. Higher sustained activity can lower the allowance until earlier attempts leave the 7-day window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
Comment |
PR Summary by QodoAdd safety checks before resetting local main; set finite release-watch timeout
AI Description
Diagram
High-Level Assessment
Files changed (4)
|
Code Review by Qodo
1.
|
Distinct from the earlier-disproven CommonMark rendering claim, qodo caught a real risk here: this repo's SKILL.md is also read as raw text by Codex and opencode, not only rendered. A naive raw-text extraction of a backtick-wrapped command that itself contains a real newline can split into two shell commands instead of one. Kept this specific command on a single physical source line.
|
Closing as superseded. This caught a real bug (git checkout -B main origin/main force-resetting local main unconditionally) independently of another session working the same defect at the same time via #936's own review round, #937, and #940. Develop now carries a more thorough fix for that half (git checkout + git merge --ff-only, a clean-tree preflight covering gitignored paths, --exit-code tri-state ls-remote handling, a rev-parse --verify fix, and remote-only cleanup recovery), which is why this PR now shows conflicting against develop. The other half of this PR, the literal 'timeout ' placeholder in the release-watch step, is still unaddressed on develop and genuinely valid. Filing that as its own targeted follow-up instead of trying to rebase this one. |
Fixes the still-valid half of #939 (closed as superseded on its other half, checkout-safety, already fixed more thoroughly on develop via #937/#940). Step 6's run-watch bound was a literal `<seconds>` template placeholder, never a runnable command as written. Filled in `2700` (45 minutes), matching `scripts/pr_review.py`'s own default (verified: `ap.add_argument("--timeout", type=int, default=2700, ...)`). 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Bug Fixes** * Release monitoring now uses a finite 45-minute timeout by default. * Supports equivalent bounded waiting across different host environments. * Clearly distinguishes timed-out runs from completed results and generated versions. * Reports failed, timed-out, or unstarted runs without automatically retrying. * **Documentation** * Updated release monitoring guidance to reflect the new timeout and reporting behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai --> Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
Fixes two real findings the promotion PR #936 review round caught (qodo, against the merge-and-release skill's hub Skills-refresh step):