Skip to content

fix: resolve CI check failures on all PRs — regex false positive + concurrency#2974

Merged
marcusquinn merged 1 commit intomainfrom
bugfix/ci-check-failures
Mar 6, 2026
Merged

fix: resolve CI check failures on all PRs — regex false positive + concurrency#2974
marcusquinn merged 1 commit intomainfrom
bugfix/ci-check-failures

Conversation

@marcusquinn
Copy link
Owner

Summary

Fixes three compounding bugs that caused every open PR to show failing/cancelled CI checks:

  • opencode-agent.yml regex false positive: The trigger regex /\/(oc|opencode)\b/ matched file paths in CodeRabbit review comments (e.g., .agents/plugins/opencode-aidevops/observability.mjs), causing the workflow to fire on every bot review. Fixed by requiring the trigger at line start or after whitespace.
  • opencode-agent.yml missing permissions: The security-check job had no permissions block, so GITHUB_TOKEN defaulted to read-only. When the false-positive fired and the job tried to reply with a rejection message, it failed with HTTP 403.
  • review-bot-gate.yml stale CANCELLED checks: cancel-in-progress: true cancelled the initial pull_request:opened run when a bot posted, leaving a permanent stale CANCELLED check that made mergeStateStatus: UNSTABLE.

Why self-improvement didn't catch this

The pulse/supervisor checks for open PRs and stale issues but doesn't analyze why CI checks fail. It sees UNSTABLE but doesn't drill into which check or root cause. The OpenCode Agent workflow (which could fix this via /oc commands) was itself broken by the same regex bug — a circular failure.

Testing

  • YAML syntax validated (both files)
  • Regex tested with Node.js: file paths no longer trigger, actual /oc and /opencode commands still trigger correctly

Closes #2973

…ncurrency

Three compounding bugs caused every PR to show failing/cancelled checks:

1. opencode-agent.yml regex /\/(oc|opencode)\b/ matched file paths in
   CodeRabbit review comments (e.g., /opencode-aidevops/observability.mjs),
   triggering the workflow on every bot review. Fixed by requiring the
   trigger to appear at line start or after whitespace: /(^|\s)\/(oc|opencode)\b/m

2. opencode-agent.yml security-check job had no permissions block, so
   GITHUB_TOKEN defaulted to read-only. When the regex false-positive
   fired and the job tried to reply to CodeRabbit's comment with a
   rejection message, it failed with 403. Added pull-requests: write
   and issues: write permissions.

3. review-bot-gate.yml used cancel-in-progress: true, which cancelled
   the initial pull_request:opened run when a bot posted (triggering
   issue_comment:created). The cancelled run left a permanent stale
   CANCELLED check, making mergeStateStatus UNSTABLE. Changed to false.

Closes #2973
@gemini-code-assist
Copy link

Warning

You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again!

@github-actions github-actions bot added the bug Auto-created from TODO.md tag label Mar 6, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Mar 6, 2026

Warning

Rate limit exceeded

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

⌛ 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.

⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 28ecdefc-1c5d-4acb-b470-728a2a0e7ecc

📥 Commits

Reviewing files that changed from the base of the PR and between 5fc8fc2 and 01e1ee7.

📒 Files selected for processing (2)
  • .github/workflows/opencode-agent.yml
  • .github/workflows/review-bot-gate.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch bugfix/ci-check-failures

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.

@github-actions
Copy link

github-actions bot commented Mar 6, 2026

🔍 Code Quality Report

�[0;35m[MONITOR]�[0m Code Review Monitoring Report

�[0;34m[INFO]�[0m Latest Quality Status:
SonarCloud: 0 bugs, 0 vulnerabilities, 108 code smells

�[0;34m[INFO]�[0m Recent monitoring activity:
Fri Mar 6 04:45:15 UTC 2026: Code review monitoring started
Fri Mar 6 04:45:15 UTC 2026: SonarCloud - Bugs: 0, Vulnerabilities: 0, Code Smells: 108

📈 Current Quality Metrics

  • BUGS: 0
  • CODE SMELLS: 108
  • VULNERABILITIES: 0

Generated on: Fri Mar 6 04:45:18 UTC 2026


Generated by AI DevOps Framework Code Review Monitoring

@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 6, 2026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Auto-created from TODO.md tag

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix: CI checks failing on all PRs — opencode-agent regex false positive + review-bot-gate concurrency

1 participant