File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -4,8 +4,13 @@ check_dirs := examples tests trl
44
55ACCELERATE_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+
712test :
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
1015precommit :
1116 python scripts/add_copyrights.py
You can’t perform that action at this time.
0 commit comments