Skip to content

[devprod-status-bot] Send alert on CI failures in Version Packages PRs#12371

Merged
petebacondarwin merged 6 commits intomainfrom
pbd/vp-ci-failure-alerts
Feb 3, 2026
Merged

[devprod-status-bot] Send alert on CI failures in Version Packages PRs#12371
petebacondarwin merged 6 commits intomainfrom
pbd/vp-ci-failure-alerts

Conversation

@petebacondarwin
Copy link
Copy Markdown
Contributor

@petebacondarwin petebacondarwin commented Feb 2, 2026

Fixes https://jira.cfdata.org/browse/DEVX-2403

Adds monitoring for CI check failures on the Version Packages PR (changeset-release/main branch). When a required check fails or times out, an alert is sent to the ANT: Alerts Google Chat channel.

Summary

  • Listens for check_run webhook events with completed action
  • Filters for failures/timeouts on the changeset-release/main branch
  • Fetches required status checks from GitHub branch protection API to only alert on required checks
  • Groups alerts by PR number in the same chat thread (using PR ID as thread key)
  • Includes check name, conclusion, duration, and links to check run and PR

  • Tests
    • Tests included/updated
    • Automated tests not possible - manual testing has been completed as follows:
    • Additional testing not necessary because: Internal bot with no existing tests; changes are straightforward webhook handling and Google Chat API calls
  • Public documentation
    • Cloudflare docs PR(s):
    • Documentation not necessary because: Internal tooling change, not user-facing

Open with Devin

@petebacondarwin petebacondarwin requested a review from a team as a code owner February 2, 2026 20:31
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Feb 2, 2026

🦋 Changeset detected

Latest commit: 685da3c

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

Copy link
Copy Markdown
Contributor

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no potential bugs to report.

View in Devin Review to see 4 additional flags.

Open in Devin Review

Comment thread packages/devprod-status-bot/src/index.ts Outdated
@claude
Copy link
Copy Markdown
Contributor

claude Bot commented Feb 3, 2026

Claude finished @petebacondarwin's task —— View job


Changeset Review

  • Read changeset guidelines
  • Review changeset file
  • Validate against criteria
  • Post results

All changesets look good

The changeset .changeset/deep-fans-guess.md follows all guidelines:

  • ✅ Version type is appropriate (minor for new feature)
  • ✅ Clear, well-written description with context
  • ✅ No problematic markdown headers
  • ✅ Correct package scope

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented Feb 3, 2026

create-cloudflare

npm i https://pkg.pr.new/create-cloudflare@12371

@cloudflare/kv-asset-handler

npm i https://pkg.pr.new/@cloudflare/kv-asset-handler@12371

miniflare

npm i https://pkg.pr.new/miniflare@12371

@cloudflare/pages-shared

npm i https://pkg.pr.new/@cloudflare/pages-shared@12371

@cloudflare/unenv-preset

npm i https://pkg.pr.new/@cloudflare/unenv-preset@12371

@cloudflare/vite-plugin

npm i https://pkg.pr.new/@cloudflare/vite-plugin@12371

@cloudflare/vitest-pool-workers

npm i https://pkg.pr.new/@cloudflare/vitest-pool-workers@12371

@cloudflare/workers-editor-shared

npm i https://pkg.pr.new/@cloudflare/workers-editor-shared@12371

@cloudflare/workers-utils

npm i https://pkg.pr.new/@cloudflare/workers-utils@12371

wrangler

npm i https://pkg.pr.new/wrangler@12371

commit: 685da3c

@petebacondarwin petebacondarwin force-pushed the pbd/vp-ci-failure-alerts branch from 142da6f to fac180d Compare February 3, 2026 11:09
Copy link
Copy Markdown
Contributor

@vicb vicb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very nice, thanks!

A few nit, if one thing more comments would be great!

Comment thread packages/devprod-status-bot/src/index.ts Outdated
Comment thread packages/devprod-status-bot/src/index.ts Outdated
Comment thread packages/devprod-status-bot/src/index.ts Outdated
Comment thread packages/devprod-status-bot/src/index.ts
Comment thread packages/devprod-status-bot/src/index.ts
Comment thread packages/devprod-status-bot/src/index.ts Outdated
Comment thread packages/devprod-status-bot/src/index.ts Outdated
Comment thread packages/devprod-status-bot/src/index.ts
@github-project-automation github-project-automation Bot moved this from Untriaged to Approved in workers-sdk Feb 3, 2026
petebacondarwin and others added 5 commits February 3, 2026 20:27
Add monitoring for CI check failures on the Version Packages PR (changeset-release/main branch).
When a required check fails or times out, an alert is sent to ANT: Alerts Google Chat channel.

- Fetches required status checks from GitHub branch protection API
- Only alerts on required checks (falls back to all if API fails)
- Groups alerts by PR number in the same chat thread
- Includes check name, conclusion, duration, and links to check run and PR
Send an alert to the chat when the getRequiredStatusChecks API call
fails (e.g., rate limited). This ensures the team is aware of potential
issues with the bot's ability to filter alerts correctly.
The contexts field is deprecated in favor of the checks array which
provides more granular control. This change prefers the modern checks
array while falling back to contexts for backward compatibility.
Change versioning of the devprod-status-bot package from patch to minor.
@petebacondarwin petebacondarwin force-pushed the pbd/vp-ci-failure-alerts branch from fac180d to e88ec07 Compare February 3, 2026 20:45
@petebacondarwin petebacondarwin merged commit 50ad9a9 into main Feb 3, 2026
35 checks passed
@petebacondarwin petebacondarwin deleted the pbd/vp-ci-failure-alerts branch February 3, 2026 21:17
@github-project-automation github-project-automation Bot moved this from Approved to Done in workers-sdk Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants