Skip to content

Fix huggingface_hub CI tests. #4619

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 24, 2025
Merged

Fix huggingface_hub CI tests. #4619

merged 1 commit into from
Jul 24, 2025

Conversation

antonpirker
Copy link
Member

HuggingFace has changed its default model used in InferenceClient and the new model breaks our CI. Change to use a non-existent model.

Copy link

codecov bot commented Jul 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.69%. Comparing base (fe3ccb8) to head (2ead416).
Report is 1 commits behind head on master.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4619      +/-   ##
==========================================
+ Coverage   80.58%   80.69%   +0.11%     
==========================================
  Files         156      156              
  Lines       16500    16500              
  Branches     2806     2806              
==========================================
+ Hits        13296    13315      +19     
+ Misses       2319     2297      -22     
- Partials      885      888       +3     

see 13 files with indirect coverage changes

@@ -15,8 +15,10 @@
def mock_client_post(client, post_mock):
# huggingface-hub==0.28.0 deprecates the `post` method
# so patch `_inner_post` instead
client.post = post_mock
client._inner_post = post_mock
if hasattr(client, "post"):
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is just a small improvement that i did on the fly. Because in huggingface-hub>=0.28.0 there is no .post attribute and it would be created in the tests.

@antonpirker antonpirker marked this pull request as ready for review July 24, 2025 10:03
@antonpirker antonpirker requested a review from a team as a code owner July 24, 2025 10:03
@antonpirker antonpirker merged commit add8b6f into master Jul 24, 2025
136 checks passed
@antonpirker antonpirker deleted the antonpirker/fix-ci branch July 24, 2025 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy