From b08d03ec7854a92ecd2bcf4c58f1dbbf3b5dcf2a Mon Sep 17 00:00:00 2001 From: Christian Guinard <28689358+christiangnrd@users.noreply.github.com> Date: Wed, 19 Aug 2026 11:52:24 -0300 Subject: [PATCH 1/2] Retry test failures --- test/Project.toml | 2 +- test/runtests.jl | 15 ++------------- 2 files changed, 3 insertions(+), 14 deletions(-) diff --git a/test/Project.toml b/test/Project.toml index 788581e1..190beeab 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -26,4 +26,4 @@ oneAPI = "8f75cd03-7ff8-4ecb-9b8f-daf728133b1b" oneAPI_Support_jll = "b049733a-a71d-5ed3-8eba-7d323ac00b36" [compat] -ParallelTestRunner = "2.2" +ParallelTestRunner = "2.8" diff --git a/test/runtests.jl b/test/runtests.jl index d8914d1e..145b50b5 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -180,17 +180,6 @@ init_code = quote ..@grab_output, ..@on_device, ..sink 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. -# 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 - (;) -end - +# Retry test failures once to give a chance to memory-pressure related failures to pass runtests(oneAPI, args; testsuite, init_code, init_worker_code, env = worker_env, - failure_handling...) + recycle_on_failure = true, retries = 1) From 7d995589ea15f52c837105abc699418e08b24f64 Mon Sep 17 00:00:00 2001 From: Christian Guinard <28689358+christiangnrd@users.noreply.github.com> Date: Wed, 19 Aug 2026 12:28:23 -0300 Subject: [PATCH 2/2] Apply Runic formatting Co-Authored-By: Claude Fable 5 --- test/runtests.jl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/runtests.jl b/test/runtests.jl index 145b50b5..045fd1d3 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -182,4 +182,5 @@ end # Retry test failures once to give a chance to memory-pressure related failures to pass runtests(oneAPI, args; testsuite, init_code, init_worker_code, env = worker_env, - recycle_on_failure = true, retries = 1) + recycle_on_failure = true, retries = 1 +)