Skip to content

Import component spec tests as a submodule and run them. - #2623

Merged
alexcrichton merged 3 commits into
bytecodealliance:mainfrom
alexcrichton:component-spec-tests
Aug 25, 2026
Merged

alexcrichton merged 3 commits into
bytecodealliance:mainfrom
alexcrichton:component-spec-tests

Conversation

@alexcrichton

Copy link
Copy Markdown
Member

This was a major motivation for #2621 and this PR follow through (building on top of #2621) in importing the component model test suite. One minor change of shifting an error around is additionally required, but otherwise all component spec tests run except for the recently-added max-value-size.wast which I'll be tackling next. For now that's expected to fail.

Note that just the last two commits here are part of this PR, and I've separated out the auto-generated changes and the handwritten changes commit-wise.

@alexcrichton
alexcrichton requested a review from a team as a code owner August 25, 2026 16:43
@alexcrichton
alexcrichton requested review from pchickey and removed request for a team August 25, 2026 16:43

@pchickey pchickey left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Obviously I didn't review the entire blessed test results added by this PR, but I spot checked two files and the rest looks good

This commit updates the main spec test suite submodule and drops a
skipped test from the custom-page-sizes proposal (it now runs and
passes), and then this additionally adds a new submodule for the
component model test suite and imports all of the tests.
This commit updates the script used to generate files to run the spec
tests to additionally generate file to run component model tests. This
additionally fixes minor issues when parsing a component to shift the
validation-time error to a parse-time error when a module section
contains a component and vice versa.
@alexcrichton
alexcrichton enabled auto-merge August 25, 2026 20:24
@alexcrichton
alexcrichton added this pull request to the merge queue Aug 25, 2026
Merged via the queue into bytecodealliance:main with commit faf4672 Aug 25, 2026
37 checks passed
@alexcrichton
alexcrichton deleted the component-spec-tests branch August 25, 2026 20:43
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
wasm-tools 1.259.0

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## What's Changed
* Refactor name resolution of components in the text format by @alexcrichton in bytecodealliance/wasm-tools#2621
* Import component spec tests as a submodule and run them. by @alexcrichton in bytecodealliance/wasm-tools#2623
* Fix name uniqueness with methods/interfaces by @alexcrichton in bytecodealliance/wasm-tools#2625
* Add compact import generation in wasm-smith by @chacailline in bytecodealliance/wasm-tools#2627
* Drop hyphens when testing equality of kebab names by @alexcrichton in bytecodealliance/wasm-tools#2626
* Enable wide-arithmetic by default in wasm-smith by @alexcrichton in bytecodealliance/wasm-tools#2628
* Validate the size of defined component types by @alexcrichton in bytecodealliance/wasm-tools#2624
* Update Wasmtime used in testing/fuzzing by @alexcrichton in bytecodealliance/wasm-tools#2629
* Fix text format outer aliases from recent refactor by @alexcrichton in bytecodealliance/wasm-tools#2631
* Remove `cancellable` immediate from component model intrinsics by @alexcrichton in bytecodealliance/wasm-tools#2630
* Start requiring "strict" indices in the text format by @alexcrichton in bytecodealliance/wasm-tools#2633
* Enable the `cm-implements` and `cm-map` features by default by @alexcrichton in bytecodealliance/wasm-tools#2634
* Clamp sizes of element segments in wasm-smith by @alexcrichton in bytecodealliance/wasm-tools#2632
* Fix wit-smith generating huge types by @alexcrichton in bytecodealliance/wasm-tools#2636
* Fix disallow_traps in wasm-smith with custom page sizes by @alexcrichton in bytecodealliance/wasm-tools#2635
* Resolve Cargo warnings on nightly by @alexcrichton in bytecodealliance/wasm-tools#2642
* Return an error instead of panicking on fixed-length-list size overflow by @zikk090 in bytecodealliance/wasm-tools#2643
* Try to improve performance of `deinline_import_export` by @alexcrichton in bytecodealliance/wasm-tools#2647
* Document a non-obvious method argument by @alexcrichton in bytecodealliance/wasm-tools#2645
* wasm-wave: Clean up syntax docs by @lann in bytecodealliance/wasm-tools#2644
* Update dependency major tracks by @alexcrichton in bytecodealliance/wasm-tools#2649
* Release wasm-tools 1.259.0 by @github-actions[bot] in bytecodealliance/wasm-tools#2650

## New Contributors
* @chacailline made their first contribution in bytecodealliance/wasm-tools#2627
* @zikk090 made their first contribution in bytecodealliance/wasm-tools#2643

**Full Changelog**: https://github.com/bytecodealliance/wasm-tools/compare/v1.258.0...v1.259.0</pre>
  <p>View the full release notes at <a href="https://github.com/bytecodealliance/wasm-tools/releases/tag/v1.259.0">https://github.com/bytecodealliance/wasm-tools/releases/tag/v1.259.0</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!20061
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