Stream: t-compiler/wg-nll

Topic: my-very-first-crater


Jake Goulding (Jul 06 2018 at 17:02, on Zulip):

@simulacrum I got this:

Jul 06 12:58:46.824 INFO testing twox-hash-1.1.0 against stable for default
Jul 06 12:58:46.824 INFO running: cargo +stable build --frozen
Jul 06 12:58:46.825 INFO creating container for: cargo +stable build --frozen
Jul 06 12:58:46.825 INFO running `"docker" "create" "-v" "/private/tmp/crater/./work/local/test-source/main/default/stable:/source:ro,Z" "-v" "/private/tmp/crater/./work/local/target-dirs/default/stable:/target:rw,Z" "-v" "/private/tmp/crater/./work/local/cargo-home:/cargo-home:ro,Z" "-v" "/private/tmp/crater/./work/local/rustup-home:/rustup-home:ro,Z" "-e" "USER_ID=501" "-e" "CMD=cargo +stable build --frozen" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "crater"`
Jul 06 12:58:47.383 INFO blam! cfb0383b599771f2276acaac096681a6f58a45a1568d14a19741d0f34d6127b3
Jul 06 12:58:47.387 INFO running `"docker" "start" "-a" "cfb0383b599771f2276acaac096681a6f58a45a1568d14a19741d0f34d6127b3"`
Jul 06 12:58:48.054 INFO kablam! /run2.sh: line 9: exec: cargo: not found
Jul 06 12:58:48.472 INFO running `"docker" "rm" "-f" "cfb0383b599771f2276acaac096681a6f58a45a1568d14a19741d0f34d6127b3"`
Jul 06 12:58:48.721 INFO blam! cfb0383b599771f2276acaac096681a6f58a45a1568d14a19741d0f34d6127b3

I see some other errors in the logs:

Jul 06 12:55:51.895 ERRO unable to fetch deps for twox-hash-1.1.0
Jul 06 12:55:51.896 ERRO caused by: command `"docker" "start" "-a" "020d59e20468bd4c9e716f9ca80ed79016a66fd52760b0d7b00a740b9db04b84"` failed
Jul 06 12:55:50.175 ERRO failed to generate lockfile for twox-hash-1.1.0
Jul 06 12:55:50.176 ERRO caused by: unable to generate lockfile for twox-hash-1.1.0
Jul 06 12:55:50.176 ERRO caused by: command `"docker" "start" "-a" "31e2f8f6a20e6f48e9ce5768ea364cffc98772b77ffff37fd273065e082e0d52"` failed
Jake Goulding (Jul 06 2018 at 17:03, on Zulip):

I was following https://github.com/rust-lang-nursery/crater/blob/master/docs/cli-usage.md

simulacrum (Jul 06 2018 at 17:03, on Zulip):

Jul 06 12:58:48.054 INFO kablam! /run2.sh: line 9: exec: cargo: not found

simulacrum (Jul 06 2018 at 17:03, on Zulip):

I haven't actually tried this recently, but initially it looks like maybe docker's not quite working?

simulacrum (Jul 06 2018 at 17:04, on Zulip):

i.e. the docker container is missing cargo ...

Jake Goulding (Jul 06 2018 at 17:04, on Zulip):

I'm starting back from the first step.

Jake Goulding (Jul 06 2018 at 17:04, on Zulip):

"blam" and "kablam" is kind of annoying

Jake Goulding (Jul 06 2018 at 17:08, on Zulip):

Oh, this mounts local files into docker. That requires some special things with docker-machine

simulacrum (Jul 06 2018 at 17:08, on Zulip):

Ah, yeah, that could explain it

Jake Goulding (Jul 06 2018 at 17:25, on Zulip):

@simulacrum does this download rustup for my local system :unamused:

Jake Goulding (Jul 06 2018 at 17:25, on Zulip):

/cargo-home/bin/cargo: cannot execute binary file: Exec format error

simulacrum (Jul 06 2018 at 17:25, on Zulip):

Hm, quite possibly :)

Jake Goulding (Jul 06 2018 at 17:25, on Zulip):

Which would make sense if it's trying to run macOS code in a Linux container

simulacrum (Jul 06 2018 at 17:25, on Zulip):

Though probably unintentionally

simulacrum (Jul 06 2018 at 17:25, on Zulip):

to my knowledge it's never been run cross-platform

Pietro Albini (Jul 06 2018 at 17:26, on Zulip):

there is an issue about crater broken on macos I think

Jake Goulding (Jul 06 2018 at 17:43, on Zulip):

a wild @Pietro Albini appears!

Pietro Albini (Jul 06 2018 at 17:44, on Zulip):

zulip is strange

simulacrum (Jul 06 2018 at 17:46, on Zulip):

It's surprisingly strange and then amazing once you get used to it

DPC (Jul 06 2018 at 17:46, on Zulip):

yeah

DPC (Jul 06 2018 at 17:48, on Zulip):

i think there is more confusion when you are on the stream page rather than the topics

lqd (Jul 06 2018 at 17:49, on Zulip):

It's surprisingly strange and then amazing once you get used to it

this experience is shared by many here

Jake Goulding (Jul 06 2018 at 17:56, on Zulip):

@Pietro Albini @simulacrum in that case, would either of you mind un-blacklisting twox-hash and letting me know what it fails in crater?

Pietro Albini (Jul 06 2018 at 17:56, on Zulip):

I can try it locally

Jake Goulding (Jul 06 2018 at 17:56, on Zulip):

Since I can't run crater locally but that crate definitely compiles for me ;-)

Pietro Albini (Jul 06 2018 at 17:58, on Zulip):

let me first un-break my local crater build ;)

Pietro Albini (Jul 06 2018 at 18:08, on Zulip):

@Jake Goulding https://gist.github.com/pietroalbini/7751128b2be661ded00d3bd8b674d572

Jake Goulding (Jul 06 2018 at 18:12, on Zulip):

@Pietro Albini D'oh. I fixed that but never published it! In fact, that bug was found by crater in the first place, IIRC.

Pietro Albini (Jul 06 2018 at 18:13, on Zulip):

@Jake Goulding please send a PR removing it after you publish the crate again!

Jake Goulding (Jul 06 2018 at 18:14, on Zulip):

@Pietro Albini is there no mechanism for crater to check its blacklist every so often?

Pietro Albini (Jul 06 2018 at 18:15, on Zulip):

at the moment no, there was the idea of checking the #automatic crates once in a while, manually

Pietro Albini (Jul 06 2018 at 18:15, on Zulip):

there is no point in checking the non-#automatic ones though, those are only spurious failures

Jake Goulding (Jul 06 2018 at 18:58, on Zulip):

@Pietro Albini https://github.com/rust-lang-nursery/crater/pull/261 thanks!

Pietro Albini (Jul 06 2018 at 18:59, on Zulip):

@Jake Goulding merged

Pietro Albini (Jul 06 2018 at 18:59, on Zulip):

thanks!

Jake Goulding (Jul 06 2018 at 18:59, on Zulip):

I almost committed directly to master; forgot I had privs there ;-)

Last update: Nov 21 2019 at 14:15UTC