This commit is contained in:
ydshieh 2024-05-31 17:21:06 +02:00
parent a51a3fbc48
commit 48681e6e5e
1 changed files with 6 additions and 5 deletions

View File

@ -638,7 +638,7 @@ class Message:
def get_new_model_failure_blocks(self, with_header=True, to_truncate=True):
if self.prev_ci_artifacts is None:
return {}
return []
sorted_dict = sorted(self.model_results.items(), key=lambda t: t[0])
@ -764,6 +764,7 @@ class Message:
# To save the list of new model failures
blocks = self.get_new_model_failure_blocks(to_truncate=False)
if blocks:
failure_text = blocks[-1]["text"]["text"]
file_path = os.path.join(os.getcwd(), f"ci_results_{job_name}/new_model_failures.txt")
with open(file_path, "w", encoding="UTF-8") as fp: