santhoshct opened a new pull request, #18334:
URL: https://github.com/apache/kafka/pull/18334

   Added script to find the commit that would have caused the flakiness.
   
   ### Flaky Pattern Detection:
   
   For each test execution in chronological order:
   
   - When a FAILED or FLAKY status is encountered, opens a window of size M
   - Counts failures/flaky occurrences within that window
   - If count ≥ N, marks this as a potential flaky pattern
   - Records detailed information about the pattern including:
     - Initial failing commit
     - Build information
     - All test executions within the window
   
   ### Example
   Given:
   - Window size (M) = 6
   - Required failures (N) = 2
   
   Timeline:
   [PASS] -> [PASS] -> [FAIL] -> [PASS] -> [FAIL] -> [PASS] -> [PASS]
                        ^
                        |
                        Window starts here
                        
   Window Analysis:
   [FAIL], [PASS], [FAIL], [PASS], [PASS] = 2 failures in 5 executions
   Result: Pattern detected (2 failures ≥ N within window of size 6)
   
   ### Committer Checklist (excluded from commit message)
   - [ ] Verify design and implementation 
   - [ ] Verify test coverage and CI build status
   - [ ] Verify documentation (including upgrade notes)
   


-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to