"examples/pytorch/text-classification/run_classification.py" did not exist on "a73281e3e435937d2550579887c37d0fa4fd534b"
Commit 60d5bda4 authored by Lysandre's avatar Lysandre
Browse files

Patch notification service

parent b29eb247
......@@ -160,6 +160,7 @@ if __name__ == "__main__":
results[job] = {"failed": 0, "success": 0, "time_spent": "", "failures": ""}
for key, file_path in file_dict.items():
try:
with open(file_path.replace("[]", "stats")) as f:
failed, success, time_spent = handle_test_results(f.read())
results[job]["failed"] += failed
......@@ -169,6 +170,8 @@ if __name__ == "__main__":
for line in f:
if re.search("FAILED", line):
results[job]["failures"] += line
except FileNotFoundError:
print("Artifact was not found, job was probably canceled.")
# Remove the trailing ", "
results[job]["time_spent"] = results[job]["time_spent"][:-2]
......
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