Skip to content

Commit

Permalink
Make show_common_failures script group by template id if present (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
omar-selo authored Sep 17, 2024
1 parent 95581e3 commit d6c234d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions backend/scripts/show_common_failures.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ def main(artefact_id: int):
).json()

failing_test_cases.extend(
tr["name"] for tr in test_results if tr["status"] == "FAILED"
tr["template_id"] or tr["name"]
for tr in test_results
if tr["status"] == "FAILED"
)

sys.stdout.write("\r")
Expand All @@ -50,7 +52,8 @@ def main(artefact_id: int):
if __name__ == "__main__":
parser = argparse.ArgumentParser(
description="Given an artefact id, prints the most common failing"
" test cases under undecided test executions."
" test cases under undecided test executions. Groups tests by template_id"
" if present and case name otherwise"
"\nUses TO_API_URL environment if defined defaulting to production otherwise",
)
parser.add_argument("artefact_id", type=int)
Expand Down

0 comments on commit d6c234d

Please sign in to comment.