Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support error context in stream/error operations #1149

Merged

Conversation

vados-cosmonic
Copy link
Contributor

No description provided.

Copy link
Collaborator

@dicej dicej left a comment

Choose a reason for hiding this comment

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

I haven't had time to look at this super thoroughly yet, but looking good so far. See comments inline.

crates/guest-rust/rt/src/async_support.rs Show resolved Hide resolved
crates/guest-rust/rt/src/async_support.rs Outdated Show resolved Hide resolved
@vados-cosmonic vados-cosmonic requested a review from dicej January 30, 2025 17:25
Copy link
Collaborator

@dicej dicej left a comment

Choose a reason for hiding this comment

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

LGTM, but let's hold off merging this until we have some end-to-end test coverage in (your or my branch of) Wasmtime, e.g. tests that exercise closing with an error and verifying the reader receives it. We should test both the "local" case (i.e. when the same component instance has both ends of the stream/future) and the "remote" case (where the reader and writer ends are owned by different component instances).

@vados-cosmonic vados-cosmonic force-pushed the fix=pass-along-error-context branch from 5a0ac8c to 7ac0f08 Compare February 7, 2025 14:36
Signed-off-by: Victor Adossi <[email protected]>
@vados-cosmonic vados-cosmonic marked this pull request as ready for review February 13, 2025 16:24
@vados-cosmonic
Copy link
Contributor Author

Just a note: there are now working tests that use the functionality in here:

bytecodealliance/wasip3-prototyping#3

@vados-cosmonic vados-cosmonic requested a review from dicej February 13, 2025 16:55
@dicej dicej added this pull request to the merge queue Feb 14, 2025
Merged via the queue into bytecodealliance:main with commit 0853cc5 Feb 14, 2025
25 checks passed
dicej pushed a commit to dicej/wit-bindgen that referenced this pull request Feb 14, 2025
…nce#1149)

* feat: support error context in stream/error operations

Signed-off-by: Victor Adossi <[email protected]>

* fix: ensure late drop

Signed-off-by: Victor Adossi <[email protected]>

---------

Signed-off-by: Victor Adossi <[email protected]>
Signed-off-by: Joel Dice <[email protected]>
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