GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||
GeezerVison is showing github.com — IpSubnetFilter: Add tests for overlapping rules by Raghuvardhan-Reddy78 · Pull Request #17765 · netty/netty Conversation
|
|
@Raghuvardhan-Reddy78 please rebase |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Motivation: IpSubnetFilter keeps only the widest of overlapping rules and relies on that rule being sorted first. d82c6c3 now orders rules with the same network address wider first and compares IPv4 addresses as unsigned, but there is no test for a narrower rule added before a wider one with the same network address, or for 0.0.0.0/0 combined with a network at or above 128.0.0.0. Modification: Add unit tests for both cases. Result: Regression coverage for overlapping rules.
|
Rebased. Looks like d82c6c3 already fixed the ordering (unsigned IPv4 compare and wider subnet first for the same network address), so I dropped my IpSubnetFilterRule change and the PR is now just the two regression tests, which pass on top of it. Fine to close if you don't want the extra tests. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
182d8be to
9069ccc
Compare
There was an error while loading. Please reload this page.
🚨 All tests passed but jobs failed 🚨Failed Jobs without Test Failures❌ Build PR / macos-x86_64-java11-boringssl build 🏷️ Commit: 9069ccc Rerun ControlsClick the checkbox to trigger a rerun: 🔲 Rerun jobs Learn more about TestLens at testlens.app/docs. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
@Raghuvardhan-Reddy78 thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Auto-port PR for 5.0: #17888 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Auto-port PR for 4.1: #17889 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Auto-port of #17765 to 4.1 Cherry-picked commit: afb80a7 --- Motivation: IpSubnetFilter keeps only the widest of overlapping rules and relies on that rule being sorted first. d82c6c3 now orders rules with the same network address wider first and compares IPv4 addresses as unsigned, but there is no test for a narrower rule added before a wider one with the same network address (10.0.0.0/24 then 10.0.0.0/8), or for 0.0.0.0/0 combined with a network at or above 128.0.0.0. Modification: - Add unit tests for both cases Result: Regression coverage for overlapping rules. Co-authored-by: Raghuvardhan-Reddy78 <[email protected]>
Auto-port of #17765 to 5.0 Cherry-picked commit: afb80a7 --- Motivation: IpSubnetFilter keeps only the widest of overlapping rules and relies on that rule being sorted first. d82c6c3 now orders rules with the same network address wider first and compares IPv4 addresses as unsigned, but there is no test for a narrower rule added before a wider one with the same network address (10.0.0.0/24 then 10.0.0.0/8), or for 0.0.0.0/0 combined with a network at or above 128.0.0.0. Modification: - Add unit tests for both cases Result: Regression coverage for overlapping rules. Co-authored-by: Raghuvardhan-Reddy78 <[email protected]> Co-authored-by: Norman Maurer <[email protected]>
…#17889) Auto-port of netty#17765 to 4.1 Cherry-picked commit: afb80a7 --- Motivation: IpSubnetFilter keeps only the widest of overlapping rules and relies on that rule being sorted first. d82c6c3 now orders rules with the same network address wider first and compares IPv4 addresses as unsigned, but there is no test for a narrower rule added before a wider one with the same network address (10.0.0.0/24 then 10.0.0.0/8), or for 0.0.0.0/0 combined with a network at or above 128.0.0.0. Modification: - Add unit tests for both cases Result: Regression coverage for overlapping rules. Co-authored-by: Raghuvardhan-Reddy78 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.