AI NewsProductivityAnnouncement
Moab cut CI from a 3-hour timeout to 58.6 seconds
Moab, an ERP for equipment businesses, says its first CI run after a monorepo move timed out at 3 hours. One weekend later the median was 58.6 seconds. The test count later rose to 2.8 times its starting level.

Image: Moab Engineering
Why it mattersA median CI time under a minute changes what a reviewer can hold in their head. The four buckets Moab names are levers any team can test on its own pipeline.
The first CI run after Moab's monorepo move timed out at 3 hours on GitHub Actions. The team spent one weekend in August rebuilding the pipeline. The median run is now 58.6 seconds. The test count has since grown to about 2.8 times its starting level. The median runtime stayed inside 90 to 130 percent of that first minute. Moab is an ERP for equipment businesses. The post is at 88 points on Hacker News.
The post lists four buckets of change. Each on its own was small. Together they are the gap between a 3-hour timeout and a minute.
Parallelism, the biggest single win
Moab runs on Python. It uses pytest and xdist. The trick the post names is a fork pattern. Moab's words: it initialises the app, freezes it, and forks it to match the number of vCPUs on the runner.
The workers start from the frozen image, not a fresh app boot. The setup cost is paid once per runner, not once per test file.
The team spreads the work across workers with the Longest Processing Time rule. No worker finishes last by accident.
Moab says it does not try to pick which tests to run from a diff. The post's words: "Notably, we intentionally avoided trying to predict which unit tests are in scope based on the PR changes."
Every test runs on every change. Parallelism is what keeps that honest.
Caching the parts that do not change
Persistent volumes on the runners hold the git mirror, the Docker images, and a snapshot of the development database. A new PR does not re-fetch any of that over the network. The build picks it up from local disk. That one change removes most of the time a cold run spends on network setup.
Hardware, from a vendor
Moab names Blacksmith as the vendor. The post quotes its runner setup: "Most of our jobs use 16 vCPU Ubuntu x64 runners and start within 8 to 12 seconds."
The team found that two 16-core machines beat one 32-core machine for pytest. xdist scales better across hosts than inside one host. The default GitHub Actions runner is slower to start and smaller.
Cutting work the test did not need
Lazy imports, so a worker does not load every module. Skipped garbage collection, where safe. Conditional jobs, so a frontend change does not run the backend suite. And faster tools where the faster tool is already good.
Moab lists them. uv in place of pip. ruff for linting. ty for type checks. bun check for the JavaScript side, plus oxlint and oxfmt.
Where the LLM comes in
Moab says it was "inspired by Boris Cherny's claimed use of Fable". The post credits models for the review. Its words: "we used LLMs to uncover many of these optimization opportunities".
The model did not write the CI. It helped the team find places where the pipeline was slow for reasons no one had read. That use is the most durable one in a CI team's week. A slow test suite has many small causes. A model can walk a long log.
A team watching its own CI creep past five minutes on every PR can try the same order. Parallelism first, because it moved the largest single number in Moab's log. Caching second, because it is cheap and local. Hardware third, because it depends on a vendor. Cutting work last, because it is slow to audit and easy to break.
Source
Subminute CI, Moab Engineering.
This item was written by an AI system from the linked source. Reveneau is responsible for what it publishes.
Get AI News in your inbox
New developer tools, model and agent releases, and how teams are actually using them to release software. Short, and only when there is something worth reading.


