Skip to content

Consolidate "util" crates for testing#10423

Merged
fitzgen merged 2 commits intobytecodealliance:mainfrom
alexcrichton:refactor-utiles
Mar 20, 2025
Merged

Consolidate "util" crates for testing#10423
fitzgen merged 2 commits intobytecodealliance:mainfrom
alexcrichton:refactor-utiles

Conversation

@alexcrichton
Copy link
Member

This commit consolidates all of the existing crates we have for testing into a smaller set of crates. Specifically:

  • crates/misc/component-fuzz-util => wasmtime-test-util + component-fuzz feature
  • crates/misc/component-test-util => wasmtime-test-util + component feature
  • crates/wast-util => wasmtime-test-util + wast feature
  • crates/misc/component-macro-test => wasmtime-test-macros

The goal is to have one location we put various test helpers/macros rather than our current organically-grown many locations. This is inspired by the test failure on #10405 where I'd like to refactor more infrastructure to a "test util" location but it wasn't clear where to put it so I wanted to do this refactoring first.

This commit consolidates all of the existing crates we have for testing
into a smaller set of crates. Specifically:

* `crates/misc/component-fuzz-util` => `wasmtime-test-util` + `component-fuzz`
  feature
* `crates/misc/component-test-util` => `wasmtime-test-util` + `component`
  feature
* `crates/wast-util` => `wasmtime-test-util` + `wast` feature
* `crates/misc/component-macro-test` => `wasmtime-test-macros`

The goal is to have one location we put various test helpers/macros
rather than our current organically-grown many locations. This is
inspired by the test failure on bytecodealliance#10405 where I'd like to refactor more
infrastructure to a "test util" location but it wasn't clear where to
put it so I wanted to do this refactoring first.
@alexcrichton alexcrichton requested review from a team as code owners March 19, 2025 18:54
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team March 19, 2025 18:54
@alexcrichton
Copy link
Member Author

this is a commit on the objdump PR to fix the test failure over there, leveraging this PR

@github-actions github-actions bot added the fuzzing Issues related to our fuzzing infrastructure label Mar 19, 2025
@github-actions
Copy link

Subscribe to Label Action

cc @fitzgen

Details This issue or pull request has been labeled: "fuzzing"

Thus the following users have been cc'd because of the following labels:

  • fitzgen: fuzzing

To subscribe or unsubscribe from this label, edit the .github/subscribe-to-label.json configuration file.

Learn more.

@fitzgen fitzgen added this pull request to the merge queue Mar 20, 2025
Merged via the queue into bytecodealliance:main with commit ca7081a Mar 20, 2025
42 checks passed
@alexcrichton alexcrichton deleted the refactor-utiles branch March 20, 2025 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fuzzing Issues related to our fuzzing infrastructure

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants