Unverified Commit 90a7c954 authored by Yih-Dar's avatar Yih-Dar Committed by GitHub
Browse files

Show the number of `huggingface_hub` warnings in CI report (#22054)



* show hfh warnings

---------
Co-authored-by: default avatarydshieh <ydshieh@users.noreply.github.com>
parent 923110b7
...@@ -215,11 +215,15 @@ class Message: ...@@ -215,11 +215,15 @@ class Message:
# Use the actual job link # Use the actual job link
job_link = f"{github_actions_job_links['Extract warnings in CI artifacts']}" 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 { return {
"type": "section", "type": "section",
"text": { "text": {
"type": "plain_text", "type": "plain_text",
"text": f"There were {len(self.selected_warnings)} warnings being selected.", "text": text,
"emoji": True, "emoji": True,
}, },
"accessory": { "accessory": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment