Skip to content

Assert that we invoke rustc once per statistics run #717

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 17 commits into from
Jul 26, 2020

Conversation

Mark-Simulacrum
Copy link
Member

@Mark-Simulacrum Mark-Simulacrum commented Jul 24, 2020

Make certain that we aren't spuriously rebuilding anything when touching files to force a rebuild. This ensures that we don't regress the run time of our collections because of spurious rebuilds when adding new benchmarks. (The existing benchmarks are updated in this PR).

This also changes the collection to run all builds kinds on CI, not just Check and Doc. This is done in parallel.

As a follow-up, this also move the enablement of incremental compilation out of Cargo's hands. Cargo, unfortunately, considers CARGO_INCREMENTAL=1 to be a workspace property -- for our purposes, though, we really only care about the leaf crate. Because Cargo considers incremental compilation to also change fingerprints, this meant that we were building any in-workspace dependencies twice per build-kind, once with incremental on and once without it. That adds up rapidly -- especially for the already really long crates like script-servo, which have numerous workspace (path) dependencies.

@Mark-Simulacrum Mark-Simulacrum force-pushed the assert-single-build branch 6 times, most recently from 6704c6d to d1882c2 Compare July 26, 2020 16:18
@Mark-Simulacrum Mark-Simulacrum changed the title Assert only final rustc Assert that we invoke rustc once per statistics run Jul 26, 2020
@Mark-Simulacrum Mark-Simulacrum merged commit f469ef7 into rust-lang:master Jul 26, 2020
@Mark-Simulacrum Mark-Simulacrum deleted the assert-single-build branch July 26, 2020 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant