[auto. ping] Avoid sending empty info + add more team members (#34383)
* update * update --------- Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>
This commit is contained in:
@@ -182,7 +182,15 @@ if __name__ == "__main__":
|
||||
info = {"test": test, "commit": commit}
|
||||
info.update(get_commit_info(commit))
|
||||
failed_tests_with_bad_commits.append(info)
|
||||
reports[model]["single-gpu"] = failed_tests_with_bad_commits
|
||||
|
||||
# If no single-gpu test failures, remove the key
|
||||
if len(failed_tests_with_bad_commits) > 0:
|
||||
reports[model]["single-gpu"] = failed_tests_with_bad_commits
|
||||
else:
|
||||
reports[model].pop("single-gpu", None)
|
||||
|
||||
# remove the models without any test failure
|
||||
reports = {k: v for k, v in reports.items() if len(v) > 0}
|
||||
|
||||
with open(args.output_file, "w", encoding="UTF-8") as fp:
|
||||
json.dump(reports, fp, ensure_ascii=False, indent=4)
|
||||
|
||||
Reference in New Issue
Block a user