• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Kong / ngx_wasm_module / 6387273103
95%

Build:
DEFAULT BRANCH: main
Ran 03 Oct 2023 01:09AM UTC
Jobs 9
Files 46
Run time 4s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

03 Oct 2023 12:56AM UTC coverage: 90.965% (+0.001%) from 90.964%
6387273103

push

github

thibaultcha
fix(proxy-wasm) do not accidentally reset filter list from FFI call

When calling `proxy_wasm.set_property` from Lua, we want a `pwctx`
to be able to store a property. But we need to do that before
`proxy_wasm.start`, so `pwctx->ready` didn't have a chance to get
initialized yet.

Passing `NULL, 0` to `filter_ids` and `nfilters` when obtaining the `pwctx`
from the `set_property` FFI call caused the `pwctx` to get initialized with an
empty filter list, defeating the configuration previously set up by
`proxy_wasm.attach`.

In this fix, we make the `NULL` value of `filter_ids` to mean
"please don't do the `pwctx->ready` initialization". The other
use of `ngx_proxy_wasm_ctx` in `ngx_wasm_ops.c` always passes a
non-NULL value (even when the filter list is empty), because the
`elts` pointer is allocated on `ngx_array_init`.

This issue caused an integration failure in Kong Gateway. This PR
includes a regression test for our test suite, which reproduces the
sequence observed in the Gateway; the test fails without the fix
added to `ngx_proxy_wasm.c` and passes with the fix.

3 of 0 new or added lines in 0 files covered. (NaN%)

27 existing lines in 1 file now uncovered.

7561 of 8312 relevant lines covered (90.96%)

17962.22 hits per line

Jobs
ID Job ID Ran Files Coverage
1 unit-ngx_1.25.2-wasmer-no_ssl-no_debug-no_hup-static - 6387273103.1 03 Oct 2023 01:09AM UTC 0
89.29
GitHub Action Run
2 unit-ngx_1.25.2-wasmer-ssl-debug-no_hup-static - 6387273103.2 03 Oct 2023 01:11AM UTC 0
90.69
GitHub Action Run
3 unit-ngx_1.25.2-wasmer-ssl-no_debug-no_hup-static - 6387273103.3 03 Oct 2023 01:10AM UTC 0
89.66
GitHub Action Run
4 unit-ngx_1.21.6-wasmer-ssl-debug-no_hup-static - 6387273103.4 03 Oct 2023 01:15AM UTC 0
90.64
GitHub Action Run
5 unit-ngx_1.25.2-v8-ssl-debug-no_hup-static - 6387273103.5 03 Oct 2023 01:20AM UTC 0
91.07
GitHub Action Run
6 unit-openresty_1.21.4.2-wasmtime-ssl-debug-no_hup-static - 6387273103.6 03 Oct 2023 01:27AM UTC 0
90.46
GitHub Action Run
7 unit-ngx_1.25.2-wasmtime-ssl-debug-hup-static - 6387273103.7 03 Oct 2023 01:27AM UTC 0
90.16
GitHub Action Run
8 unit-ngx_1.25.2-wasmtime-ssl-debug-hup-dynamic - 6387273103.8 03 Oct 2023 01:27AM UTC 0
90.18
GitHub Action Run
9 unit-openresty_1.21.4.2-wasmtime-ssl-debug-no_hup-dynamic - 6387273103.9 03 Oct 2023 01:28AM UTC 0
90.48
GitHub Action Run
Source Files on build 6387273103
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #6387273103
  • 89170edb on github
  • Prev Build on main (#6329911730)
  • Next Build on main (#6426115691)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc