Skip to content

Commit 1285952

Browse files
wchevreuilApache9
authored andcommitted
HBASE-27874 Problem in flakey generated report causes pre-commit run to fail (#5244)
Signed-off-by: Peter Somogyi <[email protected]> Signed-off-by: Duo Zhang <[email protected]> Reviewew-by: Kota-SH <[email protected]> (cherry picked from commit 0ba562a)
1 parent cbdf2f2 commit 1285952

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

dev-support/flaky-tests/findHangingTests.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ def get_bad_tests(console_url):
6262
for line in response.content.decode("utf-8").splitlines():
6363
result1 = re.findall("Running org.apache.hadoop.hbase.(.*)", line)
6464
if len(result1) == 1:
65-
test_case = result1[0]
65+
# Sometimes the maven build output might have some malformed lines. See HBASE-27874
66+
test_case = result1[0].split("WARNING")[0].strip()
6667
if test_case in all_tests_set:
6768
print(("ERROR! Multiple tests with same name '{}'. Might get wrong results "
6869
"for this test.".format(test_case)))
@@ -71,7 +72,8 @@ def get_bad_tests(console_url):
7172
all_tests_set.add(test_case)
7273
result2 = re.findall("Tests run:.*?- in org.apache.hadoop.hbase.(.*)", line)
7374
if len(result2) == 1:
74-
test_case = result2[0]
75+
# Sometimes the maven build output might have some malformed lines. See HBASE-27874
76+
test_case = result2[0].split("WARNING")[0].strip()
7577
if "FAILURE!" in line:
7678
failed_tests_set.add(test_case)
7779
if test_case not in hanging_tests_set:

0 commit comments

Comments
 (0)