Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HBASE-27874 Problem in flakey generated report causes pre-commit run to fail #5244

Merged
merged 2 commits into from
May 22, 2023
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
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