Skip to content
Merged
Changes from 2 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
6 changes: 5 additions & 1 deletion utils/notification_service.py
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,15 @@ def warnings(self) -> Dict:
# Use the actual job link
job_link = f"{github_actions_job_links['Extract warnings in CI artifacts']}"

huggingface_hub_warnings = [x for x in self.warnings if "huggingface_hub" in x]
text = f"There are {len(self.selected_warnings)} warnings being selected."
text += f"\n{len(huggingface_hub_warnings)} of them are from `huggingface_hub`."

return {
"type": "section",
"text": {
"type": "plain_text",
"text": f"There were {len(self.selected_warnings)} warnings being selected.",
"text": text,
"emoji": True,
},
"accessory": {
Expand Down