-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Run doc tests with miri in ci #7060
Conversation
Hmm… what's going on in |
@@ -399,6 +399,7 @@ jobs: | |||
- name: miri | |||
run: | | |||
cargo miri nextest run --features full --lib --tests --no-fail-fast | |||
cargo miri test --doc --all-features --no-fail-fast |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The miri job is starting to take a rather long time. Could you add a new job for this, instead of adding additional work to the existing job? This will allow for parallelism.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
@@ -1535,6 +1553,7 @@ impl UnixDatagram { | |||
/// | |||
/// # Examples | |||
/// ``` | |||
/// # if cfg!(miri) { return } // No `socketpair` in miri. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm, but we do have socketpair
in Miri?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops should be only the SOCK_DGRAM
flag
fixed in #7063
@@ -421,6 +421,7 @@ impl Runtime { | |||
/// # Examples | |||
/// | |||
/// ``` | |||
/// # if cfg!(miri) { return } // Miri reports error when main thread terminated without waiting all remaining threads. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Specifically we report a leak; this can be ignored -- but maybe you want to detect memory leaks in the other tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We definitely want the leak detection for lots of other tests.
This PR ran doc test with miri in CI. Since doc test couldn't be run through
cargo miri nextest run
, it needs to be run separately usingcargo miri test
. There are 844 successful tests and 72 ignored tests in total.Happy new year! 🎉
Tracked under #6812