From 00da0db27fb87e3aa431bf3ebf48acd4f39eab82 Mon Sep 17 00:00:00 2001 From: ydshieh Date: Thu, 9 Mar 2023 15:06:12 +0100 Subject: [PATCH 1/3] show hfh warnings --- 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 25933a0ab218..87ac1d3446bd 100644 --- a/utils/notification_service.py +++ b/utils/notification_service.py @@ -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"{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": { From 6d42f818ef644564b77ac1fcbdffb65a038bb24a Mon Sep 17 00:00:00 2001 From: ydshieh Date: Thu, 9 Mar 2023 15:09:17 +0100 Subject: [PATCH 2/3] show hfh warnings --- utils/notification_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/notification_service.py b/utils/notification_service.py index 87ac1d3446bd..a349b61e7463 100644 --- a/utils/notification_service.py +++ b/utils/notification_service.py @@ -217,7 +217,7 @@ def warnings(self) -> Dict: 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"{len(huggingface_hub_warnings)} of them are from `huggingface_hub`." + text += f"\n{len(huggingface_hub_warnings)} of them are from `huggingface_hub`." return { "type": "section", From 7e571020413f5781f0d8e79638c9bbeb7b26e38e Mon Sep 17 00:00:00 2001 From: ydshieh Date: Thu, 9 Mar 2023 15:15:02 +0100 Subject: [PATCH 3/3] show hfh warnings --- utils/notification_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/notification_service.py b/utils/notification_service.py index a349b61e7463..0aefd5844d32 100644 --- a/utils/notification_service.py +++ b/utils/notification_service.py @@ -215,7 +215,7 @@ 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] + 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`."