-
Notifications
You must be signed in to change notification settings - Fork 632
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
re: restore the low level wasmer2 refactor #6043
Conversation
Note, this is a draft, pending investigation into what exactly causes us to attempt an import of a 65536 page memory region. |
I believe I figured out the problem that we had. It isme forgetting to bump the The change in this particular instance was in the Now that these are consistent, across the board, loading an artifact generated with an old version of implementation would give us a module with a |
1e030a9
to
fb0ca66
Compare
267e150
to
3bed9f5
Compare
#[test] | ||
fn test_wasmer2_artifact_output_stability() { | ||
// If this test has failed, you want to adjust the necessary constants so that `cache::vm_hash` | ||
// changes (and the only then the hashes here). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Something's up with grammar here? "the only then the hashes"? love the alliteration though
let artifact = vm.compile_uncached(&prepared_code).unwrap(); | ||
let serialized = artifact.artifact().serialize().unwrap(); | ||
serialized.hash(&mut hasher); | ||
assert_eq!(hasher.finish(), 7017891230624373240, "WASMER2_CONFIG needs version change"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 that's a very good test, thanks for realizing we can do this. It did happen in the past that we've almost forgot to bust the caches.
Now hopefully anytime artifacts change we are reminded to actually verify and ensure we invalidate the cache...
c02e380
to
7457cfb
Compare
This reverts commit 353b4b4.