Skip to content

Rework "run vs serve" logic to require explicit wasi world#223

Merged
saulecabrera merged 2 commits intomainfrom
refactor-run-vs-serve
Feb 26, 2026
Merged

Rework "run vs serve" logic to require explicit wasi world#223
saulecabrera merged 2 commits intomainfrom
refactor-run-vs-serve

Conversation

@wingo
Copy link
Copy Markdown
Collaborator

@wingo wingo commented Feb 26, 2026

  • adapters/pywasm.py:
  • adapters/wasm-micro-runtime.py:
  • adapters/wasmedge.py:
  • adapters/wasmtime.py:
  • adapters/wazero.py:
  • adapters/wizard.py: Take a WASI world as an additional argument.
  • test-runner/tests/test_test_case.py:
  • test-runner/tests/test_test_suite_runner.py: Update tests.
  • test-runner/wasi_test_runner/runtime_adapter.py: Plumb wasi_world through to runtime.
  • test-runner/wasi_test_runner/test_case.py (WasiWorld): New type. (WasiProposal): Remove http/service, it's not a proposal. (Config.from_file): Don't infer proposals from ops. Parse out a world.
  • test-runner/wasi_test_runner/test_suite_runner.py (TestCaseRunner.do_run): Pass world to adapter.
  • tests/rust/wasm32-wasip3/src/bin/http-service.json: Adapt.

* adapters/pywasm.py:
* adapters/wasm-micro-runtime.py:
* adapters/wasmedge.py:
* adapters/wasmtime.py:
* adapters/wazero.py:
* adapters/wizard.py: Take a WASI world as an additional argument.
* test-runner/tests/test_test_case.py:
* test-runner/tests/test_test_suite_runner.py: Update tests.
* test-runner/wasi_test_runner/runtime_adapter.py: Plumb wasi_world
through to runtime.
* test-runner/wasi_test_runner/test_case.py (WasiWorld): New type.
(WasiProposal): Remove http/service, it's not a proposal.
(Config.from_file): Don't infer proposals from ops.  Parse out a world.
* test-runner/wasi_test_runner/test_suite_runner.py
(TestCaseRunner.do_run): Pass world to adapter.
* tests/rust/wasm32-wasip3/src/bin/http-service.json: Adapt.
@wingo wingo requested a review from saulecabrera February 26, 2026 13:15
Copy link
Copy Markdown
Collaborator

@saulecabrera saulecabrera left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@saulecabrera saulecabrera merged commit bdf3857 into main Feb 26, 2026
21 checks passed
@saulecabrera saulecabrera deleted the refactor-run-vs-serve branch February 26, 2026 14:27
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