-
Notifications
You must be signed in to change notification settings - Fork 479
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
Changes wasm middleware and output binding config to url instead of path #2817
Conversation
Thanks, LGTM overall. See lint failure. |
f391b81
to
aea6892
Compare
thanks for the look. lint fixed now! |
4a75e46
to
e2d3c4f
Compare
This switches the wasm middleware and output binding config to use url instead of path to read the WebAssembly module. This allows us to later implement file, http and OCI. Note: The output binding passes STDIN as well as arguments. This means it can run intepreters such as python. I will be implementing this with the OCI scheme, tested with https://github.com/orgs/vmware-labs/packages/container/package/python-wasm Signed-off-by: Adrian Cole <adrian@tetrate.io>
e2d3c4f
to
63407ce
Compare
The configuration property for the wasm file is renamed per dapr/components-contrib#2817 Signed-off-by: Adrian Cole <adrian@tetrate.io>
@yaron2 @salaboy I noticed 1.11 cutoff is tomorrow, so made a decision to just normalize the config property to "url" for both wasm middleware and the output binding and not implement HTTP, yet. Basically, this is ready to implement "http://" "https://" and "oci://" schemes. middleware:
output binding:
|
Is this a breaking change in terms of the path -> URL change? |
yes, it is unless we want to back port the old one. As it is an alpha component and we broke it before not sure the rules. |
Signed-off-by: Adrian Cole <adrian@tetrate.io>
ps I was wrong, it looks like the wasm binding was already integrated in dapr/dapr#6269 so the only thing left is docs and just updating components-contrib version in dapr/dapr after merge |
We can technically break the spec as this is an Alpha component, but where possible we try to provide backward compatibility. For this early component I don't think it's required. Have you tested the middleware locally with Dapr after these changes? |
@yaron2 thx for understanding. I hadn't noticed a lot of use of middleware, so gut feel was to change the url before it becomes permanent confusion. I'll try middleware with a local build now and report back. p.s. dapr/docs#3362 for the docs on components. |
Signed-off-by: Adrian Cole <adrian@tetrate.io>
I added a commit to simplify the wasm output binding invocation, as well tighten the benchmark. We no longer return exit code zero on success (since 1.0) |
@codefromthecrypt keep in mind the following deadlines in the future:
Of course we'll try to get this PR reviewed and merged -- but do keep these dates in mind in the future to make things easier for us maintainers. Thanks for your understanding. |
@berndverst absolutely will bear in mind dates.. in fact I would have prioritized differently if I knew them. Where generally do I find these as I found out by accident of asking nervously. |
We always create an issue in That's where we keep the timeline up to date and also discuss the major features we are including in that release. Soon after we ship v1.11 we will create another such issue and pin it - so you can look for the "v1.12 Release Planning" issue then. The issue will be kept up to date with timelines. |
…ath (dapr#2817) Signed-off-by: Adrian Cole <adrian@tetrate.io> Co-authored-by: Yaron Schneider <schneider.yaron@live.com> Signed-off-by: Alvaro Aguilar <alvaro.aguilar@scrm.lidl>
* component http wasm: adjust for config drift The configuration property for the wasm file is renamed per dapr/components-contrib#2817 Signed-off-by: Adrian Cole <adrian@tetrate.io> * fuzz Signed-off-by: Adrian Cole <adrian@tetrate.io> --------- Signed-off-by: Adrian Cole <adrian@tetrate.io>
* component http wasm: adjust for config drift The configuration property for the wasm file is renamed per dapr/components-contrib#2817 Signed-off-by: Adrian Cole <adrian@tetrate.io> * fuzz Signed-off-by: Adrian Cole <adrian@tetrate.io> --------- Signed-off-by: Adrian Cole <adrian@tetrate.io>
Description
This switches the wasm middleware and output binding config to use url instead of path to read the WebAssembly module. This allows us to later implement HTTP and OCI.
Note: The output binding passes STDIN as well as arguments. This means it can run intepreters such as python. I will be implementing this with the OCI scheme, tested with https://github.com/orgs/vmware-labs/packages/container/package/python-wasm
Issue reference
related to, but won't close #2700
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: