From 530c7539991769c942a4958f39e23230182aa9f8 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Mon, 4 May 2026 14:23:28 +1200 Subject: [PATCH 1/2] Limit the parallelism in julia-tests.yml Limit the number of parallel tests in HiGHS.jl to 1 to avoid issues with thread management on macOS and Linux. --- .github/workflows/julia-tests.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/julia-tests.yml b/.github/workflows/julia-tests.yml index 27f25bf4f94..284429fd388 100644 --- a/.github/workflows/julia-tests.yml +++ b/.github/workflows/julia-tests.yml @@ -115,4 +115,9 @@ jobs: - shell: julia --color=yes {0} run: | using Pkg - Pkg.test("HiGHS") + # HiGHS uses (N+1)/2 threads. HiGHS.jl parallelises the tests and, in + # the default setting, it may use up to 4 parallel jobs. This means + # HiGHS may attempt to start up to 2(N+1) threads and we get unhandled + # exceptions on macOS and a SIGTERM on linux. To work around this + # issue, limit the number of parallel tests in HiGHS.jl to 1. + Pkg.test("HiGHS"; test_args=["--jobs=1"]) From da02a900966e84bf2209bb6ceb7ea4bb07eb8de7 Mon Sep 17 00:00:00 2001 From: Oscar Dowson Date: Mon, 4 May 2026 16:50:27 +1200 Subject: [PATCH 2/2] Change HiGHS test to run without parallelization --- .github/workflows/julia-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/julia-tests.yml b/.github/workflows/julia-tests.yml index 284429fd388..3ccc5f54ffd 100644 --- a/.github/workflows/julia-tests.yml +++ b/.github/workflows/julia-tests.yml @@ -118,6 +118,6 @@ jobs: # HiGHS uses (N+1)/2 threads. HiGHS.jl parallelises the tests and, in # the default setting, it may use up to 4 parallel jobs. This means # HiGHS may attempt to start up to 2(N+1) threads and we get unhandled - # exceptions on macOS and a SIGTERM on linux. To work around this - # issue, limit the number of parallel tests in HiGHS.jl to 1. - Pkg.test("HiGHS"; test_args=["--jobs=1"]) + # exceptions on macOS and a SIGTERM on linux. To avoid these errors, + # opt out of running the tests in parallel. + Pkg.test("HiGHS"; test_args=["--parallel=false"])