Skip to content

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

Merged
dicej merged 2 commits intobytecodealliance:mainfrom
vados-cosmonic:fix=pass-along-error-context
Feb 14, 2025
Merged

feat: support error context in stream/error operations#1149
dicej merged 2 commits intobytecodealliance:mainfrom
vados-cosmonic:fix=pass-along-error-context

Conversation

@vados-cosmonic
Copy link
Copy Markdown
Contributor

No description provided.

Copy link
Copy Markdown
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.

@vados-cosmonic vados-cosmonic requested a review from dicej January 30, 2025 17:25
Copy link
Copy Markdown
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).

Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
@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 <vadossi@cosmonic.com>
@vados-cosmonic vados-cosmonic marked this pull request as ready for review February 13, 2025 16:24
@vados-cosmonic
Copy link
Copy Markdown
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 <vadossi@cosmonic.com>

* fix: ensure late drop

Signed-off-by: Victor Adossi <vadossi@cosmonic.com>

---------

Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
Signed-off-by: Joel Dice <joel.dice@fermyon.com>
@vados-cosmonic vados-cosmonic deleted the fix=pass-along-error-context branch July 21, 2025 18:17
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