From 90a7c954962138e9e6f9c56ff892e4a435896990 Mon Sep 17 00:00:00 2001 From: Yih-Dar <2521628+ydshieh@users.noreply.github.com> Date: Thu, 9 Mar 2023 15:39:05 +0100 Subject: [PATCH] Show the number of `huggingface_hub` warnings in CI report (#22054) * show hfh warnings --------- Co-authored-by: ydshieh --- utils/notification_service.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/utils/notification_service.py b/utils/notification_service.py index 25933a0ab2..0aefd5844d 100644 --- a/utils/notification_service.py +++ b/utils/notification_service.py @@ -215,11 +215,15 @@ class Message: # 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.selected_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": {