Skip to content
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

Check Wasm module reproducibility #704

Closed
ipetr0v opened this issue Mar 16, 2020 · 3 comments
Closed

Check Wasm module reproducibility #704

ipetr0v opened this issue Mar 16, 2020 · 3 comments
Assignees

Comments

@ipetr0v
Copy link
Contributor

ipetr0v commented Mar 16, 2020

We need to check if Oak Wasm modules have the same hash after a rebuild (reproducibility).
In order to check we need clear the Cargo cache before rebuilding (so it would not influence the build).
Also we should check the hash values of modules compiled on different machines.

It also could be done as a part of the CI, but it might affect the Cloud Build time, since we will be clearing Cargo cache for all applications.

cc @tiziano88

@ipetr0v ipetr0v changed the title Check Wasm reproducibility Check Wasm module reproducibility Mar 16, 2020
@ipetr0v
Copy link
Contributor Author

ipetr0v commented Mar 16, 2020

My sha256sum values for the hello_world example look as follows:

3b65e7dcfeec0e6c979e69176169e6c235f2fffb95afb818f5c37cb5c545908c  target/wasm32-unknown-unknown/release/hello_world.wasm
3b65e7dcfeec0e6c979e69176169e6c235f2fffb95afb818f5c37cb5c545908c  target/wasm32-unknown-unknown/release/hello_world.wasm

And the hash value from a different machine:

3b65e7dcfeec0e6c979e69176169e6c235f2fffb95afb818f5c37cb5c545908c  target/wasm32-unknown-unknown/release/hello_world.wasm

So everything looks fine.

@tiziano88
Copy link
Collaborator

Great news!

@tiziano88
Copy link
Collaborator

So actually #865 is a duplicate of this, but I guess I'll keep that open since it has a bit more context about the reproducibility issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants