lhotari opened a new pull request, #24921: URL: https://github.com/apache/pulsar/pull/24921
### Motivation When executing tests with Surefire & TestNG, there's a lot of overhead caused by the test filtering. It takes 1-2 seconds to evaluate whether each test class belongs to the test group since TestNG instantiates each test class, runs configured listeners and then decides whether the class belongs to the test group. Since there's a lot of test classes in pulsar-broker, a lot of unnecessary time is spent in each broker group test job just to filter out tests. This solution will reduce the duration of each test job and allow further splitting of pulsar-broker tests to be run in separate test jobs in CI. ### Modifications - add a utility class for test filtering using Byte-buddy directly at the byte code level - add maven profiles for filtering and test execution - adapt build/run_unit_group.sh script to use the test filtering solution ### Documentation <!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. --> - [ ] `doc` <!-- Your PR contains doc changes. --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [x] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
