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 thearbitrary
crate. The current algorithm, with the latestarbitrary
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:
If this work has been discussed elsewhere, please include a link to that
conversation. If it was discussed in an issue, just mention "issue #...".Explain why this change is needed. If the details are in an issue already,
this can be brief.Our development process is documented in the Wasmtime book:
https://docs.wasmtime.dev/contributing-development-process.htmlPlease ensure all communication follows the code of conduct:
https://github.com/bytecodealliance/wasmtime/blob/main/CODE_OF_CONDUCT.md
-->
alexcrichton requested itsrainy for a review on PR #6315.
alexcrichton requested wasmtime-fuzz-reviewers for a review on PR #6315.
alexcrichton requested wasmtime-core-reviewers for a review on PR #6315.
itsrainy submitted PR review.
alexcrichton merged PR #6315.
Last updated: Nov 22 2024 at 16:03 UTC