Skip to content

fix: treat cancelled CI runs as non-failing#129

Merged
NiveditJain merged 3 commits into
mainfrom
fix/ci-green-cancelled-runs-v2
Apr 21, 2026
Merged

fix: treat cancelled CI runs as non-failing#129
NiveditJain merged 3 commits into
mainfrom
fix/ci-green-cancelled-runs-v2

Conversation

@NiveditJain

@NiveditJain NiveditJain commented Apr 21, 2026

Copy link
Copy Markdown
Member

Summary

  • Cancelled workflow runs (e.g. from superseded dependabot merges) were counted as failures by require-ci-green-before-stop, blocking the Stop event on branches with otherwise clean CI
  • Added cancelled to the list of non-failing conclusions alongside success and skipped
  • Fixed bot detection in review-policies.mjs convention hook: uses GraphQL __typename === "Bot" instead of checking for [bot] in login (CodeRabbit's login is coderabbitai, no suffix)
  • Stamped CHANGELOG for 0.0.6-beta.2 release (consolidates feat: add prefer-package-manager builtin policy #126 features/docs + this fix)

Test plan

  • Updated existing unit test to expect allow for cancelled runs
  • All 960 unit tests pass
  • All 207 E2E tests pass

🤖 Generated with Claude Code

NiveditJain and others added 2 commits April 21, 2026 01:06
…e-stop

Cancelled workflow runs (e.g. from superseded dependabot merges) were
counted as failures, blocking the Stop event on branches with clean CI.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
CodeRabbit's login is "coderabbitai" (no [bot] suffix), so the
review-policies convention hook missed it. Now checks __typename === "Bot"
from the GraphQL API, which reliably identifies all bot accounts.

Also adds missing PR number to CHANGELOG entry per repo convention.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai

coderabbitai Bot commented Apr 21, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@NiveditJain has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 12 minutes and 41 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 12 minutes and 41 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 133289a9-a32b-4b8f-9177-b29bfa28d228

📥 Commits

Reviewing files that changed from the base of the PR and between e355e15 and 12ff9bb.

📒 Files selected for processing (5)
  • .failproofai/policies/review-policies.mjs
  • CHANGELOG.md
  • __tests__/hooks/builtin-policies.test.ts
  • docs/built-in-policies.mdx
  • src/hooks/builtin-policies.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ci-green-cancelled-runs-v2

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

Comment @coderabbitai help to get the list of available commands and usage tips.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@NiveditJain NiveditJain merged commit 7ae8d59 into main Apr 21, 2026
9 checks passed
@NiveditJain NiveditJain deleted the fix/ci-green-cancelled-runs-v2 branch April 21, 2026 01:30
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.

1 participant