-
Notifications
You must be signed in to change notification settings - Fork 720
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
Plugin zlib #2395
Plugin zlib #2395
Conversation
…nd', albeit without syncing msg to wasm z_stream, which will require further discussion.
Hello, I am a serverless review bot on flows.network. Here are my reviews of code commits in this PR. The reviews are about a software patch that adds a new plugin called WasmEdge Zlib. The patch modifies existing files, adds new directories and files, and includes two new jobs to the build matrix for building the plugin on different architectures. The patch enables the zlib library to a WasmEdge module, implementing several new classes each representing a different zlib function. Potential problems include typos or syntax errors in the new code and missing implementation of some functions that need to be added for proper functionality. Further, the code requires review to ensure it meets project coding standards and best practices. Some necessary DetailsCommit 1The patch adds a new plugin called WasmEdge Zlib to the existing plugins list. The changes include adding new directories and files, and modifying existing files to include the new plugin. The patch also adds two new jobs to the build matrix for building the plugin on different architectures. Potential problems include typos or syntax errors in the new code which may cause the build process to fail. Additionally, there is a missing implementation of WasmEdgeZlib module function which needs to be added for proper functionality. The code also needs to be reviewed to ensure it meets the project's coding standards and best practices. Commit 2This patch adds support for the zlib library to a WasmEdge module. Key changes include:
A potential problem with this patch is that it does not include the necessary |
Codecov Report
@@ Coverage Diff @@
## master #2395 +/- ##
=======================================
Coverage 82.23% 82.23%
=======================================
Files 133 133
Lines 19270 19270
Branches 4096 4096
=======================================
Hits 15847 15847
Misses 2416 2416
Partials 1007 1007 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
flows summarize |
Hello, I am a serverless review bot on flows.network. Here are my reviews of code commits in this PR. Overall Summary: The primary focus of the submitted patches is the development and initialization of a new WasmEdge Zlib plugin. The key changes include adding a new plugin directory, incorporating the Zlib dependency in the CMakeLists.txt file, and defining new structs and classes for the zlib plugin. Furthermore, the patches involve removing the However, there are some potential issues and errors present in these patches. Firstly, the absence of tests for the newly added plugin is a concern, as unit tests or integration tests should be included to ensure its proper functioning. Secondly, there is an incorrect class name in the To address these issues and ensure the robustness of the plugin, it is recommended to review the current changes, discuss possible improvements, and finalize the desired behavior to avoid any complications or unforeseen consequences. DetailsCommit 1This patch includes the initialization of a new WasmEdge Zlib Plugin. The key changes can be summarized as follows:
Potential issues:
Commit 2Summary of key changes:
Potential problems:
As the solution requires further discussion for syncing the message to wasm z_stream, it's recommended to review the current changes, possible improvements, and finalize the desired behavior to avoid any issues. |
Signed-off-by: Saikat Dey <57017288+notfathomless@users.noreply.github.com>
Thanks for your contribution. |
@q82419 Thank you for checking out the PR, I would to love add more of the zlib library. Anyways we will discuss, tell me how I can get back to you or any other developers or maintainers, I am already on the Discord and Slack channel as I have already contacted you on Discord on 3rd April, so I might be on the contact list. And also very sorry for the delay in responding, I used to check this PR regularly hoping somebody will respond but I completely missed your message. I used to press Hoping to have a good discussion and start contributing more. |
Sorry that we were working on the |
Sure, we can start discussing implementation details when you get some time! Thanks, have a nice day. |
Hi @notfathomless |
#2562 supersedes this PR. |
feat: a zlib plugin
I have already completed a minimal but complete zlib implementation with
WasmEdge C SDK
here: https://github.com/notfathomless/wasmedge-zlib/tree/main/src.I also posted a detailed plan on how I approached this issue and what we might need to consider here: #2244 (comment).
I have started to transition my code into a proper WasmEdge Plugin.
So, this PR is being created to track it's progress.
PROGRESS:
deflateInit_
deflateInit
deflate
deflateEnd
inflateInit_
inflateInit
inflate
inflateEnd
Note that all these functions currently stand implemented in my
WasmEdge C SDK
playground.I will continue re-implementing the functions here after finishing my GSOC Proposal.
Thank you all.
Have a nice day.