Skip to content

[Merged by Bors] - Fix wasi functions binding relying on order#2428

Closed
galibey wants to merge 3 commits intofluvio-community:masterfrom
galibey:bugfix/wasi-binding-depends-on-order
Closed

[Merged by Bors] - Fix wasi functions binding relying on order#2428
galibey wants to merge 3 commits intofluvio-community:masterfrom
galibey:bugfix/wasi-binding-depends-on-order

Conversation

@galibey
Copy link
Contributor

@galibey galibey commented Jun 22, 2022

The binding of host function copy_record for wasi expects that the function always goes first in the list of imports. This is not always correct. Instead of lookup by order, we will do a lookup by name.
Also, the PR adds integration tests that will check the smart module instantiation works for both wasm and wasi cases.

@galibey galibey requested review from morenol and sehz June 22, 2022 14:15
Copy link

@sehz sehz left a comment

Choose a reason for hiding this comment

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

LGTM

@sehz
Copy link

sehz commented Jun 22, 2022

bors r+

bors bot pushed a commit that referenced this pull request Jun 22, 2022
The binding of host function `copy_record` for `wasi` expects that the function always goes first in the list of imports. This is not always correct. Instead of lookup by order, we will do a lookup by name.
Also, the PR adds integration tests that will check the smart module instantiation works for both `wasm` and `wasi` cases.
@bors
Copy link

bors bot commented Jun 22, 2022

Build failed:

@sehz
Copy link

sehz commented Jun 22, 2022

clippy strikes...

@sehz
Copy link

sehz commented Jun 22, 2022

bors r+

bors bot pushed a commit that referenced this pull request Jun 22, 2022
The binding of host function `copy_record` for `wasi` expects that the function always goes first in the list of imports. This is not always correct. Instead of lookup by order, we will do a lookup by name.
Also, the PR adds integration tests that will check the smart module instantiation works for both `wasm` and `wasi` cases.
@bors
Copy link

bors bot commented Jun 22, 2022

Pull request successfully merged into master.

Build succeeded:

@bors bors bot changed the title Fix wasi functions binding relying on order [Merged by Bors] - Fix wasi functions binding relying on order Jun 22, 2022
@bors bors bot closed this Jun 22, 2022
@galibey galibey deleted the bugfix/wasi-binding-depends-on-order branch June 22, 2022 18:25
@sehz sehz modified the milestones: 0.9.29, 0.9.28 Jun 27, 2022
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.

3 participants