Skip to content
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

Speed up the test suite #1229

Merged
merged 3 commits into from
Aug 11, 2017
Merged

Speed up the test suite #1229

merged 3 commits into from
Aug 11, 2017

Conversation

alexcrichton
Copy link
Member

  • Allow tests to run in parallel
  • Slim created tarballs to compress less

This commit edits tests to allow tests to run in parallel instead of taking
global locks. This works by avoiding `env::set_current_dir` and instead tracking
the current directory in the `Config` structure, where all child processes get
an updated cwd.
@alexcrichton
Copy link
Member Author

@bors: r+

@bors
Copy link
Contributor

bors commented Aug 11, 2017

📌 Commit 29af0b2 has been approved by alexcrichton

bors added a commit that referenced this pull request Aug 11, 2017
Speed up the test suite

* Allow tests to run in parallel
* Slim created tarballs to compress less
@bors
Copy link
Contributor

bors commented Aug 11, 2017

⌛ Testing commit 29af0b2 with merge a99bdd7...

Test runtime is almost completely dominated by xz, gz, and sha256 of all the
tarballs that are created. "Hello world" for Rust is a few MB right now on
Linux, so slim it down massively through the use of `strip`. Also use `Arc` and
hard links where possible instead of full copies.
No need to re-zip everything!
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.

2 participants