rust-lang / crater

Run experiments across parts of the Rust ecosystem!
https://crater.rust-lang.org
643 stars 90 forks source link

Make crater test better incr comp #556

Open spastorino opened 3 years ago

spastorino commented 3 years ago

We were discussing on Zulip about some simple ideas on how to test incr compilation better.

Maybe it could be nice to build crate versions N - 1 and then incrementally build crate versions N to better exercise incr comp code.

pietroalbini commented 3 years ago

This might get messy, as Crater runs every build in a shared target directory. Not sure how much it would skew the results.

michaelwoerister commented 3 years ago

For reference, during the initial development of incremental compilation we had the cargo-incremental tool that did something similar. The main problem I remember was that we tested large parts of a given crate's commit history and many commits were written against much older versions of Rust. But if you only test a few versions back that shouldn't be so much of a problem.