Conversation
Signed-off-by: John Vandenberg <jayvdb@gmail.com>
Signed-off-by: John Vandenberg <jayvdb@gmail.com>
| } | ||
|
|
||
| #[cfg(feature = "tracing")] | ||
| #[cfg(all(feature = "tracing", not(feature = "tokio-console")))] |
There was a problem hiding this comment.
this is unrelated; it allows running cargo test --all-features
MrCroxx
left a comment
There was a problem hiding this comment.
Hi, Jhon. Thank you for your attempt to introduce miri tests.
However, from this PR it seems that bringing in miri will introduce too many special-case interferences into the current codebase. I’m doubtful whether, under these interferences, miri can still effectively verify foyer’s behavior.
|
I dont understand what you are saying. Most of the codebase is now being reached with miri after the fixes to #1224 - I need to update that other PR to fix a few more bits to do with usage of the buffer. To be more clear, locally I have all tests with an "ignore" of "issue 1224" working. And that provides very good coverage. If there is something specific in this PR which you dont like, please let me know so we can discuss alternatives. Not doing miri testing at all is a very bad idea. |
Hi John. I am very willing to introduce miri tests, and I also support using miri to check for UB issues that are difficult for humans to detect. What worries me is that, just as many ignore cases were added in this PR, if we can’t easily introduce miri and pass all the tests, then I’m very concerned that miri will have difficulty At the same time, if we leave too many cases that need to be ignored, it may also hinder other contributors’ development in future work. This is just what I’m worried about and hasn’t prevented the foyer miri tests from being introduced into foyer. I’m on call this week, so my replies may be slower; please understand. cc @tisonkun for some idea. |
What's changed and what's your intention?
Checklist
cargo x(orcargo x --fastinstead if the old tests are not modified) in my local environment.Related issues or PRs (optional)