Skip to content

Add workflow that fails when Dependabot updates error#751

Merged
oschwald merged 1 commit into
mainfrom
wstorey/stf-1124-failures-to-run-dependabot-are-visible
Jul 22, 2026
Merged

Add workflow that fails when Dependabot updates error#751
oschwald merged 1 commit into
mainfrom
wstorey/stf-1124-failures-to-run-dependabot-are-visible

Conversation

@horgh

@horgh horgh commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Add a weekly scheduled workflow that fails when any "Dependabot Updates" run concluded with failure, startup_failure, or timed_out in the last 8 days, so a silently-broken Dependabot ecosystem surfaces as a red scheduled run that emails a human instead of only a red triangle in the Dependabot tab that nobody checks.

This is a copy of the reference change in maxmind/device-android#61, adjusted to run on Wednesdays and to also treat timed_out as a failure.

🤖 Generated with Claude Code

Dependabot version update failures only surface as a red triangle in
the Dependabot tab, which nobody checks. This weekly scheduled workflow
fails if any "Dependabot Updates" run concluded with failure,
startup_failure, or timed_out in the last 8 days, so a broken ecosystem
surfaces as a red scheduled run that emails a human.

See maxmind/device-android#61 for the reference implementation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 22, 2026 16:12
@coderabbitai

coderabbitai Bot commented Jul 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@horgh, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 58 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: d9d542ad-bc63-407d-bee7-e681a4c61240

📥 Commits

Reviewing files that changed from the base of the PR and between 98f4606 and 0d72c99.

📒 Files selected for processing (1)
  • .github/workflows/dependabot-failure-watcher.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch wstorey/stf-1124-failures-to-run-dependabot-are-visible

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.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Adds a scheduled GitHub Actions workflow that monitors recent “Dependabot Updates” workflow runs and fails if any concluded with failure, startup_failure, or timed_out, so Dependabot breakages surface via a failing scheduled run/notification.

Changes:

  • Introduces a new scheduled + manually-dispatchable workflow (Dependabot Failure Watcher).
  • Queries “Dependabot Updates” runs from the last 8 days and fails the job when any qualifying failures are found.
  • Includes the timed_out conclusion as a failure case.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +30 to +37
since=$(date -u -d '8 days ago' +%Y-%m-%dT%H:%M:%SZ)
failures=$(gh run list \
--repo "$REPO" \
--workflow "Dependabot Updates" \
--limit 100 \
--json conclusion,createdAt,displayTitle,url \
--jq "[.[] | select((.conclusion == \"failure\" or .conclusion == \"startup_failure\" or .conclusion == \"timed_out\") and .createdAt >= \"$since\")]")
count=$(echo "$failures" | jq 'length')
@oschwald
oschwald merged commit 8864952 into main Jul 22, 2026
32 checks passed
@oschwald
oschwald deleted the wstorey/stf-1124-failures-to-run-dependabot-are-visible branch July 22, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants