Repository navigation
Enhancement/lchib 614 utilize surefire report extended by rerun feature v2 - #1407
Merged
jothikumar-CB merged 6 commits intoOct 23, 2026
Conversation
…ase event as a single event
…m nested function
…lize-surefire-report-extended-by-rerun-feature enhancement/LCHIB-614: utilize surefire report extended by rerunFailingTests feature
jothikumar-CB
requested review from
ItIsUday and
Konboi
and
a balanced review from Copilot
October 22, 2026 11:47
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Retry diagnostics can be lost, and summary aggregation can hide independent failures or crash on supported raw test paths.
3 open issues
What changed in this PR
This PR extends Smart Tests CLI recording to capture individual attempts from Maven Surefire rerun reports and summarize retry results as logical tests.
Changes:
- Expand flaky and rerun XML elements into individual attempt events.
- Group recorded events by test path for summary counts while summing durations.
- Add Maven report fixtures, expected payloads, and summary tests.
| File | Description |
|---|---|
tests/test_runners/test_maven.py |
Adds integration tests for four retry report variants. |
tests/data/maven/reports-rerun-fail/TEST-rerun-fail.xml |
Adds an always-failing retry report. |
tests/data/maven/reports-rerun-error/TEST-rerun-error.xml |
Adds a repeated-exception retry report. |
tests/data/maven/reports-flaky/TEST-flaky.xml |
Adds a failure-then-success report. |
tests/data/maven/reports-flaky-error/TEST-flaky-error.xml |
Adds an exception-then-success report. |
tests/data/maven/record_test_rerun_fail_result.json |
Defines expected failed-attempt events. |
tests/data/maven/record_test_rerun_error_result.json |
Defines expected exception-attempt events. |
tests/data/maven/record_test_flaky_result.json |
Defines failed attempts followed by success. |
tests/data/maven/record_test_flaky_error_result.json |
Defines an exception attempt followed by success. |
tests/commands/record/test_tests.py |
Tests summary counts and durations with retries. |
smart_tests/commands/record/tests.py |
Flattens attempt events and adds grouped summaries. |
smart_tests/commands/record/case_event.py |
Parses Surefire extensions into attempt events. |
Review effort: Balanced
Konboi
approved these changes
Oct 23, 2026
jothikumar-CB
deleted the
enhancement/LCHIB-614-utilize-surefire-report-extended-by-rerun-feature-v2
branch
October 23, 2026 05:32
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

<flakyFailure>/<flakyError>/<rerunFailure>/<rerunError>support from v1 (PR enhancement/LCHIB-614: utilize surefire report extended by rerunFailingTests feature #1404) into main's rebranded smart_tests codebase.