Moab Uses LLMs to Cut Median CI Time Below One Minute
Moab reports that it migrated its codebase to a monorepo over a weekend in August and reduced median CI time to under one minute while increasing its test count. The company combined parallelism, caching, faster runners, and workflow elimination, with LLMs used to identify many optimization opportunities. Before the overhaul, its original pytest and xdist setup on GitHub Actions timed out after three hours.
The case study provides a concrete set of engineering practices for keeping CI fast at scale, while also showing how LLMs can help uncover optimization opportunities.
Over a weekend in August, we migrated our entire codebase to a monorepo and brought its median CI time to under 1 minute.
We've held it there, while significantly increasing our test count.


Moab's product is an enterprise resource planning (ERP) system for equipment businesses. Our customers rely on it as their financial source of truth.
In the early days of Moab, fast CI was easy. With a small codebase using pytest and xdist on a GitHub Actions runner, CI can complete in under a minute. The hard part is keeping it fast while scaling. Moab now powers some very large businesses. Our codebase contains millions of lines of code, and the quantum of tests we had added to ensure correctness at scale considerably slowed down CI. In advance of publishing this post, we tried running our CI on GitHub Actions using our initial pytest and xdist setup. We'd like to tell you how long it took to complete, but the initial run timed out after 3 hours.
#Moab#Fable#AWS#Terraform#Python#Flask#SQLAlchemy#Postgres#React.js#TypeScript#GitHub Actions#pytest