From 32a9b50883a2f6303fdb9171f956e1f1854d5658 Mon Sep 17 00:00:00 2001 From: Olivier Grisel Date: Tue, 27 Oct 2026 11:38:31 +0100 Subject: [PATCH 1/2] CI keep the macOS FlexiBLAS job under the timeout MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The job builds FlexiBLAS and its LAPACK fallback with a serial make, including the reference BLAS/LAPACK tests that CI never runs. That install step sits around 24–28 minutes, so runner variance cancels the job at the 30 minute limit before NumPy is installed. Co-authored-by: Cursor --- continuous_integration/install_flexiblas.sh | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/continuous_integration/install_flexiblas.sh b/continuous_integration/install_flexiblas.sh index 5d7707f5..5f6cf657 100755 --- a/continuous_integration/install_flexiblas.sh +++ b/continuous_integration/install_flexiblas.sh @@ -39,9 +39,19 @@ cmake ../ -DCMAKE_INSTALL_PREFIX=$ABS_PATH"/flexiblas_install" \ -DBLAS_AUTO_DETECT="OFF" \ -DEXTRA="OPENBLAS_CONDA" \ -DFLEXIBLAS_DEFAULT="OPENBLAS_CONDA" \ - -DOPENBLAS_CONDA_LIBRARY=$CONDA_PREFIX"/lib/libopenblas"$EXTENSION \ -make -make install + -DTESTS=OFF \ + -DOPENBLAS_CONDA_LIBRARY=$CONDA_PREFIX"/lib/libopenblas"$EXTENSION + +# The reference BLAS/LAPACK tests are not executed in CI. Building them +# with a serial make makes the macOS job spend most of its 30 minute +# limit in this step and time out before NumPy is installed. +if [[ $(uname) == "Darwin" ]]; then + NPROC=$(sysctl -n hw.ncpu) +else + NPROC=$(nproc) +fi +make -j"$NPROC" +make -j"$NPROC" install export LD_LIBRARY_PATH=$FLEXIBLAS_LIB${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} if [[ $(uname) == "Darwin" ]]; then From df34e46cebd5883909d31764bfb3850107cabb1b Mon Sep 17 00:00:00 2001 From: Olivier Grisel Date: Tue, 27 Oct 2026 12:31:30 +0100 Subject: [PATCH 2/2] Shorter inline comment. --- continuous_integration/install_flexiblas.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/continuous_integration/install_flexiblas.sh b/continuous_integration/install_flexiblas.sh index 5f6cf657..5ae8ca4f 100755 --- a/continuous_integration/install_flexiblas.sh +++ b/continuous_integration/install_flexiblas.sh @@ -42,9 +42,7 @@ cmake ../ -DCMAKE_INSTALL_PREFIX=$ABS_PATH"/flexiblas_install" \ -DTESTS=OFF \ -DOPENBLAS_CONDA_LIBRARY=$CONDA_PREFIX"/lib/libopenblas"$EXTENSION -# The reference BLAS/LAPACK tests are not executed in CI. Building them -# with a serial make makes the macOS job spend most of its 30 minute -# limit in this step and time out before NumPy is installed. +# Enable build parallelism to keep the CI below the 30 min timeout. if [[ $(uname) == "Darwin" ]]; then NPROC=$(sysctl -n hw.ncpu) else