Moab Engineering describes how it moved a millions-of-lines ERP codebase into a monorepo over one weekend and brought median CI time below a minute, despite adding many tests. Its earlier pytest-and-xdist setup eventually took so long on GitHub Actions that a run timed out after three hours. The team treats fast CI as both a practical way to shorten engineers’ feedback loops and a measure of technical understanding and shared discipline: keeping builds fast requires knowing the stack in detail and preventing slow tests from undermining the goal. Because customers depend on the ERP as a financial source of truth, Moab chose not to risk skipping tests based on which code a change appeared to affect; every unit test still runs.
The approach combines parallelism, persistent caching, faster hardware, and removal of unnecessary work. Tests are balanced across runners using historical timings, then distributed among processes; independent CI jobs run concurrently. Persistent disks hold a Git mirror and Docker images, while a database snapshot avoids rebuilding schemas and fixtures. Fast 16-vCPU runners, which start sooner than larger machines in the team’s tests, further reduce delays. The team also uses lazy imports, defers expensive initialization, skips checks unaffected by a change, adopts faster developer tools, and removes overhead such as telemetry and cleanup from the critical path. Together, these changes keep CI under a minute while the test suite grows.
Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.