From a547340a58dbbc74d4dbdb101683eb374a33ae40 Mon Sep 17 00:00:00 2001 From: Kohsuke Kawaguchi Date: Fri, 20 Feb 2026 15:10:05 +0900 Subject: [PATCH] [LCHIB-615] ignore failsafe-summary.xml This file is autogenerated and not a JUnit report file: https://maven.apache.org/surefire/maven-failsafe-plugin/ --- launchable/test_runners/maven.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/launchable/test_runners/maven.py b/launchable/test_runners/maven.py index 1c6ddd754..c72f65282 100644 --- a/launchable/test_runners/maven.py +++ b/launchable/test_runners/maven.py @@ -160,4 +160,14 @@ def format_same_bin(s: str) -> List[Dict[str, str]]: @launchable.record.tests def record_tests(client, reports): client.path_builder = junit5_nested_class_path_builder(client.path_builder) + + # Override report method to filter out failsafe-summary.xml + original_report = client.report + + def report_with_filter(junit_report_file: str): + if not junit_report_file.endswith('failsafe-summary.xml'): + original_report(junit_report_file) + + client.report = report_with_filter + launchable.CommonRecordTestImpls.load_report_files(client=client, source_roots=reports)