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

Use multiple threads by default. Limits tests to one thread. Do some renaming. #57948

Merged
merged 3 commits into from
Jan 29, 2019

Conversation

Zoxc
Copy link
Contributor

@Zoxc Zoxc commented Jan 28, 2019

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jan 28, 2019
@rust-highfive

This comment has been minimized.

@@ -150,9 +150,9 @@ newtype_index! {
// The interner is pointed to by a thread local value which is only set on the main thread
// with parallelization is disabled. So we don't allow `Symbol` to transfer between threads
// to avoid panics and other errors, even though it would be memory safe to do so.
#[cfg(not(parallel_queries))]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CFGs like these seem very prone to invisible breakage (if we end up not running either configuration on CI). Perhaps we should maintain parallel-able code in all configurations?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We do check both on PRs on Travis at least.

@@ -1194,8 +1194,8 @@ options! {DebuggingOptions, DebuggingSetter, basic_debugging_options,
"prints the llvm optimization passes being run"),
ast_json: bool = (false, parse_bool, [UNTRACKED],
"print the AST as JSON and halt"),
query_threads: Option<usize> = (None, parse_opt_uint, [UNTRACKED],
"execute queries on a thread pool with N threads"),
threads: Option<usize> = (None, parse_opt_uint, [UNTRACKED],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there any support for jobserver or is this a static quantity? Perhaps the documentation should be adjusted either way?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It will use a jobserver once #56946 lands

@rust-highfive

This comment has been minimized.

@wesleywiser
Copy link
Member

(I'm assuming we will want a perf run here?)

@bors try

@bors
Copy link
Contributor

bors commented Jan 29, 2019

⌛ Trying commit fd9d9ee with merge a8571c0a49643e461ab10f2410709f5a9e9c1b00...

@bors
Copy link
Contributor

bors commented Jan 29, 2019

☀️ Test successful - checks-travis
State: approved= try=True

@michaelwoerister
Copy link
Member

Thanks, @Zoxc! Looks good. We'll still need to validate that running tests in single-threaded mode will give us the testing we want before we make multithreading the default. But for now it's a good start.

@bors r+

@bors
Copy link
Contributor

bors commented Jan 29, 2019

📌 Commit fd9d9ee has been approved by michaelwoerister

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jan 29, 2019
@bors
Copy link
Contributor

bors commented Jan 29, 2019

⌛ Testing commit fd9d9ee with merge ae1ba15...

bors added a commit that referenced this pull request Jan 29, 2019
Use multiple threads by default. Limits tests to one thread. Do some renaming.

r? @michaelwoerister
@bors
Copy link
Contributor

bors commented Jan 29, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: michaelwoerister
Pushing ae1ba15 to master...

@bors
Copy link
Contributor

bors commented Jan 29, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: michaelwoerister
Pushing ae1ba15 to master...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants