pchickey opened PR #13167 from pchickey:pch/wizer_test_component_regex to bytecodealliance:main.
pchickey edited PR #13167:
Previously, the Wizer test suite tested the
rust_regexcrate as a Rust source built fixture as a module only. This PR tests it as a component as well.
pchickey edited PR #13167:
Previously, the Wizer test suite tested the
regex-testcrate as a Rust source built fixture as a module only. This PR tests it as a component as well.
- The
regex-testcrate was a member of the workspace, and was built via ~Command::new("cargo build ...") in a particular integration test. This architecture was an artifact of porting the wizer source into wasmtime from a separate repository. This PR moves the relevant code to atest-programsbinarywizer_regex, and the integration test for the module uses it viatest-programs-artifactsinstead of building it directly.
alexcrichton submitted PR review.
alexcrichton created PR review comment:
I think this isn't actually referred to anywhere else so it might be reasonable to use
inlineand put it here directly?
alexcrichton created PR review comment:
Mind filing a bug for this? This, in theory, shouldn't be required
pchickey submitted PR review.
pchickey created PR review comment:
Ah yeah I never got around to using wasmtime bindgen in the test harness, because it seemed like extra noise, so I'll inline it
pchickey submitted PR review.
pchickey created PR review comment:
Already done, just hadnt pushed the FIXME comment yet
pchickey updated PR #13167.
pchickey edited PR #13167:
Previously, the Wizer test suite tested the
regex-testcrate as a Rust source built fixture as a module only. This PR tests it as a component as well.
The
regex-testcrate was a member of the workspace, and was built via ~Command::new("cargo build ...") in a particular integration test. This architecture was an artifact of porting the wizer source into wasmtime from a separate repository. This PR moves the relevant code to atest-programsbinarywizer_regex, and the integration test for the module uses it viatest-programs-artifactsinstead of building it directly.The
wizer_regexbinary is built by test-programs-artifacts into both a wasip1 module, and a wasip2 component (via the adapter). Because the module's export names would shadow the component's export names, the module testing path getsmodule-prefixes onwizer-initializeandrun, and the test harness is adjusted for thisThe
wizer_regexexport forrunisfunc(arg: u32) -> u32but the component tests written in wat were allrun: func() -> u32, so all of the wat components were modified to take anarg: u32param that they did nothing with.
pchickey updated PR #13167.
pchickey edited PR #13167:
Previously, the Wizer test suite tested the
regex-testcrate as a Rust source built fixture as a module only. This PR tests it as a component as well.
The
regex-testcrate was a member of the workspace, and was built via ~Command::new("cargo build ...") in a particular integration test. This architecture was an artifact of porting the wizer source into wasmtime from a separate repository. This PR moves the relevant code to atest-programsbinarywizer_regex, and the integration test for the module uses it viatest-programs-artifactsinstead of building it directly.The
wizer_regexbinary is built by test-programs-artifacts into both a wasip1 module, and a wasip2 component (via the adapter). Because the module's export names would shadow the component's export names, the module testing path getsmodule-prefixes onwizer-initializeandrun, and the module integration test is adjusted so that this tweak can get fed in at the right places.The
wizer_regexexport forrunisfunc(arg: u32) -> u32but the component tests written in wat were allrun: func() -> u32, so all of the wat components were modified to take anarg: u32param that they did nothing with.
pchickey has marked PR #13167 as ready for review.
pchickey requested fitzgen for a review on PR #13167.
pchickey requested wasmtime-core-reviewers for a review on PR #13167.
pchickey requested wasmtime-default-reviewers for a review on PR #13167.
pchickey added PR #13167 Wizer: rust regex test working as a component to the merge queue.
pchickey merged PR #13167.
pchickey removed PR #13167 Wizer: rust regex test working as a component from the merge queue.
Last updated: May 03 2026 at 22:13 UTC