Skip to content

Increase default ReadTimeout in tests#43586

Merged
ydshieh merged 2 commits intomainfrom
increase-default-read-timeout-in-tests
Jan 29, 2026
Merged

Increase default ReadTimeout in tests#43586
ydshieh merged 2 commits intomainfrom
increase-default-read-timeout-in-tests

Conversation

@Wauplin
Copy link
Contributor

@Wauplin Wauplin commented Jan 29, 2026

What does this PR do?

This PR sets HF_HUB_DOWNLOAD_TIMEOUT=60 as environment variable when running tests. I've also added pytest-env as a dev dependency to do that.

I've also reverted #43560 which is not needed anymore.

Note: there might still be some ReadTimeouts in CI when running scripts that are not run with pytest. I preferred not to touch that part as I don't have a broad understanding on what the CI does but any failing workflow (due to timeouts) should be fixable with a HF_HUB_DOWNLOAD_TIMEOUT=60 env variable.

Note 2: this PR requires huggingface_hub v1.3.5 to work. I don't think we should pin this version as minimal dependency though, since it's just to fix some tests. In theory the CI will always pull the latest version so it should be fine.

@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.

Copy link
Member

@Rocketknight1 Rocketknight1 left a comment

Choose a reason for hiding this comment

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

LGTM!

@ydshieh ydshieh merged commit 97059fb into main Jan 29, 2026
22 of 26 checks passed
@ydshieh ydshieh deleted the increase-default-read-timeout-in-tests branch January 29, 2026 12:10
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.

4 participants