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

Add --force-run-in-process unstable option to libtest #66415

Merged
merged 2 commits into from
Nov 16, 2019

Conversation

tmandry
Copy link
Member

@tmandry tmandry commented Nov 14, 2019

When running tests with -Zpanic_abort_tests, it's sometimes desirable to fall back to the old behavior of only running tests in-process. This comes in handy if the system process launcher is unavailable, or the test code somehow expects all tests to be run in the same process.

For example, in Fuchsia we have unit tests that actually test the process launcher itself, in which case we can't use the process launcher to run the tests :).

r? @alexcrichton
cc @cramertj,@petrhosek

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 14, 2019
@tmandry tmandry changed the title Add --force-run-in-test unstable option to libtest Add --force-run-in-process unstable option to libtest Nov 14, 2019
@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-6.0 of your PR failed (pretty log, 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-11-14T15:52:27.0983217Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-11-14T15:52:27.1177028Z ##[command]git config gc.auto 0
2019-11-14T15:52:27.1235874Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-11-14T15:52:27.1290606Z ##[command]git config --get-all http.proxy
2019-11-14T15:52:27.1428392Z ##[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/66415/merge:refs/remotes/pull/66415/merge
---
2019-11-14T16:49:41.4074664Z .................................................................................................... 1500/9240
2019-11-14T16:49:47.1896394Z .................................................................................................... 1600/9240
2019-11-14T16:49:55.9711634Z .................................................................................................... 1700/9240
2019-11-14T16:50:04.1971479Z ....i............................................................................................... 1800/9240
2019-11-14T16:50:10.5603602Z ........................................................................................iiiii....... 1900/9240
2019-11-14T16:50:31.3261829Z .................................................................................................... 2100/9240
2019-11-14T16:50:33.6475803Z .................................................................................................... 2200/9240
2019-11-14T16:50:36.1027498Z .................................................................................................... 2300/9240
2019-11-14T16:50:42.7549576Z .................................................................................................... 2400/9240
---
2019-11-14T16:53:31.6787764Z .......................................................................................i............ 4700/9240
2019-11-14T16:53:38.0860941Z ...i................................................................................................ 4800/9240
2019-11-14T16:53:47.1052460Z .................................................................................................... 4900/9240
2019-11-14T16:53:52.2079982Z .................................................................................................... 5000/9240
2019-11-14T16:54:02.8314922Z ..........................................................................................ii.ii..... 5100/9240
2019-11-14T16:54:10.9858333Z .........................i.......................................................................... 5300/9240
2019-11-14T16:54:19.3086228Z .................................................................................................... 5400/9240
2019-11-14T16:54:27.7791504Z .......................................................................i............................ 5500/9240
2019-11-14T16:54:34.9534885Z .................................................................................................... 5600/9240
2019-11-14T16:54:34.9534885Z .................................................................................................... 5600/9240
2019-11-14T16:54:41.9426275Z .................................................................................................... 5700/9240
2019-11-14T16:54:51.0714604Z .........................................................ii...i..ii...........i..................... 5800/9240
2019-11-14T16:55:12.8583838Z .................................................................................................... 6000/9240
2019-11-14T16:55:20.8557775Z .................................................................................................... 6100/9240
2019-11-14T16:55:20.8557775Z .................................................................................................... 6100/9240
2019-11-14T16:55:26.0593671Z ............................................................................i..ii................... 6200/9240
2019-11-14T16:55:54.1901318Z .................................................................................................... 6400/9240
2019-11-14T16:55:56.5294344Z ............................................i....................................................... 6500/9240
2019-11-14T16:55:58.7122500Z .................................................................................................... 6600/9240
2019-11-14T16:56:01.0343048Z ..............................i..................................................................... 6700/9240
---
2019-11-14T17:00:38.8455198Z 4 
2019-11-14T17:00:38.8455226Z 
2019-11-14T17:00:38.8455253Z 
2019-11-14T17:00:38.8455316Z The actual stderr differed from the expected stderr.
2019-11-14T17:00:38.8455687Z Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/test-panic-abort-disabled/test-panic-abort-disabled.stderr
2019-11-14T17:00:38.8455987Z To update references, rerun the tests and pass the `--bless` flag
2019-11-14T17:00:38.8456332Z To only update this specific test, also pass `--test-args test-panic-abort-disabled.rs`
2019-11-14T17:00:38.8456466Z error: 1 errors occurred comparing output.
2019-11-14T17:00:38.8456530Z status: exit code: 1
2019-11-14T17:00:38.8456530Z status: exit code: 1
2019-11-14T17:00:38.8457599Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/test-panic-abort-disabled.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/test-panic-abort-disabled" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--test" "-Cpanic=abort" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/test-panic-abort-disabled/auxiliary" "-A" "unused"
2019-11-14T17:00:38.8457978Z ------------------------------------------
2019-11-14T17:00:38.8458012Z 
2019-11-14T17:00:38.8458297Z ------------------------------------------
2019-11-14T17:00:38.8458346Z stderr:
---
2019-11-14T17:00:38.8498272Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:537:22
2019-11-14T17:00:38.8498393Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
2019-11-14T17:00:38.8514792Z 
2019-11-14T17:00:38.8514939Z 
2019-11-14T17:00:38.8519341Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "ui" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-6.0/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "6.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2019-11-14T17:00:38.8522445Z 
2019-11-14T17:00:38.8522519Z 
2019-11-14T17:00:38.8534651Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2019-11-14T17:00:38.8534819Z Build completed unsuccessfully in 1:02:06
2019-11-14T17:00:38.8534819Z Build completed unsuccessfully in 1:02:06
2019-11-14T17:00:38.8587142Z == clock drift check ==
2019-11-14T17:00:38.8601234Z   local time: Thu Nov 14 17:00:38 UTC 2019
2019-11-14T17:00:39.1381233Z   network time: Thu, 14 Nov 2019 17:00:39 GMT
2019-11-14T17:00:39.1381795Z == end clock drift check ==
2019-11-14T17:00:39.8700709Z 
2019-11-14T17:00:39.8822711Z ##[error]Bash exited with code '1'.
2019-11-14T17:00:39.8873823Z ##[section]Starting: Checkout
2019-11-14T17:00:39.8875680Z ==============================================================================
2019-11-14T17:00:39.8875911Z Task         : Get sources
2019-11-14T17:00:39.8875958Z 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)

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-6.0 of your PR failed (pretty log, 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-11-14T17:48:28.1800500Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-11-14T17:48:28.1996757Z ##[command]git config gc.auto 0
2019-11-14T17:48:28.2065263Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-11-14T17:48:28.2124135Z ##[command]git config --get-all http.proxy
2019-11-14T17:48:28.2257804Z ##[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/66415/merge:refs/remotes/pull/66415/merge
---
2019-11-14T18:41:11.6290225Z .................................................................................................... 1500/9240
2019-11-14T18:41:17.0655831Z .................................................................................................... 1600/9240
2019-11-14T18:41:25.3115653Z .................................................................................................... 1700/9240
2019-11-14T18:41:32.9446553Z ....i............................................................................................... 1800/9240
2019-11-14T18:41:38.9008229Z ........................................................................................iiiii....... 1900/9240
2019-11-14T18:41:58.7057750Z .................................................................................................... 2100/9240
2019-11-14T18:42:00.7566438Z .................................................................................................... 2200/9240
2019-11-14T18:42:03.0554514Z .................................................................................................... 2300/9240
2019-11-14T18:42:09.6045087Z .................................................................................................... 2400/9240
---
2019-11-14T18:44:49.2261796Z .......................................................................................i............ 4700/9240
2019-11-14T18:44:55.2335512Z ...i................................................................................................ 4800/9240
2019-11-14T18:45:03.7884263Z .................................................................................................... 4900/9240
2019-11-14T18:45:08.6221955Z .................................................................................................... 5000/9240
2019-11-14T18:45:18.5321241Z ..........................................................................................ii.ii..... 5100/9240
2019-11-14T18:45:26.0437401Z .........................i.......................................................................... 5300/9240
2019-11-14T18:45:33.6710609Z .................................................................................................... 5400/9240
2019-11-14T18:45:41.3868154Z .......................................................................i............................ 5500/9240
2019-11-14T18:45:47.9372053Z .................................................................................................... 5600/9240
2019-11-14T18:45:47.9372053Z .................................................................................................... 5600/9240
2019-11-14T18:45:54.3991404Z .................................................................................................... 5700/9240
2019-11-14T18:46:03.0966703Z .........................................................ii...i..ii...........i..................... 5800/9240
2019-11-14T18:46:23.3108505Z .................................................................................................... 6000/9240
2019-11-14T18:46:30.6134689Z .................................................................................................... 6100/9240
2019-11-14T18:46:30.6134689Z .................................................................................................... 6100/9240
2019-11-14T18:46:36.0478277Z ............................................................................i..ii................... 6200/9240
2019-11-14T18:47:02.0397728Z .................................................................................................... 6400/9240
2019-11-14T18:47:04.0876882Z ............................................i....................................................... 6500/9240
2019-11-14T18:47:05.9980343Z .................................................................................................... 6600/9240
2019-11-14T18:47:08.0508049Z ..............................i..................................................................... 6700/9240
---
2019-11-14T18:51:28.6105087Z ---- [ui] ui/test-panic-abort-disabled.rs stdout ----
2019-11-14T18:51:28.6105161Z 
2019-11-14T18:51:28.6105400Z error: error pattern 'building tests with panic=abort is not yet supported' not found!
2019-11-14T18:51:28.6105470Z status: exit code: 1
2019-11-14T18:51:28.6106340Z command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/test-panic-abort-disabled.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "--out-dir" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/test-panic-abort-disabled" "-Crpath" "-O" "-Cdebuginfo=0" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--test" "-Cpanic=abort" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/test-panic-abort-disabled/auxiliary" "-A" "unused"
2019-11-14T18:51:28.6106650Z ------------------------------------------
2019-11-14T18:51:28.6106678Z 
2019-11-14T18:51:28.6106876Z ------------------------------------------
2019-11-14T18:51:28.6107072Z stderr:
---
2019-11-14T18:51:28.6137606Z thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:537:22
2019-11-14T18:51:28.6137696Z note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
2019-11-14T18:51:28.6152403Z 
2019-11-14T18:51:28.6152470Z 
2019-11-14T18:51:28.6153873Z command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/compiletest" "--compile-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib" "--run-lib-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/lib/rustlib/x86_64-unknown-linux-gnu/lib" "--rustc-path" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "--src-base" "/checkout/src/test/ui" "--build-base" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui" "--stage-id" "stage2-x86_64-unknown-linux-gnu" "--mode" "ui" "--target" "x86_64-unknown-linux-gnu" "--host" "x86_64-unknown-linux-gnu" "--llvm-filecheck" "/usr/lib/llvm-6.0/bin/FileCheck" "--host-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -Cdebuginfo=0 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--docck-python" "/usr/bin/python2.7" "--lldb-python" "/usr/bin/python2.7" "--gdb" "/usr/bin/gdb" "--quiet" "--llvm-version" "6.0.0\n" "--system-llvm" "--cc" "" "--cxx" "" "--cflags" "" "--llvm-components" "" "--llvm-cxxflags" "" "--adb-path" "adb" "--adb-test-dir" "/data/tmp/work" "--android-cross-path" "" "--color" "always"
2019-11-14T18:51:28.6154255Z 
2019-11-14T18:51:28.6154279Z 
2019-11-14T18:51:28.6160764Z failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
2019-11-14T18:51:28.6160848Z Build completed unsuccessfully in 0:57:19
2019-11-14T18:51:28.6160848Z Build completed unsuccessfully in 0:57:19
2019-11-14T18:51:28.6206583Z == clock drift check ==
2019-11-14T18:51:28.6219760Z   local time: Thu Nov 14 18:51:28 UTC 2019
2019-11-14T18:51:28.6770798Z   network time: Thu, 14 Nov 2019 18:51:28 GMT
2019-11-14T18:51:28.6773944Z == end clock drift check ==
2019-11-14T18:51:29.4792387Z 
2019-11-14T18:51:29.4889336Z ##[error]Bash exited with code '1'.
2019-11-14T18:51:29.4922343Z ##[section]Starting: Checkout
2019-11-14T18:51:29.4923882Z ==============================================================================
2019-11-14T18:51:29.4923944Z Task         : Get sources
2019-11-14T18:51:29.4923982Z 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)

