2 hours ago · 9 min read1703 words · Tech · 0 comments

You might find this post especially useful if you have a project with many #[sqlx::test] tests. One of the upstream Rust projects that I worked on during the past few years was the rewrite of bors, the merge queue bot we use to merge all rust-lang/rust PRs. If you are interested in learning more about this bot, check out my talk from RustWeek 2026. I’m quite proud of the integration test suite of bors, which I spent a lot of effort on, and thanks to which the bot has been working pretty much flawlessly since we deployed it to production in January 2026 (despite GitHub lately often having… troubles). One thing that I’m not very happy about though is the incremental rebuild time of bors, and in particular its test suite. It takes a long time (~8-10s) to rebuild the tests after each change on my laptop, which is quite bad for productivity. Recently I finally found some time to profile1 its build time, and learned that it is caused by a combination of several factors: Generation of debug…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.