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

Allow tests full access to host WASI implementation #80

Open
rylev opened this issue May 15, 2024 · 0 comments
Open

Allow tests full access to host WASI implementation #80

rylev opened this issue May 15, 2024 · 0 comments

Comments

@rylev
Copy link
Collaborator

rylev commented May 15, 2024

Because of reasons1, tests also use the virtualized version of WASI that the router and Spin app use. However, we don't want tests to have the same limitations as those other subcomponents. The WASI virtualization already has partial support for passing its implementation on to imports that the host can provide. We need to expand this as well as develop a mechanism that detects whether a call to WASI is in the router/app or in the test itself. When in the router/app, we only allow virtualization, and when in the test, we pass through to the host implementation.

Footnotes

  1. This is a well know limitation of virtualization in WASI 0.2 brought on by the fact that async and streams are not first class citizens and thus must be modeled as normal wit interfaces and shared across all other interfaces that require some sort of async or streaming. Thus since we want to virtualization some usage of WASI, we need to virtualize all uses of WASI.

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

No branches or pull requests

1 participant