Skip to content

Commit 1e08996

Browse files
authored
test: Sane test data download retries (#227)
### Description The default number of retries of `multiurl.download` are very high: https://github.com/ecmwf/multiurl/blob/develop/multiurl/http.py#L54-L55 In case of network errors, it will retry for 16 hours. Lower this to a saner value. I believe this is one of the reasons the CI is sometimes hanging for a long time. I chose arbitrary new values, input welcome. ### Contributor Declaration By opening this pull request, I affirm the following: * All authors agree to the [Contributor License Agreement](https://github.com/ecmwf/codex/blob/main/Legal/contributor_license_agreement.md). * The code follows the project's coding standards. * I have performed self-review and added comments where needed. * I have added or updated tests to verify that my changes are effective and functional. * I have run all existing tests and confirmed they pass.
1 parent ceecf1e commit 1e08996

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/anemoi/utils/testing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ def __call__(self, path: str, gzipped: bool = False) -> str:
114114

115115
LOG.info(f"Downloading test data from {url} to {target}")
116116

117-
download(url, target)
117+
download(url, target, maximum_retries=5, retry_after=60)
118118

119119
if gzipped:
120120
import gzip

0 commit comments

Comments
 (0)