Skip to content

Commit 7ce6dae

Browse files
Retry tests failing on GPU allocation errors the rerun filter missed
1 parent ca2b490 commit 7ce6dae

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Makefile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,13 @@ check_dirs := examples tests trl
44

55
ACCELERATE_CONFIG_PATH = `pwd`/examples/accelerate_configs
66

7+
# Transient infrastructure errors that are worth retrying, matched against "<ExceptionType>: <message>":
8+
# - OSError, Timeout, HTTPError 502/504: Hub flakiness
9+
# - OutOfMemoryError, STATUS_ALLOC_FAILED: GPU memory pressure from the parallel workers
10+
rerun_errors := (OSError|Timeout|HTTPError.*502|HTTPError.*504|OutOfMemoryError|STATUS_ALLOC_FAILED)
11+
712
test:
8-
pytest -n auto -m "not slow and not low_priority" -s -v --reruns 5 --reruns-delay 1 --only-rerun '(OSError|Timeout|HTTPError.*502|HTTPError.*504|OutOfMemoryError)' tests
13+
pytest -n auto -m "not slow and not low_priority" -s -v --reruns 5 --reruns-delay 1 --only-rerun '$(rerun_errors)' tests
914

1015
precommit:
1116
python scripts/add_copyrights.py

0 commit comments

Comments
 (0)