Moab cuts median CI time to under one minute on a monorepo
Moab, which makes an enterprise resource planning (ERP) system for equipment businesses, moved its entire codebase to a monorepo over a weekend in August. It brought the median CI time under 1 minute and has kept it there while significantly increasing its test count. The codebase contains millions of lines of code, and the initial pytest and xdist setup on GitHub Actions timed out after 3 hours.
The changes follow four themes. For parallelism, the app is initialized, frozen and forked to match the available vCPUs, and unit tests are spread across runners by their previous execution times, using the Longest Processing Time heuristic[1] within each runner and hash partitioning[2] for tests without time metrics. For caching, a persistent storage volume holds a git mirror that allows a shallow fetch[3] from GitHub, Docker images, and a snapshot of the development database in Amazon S3. For hardware, most jobs run on 16 vCPU runners that start within 8 to 12 seconds, and two 16 vCPU machines start faster than one 32 vCPU machine.
For elimination, the team uses lazy imports and skips actions unaffected by a change, such as the migration step for PRs without schema changes. It also deliberately runs every unit test rather than predicting which ones are in scope, because the company is the source of truth for its customers.
Read the original engineering.moab.comDiscussion
Discussion
Commenters mostly share their own CI speedups, such as cutting CI from 11 minutes to 70 seconds or from 5 minutes on a dedicated AWS instance. Several say that caching is hard to get right and that poorly written tests are a major cause of slow CI, while one asks whether the builds are still reproducible.
Links from the post and discussion
- Pipescan: tool that visualizes CI pipelines (beta, GitHub Actions only) pipescan.shipit.dev
- Using git trailers to avoid repeated work in CI jonathannen.com
Sources
-
engineering.moab.com
Subminute CI
-
KRGeekNews KO
1분 미만의 CI


