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

Increase Rust detection timeout to 3 seconds #1130

Merged
merged 2 commits into from
May 22, 2017
Merged

Conversation

mati865
Copy link
Contributor

@mati865 mati865 commented May 22, 2017

Fixes #1118

With 3 seconds timeout cold start isn't issue anymore.

To simulate cold start use:

sync ; echo 3 | sudo tee /proc/sys/vm/drop_caches
rustup update

@Diggsey
Copy link
Contributor

Diggsey commented May 22, 2017

Thanks for the PR!

The second part of solving #1118 is to provide a different error message for when the timeout occurs, vs when the command fails - would you be able to update the PR to include that change too? Then the issue can be closed out.

@mati865
Copy link
Contributor Author

mati865 commented May 22, 2017

No problem, I'll do it later today.

@mati865
Copy link
Contributor Author

mati865 commented May 22, 2017

Cold start, damaged nightly rustc to cause second error:

$ home/bin/rustup update
info: syncing channel updates for 'stable-x86_64-unknown-linux-gnu'
info: syncing channel updates for 'nightly-x86_64-unknown-linux-gnu'
info: checking for self-updates

   stable-x86_64-unknown-linux-gnu unchanged - (timed out reading rustc version)
  nightly-x86_64-unknown-linux-gnu unchanged - (error reading rustc version)

Should I squash commits?

@Diggsey
Copy link
Contributor

Diggsey commented May 22, 2017

No, that's fine, thanks!
@bors r+

@bors
Copy link
Contributor

bors commented May 22, 2017

📌 Commit b8a0dda has been approved by Diggsey

@bors
Copy link
Contributor

bors commented May 22, 2017

⌛ Testing commit b8a0dda with merge 8f1d735...

bors added a commit that referenced this pull request May 22, 2017
Increase Rust detection timeout to 3 seconds

Fixes #1118

With 3 seconds timeout cold start isn't issue anymore.

To simulate cold start use:
```
sync ; echo 3 | sudo tee /proc/sys/vm/drop_caches
rustup update
```
@bors
Copy link
Contributor

bors commented May 22, 2017

💔 Test failed - status-travis

@Diggsey
Copy link
Contributor

Diggsey commented May 22, 2017

@bors retry

@bors
Copy link
Contributor

bors commented May 22, 2017

⌛ Testing commit b8a0dda with merge 6bc3ec5...

bors added a commit that referenced this pull request May 22, 2017
Increase Rust detection timeout to 3 seconds

Fixes #1118

With 3 seconds timeout cold start isn't issue anymore.

To simulate cold start use:
```
sync ; echo 3 | sudo tee /proc/sys/vm/drop_caches
rustup update
```
@bors
Copy link
Contributor

bors commented May 22, 2017

💔 Test failed - status-appveyor

@Diggsey
Copy link
Contributor

Diggsey commented May 22, 2017

@bors retry

@bors
Copy link
Contributor

bors commented May 22, 2017

⌛ Testing commit b8a0dda with merge 5d67261...

bors added a commit that referenced this pull request May 22, 2017
Increase Rust detection timeout to 3 seconds

Fixes #1118

With 3 seconds timeout cold start isn't issue anymore.

To simulate cold start use:
```
sync ; echo 3 | sudo tee /proc/sys/vm/drop_caches
rustup update
```
@bors
Copy link
Contributor

bors commented May 22, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: Diggsey
Pushing 5d67261 to master...

@bors bors merged commit b8a0dda into rust-lang:master May 22, 2017
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.

3 participants