Skip to content

Commit

Permalink
Shorten message of flake as it can contain a full stacktrace
Browse files Browse the repository at this point in the history
  • Loading branch information
gsmet committed Feb 21, 2024
1 parent fcd9a21 commit 2324f9e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,13 @@ private List<WorkflowReportModule> 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())))
Expand Down

0 comments on commit 2324f9e

Please sign in to comment.