X-Git-Url: https://git.ralfj.de/web.git/blobdiff_plain/103bcf4d2f710aa6cde1ebcf7a680069f851189e..7964835bfe281dcdfd62486645b1bc3e00c2fb6d:/ralf/_posts/2022-07-02-miri.md?ds=inline diff --git a/ralf/_posts/2022-07-02-miri.md b/ralf/_posts/2022-07-02-miri.md index 78f4bbb..41022f1 100644 --- a/ralf/_posts/2022-07-02-miri.md +++ b/ralf/_posts/2022-07-02-miri.md @@ -200,7 +200,7 @@ Passing all of these flags will make Miri's concurrency entirely deterministic. That can be useful to avoid non-deterministic test failures, but note that this will also mask many real-world bugs. Those test failures are often real, even if they can be hard to track down! -If you are still having trouble, feel free to come visit us in our [Zulip stram](https://rust-lang.zulipchat.com/#narrow/stream/269128-miri), which is the official communication channel for Miri. +If you are still having trouble, feel free to come visit us in our [Zulip stream](https://rust-lang.zulipchat.com/#narrow/stream/269128-miri), which is the official communication channel for Miri. By the way, if you are still disabling some tests on Miri because Miri used to not support panics/concurrency, it's time to give those tests another try. :) So this is a good opportunity to go over your `cfg(miri)` and similar attributes and re-evaluate if they are still needed. @@ -219,6 +219,8 @@ let limit = if cfg!(miri) { 10 } else { 10_000 }; If your test suite needs to access OS facilities such as timers or the file system, set `MIRIFLAGS=-Zmiri-disable-isolation` to enable those. (Miri will tell you when that is necessary.) If your test suite runs into an unsupported operation, please [report an issue](https://github.com/rust-lang/miri/issues). +However, note that we can only really support sufficiently "generic" operations -- like accessing file systems and network sockets. +To implement things like `Py_IsInitialized` would mean putting a Python interpreter into Miri; that is not going to happen. ;) If you want to add Miri to your CI to ensure your test suite keeps working in Miri, please consult our [README](https://github.com/rust-lang/miri/#running-miri-on-ci). That document is also a great starting point for any other questions you might have. @@ -226,7 +228,7 @@ That document is also a great starting point for any other questions you might h Miri is also integrated into the [Rust Playground](https://play.rust-lang.org/): you can select Miri in the "Tools" menu to check the code for Undefined Behavior. If Miri complains about your code and you do not understand why, we are happy to help! -The best place to ask for support is our [Zulip stram](https://rust-lang.zulipchat.com/#narrow/stream/269128-miri). +The best place to ask for support is our [Zulip stream](https://rust-lang.zulipchat.com/#narrow/stream/269128-miri). Questions are much easier to answer if you manage to reproduce the problem in a small self-contained bit of example code (ideally on the playground), but feel free to ask even if you do not know how to reduce the problem. ## Helping Miri