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

fix(proxy-wasm) pass hardcoded 0 as vm_configuration_size #656

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

dev-null-undefined
Copy link

pass hardcoded 0 instead of misleading constant

fixes #654

@CLAassistant
Copy link

CLAassistant commented Dec 14, 2024

CLA assistant check
All committers have signed the CLA.

@thibaultcha
Copy link
Member

We do support VM config as discussed in the issue so let's pass the correct value instead. Such a PR will also need test cases.

fix on_vm_start passing hardcoded 0 instead of the vm_configuration_size
@dev-null-undefined dev-null-undefined force-pushed the proxy_wasm/on_vm_start_argument_fix branch from 345764a to b54a26f Compare December 15, 2024 10:44
@dev-null-undefined
Copy link
Author

We do support VM config as discussed in the issue so let's pass the correct value instead. Such a PR will also need test cases.

My bad I missread your original comment on the issue and though you do not support VM configuration :D

@thibaultcha
Copy link
Member

thibaultcha commented Dec 16, 2024

Thanks for the update. To merge your PRs we will need you to sign our CLA as well as contribute the necessary regression tests when needed (this one needs it). For this test we will need to update the 001-on_root_phases.t suite: duplicating the TEST 1 with TEST 1 - on_vm_start without configuration and TEST 2 - on_vm_start with configuration. The second test needs to define a VM config in the module directive and assert the error log. It's very simple copy-pasting and many tests do this in the codebase already.

@thibaultcha
Copy link
Member

When dealing with tests, have a look at the developer documentation at https://github.com/Kong/ngx_wasm_module/blob/main/docs/DEVELOPER.md and look for the Makefile targets, for example make test or make reindex. The developer documentation is very detailed and should cover everything.

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.

Wrong params for proxy_on_vm_start
3 participants