Repository navigation
feat: implement issue #1081 — canary-rollout sync-issues aborts every scheduled run — unguarded _gh_issue_create under set -e (+ App missing Issues:write) → no blocker issues, no fleet dashboard - #1085
Conversation
… scheduled run — unguarded _gh_issue_create under set -e (+ App missing Issues:write) → no blocker issues, no fleet dashboard
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
Next review available in: 25 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
|
Dev-Lead — review-changes (no-changes)No changes were needed for this PR. |
There was a problem hiding this comment.
Code Review
This pull request modifies scripts/canary-rollout.sh to gracefully handle failures when creating a GitHub blocker issue (e.g., if Issues:write permissions are denied) by appending || true to the assignment. This prevents the script from aborting due to set -e, ensuring that warnings are logged and the fleet-status dashboard is still rendered. A new test case has been added to tests/canary_rollout.bats to verify this graceful degradation. There are no review comments, so I have no feedback to provide.
There was a problem hiding this comment.
Pull request overview
Fixes the canary-rollout sync-issues orchestrator so it never aborts under set -euo pipefail when blocker-issue creation is denied/fails (e.g., GitHub App missing Issues:write). This restores the intended “best-effort” behavior: warn when issue filing fails, but still render the fleet-status dashboard and exit 0.
Changes:
- Guard
_gh_issue_createusage with|| trueso a failed create cannot tripset -eand abort before warnings/dashboard rendering. - Extend the Bats
ghstub to simulategh issue createfailure viaGH_CREATE_FAIL. - Add a regression test asserting graceful degradation: warning emitted, fleet-status table rendered to
GITHUB_STEP_SUMMARY, and status 0.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
scripts/canary-rollout.sh |
Prevents sync-issues from aborting when gh issue create fails under pipefail, ensuring warnings + dashboard still happen. |
tests/canary_rollout.bats |
Adds a denial/failure scenario to prove sync-issues stays green and still renders the fleet-status summary. |
Dev-Lead — fix-reviews (no-changes)Agent reasoning |
Review — fix requested (cycle 1/3)The automated review identified the following issues. Please address each one: Findings to fixAutomated review — NEEDS HUMAN REVIEWRisk: MEDIUM SummaryThis PR duplicates a fix that has already merged to main. It guards the single unguarded Linked issue analysisLinked issue #1081 (canary-rollout sync-issues aborts every scheduled run — unguarded _gh_issue_create under set -e) is CLOSED. Its code fix (step 1) was substantively addressed — but by PR #1084, already on main. The sibling audit the issue requested checks out on main: Findings
CI statusAll checks green at Reviewed automatically by the PR-review agent (single-reviewer mode: fable 5). Reply if you need a human review. Additional tasks
The review cascade will automatically re-review after new commits are pushed. |



Closes #1081
Implemented by dev-lead agent. Please review.