-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Fix tests after huggingface_hub
0.24
#32054
Conversation
self.assertIn(f"Training in progress, step {i}", commits) | ||
nb_expected_commits = len(range(5, max_steps, 5)) | ||
|
||
self.assertGreaterEqual(nb_empty_commits + nb_epoch_commits, nb_expected_commits) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you leave a short comment why is it >=
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
addressed in ff09978
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for taking care of this
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
Let me check the version |
It is |
Yes I think we need to wait for tomorrow (building docker image once a day right?) |
yes! although we can build manually but it's a bit more involved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for fixing!
Bonus points for the clear comments that really helped provide context to the tests ❤️
I like bonus points 😍 (though it was thanks to @ydshieh's request 😄) |
I am a lazy programmer so I ask a lot of clear comments 😅 |
See discussion on slack (private).
In latest
huggingface_hub
update (0.24.0!), some logic has been added to avoid empty commits. This mechanism should prevent bloating git history when no changes have been detected. This change broke 2 tests intransformers
's CI which should be fixed by this PR (previously tested on main...ci-test-huggingface-hub-v0.24.0.rc0). Note: when an empty commit is prevented, a warning message is logged to the user. This is what we are testing in this PR.cc @ydshieh with whom we discussed this
EDIT: tests are failing since CI is still running on
huggingface_hub==0.23.5
. I guess rerunning them tomorrow should be good?