Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ private void report(String accessKey, String buildScanUrl, String jobUrl) throws
row.add(flakyTest.testName);
row.add(buildScanUrl);
row.add(jobUrl);
row.add(flakyTest.message);
// there is a limit of 50000 characters in a single cell
row.add(abbreviate(flakyTest.message, 10000));
data.add(row);
}

Expand All @@ -291,6 +292,14 @@ private void report(String accessKey, String buildScanUrl, String jobUrl) throws
.execute();
}

private static String abbreviate(String text, int maxLength) {
if (text.length() > maxLength) {
return text.substring(0, maxLength - 3) + "...";
}

return text;
}

public static void main(String... args) throws Exception {
String path = System.getProperty("scanPath");
if (path == null) {
Expand Down
Loading