Skip to content

[DO NOT MERGE] Test if sccache is the cause build flaky #63861

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

Closed
wants to merge 3 commits into from

Conversation

tesuji
Copy link
Contributor

@tesuji tesuji commented Aug 24, 2019

cc #62558

r? @ghost

@rust-highfive
Copy link
Contributor

The job dist-aarch64-linux of your PR failed (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.
2019-08-24T18:36:48.2940404Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-08-24T18:36:48.3118551Z ##[command]git config gc.auto 0
2019-08-24T18:36:48.3190120Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-08-24T18:36:48.3239570Z ##[command]git config --get-all http.proxy
2019-08-24T18:36:48.3363002Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --force --tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/heads/*:refs/remotes/origin/* +refs/pull/63861/merge:refs/remotes/pull/63861/merge
---
2019-08-24T18:37:22.3802568Z do so (now or later) by using -b with the checkout command again. Example:
2019-08-24T18:37:22.3802594Z 
2019-08-24T18:37:22.3802766Z   git checkout -b <new-branch-name>
2019-08-24T18:37:22.3802789Z 
2019-08-24T18:37:22.3802828Z HEAD is now at 35ed47d49 Merge 4fed573e1ce18bff8cf80addcf68950930c110d9 into 5ade61a4f1515d4a18f38dacdbdb592bfd384a84
2019-08-24T18:37:22.3958307Z ##[section]Starting: Collect CPU-usage statistics in the background
2019-08-24T18:37:22.3960601Z ==============================================================================
2019-08-24T18:37:22.3960645Z Task         : Bash
2019-08-24T18:37:22.3960701Z Description  : Run a Bash script on macOS, Linux, or Windows
---
2019-08-24T19:14:09.6830459Z Successfully built 2cfb942592ed
2019-08-24T19:14:09.7655891Z Successfully tagged rust-ci:latest
2019-08-24T19:14:09.9000625Z Built container sha256:2cfb942592eda77d7dfa8d4bd44e62bf432f88d13673eaf7d8011b3ea851035e
2019-08-24T19:14:09.9028855Z Uploading finished image to https://rust-lang-ci-sccache2.s3.amazonaws.com/docker/90b84d21282dbf471b95123e7af029c6260ac40a7e213c81b2df828a8e000d9b9fe76d8ac576f383d9b2886e81067c7468fed36b8ac5a1f9916a6f1f0f466b31
2019-08-24T19:15:10.1913464Z upload failed: - to s3://rust-lang-ci-sccache2/docker/90b84d21282dbf471b95123e7af029c6260ac40a7e213c81b2df828a8e000d9b9fe76d8ac576f383d9b2886e81067c7468fed36b8ac5a1f9916a6f1f0f466b31 Unable to locate credentials
2019-08-24T19:15:11.0906383Z [CI_JOB_NAME=dist-aarch64-linux]
2019-08-24T19:15:11.0947739Z == clock drift check ==
2019-08-24T19:15:11.0956344Z   local time: Sat Aug 24 19:15:11 UTC 2019
2019-08-24T19:15:11.2844414Z   network time: Sat, 24 Aug 2019 19:15:11 GMT
---
2019-08-24T20:57:29.4034685Z    Compiling backtrace-sys v0.1.30
2019-08-24T20:57:30.5399095Z    Compiling unwind v0.0.0 (/checkout/src/libunwind)
2019-08-24T20:57:31.7911621Z    Compiling profiler_builtins v0.0.0 (/checkout/src/libprofiler_builtins)
2019-08-24T20:57:32.9650820Z    Compiling std v0.0.0 (/checkout/src/libstd)
2019-08-24T20:57:37.0975811Z error: internal compiler error: src/librustc/ty/context.rs:214: node type <T>::IntoIter (hir_id=HirId { owner: DefIndex(4040), local_id: 61 }) with HirId::owner DefId(0:4040 ~ core[db27]::iter[0]::adapters[0]::flatten[0]::{{impl}}[13]::try_fold[0]::flatten[0]) cannot be placed in TypeckTables with local_id_root DefId(0:4036 ~ core[db27]::iter[0]::adapters[0]::flatten[0]::{{impl}}[13]::try_fold[0])
2019-08-24T20:57:37.0977449Z thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:643:9
2019-08-24T20:57:37.0977975Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
2019-08-24T20:57:37.2390058Z error: aborting due to previous error
2019-08-24T20:57:37.2390668Z 
2019-08-24T20:57:37.2390668Z 
2019-08-24T20:57:37.3244844Z 
2019-08-24T20:57:37.3247988Z note: the compiler unexpectedly panicked. this is a bug.
2019-08-24T20:57:37.3261845Z 
2019-08-24T20:57:37.3263227Z note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
2019-08-24T20:57:37.3263660Z note: rustc 1.39.0-dev running on x86_64-unknown-linux-gnu
2019-08-24T20:57:37.3263697Z 
2019-08-24T20:57:37.3263697Z 
2019-08-24T20:57:37.3264224Z note: compiler flags: -Z binary-dep-depinfo -Z external-macro-backtrace -Z save-analysis -Z force-unstable-if-unmarked -C opt-level=2 -C debuginfo=0 -C prefer-dynamic -C linker=aarch64-unknown-linux-gnueabi-gcc -C debug-assertions=y -C codegen-units=1 -C link-args=-Wl,-rpath,$ORIGIN/../lib --crate-type lib
2019-08-24T20:57:37.3264283Z 
2019-08-24T20:57:37.3264338Z note: some of the compiler flags provided by cargo are hidden
2019-08-24T20:57:37.3399022Z error: Could not compile `core`.
2019-08-24T20:57:37.3399321Z warning: build failed, waiting for other jobs to finish...
2019-08-24T20:57:38.7927133Z error: build failed
2019-08-24T20:57:38.7959741Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "aarch64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "2" "--release" "--locked" "--color" "always" "--features" "panic-unwind backtrace profiler compiler-builtins-c" "--manifest-path" "/checkout/src/libtest/Cargo.toml" "--message-format" "json-render-diagnostics"
2019-08-24T20:57:38.7959741Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "aarch64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "2" "--release" "--locked" "--color" "always" "--features" "panic-unwind backtrace profiler compiler-builtins-c" "--manifest-path" "/checkout/src/libtest/Cargo.toml" "--message-format" "json-render-diagnostics"
2019-08-24T20:57:38.7960103Z expected success, got: exit code: 101
2019-08-24T20:57:38.7971922Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap dist --host aarch64-unknown-linux-gnu --target aarch64-unknown-linux-gnu
2019-08-24T20:57:38.7972035Z Build completed unsuccessfully in 1:40:02
2019-08-24T20:57:38.8023072Z == clock drift check ==
2019-08-24T20:57:38.8032819Z   local time: Sat Aug 24 20:57:38 UTC 2019
2019-08-24T20:57:38.9514005Z   network time: Sat, 24 Aug 2019 20:57:38 GMT
2019-08-24T20:57:38.9517821Z == end clock drift check ==
2019-08-24T20:57:41.5703361Z ##[error]Bash exited with code '1'.
2019-08-24T20:57:41.5749517Z ##[section]Starting: Checkout
2019-08-24T20:57:41.5751294Z ==============================================================================
2019-08-24T20:57:41.5751515Z Task         : Get sources
2019-08-24T20:57:41.5751555Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

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)

@tesuji tesuji force-pushed the nomerge-tier2-tools branch from 4fed573 to caf3d66 Compare August 25, 2019 02:25
@rust-highfive
Copy link
Contributor

The job dist-aarch64-linux of your PR failed (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.
2019-08-25T02:26:35.2623226Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-08-25T02:26:35.2813241Z ##[command]git config gc.auto 0
2019-08-25T02:26:35.2896658Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-08-25T02:26:35.2987114Z ##[command]git config --get-all http.proxy
2019-08-25T02:26:35.3128999Z ##[command]git -c http.extraheader="AUTHORIZATION: basic ***" fetch --force --tags --prune --progress --no-recurse-submodules --depth=2 origin +refs/heads/*:refs/remotes/origin/* +refs/pull/63861/merge:refs/remotes/pull/63861/merge
---
2019-08-25T02:27:09.3896877Z do so (now or later) by using -b with the checkout command again. Example:
2019-08-25T02:27:09.3897283Z 
2019-08-25T02:27:09.3897703Z   git checkout -b <new-branch-name>
2019-08-25T02:27:09.3897951Z 
2019-08-25T02:27:09.3898174Z HEAD is now at cbf19cdeb Merge caf3d66966a9546e0703324d6fa2e552f3616e17 into eeba189cfb2cfc5c5898513352d4ca8f1df06e05
2019-08-25T02:27:09.4062079Z ##[section]Starting: Collect CPU-usage statistics in the background
2019-08-25T02:27:09.4065227Z ==============================================================================
2019-08-25T02:27:09.4065306Z Task         : Bash
2019-08-25T02:27:09.4065351Z Description  : Run a Bash script on macOS, Linux, or Windows
---
2019-08-25T03:05:07.3748359Z Successfully built f2e9d6d50b36
2019-08-25T03:05:07.4589443Z Successfully tagged rust-ci:latest
2019-08-25T03:05:07.5740913Z Built container sha256:f2e9d6d50b36935a1d027eaad3abe361e493aac1dc2abf0ef855909329ebe88c
2019-08-25T03:05:07.5766010Z Uploading finished image to https://rust-lang-ci-sccache2.s3.amazonaws.com/docker/90b84d21282dbf471b95123e7af029c6260ac40a7e213c81b2df828a8e000d9b9fe76d8ac576f383d9b2886e81067c7468fed36b8ac5a1f9916a6f1f0f466b31
2019-08-25T03:06:12.1690848Z upload failed: - to s3://rust-lang-ci-sccache2/docker/90b84d21282dbf471b95123e7af029c6260ac40a7e213c81b2df828a8e000d9b9fe76d8ac576f383d9b2886e81067c7468fed36b8ac5a1f9916a6f1f0f466b31 Unable to locate credentials
2019-08-25T03:06:13.2166915Z [CI_JOB_NAME=dist-aarch64-linux]
2019-08-25T03:06:13.2208668Z == clock drift check ==
2019-08-25T03:06:13.2218900Z   local time: Sun Aug 25 03:06:13 UTC 2019
2019-08-25T03:06:13.3053249Z   network time: Sun, 25 Aug 2019 03:06:13 GMT
---
2019-08-25T04:53:00.8535996Z    Compiling unwind v0.0.0 (/checkout/src/libunwind)
2019-08-25T04:53:02.0264251Z    Compiling backtrace-sys v0.1.30
2019-08-25T04:53:03.1384020Z    Compiling profiler_builtins v0.0.0 (/checkout/src/libprofiler_builtins)
2019-08-25T04:53:04.2394265Z    Compiling std v0.0.0 (/checkout/src/libstd)
2019-08-25T04:53:08.9142819Z error: internal compiler error: src/librustc/ty/context.rs:214: node type <T>::IntoIter (hir_id=HirId { owner: DefIndex(4040), local_id: 61 }) with HirId::owner DefId(0:4040 ~ core[db27]::iter[0]::adapters[0]::flatten[0]::{{impl}}[13]::try_fold[0]::flatten[0]) cannot be placed in TypeckTables with local_id_root DefId(0:4036 ~ core[db27]::iter[0]::adapters[0]::flatten[0]::{{impl}}[13]::try_fold[0])
2019-08-25T04:53:08.9153434Z thread 'rustc' panicked at 'Box<Any>', src/librustc_errors/lib.rs:643:9
2019-08-25T04:53:08.9158569Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
2019-08-25T04:53:09.0547093Z error: aborting due to previous error
2019-08-25T04:53:09.0550668Z 
2019-08-25T04:53:09.0550668Z 
2019-08-25T04:53:09.1425175Z 
2019-08-25T04:53:09.1425833Z note: the compiler unexpectedly panicked. this is a bug.
2019-08-25T04:53:09.1426039Z 
2019-08-25T04:53:09.1427032Z note: we would appreciate a bug report: ***/blob/master/CONTRIBUTING.md#bug-reports
2019-08-25T04:53:09.1427756Z note: rustc 1.39.0-dev running on x86_64-unknown-linux-gnu
2019-08-25T04:53:09.1427992Z 
2019-08-25T04:53:09.1427992Z 
2019-08-25T04:53:09.1428948Z note: compiler flags: -Z binary-dep-depinfo -Z external-macro-backtrace -Z save-analysis -Z force-unstable-if-unmarked -C opt-level=2 -C debuginfo=0 -C prefer-dynamic -C linker=aarch64-unknown-linux-gnueabi-gcc -C debug-assertions=y -C codegen-units=1 -C link-args=-Wl,-rpath,$ORIGIN/../lib --crate-type lib
2019-08-25T04:53:09.1429235Z 
2019-08-25T04:53:09.1429467Z note: some of the compiler flags provided by cargo are hidden
2019-08-25T04:53:09.1502694Z error: Could not compile `core`.
2019-08-25T04:53:09.1502770Z 
2019-08-25T04:53:09.1503060Z To learn more, run the command again with --verbose.
2019-08-25T04:53:09.1529801Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "aarch64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "2" "--release" "--locked" "--color" "always" "--features" "panic-unwind backtrace profiler compiler-builtins-c" "--manifest-path" "/checkout/src/libtest/Cargo.toml" "--message-format" "json-render-diagnostics"
2019-08-25T04:53:09.1529801Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "aarch64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "2" "--release" "--locked" "--color" "always" "--features" "panic-unwind backtrace profiler compiler-builtins-c" "--manifest-path" "/checkout/src/libtest/Cargo.toml" "--message-format" "json-render-diagnostics"
2019-08-25T04:53:09.1529930Z expected success, got: exit code: 101
2019-08-25T04:53:09.1530230Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap dist --host aarch64-unknown-linux-gnu --target aarch64-unknown-linux-gnu
2019-08-25T04:53:09.1530306Z Build completed unsuccessfully in 1:44:23
2019-08-25T04:53:09.1581992Z == clock drift check ==
2019-08-25T04:53:09.1620781Z   local time: Sun Aug 25 04:53:09 UTC 2019
2019-08-25T04:53:09.4345531Z   network time: Sun, 25 Aug 2019 04:53:09 GMT
2019-08-25T04:53:09.4349762Z == end clock drift check ==
2019-08-25T04:53:15.1503271Z ##[error]Bash exited with code '1'.
2019-08-25T04:53:15.1569088Z ##[section]Starting: Checkout
2019-08-25T04:53:15.1570722Z ==============================================================================
2019-08-25T04:53:15.1570786Z Task         : Get sources
2019-08-25T04:53:15.1570824Z Description  : Get sources from a repository. Supports Git, TfsVC, and SVN repositories.

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)

@tesuji
Copy link
Contributor Author

tesuji commented Aug 25, 2019

2 errors are the same. I'm pretty sure it's not a spurious failure.
cc @Centril who may know more about this.

@jonas-schievink
Copy link
Contributor

Maybe #63663? For some reason the compiler seems to be built with debug assertions on.

@mati865
Copy link
Contributor

mati865 commented Aug 27, 2019

Doesn't sccache only affect LLVM and maybe other C/C++ code?

@tesuji
Copy link
Contributor Author

tesuji commented Aug 29, 2019

Doesn't sccache only affect LLVM and maybe other C/C++ code?

I'm not sure.

Closed on waiting for #63663 get fixed.

@tesuji tesuji closed this Aug 29, 2019
@tesuji tesuji deleted the nomerge-tier2-tools branch August 29, 2019 04:13
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.

4 participants