Stream: git-wasmtime

Topic: wasmtime / PR #6315 Update test case generation for compo...


view this post on Zulip Wasmtime GitHub notifications bot (May 01 2023 at 15:06):

alexcrichton opened PR #6315 from alexcrichton:update-component-api-fuzzer to bytecodealliance:main:

This commit updates the test case generation for the component_api fuzzer to prepare for an update to the arbitrary crate. The current algorithm, with the latest arbitrary crate, generates a 20MB source file which is a bit egregious. The goal here was to get that under control by altering the parameters of test case generation and additionally changing the structure of what's generated.

The new strategy is to have a limited set of "type fuel" which is consumed as a type is generated. This bounds the maximal size of a type in addition to its depth as prior. Additionally a fixed set of types are generated first and then test cases select from these types as opposed to test cases always generating types for themselves. Coupled together this brings the size of the generated file back into the 200K range as it was before.

<!--
Please make sure you include the following information:

Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.html

Please ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->

view this post on Zulip Wasmtime GitHub notifications bot (May 01 2023 at 15:06):

alexcrichton requested itsrainy for a review on PR #6315.

view this post on Zulip Wasmtime GitHub notifications bot (May 01 2023 at 15:06):

alexcrichton requested wasmtime-fuzz-reviewers for a review on PR #6315.

view this post on Zulip Wasmtime GitHub notifications bot (May 01 2023 at 15:06):

alexcrichton requested wasmtime-core-reviewers for a review on PR #6315.

view this post on Zulip Wasmtime GitHub notifications bot (May 01 2023 at 15:43):

itsrainy submitted PR review.

view this post on Zulip Wasmtime GitHub notifications bot (May 01 2023 at 16:24):

alexcrichton merged PR #6315.


Last updated: Oct 23 2024 at 20:03 UTC