-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Tests are broken #3204
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
Comments
That's not how the tests are meant to be run. See https://rustwasm.github.io/wasm-bindgen/contributing/testing.html; the main set of tests are run with As for why they're failing like that, it's because |
It seemed likely I was doing something wrong. I found an old README in the repo that led me to believe that the two ways of running tests were similar. I went the wrong way because of some other problem running the tests with cargo. I'll have to go back and look into that. Thanks! |
While looking into rustwasm#3204 I noticed that the error given by `wasm-pack test` was a panic while decoding descriptors, rather than the 'version mismatch' error that using an incompatible CLI version should give. It turns out that that was happening because descriptors were getting parsed before the custom section, and hence before the version check. So, I reordered things so that the custom section is parsed (but not processed) before the descriptors, which includes checking the schema version. The custom section still gets processed afterwards, though, since that seems to depend on the results of processing descriptors.
While looking into #3204 I noticed that the error given by `wasm-pack test` was a panic while decoding descriptors, rather than the 'version mismatch' error that using an incompatible CLI version should give. It turns out that that was happening because descriptors were getting parsed before the custom section, and hence before the version check. So, I reordered things so that the custom section is parsed (but not processed) before the descriptors, which includes checking the schema version. The custom section still gets processed afterwards, though, since that seems to depend on the results of processing descriptors.
I was going to start hacking on enum support this morning. Before I broke stuff I figured I should run the tests:
warm-pack test --node
, and they failed. I bisected the repo and found:It was introduced in #2954. I haven't really looked into it much, but I have a bad feeling that fixing this is going to involve a lot of changes to the tests themselves. I'm going to look into it more.
TBH, I'm a bit surprised that nobody has even noticed.
The text was updated successfully, but these errors were encountered: