Re:10k Bounty for Rewriting Prettier in Rust
by zegl on Monday November 13, 2023 @04:11AM
(#38248384)
The trick to make CI in large codebases fast, or how to make any system fast, is to only test what’s changed.
In CI you only need to lint the files that have changed, or run the tests that depend on code that has changed etc.
This way the time it takes to execute the tests scales with the amount of changes, and not with the total amount of code.
Re:10k Bounty for Rewriting Prettier in Rust
by DougBTX on Monday November 13, 2023 @04:43AM
(#38248571)
The difficulty with that is trust, if there’s any chance it will miss things by accident then I’d rather eat the slow runs.
Test runners that run new/changed tests first though are cool. Faster feedback on error but still comprehensive.
The idea is to catch cases where contributors failed to run the tool on save.
On large code bases this can be time consuming.