Repository navigation
CI watch warns on a job over budget on main, and skips the count of a branch older than the limits - #3009
Merged
Conversation
… branch older than the limits Two fixes from openbot-backend #1249 and #1250, the same code here. A job over budget in the merge queue or on main failed CI watch, which marks main's commit not green; Staging's pick of green main (the backend's scripts/staging-green.ts, which reads this repository too) then skipped every commit until the job was fast again, though every real check passed. It now keeps its ci-budget issue and prints a `CI over budget` warning, and CI watch stays green. A pull request still fails the budget test and the job count. On a pull request's run CI watch reads that branch's own .github/ci-budgets.json. A branch cut before the file had `limits` (#2988) crashed it ("undefined is not an object (evaluating 'file.limits[key]')"). Its job count is now skipped, with a note.
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
December 5, 2026 12:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Two CI watch fixes, ported from openbot-backend #1249 and #1250. The code here is the same.
scripts/staging-green.ts, which reads this repository too) then skipped every commit until the job was fast again, though every real check had passed. That blocked Staging on 5 December.ci-budgetissue and gets aCI over budgetwarning on the run, and CI watch stays green. A PR over budget still fails: the static budget test and the job count both still fail it.limitsis no longer counted..github/ci-budgets.json. A branch cut before CI fails when it grows slower or starts more jobs than its written budget #2988 has the file withoutlimits, which crashed CI watch ("undefined is not an object (evaluating 'file.limits[key]')").Where it runs
scripts/ci-watch.tsand a comment in.github/workflows/ci-watch.yml. GitHub Actions only; no app, server or API change.Changelog
none
Proof
scripts/ci-watch-requests.test.tsruns CI watch as CI runs it, against thegh apistand-in and real runs of this repository:CI over budgetwarning and exits 0. Before the fix it exited 1.bun teston ci-watch-requests, ci-watch, ci-budget, ci-budgets and workflow-concurrency: 96 pass.ci-watch.yml.