Skip to content

feat(code-review): add alerts#3136

Draft
alex-alecu wants to merge 1 commit intomainfrom
feat/cloud-review-alerts
Draft

feat(code-review): add alerts#3136
alex-alecu wants to merge 1 commit intomainfrom
feat/cloud-review-alerts

Conversation

@alex-alecu
Copy link
Copy Markdown
Contributor

Why

Code review jobs can get stuck or fail a lot without one clear signal. This adds a simple alert so the team can see when the code review system needs attention.

What changed

A new scheduled check now looks at code review health every five minutes. It catches high failure rates, stuck reviews, missing completions, and one error type becoming too common. When a problem is found, it checks a shared cooldown before sending a Slack alert, so the team does not get repeated messages for the same problem. The cooldown state is stored in the existing o11y service.

How to test

  1. Run pnpm --filter cloudflare-o11y test -- code-review-dedup.
  2. Run pnpm --filter web typecheck.
  3. Run pnpm --filter web lint.
  4. Run the cron with test review rows that trigger an alert and confirm one Slack message is sent.

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