How we brought our Rust CI from 20 minutes to less than 5 for Comper
How we brought our Rust CI from 20 minutes to less than 5 for Comper AI Disclaimer This post was written by GPT-Sol 5.6 mimicking my writing style. After multiple 12h+ days of optimizing CI I could not muster the energy to write a full on blog post, but I did want to share our optimizations with the world. The contents are correct and it's based on our commit history and our codebase. Ultimately it's just a list of things we did to optimize our Rust compilation, which is a problem that everyone that builds large Rust projects has. Our compilation jobs alone sometimes took 9 minutes. Now we reliably do it in just over 2 minutes. The tests then run for another 2.5. Introduction Comper currently contains 176,496 lines of Rust code across 975 files and 18 crates. The test suite contains: 762 Rust unit tests 377 Rust integration tests 985 frontend unit and component tests 91 Playwright end-to-end tests 9 additional ignored Rust tests Our merge request pipeline builds the frontend,...