-
Notifications
You must be signed in to change notification settings - Fork 104
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 cargo miri test
on wasm and riscv target once they're supported
#22
Comments
Reading the comments to a relevant issue in the miri repo (rust-lang/miri#1916), it seems like miri does not support Maybe I misuderstood something? |
Oh good find! Updated the issue description based on that. |
I can take a look! |
Thanks! Assigned to you. |
My investigation suggests that miri doesn't support any of the wasm32 targets as they all give the same error.
wasm32-unknown-emscripten
wasm32-unknown-unknown
wasm32-wasi
|
wasm32-wasi
targetcargo miri test
on a wasm target once one is supported
OK great, thanks @memark! Updated the issue description based on your findings. |
Indeed, rust-lang/miri#1916 affects all wasm targets. I have hardly any wasm knowledge so I am not sure how to even test potential fixes. The first step would be to add |
FWIW rust-lang/miri#2685 should help here. Miri still barely supports any FFI shims on wasm targets, but at least |
cargo miri test
on a wasm target once one is supportedcargo miri test
on wasm and riscv target once they're supported
We disable Miri testing for this target because it doesn't appear to be supported (see #22 and [1]). [1] https://github.com/google/zerocopy/actions/runs/5883275147/job/15955625276?pr=269
We disable Miri testing for this target because it doesn't appear to be supported (see #22 and [1]). [1] https://github.com/google/zerocopy/actions/runs/5883275147/job/15955625276?pr=269
We disable Miri testing for this target because it doesn't appear to be supported (see #22 and [1]). [1] https://github.com/google/zerocopy/actions/runs/5883275147/job/15955625276?pr=269
We disable Miri testing for this target because it doesn't appear to be supported (see #22 and [1]). [1] https://github.com/google/zerocopy/actions/runs/5883275147/job/15955625276?pr=269
We disable Miri testing for this target because it doesn't appear to be supported (see #22 and [1]). [1] https://github.com/google/zerocopy/actions/runs/5883275147/job/15955625276?pr=269
We disable Miri testing for this target because it doesn't appear to be supported (see #22 and [1]). [1] https://github.com/google/zerocopy/actions/runs/5883275147/job/15955625276?pr=269
Currently, Miri doesn't support any wasm target (see #22 (comment)). Once one is supported, we should run
cargo miri test
on a wasm target in CI.EDIT: This appears to also be true of riscv64gc-unknown-linux-gnu, although I haven't found it documented anywhere.
Old issue text
This job failed for reasons that seem specific to running
cargo miri test
with the target set towasm32-wasi
. I'm going to disable the test for the time being.Thanks to @frazar for discovering rust-lang/miri#1916, which suggests that Miri lacks support for some wasm32 targets. The task for this issue now is to a) determine whether any wasm32 targets are supported, b) switch to using a supported one if so or, c) skip running Miri when targetting wasm32 if none are supported.
The text was updated successfully, but these errors were encountered: