Skip to content

Conversation

@rvolosatovs
Copy link
Member

@rvolosatovs rvolosatovs commented Sep 9, 2025

Implement changes to consume-body as proposed in WebAssembly/wasi-http#185 and discussed in WebAssembly/wasi-http#176

As discussed on Monday, this PR will only be merged once WebAssembly/wasi-http#185 is merged and a new RC is cut

@rvolosatovs rvolosatovs force-pushed the feat/wasip3-http-consume-body branch 2 times, most recently from c933bdb to 304d730 Compare September 9, 2025 15:45
@rvolosatovs rvolosatovs force-pushed the feat/wasip3-http-consume-body branch from 304d730 to b7a246a Compare September 10, 2025 14:49
@rvolosatovs rvolosatovs added the wasm-proposal:component-model-async Issues related to the WebAssembly Component Model async proposal label Sep 11, 2025
@github-project-automation github-project-automation bot moved this to Backlog in Ship WASIp3 Sep 11, 2025
@rvolosatovs rvolosatovs moved this from Backlog to In progress in Ship WASIp3 Sep 11, 2025
@rvolosatovs rvolosatovs force-pushed the feat/wasip3-http-consume-body branch from b7a246a to 263e690 Compare September 15, 2025 15:22
Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
@rvolosatovs rvolosatovs force-pushed the feat/wasip3-http-consume-body branch from 263e690 to 163c277 Compare September 15, 2025 16:20
@rvolosatovs rvolosatovs marked this pull request as ready for review September 15, 2025 16:21
@rvolosatovs rvolosatovs requested review from a team as code owners September 15, 2025 16:21
@rvolosatovs rvolosatovs requested review from pchickey and removed request for a team September 15, 2025 16:21
@rvolosatovs
Copy link
Member Author

As discussed earlier today, we're waiting for a new wasip3 RC (cc @yoshuawuyts), which will be pulled in this PR, but other than that it is ready for review

Copy link
Member

@alexcrichton alexcrichton left a comment

Choose a reason for hiding this comment

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

Thanks! Will hold off on merging till we sort out the rc version for WASI

* Use the 2025-09-16 tag instead of 2025-08-15.
* Pulls in `wasi:http` updates "officially".
* Pulls in minor `wasi:cli` updates, and that's implemented here as
  well.
@alexcrichton
Copy link
Member

Ok I've pushed up an update to the official tag here plus the assorted CLI changes. @rvolosatovs or @dicej mind taking a look at my changes before merging?

@dicej dicej added this pull request to the merge queue Sep 17, 2025
Merged via the queue into bytecodealliance:main with commit 5305999 Sep 17, 2025
44 checks passed
@github-project-automation github-project-automation bot moved this from In progress to Done in Ship WASIp3 Sep 17, 2025
@rvolosatovs rvolosatovs deleted the feat/wasip3-http-consume-body branch September 17, 2025 15:57
alexcrichton added a commit to alexcrichton/wasmtime that referenced this pull request Sep 17, 2025
* feat(p3-http): implement `consume-body` changes

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>

* Update WITs to the latest snapshot

* Use the 2025-09-16 tag instead of 2025-08-15.
* Pulls in `wasi:http` updates "officially".
* Pulls in minor `wasi:cli` updates, and that's implemented here as
  well.

---------

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Co-authored-by: Alex Crichton <alex@alexcrichton.com>
alexcrichton added a commit that referenced this pull request Sep 17, 2025
* async: add stream/future producers and blanket impl for `Future` (#11684)

* async: add `EmptyProducer` and blanket impl for `Future`

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>

* move more future/stream producers to `wasmtime` crate

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>

* async: allow blanket `Future` impl to trap

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>

* async: remove the need for `{Ready,Empty}Producer`

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>

---------

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>

* Fix a missing outparam write in the p1 adapter (#11702)

This fixes an issue found through #11701, notably the "release mode
infinite loops" behavior that was seen. The cause was when `fd_readdir`
returned after skipping all directory entries it forgot to write the
final `*bufused = 0` out-param in the early-exit, unlike the end of the
function which already sets this.

* feat(p3-http): implement `consume-body` changes (#11653)

* feat(p3-http): implement `consume-body` changes

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>

* Update WITs to the latest snapshot

* Use the 2025-09-16 tag instead of 2025-08-15.
* Pulls in `wasi:http` updates "officially".
* Pulls in minor `wasi:cli` updates, and that's implemented here as
  well.

---------

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Co-authored-by: Alex Crichton <alex@alexcrichton.com>

---------

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Co-authored-by: Roman Volosatovs <rvolosatovs@users.noreply.github.com>
bongjunj pushed a commit to prosyslab/wasmtime that referenced this pull request Oct 20, 2025
* feat(p3-http): implement `consume-body` changes

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>

* Update WITs to the latest snapshot

* Use the 2025-09-16 tag instead of 2025-08-15.
* Pulls in `wasi:http` updates "officially".
* Pulls in minor `wasi:cli` updates, and that's implemented here as
  well.

---------

Signed-off-by: Roman Volosatovs <rvolosatovs@riseup.net>
Co-authored-by: Alex Crichton <alex@alexcrichton.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasm-proposal:component-model-async Issues related to the WebAssembly Component Model async proposal

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants