Always build all tests as a "reactor" #1448
Merged
+1,570
−1,037
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This commit switches the way tests are built such that all binaries produced are "reactors" or those without a
mainfunction. This ensures that all imports/exports are fully described with WIT in this repository as opposed to implicitly relying onwasi:cli/run. This additionally means that testing in this repository no longer relies on toolchain conventions for thewasi:cli/runworld making testing a bit more self-contained here, especially in the context of async.This notably came up on #1447 which should make some of the tests there easier to write and more idiomatic.