hn.today

Subminute CI

engineering.moab.com170 points76 comments
Screenshot of Subminute CI

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.

Read on engineering.moab.com76 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Programming

Show HN: Rust Commander

Show HN: Rust Commander

Rust Commander is a Rust terminal file manager modeled on Midnight Commander, with dual-pane navigation, a persistent shell, archive and remote browsing, and background file operations. Version 0.3.1 adds file-change alerts, viewer copy controls, customizable skins, and faster SFTP previews and copying. (github.com)

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.