Closed dengsh12 closed 1 month ago
Approved, but let's think about how we might be able to test this kind of scenario to see if there are any more errors (and prevent them in the future).
Sure! I think such problems boil down to some small errors in generator leading to error in only one or two directives. Current UT unlikely to discover such problems. I'm thinking of adding a huge "standard map" which includes most of directives to test the latest OSS/Nplus matchFunc(kind of like what I was doing in POC).
@dengsh12 tests that will cover the generator tool will be useful when that lands. Maybe that's enough if there's enough coverage of the bitmasks.
Approved, but let's think about how we might be able to test this kind of scenario to see if there are any more errors (and prevent them in the future).
Sure! I think such problems boil down to some small errors in generator leading to error in only one or two directives. Current UT unlikely to discover such problems. I'm thinking of adding a huge "standard map" which includes most of directives to test the latest OSS/Nplus matchFunc(kind of like what I was doing in POC).
yet another case where a corpus of anonymized NGINX configs would be real handy
update: added ut from @oliveromahony's PR #104
Proposed changes
In #100 we provided support files for
ParseOptions.DirectiveSources
. For some reasonanalyze_nplus_latest_directives.go
was override to a legacy version with mismatch fromNGX_CONF_TAKE4
tongxConfTake2
. This PR is to fix those directives(keyval
andlimit_req_zone
). Thanks to @oliveromahony found this problem.Checklist
Before creating a PR, run through this checklist and mark each as complete.
CONTRIBUTING
documentREADME.md
)