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

Test/add benchmark calls to tests #129

Merged
merged 16 commits into from
Dec 16, 2024
Merged

Conversation

mattyg
Copy link
Member

@mattyg mattyg commented Dec 13, 2024

Currently on CI, tests are passing but some benchmarks are failing inconsistently.

This adds test for all the wasm calls that are used in the benchmarks, to clarify that the errors only arise when the calls are run in benchmarks (i.e. when the wasm is instantiated and called 1000 - 1000000 times).

Edit: clearly the benchmark failures are inconsistent since CI is now passing here.

This PR is merging into chore/cleanup-make-private for a more legible diff.

@@ -535,4 +535,147 @@ pub mod tests {

assert_eq!(result, Vec::<u8>::from([1]));
}

Copy link
Member Author

@mattyg mattyg Dec 13, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The tests below are copying the calls used in test/benches/bench.rs that were erroring.

@mattyg mattyg requested a review from a team December 13, 2024 22:40
@mattyg mattyg changed the base branch from main to chore/cleanup-make-private December 15, 2024 19:08
Base automatically changed from chore/cleanup-make-private to main December 16, 2024 22:05
@mattyg mattyg merged commit f25fdbc into main Dec 16, 2024
13 checks passed
@mattyg mattyg deleted the test/add-benchmark-calls-to-tests branch December 16, 2024 22:29
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

Successfully merging this pull request may close these issues.

2 participants