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

Added ignore-sgx for appropriate tests in src/test #60386

Merged
merged 4 commits into from
May 18, 2019

Conversation

Goirad
Copy link
Contributor

@Goirad Goirad commented Apr 29, 2019

These are all the tests that make sense to ignore when targeting fortanix-unknonw-sgx, at least in test/runpass. Other suites not yet covered.

@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 @nikomatsakis (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 Apr 29, 2019
@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-6.0 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.
travis_time:end:235ca800:start=1556579489325486344,finish=1556579573266183522,duration=83940697178
$ git checkout -qf FETCH_HEAD
travis_fold:end:git.checkout

Encrypted environment variables have been removed for security reasons.
See https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
$ export SCCACHE_BUCKET=rust-lang-ci-sccache2
$ export SCCACHE_REGION=us-west-1
$ export GCP_CACHE_BUCKET=rust-lang-ci-cache
$ export AWS_ACCESS_KEY_ID=AKIA46X5W6CZEJZ6XT55
---
/usr/local/lib/python2.7/dist-packages/pip/_vendor/requests/__init__.py:83: RequestsDependencyWarning: Old version of cryptography ([1, 2, 3]) may cause slowdown.
  warnings.warn(warning, RequestsDependencyWarning)
DEPRECATION: Python 2.7 will reach the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 won't be maintained after that date. A future version of pip will drop support for Python 2.7.
Collecting awscli
  Downloading https://files.pythonhosted.org/packages/ec/78/01f03354bf02d4c3d1a0de01cbe77529b79df4ea078284f1172690834586/awscli-1.16.148-py2.py3-none-any.whl (1.5MB)
    1% |▍                               | 20kB 2.2MB/s eta 0:00:01
    2% |▋                               | 30kB 3.2MB/s eta 0:00:01
    2% |▉                               | 40kB 2.1MB/s eta 0:00:01
    3% |█                               | 51kB 2.6MB/s eta 0:00:01
---

[00:03:19] travis_fold:start:tidy
travis_time:start:tidy
tidy check
[00:03:20] tidy error: /checkout/src/test/run-pass/cfg/cfg-family.rs: missing trailing newline
[00:03:20] tidy error: /checkout/src/test/run-pass/cfg/cfg-target-family.rs: missing trailing newline
[00:03:21] some tidy checks failed
[00:03:21] 
[00:03:21] 
[00:03:21] command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0-tools-bin/tidy" "/checkout/src" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "--no-vendor" "--quiet"
[00:03:21] 
[00:03:21] 
[00:03:21] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test src/tools/tidy
[00:03:21] Build completed unsuccessfully in 0:00:46
[00:03:21] Build completed unsuccessfully in 0:00:46
[00:03:21] Makefile:67: recipe for target 'tidy' failed
[00:03:21] make: *** [tidy] Error 1
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:1e2b140c
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Mon Apr 29 23:16:23 UTC 2019
---
travis_time:end:32f446b0:start=1556579784335267067,finish=1556579784340249342,duration=4982275
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:1a09c5e8
$ ln -s . checkout && for CORE in obj/cores/core.*; do EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|'); if [ -f "$EXE" ]; then printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE"; gdb --batch -q -c "$CORE" "$EXE" -iex 'set auto-load off' -iex 'dir src/' -iex 'set sysroot .' -ex bt -ex q; echo travis_fold":"end:crashlog; fi; done || true
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:0696f34e
travis_time:start:0696f34e
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:24c89df9
$ 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)

@rust-highfive
Copy link
Collaborator

The job x86_64-gnu-llvm-6.0 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.
travis_time:end:0ad9ec0c:start=1556581155141154719,finish=1556581234140342218,duration=78999187499
$ git checkout -qf FETCH_HEAD
travis_fold:end:git.checkout

Encrypted environment variables have been removed for security reasons.
See https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
$ export SCCACHE_BUCKET=rust-lang-ci-sccache2
$ export SCCACHE_REGION=us-west-1
$ export GCP_CACHE_BUCKET=rust-lang-ci-cache
$ export AWS_ACCESS_KEY_ID=AKIA46X5W6CZEJZ6XT55
---
[01:07:36] .................................................................................................... 2300/5470
[01:07:39] .................................................................................................... 2400/5470
[01:07:44] .................................................................................................... 2500/5470
[01:07:47] .................................................................................................... 2600/5470
[01:07:51] .....................F.............................................................................. 2700/5470
[01:07:59] .................................................................................................... 2900/5470
[01:08:03] .................................................................................................... 3000/5470
[01:08:06] .................................................................................................... 3100/5470
[01:08:06] .................................................................................................... 3100/5470
[01:08:10] ...F................................................................................................ 3200/5470
[01:08:17] .................................................................................................... 3400/5470
[01:08:20] .............................................ii...i..ii............................................. 3500/5470
[01:08:24] .................................................................................................... 3600/5470
[01:08:28] .................................................................................................... 3700/5470
---
[01:08:51] .................................................................................................... 4300/5470
[01:08:54] .................................................................................................... 4400/5470
[01:08:57] .................................................................................................... 4500/5470
[01:09:01] .................................................................................................... 4600/5470
[01:09:07] ........................................................................F........................... 4700/5470
[01:09:14] .................................................................................................... 4900/5470
[01:09:19] .................................................................................................... 5000/5470
[01:09:22] .................................................................................................... 5100/5470
[01:09:25] .................................................................................................... 5200/5470
---
[01:09:33] 1 error[E0599]: no method named `exec` found for type `&mut std::process::Command` in the current scope
[01:09:33] -   --> $DIR/issue-39175.rs:14:39
[01:09:33] +   --> $DIR/issue-39175.rs:15:39
[01:09:33] 3    |
[01:09:33] 4 LL |     Command::new("echo").arg("hello").exec();
[01:09:33] 
[01:09:33] 
[01:09:33] The actual stderr differed from the expected stderr.
[01:09:33] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-39175/issue-39175.stderr
[01:09:33] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-39175/issue-39175.stderr
[01:09:33] To update references, rerun the tests and pass the `--bless` flag
[01:09:33] To only update this specific test, also pass `--test-args issues/issue-39175.rs`
[01:09:33] error: 1 errors occurred comparing output.
[01:09:33] status: exit code: 1
[01:09:33] status: exit code: 1
[01:09:33] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/issues/issue-39175.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-39175/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/issues/issue-39175/auxiliary" "-A" "unused"
[01:09:33] ------------------------------------------
[01:09:33] 
[01:09:33] ------------------------------------------
[01:09:33] stderr:
[01:09:33] stderr:
[01:09:33] ------------------------------------------
[01:09:33] error[E0599]: no method named `exec` found for type `&mut std::process::Command` in the current scope
[01:09:33]   --> /checkout/src/test/ui/issues/issue-39175.rs:15:39
[01:09:33]    |
[01:09:33] LL |     Command::new("echo").arg("hello").exec();
[01:09:33]    |
[01:09:33]    = help: items from traits can only be used if the trait is in scope
[01:09:33] help: the following trait is implemented but not in scope, perhaps add a `use` for it:
[01:09:33]    |
---
[01:09:33] 
[01:09:33] ---- [ui] ui/linkage2.rs stdout ----
[01:09:33] diff of stderr:
[01:09:33] 
[01:09:33] 1 error: must have type `*const T` or `*mut T`
[01:09:33] +   --> $DIR/linkage2.rs:9:32
[01:09:33] 3    |
[01:09:33] 3    |
[01:09:33] 4 LL |     #[linkage = "extern_weak"] static foo: i32;
[01:09:33] 
[01:09:33] 
[01:09:33] The actual stderr differed from the expected stderr.
[01:09:33] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/linkage2/linkage2.stderr
[01:09:33] Actual stderr saved to /checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/linkage2/linkage2.stderr
[01:09:33] To update references, rerun the tests and pass the `--bless` flag
[01:09:33] To only update this specific test, also pass `--test-args linkage2.rs`
[01:09:33] error: 1 errors occurred comparing output.
[01:09:33] status: exit code: 1
[01:09:33] status: exit code: 1
[01:09:33] command: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/src/test/ui/linkage2.rs" "-Zthreads=1" "--target=x86_64-unknown-linux-gnu" "--error-format" "json" "-Zui-testing" "-C" "prefer-dynamic" "-o" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/linkage2/a" "-Crpath" "-O" "-Zunstable-options" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-L" "/checkout/obj/build/x86_64-unknown-linux-gnu/test/ui/linkage2/auxiliary" "-A" "unused"
[01:09:33] ------------------------------------------
[01:09:33] 
[01:09:33] ------------------------------------------
[01:09:33] stderr:
[01:09:33] stderr:
[01:09:33] ------------------------------------------
[01:09:33] error: must have type `*const T` or `*mut T`
[01:09:33]    |
[01:09:33]    |
[01:09:33] LL |     #[linkage = "extern_weak"] static foo: i32;
[01:09:33] 
[01:09:33] error: aborting due to previous error
[01:09:33] 
[01:09:33] 
---
[01:09:33] ------------------------------------------
[01:09:33] stderr:
[01:09:33] ------------------------------------------
[01:09:33] thread 'main' panicked at 'assertion failed: `(left == right)`
[01:09:33]   left: `[":22] Unit = Unit", ":23] a = Unit", ":29] Point{x: 42, y: 24,} = Point {", "    x: 42,", "    y: 24,", "}", ":30] b = Point {", "    x: 42,", "    y: 24,", "}", ":38]", ":42] &a = NoCopy(", "    1337,", ")", ":42] dbg!(& a) = NoCopy(", "    1337,", ")", ":47] f(&42) = 42", "before", ":52] { foo += 1; eprintln!(\"before\"); 7331 } = 7331", ":60] (\"Yeah\",) = (", "    \"Yeah\",", ")", ":63] 1 = 1", ":63] 2 = 2", ":67] 1u8 = 1", ":67] 2u32 = 2", ":67] \"Yeah\" = \"Yeah\""]`,
[01:09:33]  right: `[":21] Unit = Unit", ":22] a = Unit", ":28] Point{x: 42, y: 24,} = Point {", "    x: 42,", "    y: 24,", "}", ":29] b = Point {", "    x: 42,", "    y: 24,", "}", ":37]", ":41] &a = NoCopy(", "    1337,", ")", ":41] dbg!(& a) = NoCopy(", "    1337,", ")", ":46] f(&42) = 42", "before", ":51] { foo += 1; eprintln!(\"before\"); 7331 } = 7331", ":59] (\"Yeah\",) = (", "    \"Yeah\",", ")", ":62] 1 = 1", ":62] 2 = 2", ":66] 1u8 = 1", ":66] 2u32 = 2", ":66] \"Yeah\" = \"Yeah\""]`', /checkout/src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.rs:72:5
[01:09:33] 
[01:09:33] ------------------------------------------
[01:09:33] 
[01:09:33] 
---
[01:09:33] thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:517:22
[01:09:33] note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
[01:09:33] 
[01:09:33] 
[01:09:33] 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 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -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"
[01:09:33] 
[01:09:33] 
[01:09:33] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[01:09:33] Build completed unsuccessfully in 0:04:13
[01:09:33] Build completed unsuccessfully in 0:04:13
[01:09:33] make: *** [check] Error 1
[01:09:33] Makefile:48: recipe for target 'check' failed
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:1a035d80
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Tue Apr 30 00:50:16 UTC 2019

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 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.
travis_time:end:1b608217:start=1556601178754700657,finish=1556601262808219352,duration=84053518695
$ git checkout -qf FETCH_HEAD
travis_fold:end:git.checkout

