Skip to content

Add some more async tests#1287

Merged
alexcrichton merged 4 commits into
bytecodealliance:mainfrom
alexcrichton:more-async-tests
Apr 30, 2025
Merged

Add some more async tests#1287
alexcrichton merged 4 commits into
bytecodealliance:mainfrom
alexcrichton:more-async-tests

Conversation

@alexcrichton
Copy link
Copy Markdown
Member

I went through various parts of the guest runtime and sprinkled if true { panic!() } throughout. Anything that wasn't hit got a test. This led to a few issues in wasip3-prototyping:

so not all tests are fully enabled yet but they should get enabled as bugs get fixed.

Additionally this starts to use CALLBACK_CODE_YIELD. That's disabled for callbacks due to bytecodealliance/wasip3-prototyping#140 but it's enabled for block_on where it translates to a waitable-set.poll instead of a waitable-set.wait.

I went through various parts of the guest runtime and sprinkled
`if true { panic!() }` throughout. Anything that wasn't hit got a test.
This led to a few issues in wasip3-prototyping:

* bytecodealliance/wasip3-prototyping#137
* bytecodealliance/wasip3-prototyping#138
* bytecodealliance/wasip3-prototyping#139
* bytecodealliance/wasip3-prototyping#140

so not all tests are fully enabled yet but they should get enabled as
bugs get fixed.

Additionally this starts to use `CALLBACK_CODE_YIELD`. That's disabled
for callbacks due to bytecodealliance/wasip3-prototyping#140 but it's
enabled for `block_on` where it translates to a `waitable-set.poll`
instead of a `waitable-set.wait`.
@alexcrichton alexcrichton requested a review from dicej April 29, 2025 22:16
@alexcrichton alexcrichton added this pull request to the merge queue Apr 30, 2025
Merged via the queue into bytecodealliance:main with commit 8ded8f9 Apr 30, 2025
19 checks passed
@alexcrichton alexcrichton deleted the more-async-tests branch April 30, 2025 18:25
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