Skip to content
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 CI (inference tests, dataset viewer user, mypy) #2208

Merged
merged 5 commits into from
Apr 9, 2024

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Apr 9, 2024

This PR fixes 3 things:

  1. InferenceAPI now requires auth. I've added cassettes for those tests as I don't want to spend to much time adding token in the CI (+ we are already using cassettes for InfereceClient)
  2. dataset viewer user changed from DSSUser to DVUser. No big deal but it broke a few tests.
  3. InferenceClient static typing was invalid for PIL.Image.Image. Now fixed correctly.
  4. set UV_HTTP_TIMEOUT: 600 as env variable in tests. In rare cases, installing dependencies takes a very long time to download packages. Default timeout value is 5min, now set it to 10min to avoid failing when it happens.

Will merge this PR as soon as the CI is green :)

@Wauplin Wauplin requested a review from LysandreJik April 9, 2024 09:06
@HuggingFaceDocBuilderDev

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.

@Wauplin Wauplin merged commit dc824a5 into main Apr 9, 2024
16 checks passed
@Wauplin Wauplin deleted the fix-inference-tests-in-ci branch April 9, 2024 10:10
@severo
Copy link
Contributor

severo commented Apr 9, 2024

dataset viewer user changed from DSSUser to DVUser. No big deal but it broke a few tests.

sorry about that!

@Wauplin
Copy link
Contributor Author

Wauplin commented Apr 9, 2024

No worries! Not a problem at all

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.

None yet

3 participants