Encrypted environment variables have been removed for security reasons.
See https://docs.travis-ci.com/user/pull-requests/#pull-requests-and-security-restrictions
$ export SCCACHE_BUCKET=rust-lang-ci-sccache2
$ export SCCACHE_REGION=us-west-1
$ export GCP_CACHE_BUCKET=rust-lang-ci-cache
$ export AWS_ACCESS_KEY_ID=AKIA46X5W6CZEJZ6XT55
---
[01:11:25] .................................................................................................... 4300/5471
[01:11:29] .................................................................................................... 4400/5471
[01:11:32] .................................................................................................... 4500/5471
[01:11:36] .................................................................................................... 4600/5471
[01:11:41] .......................................................................F............................ 4700/5471
[01:11:49] .................................................................................................... 4900/5471
[01:11:53] .................................................................................................... 5000/5471
[01:11:56] .................................................................................................... 5100/5471
[01:12:00] .................................................................................................... 5200/5471
---
[01:12:08] ------------------------------------------
[01:12:08] stderr:
[01:12:08] ------------------------------------------
[01:12:08] thread 'main' panicked at 'assertion failed: `(left == right)`
[01:12:08]   left: `[":22] Unit = Unit", ":23] a = Unit", ":29] Point{x: 42, y: 24,} = Point {", "    x: 42,", "    y: 24,", "}", ":30] b = Point {", "    x: 42,", "    y: 24,", "}", ":38]", ":42] &a = NoCopy(", "    1337,", ")", ":42] dbg!(& a) = NoCopy(", "    1337,", ")", ":47] f(&42) = 42", "before", ":52] { foo += 1; eprintln!(\"before\"); 7331 } = 7331", ":60] (\"Yeah\",) = (", "    \"Yeah\",", ")", ":63] 1 = 1", ":63] 2 = 2", ":67] 1u8 = 1", ":67] 2u32 = 2", ":67] \"Yeah\" = \"Yeah\""]`,
[01:12:08]  right: `[":22] Unit = Unit", ":23] a = Unit", ":29] Point{x: 42, y: 24,} = Point {", "    x: 42,", "    y: 24,", "}", ":30] b = Point {", "    x: 42,", "    y: 24,", "}", ":38]", ":42] &a = NoCopy(", "    1337,", ")", ":42] dbg!(& a) = NoCopy(", "    1337,", ")", ":47] f(&42) = 42", "before", ":52] { foo += 1; eprintln!(\"before\"); 7331 } = 7331", ":52] { foo += 1; eprintln!(\"before\"); 7331 } = 7331", ":60] (\"Yeah\",) = (", "    \"Yeah\",", ")", ":63] 1 = 1", ":63] 2 = 2", ":67] 1u8 = 1", ":67] 2u32 = 2", ":67] \"Yeah\" = \"Yeah\""]`', /checkout/src/test/ui/rfc-2361-dbg-macro/dbg-macro-expected-behavior.rs:72:5
[01:12:08] 
[01:12:08] ------------------------------------------
[01:12:08] 
[01:12:08] 
---
[01:12:08] thread 'main' panicked at 'Some tests failed', src/tools/compiletest/src/main.rs:517:22
[01:12:08] note: Run with `RUST_BACKTRACE=1` environment variable to display a backtrace.
[01:12:08] 
[01:12:08] 
[01:12:08] 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 -Zunstable-options  -Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--target-rustcflags" "-Crpath -O -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"
[01:12:08] 
[01:12:08] 
[01:12:08] failed to run: /checkout/obj/build/bootstrap/debug/bootstrap test
[01:12:08] Build completed unsuccessfully in 0:04:22
[01:12:08] Build completed unsuccessfully in 0:04:22
[01:12:08] make: *** [check] Error 1
[01:12:08] Makefile:48: recipe for target 'check' failed
The command "stamp sh -x -c "$RUN_SCRIPT"" exited with 2.
travis_time:start:1d26106c
$ date && (curl -fs --head https://google.com | grep ^Date: | sed 's/Date: //g' || true)
Tue Apr 30 06:26:41 UTC 2019
---
travis_time:end:00a9bf32:start=1556605602339685939,finish=1556605602344297309,duration=4611370
travis_fold:end:after_failure.3
travis_fold:start:after_failure.4
travis_time:start:3784f28c
$ ln -s . checkout && for CORE in obj/cores/core.*; do EXE=$(echo $CORE | sed 's|obj/cores/core\.[0-9]*\.!checkout!\(.*\)|\1|;y|!|/|'); if [ -f "$EXE" ]; then printf travis_fold":start:crashlog\n\033[31;1m%s\033[0m\n" "$CORE"; gdb --batch -q -c "$CORE" "$EXE" -iex 'set auto-load off' -iex 'dir src/' -iex 'set sysroot .' -ex bt -ex q; echo travis_fold":"end:crashlog; fi; done || true
travis_fold:end:after_failure.4
travis_fold:start:after_failure.5
travis_time:start:08ab0280
travis_time:start:08ab0280
$ cat ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers || true
cat: ./obj/build/x86_64-unknown-linux-gnu/native/asan/build/lib/asan/clang_rt.asan-dynamic-i386.vers: No such file or directory
travis_fold:end:after_failure.5
travis_fold:start:after_failure.6
travis_time:start:029e522f
$ 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)

@@ -10,3 +8,7 @@ pub fn main() {
#[cfg(unix)]
pub fn main() {
}

#[cfg(not(any(windows, unix)))]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't this miss the point of test? (Same for target_family test.)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What's your suggestion for making the test suite pass on non-windows non-unix platforms? It seems silly to me to add an ignore statement for every single such platform that may be added to Rust.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what exactly is the point of this test? I guess it's to test that you have either windows or unix (except when you don't, hence the ignores?)

In that case, perhaps we want to add some kind of "meta ignore" statement instead?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But, honestly, adding some ignore statements doesn't seem terrible for the time being. =) How often do we add such platforms anyway? And it's only two more tests.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what exactly is the point of this test?

I think it's to test that cfg(unix) works, as in, that the compiler correctly sets the configuration based on the target specification.

Copy link
Contributor

@nikomatsakis nikomatsakis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems good but:

  • the git history needs a bit of cleanup before we can merge this. It'd be nice to remove (e.g.) the stray printlns from the history and other such accidents. We also avoid merging PRs with merge commits. Are you familiar with git rebase?
  • I agree with @rasendubi that the #[cfg(not(any(windows, unix))] annotations seem to defeat the point of the test. I'm not sure what's a better more general fix, but I think for now it makes sense to just add a // ignore-foo annotations (after all, we do it on a ton of other tests, so I don't see why it's important not to do it on this particular test, particularly if we don't have a compelling alternative).

src/test/run-pass/atomic-print.rs Outdated Show resolved Hide resolved
@@ -10,3 +8,7 @@ pub fn main() {
#[cfg(unix)]
pub fn main() {
}

#[cfg(not(any(windows, unix)))]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what exactly is the point of this test? I guess it's to test that you have either windows or unix (except when you don't, hence the ignores?)

In that case, perhaps we want to add some kind of "meta ignore" statement instead?

@@ -10,3 +8,7 @@ pub fn main() {
#[cfg(unix)]
pub fn main() {
}

#[cfg(not(any(windows, unix)))]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But, honestly, adding some ignore statements doesn't seem terrible for the time being. =) How often do we add such platforms anyway? And it's only two more tests.

src/bootstrap/bootstrap.py Outdated Show resolved Hide resolved
src/bootstrap/bootstrap.py Outdated Show resolved Hide resolved
@nikomatsakis nikomatsakis 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-review Status: Awaiting review from the assignee but also interested parties. labels Apr 30, 2019
@Goirad Goirad force-pushed the sgx-ignore-tests branch from 1f56d59 to 2b9b826 Compare April 30, 2019 23:14
Copy link
Contributor

@nikomatsakis nikomatsakis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As far as I can tell, those two tests still ought to be changed.

cc @alexcrichton -- I suspect you know something about those tests, do you agree these changes are defeating the point of the tests? I'm not 100% sure.

src/test/run-pass/cfg/cfg-family.rs Outdated Show resolved Hide resolved
src/test/run-pass/cfg/cfg-target-family.rs Outdated Show resolved Hide resolved
@Goirad Goirad force-pushed the sgx-ignore-tests branch from 2b9b826 to 06e4d35 Compare May 7, 2019 19:35
@alexcrichton
Copy link
Member

It looks like the original changes aren't here any more (the tests have been updated). FWIW our test suite really wasn't ever written (or will be...) to run on every single platform under the sun. As can be seen from the other annotations in these files getting the test suite running on a particular platform involves just sprinkling a lot of directives throughout the codebase, and naturally this will regress quite often since we're not testing it on CI itself. I wish we had a better system for managing this but we aren't currently employing anything.

@Goirad
Copy link
Contributor Author

Goirad commented May 14, 2019

@nikomatsakis I have reverted those tests to just adding the ignore directives.

@bors
Copy link
Contributor

bors commented May 15, 2019

☔ The latest upstream changes (presumably #60775) made this pull request unmergeable. Please resolve the merge conflicts.

Copy link
Contributor

@nikomatsakis nikomatsakis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me

@nikomatsakis
Copy link
Contributor

@Goirad ok thanks! Sorry for the delay. r=me once rebased.

@Goirad Goirad force-pushed the sgx-ignore-tests branch from 06e4d35 to 4e7ac47 Compare May 16, 2019 21:32
@Goirad
Copy link
Contributor Author

Goirad commented May 17, 2019

@nikomatsakis That's alright! And everything is rebased

@nikomatsakis
Copy link
Contributor

@bors r+ rollup

@bors
Copy link
Contributor

bors commented May 17, 2019

📌 Commit 4e7ac47 has been approved by nikomatsakis

@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 May 17, 2019
@bors
Copy link
Contributor

bors commented May 18, 2019

⌛ Testing commit 4e7ac47 with merge b8aa422...

bors added a commit that referenced this pull request May 18, 2019
Added ignore-sgx for appropriate tests in src/test

These are all the tests that make sense to ignore when targeting fortanix-unknonw-sgx, at least in test/runpass. Other suites not yet covered.
@bors
Copy link
Contributor

bors commented May 18, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: nikomatsakis
Pushing b8aa422 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label May 18, 2019
@bors bors merged commit 4e7ac47 into rust-lang:master May 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. 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