Repository navigation
std: use skip_unsupported_miri_tests to control when tests should be skipped in Miri due to missing shims - #165117
Conversation
|
Any special-casing of Miri in the standard library requires review. cc @rust-lang/miri |
|
|
|
@bors try |
This comment has been minimized.
This comment has been minimized.
std: use skip_missing_miri_shims to control when tests should be skipped in Miri due to missing shims try-job: test-x86_64-gnu-aux
43cd0c6 to
ce7f68a
Compare
|
I'm pretty okay with this, @rust-lang/libs-ping any thoughts? See the Zulip discussion linked in the top post for context |
ce7f68a to
4d659d1
Compare
This comment has been minimized.
This comment has been minimized.
4d659d1 to
f08ee20
Compare
| /// Converts a `BorrowedFd` into a reference to a file-like type. | ||
| /// | ||
| #[cfg_attr(all(unix, not(miri)), doc = "```")] | ||
| #[cfg_attr(unix, doc = "```")] |
This comment has been minimized.
This comment has been minimized.
f08ee20 to
5439f19
Compare
5439f19 to
3aee2ea
Compare
This comment has been minimized.
This comment has been minimized.
3aee2ea to
573f710
Compare
This comment has been minimized.
This comment has been minimized.
It's been a week -- seems like nobody has major concerns? |
573f710 to
11aad14
Compare
…uwer Rollup of 16 pull requests Successful merges: - #165575 (Upgrade bundled musl to 1.2.6) - #163992 (add `core::arch::{x86, x86_64}::x87_f80`) - #165117 (std: use skip_unsupported_miri_tests to control when tests should be skipped in Miri due to missing shims) - #165458 (fix incorrect byte count suffix on MSVC) - #165490 (Mark the compile unit for `-Zdebuginfo-for-profiling`) - #165586 (Remove `backend_optimization_level`.) - #165646 (fix NumScalableVectors::from_field_count) - #165655 (Unignore passing GCC backend tests) - #165740 (miri subtree update) - #153261 (Partially stabilize `ptr_alignment_type` as `alignment_type`) - #164559 (Windows: fix Dir::remove and Dir::rename following symlinks) - #165682 (interpret: ensure newly created unions have uninit in their padding) - #165693 (Move `check_attr` to attribute parsing) - #165715 (windows: check for null before wide encoding) - #165717 (mpsc_sync::stream_send_recv_stress: wait for all threads to finish) - #165733 (docs(num): remove needless whitespaces) Failed merges: - #165727 (Normalize "beta release channel" in `const-supertrait-unstable` test) - #164218 (Tweak private re-export errors to point at correct span and have more context) - #165709 (remove 'x miri' smoke test from PR CI)
miri subtree update Fixes an issue in `socketpair` to unblock rust-lang/rust#165117. Subtree update of `miri` to rust-lang@57677a1. Created using https://github.com/rust-lang/josh-sync. r? @ghost
…r=maxdexh std: use skip_unsupported_miri_tests to control when tests should be skipped in Miri due to missing shims We currently run some subset of std tests in Miri, skipping some because Miri doesn't support the operations they need. That is based on filters in the makefile. People don't know what is actually being tested and add random `cfg(miri)` in places to disable tests that were never run. This makes it quite hard to track which tests are being skipped and which operations we should add in Miri to get 100% std coverage. So let's replace that string-based filter with a cfg flag, `skip_unsupported_miri_tests`, that can be annotated at the tests. Unfortunately I can't figure out how to disable all doctests in a module based on a cfg flag, so this entirely disables std doctests being run in Miri in our CI. (We still run them in https://github.com/rust-lang/miri-test-libstd.) See prior discussion [on Zulip](https://rust-lang.zulipchat.com/#narrow/channel/219381-t-libs/topic/Miri.20vs.20tests.20in.20std/with/635913743). Docs PR: rust-lang/std-dev-guide#86 r? @tgross35 try-job: test-x86_64-gnu-aux
|
@JonathanBrouwer I suspect this is actually the one that made the rollup fail. @bors try jobs=test-x86_64-msvc-ext2 |
std: use skip_unsupported_miri_tests to control when tests should be skipped in Miri due to missing shims try-job: test-x86_64-msvc-ext2
This comment has been minimized.
This comment has been minimized.
|
This pull request was unapproved. This PR was contained in a rollup (#165756), which was unapproved. |
|
Let's just wait for #165709 to go in first. |
|
💔 Test for 6527c4d failed: CI. Failed job:
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
…ts should be skipped in Miri due to missing shims
3cf3c87 to
e982cc3
Compare
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
|
@bors r=maxdexh |
|
Fastest rebase in the west |
|
⌛ Testing commit e982cc3 with merge 9a513ad... Workflow: https://github.com/rust-lang/rust/actions/runs/42955422759 |
std: use skip_unsupported_miri_tests to control when tests should be skipped in Miri due to missing shims We currently run some subset of std tests in Miri, skipping some because Miri doesn't support the operations they need. That is based on filters in the makefile. People don't know what is actually being tested and add random `cfg(miri)` in places to disable tests that were never run. This makes it quite hard to track which tests are being skipped and which operations we should add in Miri to get 100% std coverage. So let's replace that string-based filter with a cfg flag, `skip_unsupported_miri_tests`, that can be annotated at the tests. Unfortunately I can't figure out how to disable all doctests in a module based on a cfg flag, so this entirely disables std doctests being run in Miri in our CI. (We still run them in https://github.com/rust-lang/miri-test-libstd.) See prior discussion [on Zulip](https://rust-lang.zulipchat.com/#narrow/channel/219381-t-libs/topic/Miri.20vs.20tests.20in.20std/with/635913743). Docs PR: rust-lang/std-dev-guide#86 r? @tgross35 try-job: test-x86_64-gnu-aux
|
@bors yield (enclosing rollup) |
|
Auto build was cancelled. Cancelled workflows: The next pull request likely to be tested is #165793. |
View all comments
We currently run some subset of std tests in Miri, skipping some because Miri doesn't support the operations they need. That is based on filters in the makefile. People don't know what is actually being tested and add random
cfg(miri)in places to disable tests that were never run. This makes it quite hard to track which tests are being skipped and which operations we should add in Miri to get 100% std coverage. So let's replace that string-based filter with a cfg flag,skip_unsupported_miri_tests, that can be annotated at the tests.Unfortunately I can't figure out how to disable all doctests in a module based on a cfg flag, so this entirely disables std doctests being run in Miri in our CI. (We still run them in https://github.com/rust-lang/miri-test-libstd.)
See prior discussion on Zulip.
Docs PR: rust-lang/std-dev-guide#86
r? @tgross35
try-job: test-x86_64-gnu-aux