Vincent Koc's write-up on OpenClaw details an unexpected bottleneck encountered when software-writing agents accelerate development: a massive accumulation of redundant test files that overwhelm CI runners, according to source reports by Dishant Sharma and Vincent Koc.
The Test Inflation Crisis
As AI coding agents accelerate the generation of codebase features, they simultaneously flood repositories with automated tests. In the case of OpenClaw, approximately 89 percent of the codebase is written in TypeScript, meaning every single generated test demands an active runner. According to reports from Vincent Koc and Dishant Sharma, test files surged until they accounted for nearly 69 percent of core code by late September. This exponential test growth triggered ballooning queue times and severe runner strain, forcing the development team to confront a maintenance overhead that far outpaced normal human output.
Enforcing a Test-Line Ratchet
To combat runaway test expansion, the team instituted a strict test-line ratchet policy. Once the test suite hit a specified ceiling, any new test additions had to be strictly offset by deleting or consolidating existing coverage. By mid-November, the rule permitted a maximum of 400 net new lines per change without a formal allocation record, while larger additions required documented justification. Through systematic auditing—such as removing redundant assertions that tested conditions already guaranteed by basic format checks—OpenClaw successfully pruned over 417,906 lines of tests. Reviewer Peter Steinberger noted that this massive deletion occurred with virtually no loss in actual coverage, distinguishing true cleanup from arbitrary file deletion.

Beyond Raw Deletion: Optimizing Setup and Selection
Beyond shrinking the raw test volume, the team tackled the hidden fixed costs of pipeline execution. They introduced blobless checkouts, split bulky archives into lightweight runtime and tooling packages, reused worker lanes via isolate: false configurations in Vitest, and substituted faster tooling like tsrs for local typechecks while retaining tsgo for release validation. Furthermore, OpenClaw implemented adaptive test selection driven purely by code diffs and dependency graphs rather than an LLM. By mapping changed files directly to their owning tests, PR target counts dropped precipitously—from thousands of entries down to fewer than two hundred—drastically reducing execution overhead without sacrificing safety verification.
Why Cost Reductions and Speed Are Different Metrics
This operational case study offers critical insights into the real-world economics of agentic software development, highlighting a profound divergence between cheaper CI pipelines and faster CI pipelines. While OpenClaw reported an estimated 95.5 percent drop in compute value—with runtime hours plunging from over 158,000 during a peak week down to roughly 21,000—the authors transparently noted that Blacksmith had sponsored the capacity, meaning those headline dollar figures represent theoretical savings rather than direct invoice reductions. Moreover, median PR CI times did not follow a neat downward trajectory, illustrating that lowering a monthly cloud bill and accelerating developer feedback loops are entirely separate engineering challenges. Teams adopting AI coding agents must recognize that automated generation shifts the primary bottleneck from writing code to managing verification overhead. Establishing strict measurement discipline, auditing test redundancy, and separating release-gating checks from routine local validation are essential strategies for keeping agent-driven repositories sustainable over time, ensuring that infrastructure costs do not quietly strangle developer productivity.
Cover: winkelnkemper · CC BY-SA 2.0 · Wikimedia Commons. Layout and headline text by Signal Titans.
Source: CI Was 95% Cheaper After They Deleted 400k Lines of Tests · CI Was 95% Cheaper After They Deleted 400k Lines of Tests

Leave a Reply