-
Notifications
You must be signed in to change notification settings - Fork 94
tests from crates.io tarball are failing due to missing files #224
Comments
Those tests rely on submodule, so download it before ( |
note that crates.io tarballs do not contain any git submodule information |
Is there any way to specify it? |
@NikVolf I believe that those files are excluded here: https://github.com/paritytech/parity-wasm/blob/master/Cargo.toml#L13 |
But if I remove it, every user will have to download the test suite, which is not at all needed |
Hi @ignatenkobrain ! sorry for chiming in so late. Cargo testing usually assumes that you're working with crate locally and crates.io packages don't always contain all necesarry files for testing. I wonder why do you have such requirements? |
We try to test all crates before we ship them to users when packaging in Fedora. This works for most of the crates, but for those which do not, upstream usually add some flag which disables testing of data-dependent tests. |
by doing this we catched a lot of different issues related to endianess and/or some specific versions of crates. |
Interesting! This is totally a legit case, but as I've said it's not officially supported... I would recommend to file an issue to cargo/crates.io repo to ask about officially supporting this use-case. In the meantime, I think it should be possible to download the tests dynamically. Will look into that. |
We stumbled over the same problem when packaging the crate for Debian. Unfortunately, adding a method to dynamically download the files also doesn't help, because in Debian all packages must be buildable without a network connection. In this case, I also think it's not worth distributing additional files of 30MB size, so I'll disable the tests for now. Even though running tests has surfaced several real issues in the past, similar to Fedora's experience. |
Please either include them or somehow disable those tests by default. Thanks!
The text was updated successfully, but these errors were encountered: