Create

Sign in to ReadmeX

or

How we handle your data: Privacy Policy

ReadmeX

Your AI reading companion

What would you like to catch up on?

Pick a briefing, or ask your own question.

Your community and people briefings stay personal to you.

Story

Moab Uses LLMs to Cut Median CI Time Below One Minute

AI summary

Moab reports that it migrated its codebase to a monorepo over a weekend in August and reduced median CI time to under one minute while increasing its test count. The company combined parallelism, caching, faster runners, and workflow elimination, with LLMs used to identify many optimization opportunities. Before the overhaul, its original pytest and xdist setup on GitHub Actions timed out after three hours.

In-depth insight

The case study provides a concrete set of engineering practices for keeping CI fast at scale, while also showing how LLMs can help uncover optimization opportunities.

Over a weekend in August, we migrated our entire codebase to a monorepo and brought its median CI time to under 1 minute.

We've held it there, while significantly increasing our test count.

Image 1: Datadog dashboard showing a 58.6 second median CI execution time, with weekly medians under one minute from August 29 to November 26
Image 2: Datadog chart from September 8 to November 24: test count grew to about 280 percent of its starting level while CI runtime stayed between about 90 and 130 percent

Moab's product is an enterprise resource planning (ERP) system for equipment businesses. Our customers rely on it as their financial source of truth.

In the early days of Moab, fast CI was easy. With a small codebase using pytest and xdist on a GitHub Actions runner, CI can complete in under a minute. The hard part is keeping it fast while scaling. Moab now powers some very large businesses. Our codebase contains millions of lines of code, and the quantum of tests we had added to ensure correctness at scale considerably slowed down CI. In advance of publishing this post, we tried running our CI on GitHub Actions using our initial pytest and xdist setup. We'd like to tell you how long it took to complete, but the initial run timed out after 3 hours.

#Moab#Fable#AWS#Terraform#Python#Flask#SQLAlchemy#Postgres#React.js#TypeScript#GitHub Actions#pytest

Original · 4 min readRead the original
Group chat

No comments yet. Start the conversation.