Skip to content

Commit

Permalink
HBASE-27874 Problem in flakey generated report causes pre-commit run …
Browse files Browse the repository at this point in the history
…to fail (apache#5244)

Signed-off-by: Peter Somogyi <psomogyi@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
Reviewew-by: Kota-SH <shanmukhaharipriya@gmail.com>
(cherry picked from commit 0ba562a)
(cherry picked from commit 4348695)
Change-Id: I9d9518893b6559cb25addd843e537281c7ad6b9c
  • Loading branch information
wchevreuil authored and Jenkins User committed May 23, 2023
1 parent 413133d commit 58fb799
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions dev-support/flaky-tests/findHangingTests.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ def get_bad_tests(console_url):
for line in response.content.decode("utf-8").splitlines():
result1 = re.findall("Running org.apache.hadoop.hbase.(.*)", line)
if len(result1) == 1:
test_case = result1[0]
# Sometimes the maven build output might have some malformed lines. See HBASE-27874
test_case = result1[0].split("WARNING")[0].strip()
if test_case in all_tests_set:
print(("ERROR! Multiple tests with same name '{}'. Might get wrong results "
"for this test.".format(test_case)))
Expand All @@ -71,7 +72,8 @@ def get_bad_tests(console_url):
all_tests_set.add(test_case)
result2 = re.findall("Tests run:.*?- in org.apache.hadoop.hbase.(.*)", line)
if len(result2) == 1:
test_case = result2[0]
# Sometimes the maven build output might have some malformed lines. See HBASE-27874
test_case = result2[0].split("WARNING")[0].strip()
if "FAILURE!" in line:
failed_tests_set.add(test_case)
if test_case not in hanging_tests_set:
Expand Down

0 comments on commit 58fb799

Please sign in to comment.