Failing CI on the default branch
When CI fails on your default branch, Clara opens a pull request that fixes it, or comments on the commit when the failure isn't the code's doing.
When a GitHub Actions run fails on your default branch, whether a push, a schedule, or a manual run started it, Clara waits 30 minutes, then checks that the branch hasn’t moved on. If it has, a later push may already have fixed it, and that push’s own CI will say if it didn’t.
Then she reproduces the failure and decides whose it is:
| Cause | Clara |
|---|---|
| The code: a failing test, a type error, a lockfile out of date, or a dependency’s new release | Fixes it, reruns the checks, and opens a pull request. She comments on the commit with what failed and a link to the fix |
| Something else: secrets or network the run didn’t have, a service that was down, or a flaky test | Changes nothing, and comments on the commit with what failed and why it isn’t the code |
| She can’t tell | Changes nothing, and comments on the commit with what she found |
GitHub notifies a commit’s author about comments on it, so whoever pushed hears about it.
While one of her fixes for the branch is open, later failures wait for you to merge or close it, since they’re likely the same failure. The same goes for a fix from a review of the push: a broken push gets one pull request, not two.
A commit on a quiet branch keeps collecting runs, such as a nightly one. A run that fails later on a commit she has already commented on gets a look of its own.