Unverified Commit 99c5c607 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Update `notification_service.py` (#21992)



* better check

* better check

---------
Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 10bcbcae
...@@ -819,8 +819,8 @@ if __name__ == "__main__": ...@@ -819,8 +819,8 @@ if __name__ == "__main__":
stacktraces = handle_stacktraces(artifact["failures_line"]) stacktraces = handle_stacktraces(artifact["failures_line"])
for line in artifact["summary_short"].split("\n"): for line in artifact["summary_short"].split("\n"):
if re.search("FAILED", line): if line.startswith("FAILED "):
line = line.replace("FAILED ", "") line = line[len("FAILED ") :]
line = line.split()[0].replace("\n", "") line = line.split()[0].replace("\n", "")
if artifact_path["gpu"] not in model_results[model]["failures"]: if artifact_path["gpu"] not in model_results[model]["failures"]:
...@@ -910,8 +910,8 @@ if __name__ == "__main__": ...@@ -910,8 +910,8 @@ if __name__ == "__main__":
if failed: if failed:
for line in artifact["summary_short"].split("\n"): for line in artifact["summary_short"].split("\n"):
if re.search("FAILED", line): if line.startswith("FAILED "):
line = line.replace("FAILED ", "") line = line[len("FAILED ") :]
line = line.split()[0].replace("\n", "") line = line.split()[0].replace("\n", "")
if artifact_path["gpu"] not in additional_results[key]["failures"]: if artifact_path["gpu"] not in additional_results[key]["failures"]:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment