Menu

When a check stays silent: a CI outage case study

Case study: our build runners lost much of their capacity for a long stretch and no alert reached a person. What we changed, and what is still open.

All posts ·

Written by the Augurya team · Build notes · 6 min read

Last updated

This is a build and operations story, not a story about the trading engine. In October 2026 the machines that run our automated checks lost most of the pool for a long stretch, and no alert reached a person. The cause was small. It lasted because nothing was built to say “this is broken” loudly enough to be heard.

Context

Every change to our code passes automated checks before it can merge, and releases are built and shipped by the same system. The jobs run on build machines that we operate ourselves. Each machine registers with the code host, waits for a job and runs it.

A watchdog already existed. On a fixed schedule it asked the code host how many machines in each pool were registered, and if the count was low it opened a tracking issue. It also tried to self-heal by restarting the affected machines.

What went wrong

A change merged on 16 October added two steps to the work each machine does before it starts accepting jobs: a reset of checkout state and a network fetch. That start-up phase has a short time budget. When the fetch ran longer than the budget, the start was cancelled and tried again, with no limit on retries. A machine in that loop never registers, so the code host shows it as absent, while our own view shows it as still starting. Both views were true, and neither said “failed”.

The watchdog did notice. It opened its tracking issue early on 17 October and then added a “still down” comment on each run. The self-heal was a restart, which cannot fix a start-up that is too slow, so it did nothing useful.

The reduced pool also meant queued jobs, including deploys, waited. Nothing measured how long runs sat in the queue, and the existing monitoring read failed runs, not waiting ones. A job that never starts has not failed, so it did not appear.

What we tried

The first fix made the start-up step local only, with no network call, and raised the start timeout. It merged on 18 October. The pool did not recover, because changes to the machines’ own setup are not installed from the main branch automatically. The machines kept running the old version until the new files reached them later that day. The affected machines were restarted, one was watched through a full register, run and deregister cycle, and the tracking issue was closed a minute later.

So two quiet failures were stacked: a loop that looked like activity, and a merged fix that looked like a resolution. Our draft postmortem puts the degraded stretch at more than a day. It also records what is not known: the moment the first runner failed, how many jobs were delayed and for how long, and how we first found out. We left those blank rather than estimate.

What we changed

Two changes to the watchdog, both merged in October.

First, any verdict other than healthy is now set up to send a message to a chat channel, including the case where the check itself cannot see the pool. The tracking issue stays as the record, not the only signal.

Second, a new job watches the queue. It reads queued runs and the queued jobs inside runs that have already started, and flags anything that has waited longer than a short limit. Two design choices matter more than the threshold. It runs on hosted infrastructure, because a monitor for a pool must not wait in that pool’s queue. And it fails closed: if the queue cannot be read, the job fails, because an unreadable queue is not an empty queue.

The decision logic lives in a small script apart from the workflow file, so tests can feed it sample data. Some tests pin the workflow itself and fail against the old one, which shows they can detect the original gap.

A follow-up fixed a false alarm from the first live run. It flagged two records that had sat in the queue for more than two weeks. Cancelling them does not work, and no runner could ever clear them, so paging on them on every run would only teach people to ignore the page. Anything queued far longer than a genuinely waiting run can be is now listed separately as a stale record instead of an outage.

What we took from it

A check that stays silent is not a check that passes. The gap was the difference between “nothing is wrong” and “nothing is being said”, and a quiet dashboard cannot tell them apart.

A common approach is to ask of every alert what happens when it fires and nobody is told. A tracking issue with no notification is a log. A self-heal that cannot fix the failure it was written for only looks like action. A health check whose expected count is set below the real pool size can pass with part of the pool down; our postmortem lists that as a follow-up and has not verified whether it applied here.

Detection is only half of it. A fix that is merged but not running is not a fix, and nothing reported that gap either. The monitoring that matters most is also the kind that does not run on the thing it watches, which is why the queue watch is hosted, and the same reasoning is why we plan an external dead-man’s switch, where silence itself raises the alarm. Our earlier piece on risk governance makes the same point: an untested control is a hypothesis.

One limit to state plainly: both new checks run on a fixed schedule. They catch a pool that stays degraded and a queue that stays stuck. They do not catch a wait that starts and ends between two runs, so this change alone does not give detection in minutes. We chose not to run the watchdog more often because that would spend billed hosted time on a watch.

What we would do next

The postmortem lists open items rather than finished ones. A repository test that rejects network calls in start-up steps, so the original mistake fails at review, and better detection of start-up loops, which remain an open item. Delivery of the new message to a channel a person reads still needs a deliberate test; until it is observed, the change is merged rather than proven.

The question that carries over is short: if this broke right now, which signal would say so, and who would it reach?

General commentary on build and operations practice, not investment advice and not a description of any outcome. See our Risk Disclosure.