Skip to content

Make test wasms build more consistently so they can be used in test snapshot tests #1465

@leighmcculloch

Description

@leighmcculloch

Make test wasms in this repo build more consistently.

So that disabling test snapshots does not have to be turned off in tests that use wasms:

#[test]
fn test() {
let e = Env::new_with_config(EnvTestConfig {
// Disable test snapshots because the tests in this repo will run across
// multiple hosts, and this test uses a wasm file that won't build consistently
// across different hosts.
capture_snapshot_at_drop: false,
});

The wasms in this repos CI are build using vanilla cargo build, which we know does not result in consistent builds.

Note that fixing this is relatively low priority, because most folks only need to build their wasm with one host. The wasms in this repo get built across a variety of hosts as part of multi-platform testing because the users of the SDK use a variety of hosts.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions