Skip to content

Reduce run durations #692

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 7 commits into from
Jul 17, 2020
Merged

Conversation

Mark-Simulacrum
Copy link
Member

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

  • Removes rustdoc incremental runs; rustdoc does not support incremental.
  • Reduces files touched for some crates, hopefully reducing rebuilds of dependencies for script-servo and other similar crates.
  • Fixes style-servo and script-servo-2 to not spuriously rebuild a bunch of dependencies on every iteration.
  • Adds support for raw stderr/stdout logging via RUST_LOG=collector_raw_cargo=trace, mostly intended for debugging.

In sum, this PR brings the script-servo builder from 1h 4m 39s to 48m 47s and the general builder from 45m 2s to 34m 19s. I expect even larger effects on the collection machine, since our CI only does Check/Doc builds which are quite fast to recover from spurious rebuilding (unlike Opt/Debug runs, which are quite a bit more expensive).

This doesn't adjust all the benchmarks yet; for most of them touching all the
files is fine since they're a single crate anyway.
Previously we'd rebuild selectors after copying as the build script depended
on the absolute path of the crate rather than a workspace-relative path. This is
a Cargo bug, which is being fixed, but we'd like to have the wins sooner rather
than later.
@Mark-Simulacrum Mark-Simulacrum merged commit 740b447 into rust-lang:master Jul 17, 2020
@Mark-Simulacrum Mark-Simulacrum deleted the cut-duration branch July 17, 2020 18:29
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