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

Update zx_cprng_draw_new on Fuchsia #51637

Merged
merged 1 commit into from
Jun 22, 2018
Merged

Update zx_cprng_draw_new on Fuchsia #51637

merged 1 commit into from
Jun 22, 2018

Conversation

abarth
Copy link

@abarth abarth commented Jun 19, 2018

Fuchsia is changing the semantics for zx_cprng_draw and
zx_cprng_draw_new is a temporary name for the new semantics.

Fuchsia is changing the semantics for zx_cprng_draw and
zx_cprng_draw_new is a temporary name for the new semantics.
@rust-highfive
Copy link
Collaborator

Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @cramertj (or someone else) soon.

If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes.

Please see the contribution instructions for more information.

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 19, 2018
@cramertj
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Jun 19, 2018

📌 Commit 03a40b3 has been approved by cramertj

@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 Jun 19, 2018
@bors
Copy link
Contributor

bors commented Jun 20, 2018

⌛ Testing commit 03a40b3 with merge 033d6ba74ec7cb2101899fa90b6887ae8a16e997...

@bors
Copy link
Contributor

bors commented Jun 20, 2018

💔 Test failed - status-travis

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jun 20, 2018
@rust-highfive
Copy link
Collaborator

The job dist-x86_64-freebsd of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
  0     0    0     0    0     0      0      0 --:--:--  0:00:51 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:52 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:53 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:54 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:55 --:--:--     0curl: (6) Could not resolve host: s3-us-west-1.amazonaws.com
[01:06:47] thread 'main' panicked at 'failed to download openssl source: exit code: 6', bootstrap/native.rs:575:17
[01:06:47] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap dist --host x86_64-unknown-freebsd --target x86_64-unknown-freebsd
[01:06:47] Build completed unsuccessfully in 1:03:56
travis_time:end:02fa56ac:start=1529473566422106043,finish=1529477574469448976,duration=4008047342933

---
travis_time:end:029f5410:start=1529477575085227113,finish=1529477575092833958,duration=7606845
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:13433aa8
$ head -30 ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
head: cannot open ‘./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers’ for reading: No such file or directory
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:36e8137c
$ dmesg | grep -i kill

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

1 similar comment
@rust-highfive
Copy link
Collaborator

The job dist-x86_64-freebsd of your PR failed on Travis (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.
  0     0    0     0    0     0      0      0 --:--:--  0:00:51 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:52 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:53 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:54 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:55 --:--:--     0curl: (6) Could not resolve host: s3-us-west-1.amazonaws.com
[01:06:47] thread 'main' panicked at 'failed to download openssl source: exit code: 6', bootstrap/native.rs:575:17
[01:06:47] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap dist --host x86_64-unknown-freebsd --target x86_64-unknown-freebsd
[01:06:47] Build completed unsuccessfully in 1:03:56
travis_time:end:02fa56ac:start=1529473566422106043,finish=1529477574469448976,duration=4008047342933

---
travis_time:end:029f5410:start=1529477575085227113,finish=1529477575092833958,duration=7606845
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:13433aa8
$ head -30 ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
head: cannot open ‘./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers’ for reading: No such file or directory
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:36e8137c
$ dmesg | grep -i kill

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@cramertj
Copy link
Member

@bors retry

Flakes

@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 Jun 20, 2018
@bors
Copy link
Contributor

bors commented Jun 20, 2018

⌛ Testing commit 03a40b3 with merge 68188cb1f96e9356796120d40e3a2b74cf66785c...

@bors
Copy link
Contributor

bors commented Jun 20, 2018

💥 Test timed out

@bors bors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Jun 20, 2018
@cramertj
Copy link
Member

@bors retry

cc @kennytm, @Mark-Simulacrum WRT flakes

@pitdicker
Copy link
Contributor

@abarth Can you explain to me why the standard library uses zx_cprng_draw/zx_cprng_draw_new, while the rand crate uses fuchsia_zircon::cprng_draw?

Is it to prevent adding a dependency to the standard library? Would it make sense to use the same method in rand?

@abarth
Copy link
Author

abarth commented Jun 21, 2018

@pitdicker I know very little about Rust. I'm a Fuchsia developer whose currently working on cleanup up the syscall API. @cramertj would probably know more about why these dependencies are set up this way.

@pitdicker
Copy link
Contributor

pitdicker commented Jun 21, 2018

Thank you @abarth.

In my opinion the standard library should not have all these OS details, when it already depends on thread_rng from Rand. It only uses this function to get two random values from the OS in collections/hash/map.rs, as a work-around that seems questionable to me. Anyway, it would be better if it used OsRng from rand, or didn't need the work-around at all.

But I suppose that is for another PR.

Edit: sorry, rand is only a dev-dependency.

@kennytm kennytm 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 Jun 21, 2018
@abarth
Copy link
Author

abarth commented Jun 22, 2018

@cramertj Is there some magic command we need to utter to convince the bots that this PR is acceptable. Rust is now the only remaining client of this syscall.

@Mark-Simulacrum
Copy link
Member

This is in the queue (https://buildbot2.rust-lang.org/homu/queue/rust). I'll probably do a roll-up tomorrow, so I'd anticipate this landing in around 12-18 hours.

@abarth
Copy link
Author

abarth commented Jun 22, 2018

Thanks! /me is slowly learning his way around.

kennytm added a commit to kennytm/rust that referenced this pull request Jun 22, 2018
Update zx_cprng_draw_new on Fuchsia

Fuchsia is changing the semantics for zx_cprng_draw and
zx_cprng_draw_new is a temporary name for the new semantics.
bors added a commit that referenced this pull request Jun 22, 2018
Rollup of 6 pull requests

Successful merges:

 - #51158 (Mention spec and indented blocks in doctest docs)
 - #51629 (Do not consume semicolon twice while parsing local statement)
 - #51637 (Update zx_cprng_draw_new on Fuchsia)
 - #51664 (make more libsyntax methods public)
 - #51666 (Disable probestack when GCOV profiling is being used)
 - #51703 (Recognize the extra "LLVM tools versions" argument to build-manifest.)

Failed merges:

r? @ghost
@bors bors merged commit 03a40b3 into rust-lang:master Jun 22, 2018
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.

7 participants