Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,10 @@ end
# On memory-pressured GPUs (e.g. 8GB cards) a failing test can leave the worker — or even
# the driver — in a state where every subsequent allocation fails, so recycle workers on
# failure and give failed files one exclusive retry on an otherwise-idle device.
failure_handling = if pkgversion(ParallelTestRunner) >= v"2.7.0"
# These options are not available in every ParallelTestRunner release, so detect them
# rather than gating on a version number.
runtests_kwargs = Set(Iterators.flatten(Base.kwarg_decl.(methods(ParallelTestRunner.runtests))))
failure_handling = if :recycle_on_failure in runtests_kwargs
(; recycle_on_failure = true, retries = 1)
else
(;)
Expand Down
Loading