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

Kong / ngx_wasm_module / 8525929178 / 31
95%
main: 95%

Build:
DEFAULT BRANCH: main
Ran 02 Apr 2024 04:32PM UTC
Files 41
Run time 2s
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

02 Apr 2024 04:05PM UTC coverage: 90.415% (-0.02%) from 90.434%
8525929178.31

push

github

thibaultcha
fix(ffi) allow 'load()' to fail and be invoked again

Before instantiating filter chains and request contexts, filters
themselves (i.e. their root context) are represented in the module.
Eventually, `ngx_proxy_wasm_start` iterates over all filters to start
their root contexts.

Previously, all filters declared in `proxy_wasm` directives were stored
globally. With the introduction of the FFI filters can be dynamically
added to the internal representation during `proxy_wasm.load`, which
makes it possible for `ngx_proxy_wasm_start` to be invoked several
times.

However, since the filters structure was global then all previously
declared filters were started again, including filters that previously
failed initializing their root contexts. This was not happening with
`proxy_wasm` directives since a filter failing initialization in that
case would not allow Nginx to start in the first place.

Now all filters are stored in a "filters root" structure which can
divide filter root contexts as needed. Each worker has a global "worker
filters root", and each `ngx_wasm_ops_plan` created by the FFI has its
own isolated "filters root".

Co-Authored-By: Michael Martin <michael.martin@konghq.com>

6980 of 7720 relevant lines covered (90.41%)

4416.65 hits per line

Source Files on job unit-ngx_1.25.4-wasmer-no_ipc-ssl-debug-no_hup-static - 8525929178.31
  • Tree
  • List 0
  • Changed 22
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 8525929178
  • 3bd94e61 on github
  • Prev Job for on main (#8525810201.25)
  • Next Job for on main (#8648733695.3)
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