-
Notifications
You must be signed in to change notification settings - Fork 15
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
[feat] implement a separate VmBuilder::build
method for async
cases
#3
Conversation
Hello, I am a code review bot on flows.network. Here are my reviews of code commits in this PR. Overall, the pull request seems to be a set of minor updates, refactorings, and improvements to the code and related artifacts, such as test cases and GitHub workflows. However, there are some potential issues and errors that need to be addressed by the contributor and the maintainers before merging the changes. One of the main issues is related to the lack of context and documentation about the changes and why they were made. This may create confusion for future maintainers and result in issues or regressions if the changes are incomplete or incorrect. Therefore, the contributor should provide more detailed explanations about the changes in the commit messages, pull request description, and code comments. Another issue is related to the use of conditional compilation statements and how they affect the functionality and testing of the code. The contributor should make sure that all code paths and scenarios are covered by the test cases and that the code compiles correctly for different configurations and platforms. There are also some specific issues identified in some patches, such as the potential data race in the new In summary, while the pull request includes many useful and valuable updates, the potential issues and errors in some patches require further investigation and clarification to ensure the correctness and stability of the code. The contributor and the reviewers should work together to address these issues before merging the changes to the main branch. DetailsCommit 4efcb0efe863b8c0aa5afdeae184ed605aaf8d3eThe patch exposes the Commit c23c6f61224b887207517a6d69400eb8ba12fd7cThe patch adds a new public type called The change seems straightforward, and there's no immediate problem with adding this type. It may be a part of a larger set of changes in the Pull Request that is not visible in this patch, so it's important to consider the context of the larger change. However, if this change is isolated, then it can be reviewed independently without issues. Commit 0479e078ffacebad04ceb08192e54972f1d60176This patch introduces a new The patch also includes new logic to load and register plugin instances and to create the The most important change is the introduction of a new method to handle the creation of different types of Vm instances. This is important mainly because async and non-async cases require different logic to be implemented. Therefore, separating these two cases in different methods is a good practice to improve code organization. One potential problem is that the new mutable reference parameter for the async build method might create a data race when used by different threads. Therefore, the Commit 766e8b1f22ea74254609ef03f004d761043d0663This is a patch to update the test code in the The change is well-defined and targets specific functionality. It has defined and isolated test cases to validate expected behavior. The use of conditional compilation directives is also a good practice to provide platform support. However, without the context of the complete code changes in the pull request, it is difficult to determine if these test changes are complete and cover all edge cases. An issue may arise if there is any use of characteristic features where the tests may not cover the complete functionality of the code changes. Commit a80ed9e95f0c5061a96034313d5bcb7e4c6e31bbThis is a patch that modifies several Rust examples in the Wasmer SDK. The changes include updating feature flags to only apply on Linux targets and reformatting the code. There are no significant problems with the patch, and all of the changes are relatively minor improvements. However, the changes only affect the Rust examples and not the Wasmer runtime, so they may not be relevant to other parts of the project. Commit ea61fd70622ed94928fd4223b802f815389f073bThe patch seems to be updating the test code in the Rust SDK. Specifically, it is adding a new conditional compilation check to exclude a block of code when the "async" feature is not enabled. The change only affects the As a reviewer, I don't see any potential problems with this patch as it seems to be a small and straightforward update to existing code. The change is not critical, so it can be reviewed and merged quickly. However, it would be good to confirm with the contributor if there is any reason for excluding the code when the "async" feature is not enabled. Commit 1762732b4af769c77b494978dc454dfe4c2f4fe0Key changes: The patch updates the rustdoc and code formatting. It doesn't change the functionality of the library much, except for some conditional compilation statements. It uses Potential problems: None. Overall, the changes are minor and do not affect any of the existing functionality of the library. The use of conditional compilation statements is a good practice to ensure that the code compiles for different use cases. Therefore, the code changes and the rustdoc update look good to me. Commit cf81b36e264b7c76838a0c4a8cc7387f4b02a48eThis patch updates the pull request paths for the "bindings-rust" workflow in the ".github/workflows/bindings-rust.yml" file. It adds four new paths, "examples/", "src/", "crates/**", and ".github/workflows/bindings-rust.yml", to the existing path of ".github/workflows/bindings-rust.yml". This change ensures that the workflow will be triggered when changes are made to any of the specified paths. There are no potential problems with this patch. Commit 21873d3914ddf224813990124cbcc0c26b613975The patch introduces new methods to the It seems that the changes are focused on improving the There don't seem to be any potential problems with the changes. Commit 51435f87e004294d3b3b3493aaf340f5392402baThe patch implements new APIs in the There are no potential problems identified in the patch. The differences in the implementation between the cases when Commit c6db70d4af40033bfe4d32ee6b325642d12ae77dThe patch adds two new methods to the One potential issue is that the new methods are only available for the Commit 552e78fbd04827a274524b18d9680cb96a90c23bThis patch refactors the The key change is to replace the There does not appear to be any potential problems with this patch as it is quite small and makes a small but necessary change. Commit 9cc96731d6243b53995377a2865fdec2a05af07dThe patch updates two Rust code examples in the Commit 8dd65b9e70b3433a79c4678e28f5d9d5c1caa9ffThis patch updates the There don't seem to be any potential problems with this change, as it simply adds a new version of Rust to the test matrix. However, it's worth noting that if there are any issues specific to Rust 1.70, this patch may need to be updated or reverted. Commit 43f2fd9006ad22b096d0f470e09917802ae3c7d7This is a patch that updates the Rust version in the GitHub workflow file Commit e4c8ff100bb4aea38e1802a9a599418c19ff87bbKey changes:
Potential problems:
|
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
abeec7a
to
1762732
Compare
@L-jasmine Could you please help review this PR? Thanks a lot! |
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Signed-off-by: Xin Liu <sam@secondstate.io>
Hi @hydai lld-link: error: undefined symbol: public: void __cdecl WasmEdge::Host::WASI::FindHolderBase<class WasmEdge::Host::WASI::FindHolder>::reset(void) I'm not sure if it is a known error on |
@L-jasmine Thanks for the review! |
In this PR a separate
build
method is implemented inVmBuilder
for creating aVm
with the support forAsyncWasiModule
.