Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/check_failed_model_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
} >> "$GITHUB_ENV"

- name: Send processed report
if: ${{ env.REPORT_TEXT != '' }}
if: ${{ !endsWith(env.REPORT_TEXT, '{}') }}
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001
with:
# Slack channel id, channel name, or user id to post message.
Expand Down
10 changes: 9 additions & 1 deletion utils/check_bad_commit.py
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,15 @@ def get_commit_info(commit):
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)
13 changes: 12 additions & 1 deletion utils/process_bad_commit_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,18 @@
data = json.load(fp)

# TODO: extend
team_members = ["ydshieh", "zucchini-nlp", "ArthurZucker", "gante", "LysandreJik", "molbap", "qubvel"]
team_members = [
"ydshieh",
"zucchini-nlp",
"ArthurZucker",
"gante",
"LysandreJik",
"molbap",
"qubvel",
"Rocketknight1",
"muellerzr",
"SunMarc",
]

# Counting the number of failures grouped by authors
new_data = {}
Expand Down