Make the flaky list a little more general (#36704)

* Make the flaky list a little more general

* Trigger tests

* Make the flaky list a little more general
This commit is contained in:
Matt
2025-03-14 12:15:32 +00:00
committed by GitHub
parent 53742b11f5
commit 72861e11eb
2 changed files with 3 additions and 2 deletions

View File

@@ -41,8 +41,7 @@ FLAKY_TEST_FAILURE_PATTERNS = [
"ConnectionError", # Connection transient error
"FileNotFoundError", # Raised by `datasets` on Hub failures
"PIL.UnidentifiedImageError", # Raised by `PIL.Image.open` on connection issues
"HTTPError.*502", # Hub-related
"HTTPError.*504", # Hub-related
"HTTPError", # Also catches HfHubHTTPError
"AssertionError: Tensor-likes are not close!", # `torch.testing.assert_close`, we might have unlucky random values
# TODO: error downloading tokenizer's `merged.txt` from hub can cause all the exceptions below. Throw and handle
# them under a single message.