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

Update to wasmtime 3.0 and enable wasi-nn calls #209

Merged
merged 17 commits into from
Jan 17, 2023

Conversation

geekbeast
Copy link
Contributor

The main purpose of this PR was to support wasi-nn calls inside Viceroy. As the necessary changes weren't available until the wasmtime 3.0 release, I also made the updates to to make it compatible with the broader changes in that specific release.

The two big changes that came in were changes to the pattern for PoolingAllocationConfig and how error/traps are handled. There was also one minor change in that it looks like the linker is no longer under the tokio namespace.

@pchickey
Copy link
Contributor

pchickey commented Dec 4, 2022

I think we'll want to guard the availability of wasi-nn behind a CLI flag, so that (as our testing tool) we don't create the expectation that wasi-nn is available in production

Matthew Tamayo added 8 commits December 6, 2022 14:38
There are now two flavors of the handle request call. One is used for trap_test and the other is
used by the Viceroy framework. Also extended the call to bubble up the error so it could be easily included in the response body.
@mtr-fastly
Copy link
Contributor

I have implemented enabling experimental modules via flags and refactored the trap test so that it uses the body instead of headers.

Matthew Tamayo added 2 commits December 6, 2022 20:14
Also switches backtrace output to stderr.
Copy link
Contributor

@mgattozzi mgattozzi left a comment

Choose a reason for hiding this comment

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

Hey @geekbeast just one change needed for the error output and then a question on a thing that seemed turned off. This looks great otherwise. If there's a test you can do to show it working that would be great, but given that it's experimental support I'm not going to require it to approve!

lib/src/execute.rs Outdated Show resolved Hide resolved
lib/src/execute.rs Outdated Show resolved Hide resolved
@mtr-fastly mtr-fastly requested a review from mgattozzi January 14, 2023 06:51
@mtr-fastly mtr-fastly assigned mtr-fastly and unassigned mtr-fastly Jan 14, 2023
Copy link
Contributor

@mgattozzi mgattozzi left a comment

Choose a reason for hiding this comment

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

Thanks for taking the time to get all these in!

@mgattozzi mgattozzi merged commit ec6d3f2 into fastly:main Jan 17, 2023
@geekbeast geekbeast deleted the feature/wasi-nn branch January 19, 2023 23:01
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.

4 participants