Subminute CI
In August, Moab migrated its entire codebase to a monorepo, reducing its median CI time to under one minute. The company's ERP system for equipment businesses relies on fast CI to serve its customers and maintain accuracy. Initially, Moab's codebase was small, and CI took less than a minute. However, as the codebase grew to millions of lines and testing expanded, CI time increased significantly.
The team used LLMs to discover optimization opportunities and implemented changes in four themes: parallelism, caching, hardware, and elimination. They initialized their app, forked it to match available vCPUs, and distributed unit tests across runners and processes. They minimized interdependence between CI jobs, attached persistent storage, and used a git mirror to avoid full GitHub checkouts.
Docker images were saved on disk, and the development database snapshot avoided DDL operations. CI time started at 8-12 seconds for 16 vCPU Ubuntu x64 runners, and the team profiled startup time to find that two 16 vCPU machines started faster than a single 32 vCPU machine. Despite running every unit test, the team considered this tradeoff necessary for maintaining engineering culture and the source of truth for customers.
Rewritten by urgent.news; may contain errors — check the original.
Source: engineering.moab.com
Read the original at engineering.moab.com →
Report a problem with this story
Get the day's news by email. Daily, weekly or monthly. Sign up