From cd6d81abebeee2c83803f6a5dedfc002acb45814 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Mon, 19 Feb 2024 17:51:46 +0100 Subject: [PATCH] Shorten message of flake as it can contain a full stacktrace --- .../buildreporter/githubactions/WorkflowRunAnalyzer.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/build-reporter-github-actions/src/main/java/io/quarkus/bot/buildreporter/githubactions/WorkflowRunAnalyzer.java b/build-reporter-github-actions/src/main/java/io/quarkus/bot/buildreporter/githubactions/WorkflowRunAnalyzer.java index f9359a1..04fcd54 100644 --- a/build-reporter-github-actions/src/main/java/io/quarkus/bot/buildreporter/githubactions/WorkflowRunAnalyzer.java +++ b/build-reporter-github-actions/src/main/java/io/quarkus/bot/buildreporter/githubactions/WorkflowRunAnalyzer.java @@ -196,11 +196,13 @@ private List getModules( rtc, Stream.concat( rtc.getFlakyErrors().stream() - .map(fe -> new WorkflowReportFlakyTestCase.Flake(fe.getMessage(), + .map(fe -> new WorkflowReportFlakyTestCase.Flake( + stackTraceShortener.shorten(fe.getMessage(), 1000, 5), fe.getType(), fe.getStackTrace(), stackTraceShortener.shorten(fe.getStackTrace(), 1000, 8))), rtc.getFlakyFailures().stream() - .map(fe -> new WorkflowReportFlakyTestCase.Flake(fe.getMessage(), + .map(fe -> new WorkflowReportFlakyTestCase.Flake( + stackTraceShortener.shorten(fe.getMessage(), 1000, 5), fe.getType(), fe.getStackTrace(), stackTraceShortener.shorten(fe.getStackTrace(), 1000, 8)))) .collect(Collectors.toList())))