@alexcrichton
Copy link
Member

Looks like this is an unstable flag and seems reasonable to me!

r=me with CI failure fixed

@tmandry
Copy link
Member Author

tmandry commented Nov 15, 2019

@bors r=alexcrichton rollup

@bors
Copy link
Contributor

bors commented Nov 15, 2019

📌 Commit 84070d8 has been approved by alexcrichton

@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 Nov 15, 2019
Centril added a commit to Centril/rust that referenced this pull request Nov 15, 2019
…excrichton

Add --force-run-in-process unstable option to libtest

When running tests with `-Zpanic_abort_tests`, it's sometimes desirable to fall back to the old behavior of only running tests in-process. This comes in handy if the system process launcher is unavailable, or the test code somehow expects all tests to be run in the same process.

For example, in Fuchsia we have unit tests that actually test the process launcher itself, in which case we can't use the process launcher to run the tests :).

r? @alexcrichton
cc @cramertj,@petrhosek
@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-6.0 of your PR failed (pretty log, 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-11-15T11:58:01.4440185Z ##[command]git remote add origin https://github.com/rust-lang/rust
2019-11-15T11:58:01.4639643Z ##[command]git config gc.auto 0
2019-11-15T11:58:01.4693422Z ##[command]git config --get-all http.https://github.com/rust-lang/rust.extraheader
2019-11-15T11:58:01.4742422Z ##[command]git config --get-all http.proxy
2019-11-15T11:58:01.9951213Z ##[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/66415/merge:refs/remotes/pull/66415/merge
---
2019-11-15T12:52:41.1996511Z .................................................................................................... 1500/9240
2019-11-15T12:52:46.6591769Z .................................................................................................... 1600/9240
2019-11-15T12:52:54.9159292Z .................................................................................................... 1700/9240
2019-11-15T12:53:02.9921360Z ....i............................................................................................... 1800/9240
2019-11-15T12:53:09.4327598Z ........................................................................................iiiii....... 1900/9240
2019-11-15T12:53:29.7250517Z .................................................................................................... 2100/9240
2019-11-15T12:53:31.8766516Z .................................................................................................... 2200/9240
2019-11-15T12:53:34.2247560Z .................................................................................................... 2300/9240
2019-11-15T12:53:41.0518180Z .................................................................................................... 2400/9240
---
2019-11-15T12:56:27.7474822Z .......................................................................................i............ 4700/9240
2019-11-15T12:56:34.2805924Z ...i................................................................................................ 4800/9240
2019-11-15T12:56:43.1040444Z .................................................................................................... 4900/9240
2019-11-15T12:56:48.4507649Z .................................................................................................... 5000/9240
2019-11-15T12:56:59.2102730Z ..........................................................................................ii.ii..... 5100/9240
2019-11-15T12:57:07.4758633Z .........................i.......................................................................... 5300/9240
2019-11-15T12:57:15.7012895Z .................................................................................................... 5400/9240
2019-11-15T12:57:23.8301317Z .......................................................................i............................ 5500/9240
2019-11-15T12:57:30.7985890Z .................................................................................................... 5600/9240
2019-11-15T12:57:30.7985890Z .................................................................................................... 5600/9240
2019-11-15T12:57:37.6949843Z .................................................................................................... 5700/9240
2019-11-15T12:57:46.5990273Z .........................................................ii...i..ii...........i..................... 5800/9240
2019-11-15T12:58:07.7428427Z .................................................................................................... 6000/9240
2019-11-15T12:58:15.5512188Z .................................................................................................... 6100/9240
2019-11-15T12:58:15.5512188Z .................................................................................................... 6100/9240
2019-11-15T12:58:20.7959188Z ............................................................................i..ii................... 6200/9240
2019-11-15T12:58:48.0235755Z .................................................................................................... 6400/9240
2019-11-15T12:58:50.3031662Z .............................................i...................................................... 6500/9240
2019-11-15T12:58:52.4514409Z .................................................................................................... 6600/9240
2019-11-15T12:58:54.7901296Z ..............................i..................................................................... 6700/9240
---
2019-11-15T13:03:47.0167226Z  finished in 5.532
2019-11-15T13:03:47.0330921Z Check compiletest suite=codegen mode=codegen (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-11-15T13:03:47.2105496Z 
2019-11-15T13:03:47.2105730Z running 156 tests
2019-11-15T13:03:49.9671851Z iiii....iii......iii..iiii...i.............................i..i..................i....i...........ii 100/156
2019-11-15T13:03:51.7801594Z .i.i..iiii..............i.........iii.i.........ii......
2019-11-15T13:03:51.7803574Z 
2019-11-15T13:03:51.7811699Z  finished in 4.747
2019-11-15T13:03:51.7979420Z Check compiletest suite=codegen-units mode=codegen-units (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-11-15T13:03:51.9535714Z 
---
2019-11-15T13:03:53.8335607Z  finished in 2.035
2019-11-15T13:03:53.8497302Z Check compiletest suite=assembly mode=assembly (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-11-15T13:03:53.9967403Z 
2019-11-15T13:03:53.9967534Z running 9 tests
2019-11-15T13:03:53.9968386Z iiiiiiiii
2019-11-15T13:03:53.9968674Z 
2019-11-15T13:03:53.9971173Z  finished in 0.147
2019-11-15T13:03:54.0134947Z Check compiletest suite=incremental mode=incremental (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-11-15T13:03:54.1861068Z 
---
2019-11-15T13:04:13.1076333Z  finished in 19.094
2019-11-15T13:04:13.1270727Z Check compiletest suite=debuginfo mode=debuginfo-gdb+lldb (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-11-15T13:04:13.3051117Z 
2019-11-15T13:04:13.3051323Z running 123 tests
2019-11-15T13:04:35.2065211Z .iiiii...i.....i..i...i..i.i.i..i.ii..i.i.....i..i....ii..........iiii..........i...ii...i.......ii. 100/123
2019-11-15T13:04:38.6639824Z i.i.i......iii.i.....ii
2019-11-15T13:04:38.6640977Z 
2019-11-15T13:04:38.6646466Z  finished in 25.537
2019-11-15T13:04:38.6657247Z Uplifting stage1 rustc (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-11-15T13:04:38.6658263Z Copying stage2 rustc from stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
---
2019-11-15T13:15:33.1315796Z 
2019-11-15T13:15:33.1317016Z    Doc-tests core
2019-11-15T13:15:37.6856080Z 
2019-11-15T13:15:37.6856757Z running 2420 tests
2019-11-15T13:15:47.2262668Z ......iiiii......................................................................................... 100/2420
2019-11-15T13:15:56.4524371Z .................................................................................ii................. 200/2420
2019-11-15T13:16:18.6092936Z ...i................................................................................................ 400/2420
2019-11-15T13:16:18.6092936Z ...i................................................................................................ 400/2420
2019-11-15T13:16:27.7372788Z ...................................................i..i.................iiii........................ 500/2420
2019-11-15T13:16:44.7743712Z .................................................................................................... 700/2420
2019-11-15T13:16:53.6694208Z .................................................................................................... 800/2420
2019-11-15T13:17:03.4222322Z .................................................................................................... 900/2420
2019-11-15T13:17:11.3735195Z .................................................................................................... 1000/2420
---
2019-11-15T13:20:58.4858948Z 
2019-11-15T13:20:58.4859942Z running 1000 tests
2019-11-15T13:21:17.3016600Z i................................................................................................... 100/1000
2019-11-15T13:21:28.2843163Z .................................................................................................... 200/1000
2019-11-15T13:21:35.9726897Z ...................iii......i......i...i......i..................................................... 300/1000
2019-11-15T13:21:41.0869563Z .................................................................................................... 400/1000
2019-11-15T13:21:48.3538885Z ...........................................i..i.................................ii.................. 500/1000
2019-11-15T13:22:01.8222387Z .................................................................................................... 700/1000
2019-11-15T13:22:01.8222387Z .................................................................................................... 700/1000
2019-11-15T13:22:08.8479336Z ..........................iiii...................................................................... 800/1000
2019-11-15T13:22:23.1628473Z .................................................................................................... 900/1000
2019-11-15T13:22:30.1731119Z ................................................iiii................................................ 1000/1000
2019-11-15T13:22:30.1732051Z test result: ok. 980 passed; 0 failed; 20 ignored; 0 measured; 0 filtered out
2019-11-15T13:22:30.1732183Z 
2019-11-15T13:22:30.1826946Z  finished in 178.786
2019-11-15T13:22:30.1842234Z Testing term stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
---
2019-11-15T13:22:32.2017602Z 
2019-11-15T13:22:32.2078488Z  finished in 2.023
2019-11-15T13:22:32.2093715Z Testing test stage1 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
2019-11-15T13:22:32.4105576Z    Compiling test v0.0.0 (/checkout/src/libtest)
2019-11-15T13:22:32.9641180Z error[E0063]: missing field `force_run_in_process` in initializer of `cli::TestOpts`
2019-11-15T13:22:32.9643435Z    |
2019-11-15T13:22:32.9643949Z 23 |         TestOpts {
2019-11-15T13:22:32.9644696Z    |         ^^^^^^^^ missing `force_run_in_process`
2019-11-15T13:22:32.9644928Z 
---
2019-11-15T13:22:33.0423632Z   local time: Fri Nov 15 13:22:33 UTC 2019
2019-11-15T13:22:33.1931684Z   network time: Fri, 15 Nov 2019 13:22:33 GMT
2019-11-15T13:22:33.1932599Z == end clock drift check ==
2019-11-15T13:22:33.7450042Z 
2019-11-15T13:22:33.7573450Z ##[error]Bash exited with code '1'.
2019-11-15T13:22:33.7610377Z ##[section]Starting: Checkout
2019-11-15T13:22:33.7612078Z ==============================================================================
2019-11-15T13:22:33.7612126Z Task         : Get sources
2019-11-15T13:22:33.7612168Z 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)

@tmandry
Copy link
Member Author

tmandry commented Nov 15, 2019

@bors r- ^

@bors bors added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Nov 15, 2019
@tmandry
Copy link
Member Author

tmandry commented Nov 15, 2019

@bors r=alexcrichton

@bors
Copy link
Contributor

bors commented Nov 15, 2019

📌 Commit d252ba3 has been approved by alexcrichton

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 15, 2019
Centril added a commit to Centril/rust that referenced this pull request Nov 15, 2019
…excrichton

Add --force-run-in-process unstable option to libtest

When running tests with `-Zpanic_abort_tests`, it's sometimes desirable to fall back to the old behavior of only running tests in-process. This comes in handy if the system process launcher is unavailable, or the test code somehow expects all tests to be run in the same process.

For example, in Fuchsia we have unit tests that actually test the process launcher itself, in which case we can't use the process launcher to run the tests :).

r? @alexcrichton
cc @cramertj,@petrhosek
Centril added a commit to Centril/rust that referenced this pull request Nov 15, 2019
…excrichton

Add --force-run-in-process unstable option to libtest

When running tests with `-Zpanic_abort_tests`, it's sometimes desirable to fall back to the old behavior of only running tests in-process. This comes in handy if the system process launcher is unavailable, or the test code somehow expects all tests to be run in the same process.

For example, in Fuchsia we have unit tests that actually test the process launcher itself, in which case we can't use the process launcher to run the tests :).

r? @alexcrichton
cc @cramertj,@petrhosek
bors added a commit that referenced this pull request Nov 16, 2019
Rollup of 5 pull requests

Successful merges:

 - #66350 (protect creation of destructors by a mutex)
 - #66407 (Add more tests for fixed ICEs)
 - #66415 (Add --force-run-in-process unstable option to libtest)
 - #66427 (Move the JSON error emitter to librustc_errors)
 - #66441 (libpanic_unwind for Miri: make sure we have the SEH lang items when needed)

Failed merges:

r? @ghost
@bors bors merged commit d252ba3 into rust-lang:master Nov 16, 2019
@tmandry tmandry deleted the force-test-in-process branch February 22, 2020 01:02
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.

4 participants