From 8fe66bb8567b4992710b1afd9913318990bc79f3 Mon Sep 17 00:00:00 2001 From: Allan Scott Date: Mon, 27 Jul 2026 22:29:11 -0400 Subject: [PATCH 1/5] ci: bump retired actions so PR CI can run (cache v2 auto-fails) actions/cache v1/v2 were closed down by GitHub in early 2025; every job now fails at 'Set up job' before running. Bump cache v2->v4, checkout v2->v4, setup-miniconda v2->v3 in the PR-triggered workflow only. (cherry picked from commit f4214157c4c1067edb2eb965085b8fbd23c73fb7) --- .github/workflows/ci.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 572b55c0b..5d0c11097 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,10 +41,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Mambaforge - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v3 with: miniforge-variant: Mambaforge miniforge-version: latest @@ -52,7 +52,7 @@ jobs: use-mamba: true - name: Cache conda - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /usr/share/miniconda3/envs/srbench key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{hashFiles('environment.yml','experiment/methods/src/*.sh')}}-${{ github.sha }} @@ -85,7 +85,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: generate alg list run: bash ci/get_algorithm_list.sh @@ -111,10 +111,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Mambaforge - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v3 with: miniforge-variant: Mambaforge miniforge-version: latest @@ -122,7 +122,7 @@ jobs: use-mamba: true - name: Cache conda - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /usr/share/miniconda3/envs/srbench key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml','experiment/methods/src/*.sh') }}-${{ github.sha }} @@ -156,10 +156,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Mambaforge - uses: conda-incubator/setup-miniconda@v2 + uses: conda-incubator/setup-miniconda@v3 with: miniforge-variant: Mambaforge miniforge-version: latest @@ -167,7 +167,7 @@ jobs: use-mamba: true - name: Cache conda - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: /usr/share/miniconda3/envs/srbench key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml','experiment/methods/src/*.sh') }}-${{ github.sha }} From e68966de87b3d2d5e556c5d1dd1b50c22fc9dd1a Mon Sep 17 00:00:00 2001 From: Allan Scott Date: Mon, 27 Jul 2026 22:30:47 -0400 Subject: [PATCH 2/5] ci: Mambaforge installers are gone (404) -- use Miniforge3 conda-forge sunset Mambaforge; the latest-release download now 404s and setup-miniconda's own warning says to switch. Miniforge3 ships mamba. (cherry picked from commit b891cd920aff49513ad7e1eeda144f984f8d235e) --- .github/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d0c11097..2d6567325 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -43,10 +43,10 @@ jobs: name: Checkout code uses: actions/checkout@v4 - - name: Setup Mambaforge + name: Setup Miniforge uses: conda-incubator/setup-miniconda@v3 with: - miniforge-variant: Mambaforge + miniforge-variant: Miniforge3 miniforge-version: latest activate-environment: srbench use-mamba: true @@ -113,10 +113,10 @@ jobs: name: Checkout code uses: actions/checkout@v4 - - name: Setup Mambaforge + name: Setup Miniforge uses: conda-incubator/setup-miniconda@v3 with: - miniforge-variant: Mambaforge + miniforge-variant: Miniforge3 miniforge-version: latest activate-environment: srbench use-mamba: true @@ -158,10 +158,10 @@ jobs: name: Checkout code uses: actions/checkout@v4 - - name: Setup Mambaforge + name: Setup Miniforge uses: conda-incubator/setup-miniconda@v3 with: - miniforge-variant: Mambaforge + miniforge-variant: Miniforge3 miniforge-version: latest activate-environment: srbench use-mamba: true From ffb804af77982b36e979695b6297066519b2004c Mon Sep 17 00:00:00 2001 From: Allan Scott Date: Tue, 28 Jul 2026 00:35:08 -0400 Subject: [PATCH 3/5] ci: allow the deprecated PyPI sklearn shim the 2022 env still pulls The root environment's pip section transitively installs the retired 'sklearn' package, which now hard-errors; set the documented escape hatch so the baseline env can build. (cherry picked from commit 4e5204e83916220edcaa80d302ca86710e650724) --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d6567325..f164f5900 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,6 +2,11 @@ name: CI +env: + # the 2022 baseline env pulls the deprecated PyPI "sklearn" shim, which now + # hard-errors on install; this is the workaround the error message names + SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL: "True" + # Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the master and dev branches From 61806f7ac2098d91f0f00c80e537aad64556c982 Mon Sep 17 00:00:00 2001 From: Allan Scott Date: Tue, 28 Jul 2026 06:10:06 -0400 Subject: [PATCH 4/5] ci: merge sklearn escape hatch into the existing env block (duplicate key) (cherry picked from commit f10c14e97517c695e43186ac7e9d9d7022ef4709) --- .github/workflows/ci.yml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f164f5900..2d6567325 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,11 +2,6 @@ name: CI -env: - # the 2022 baseline env pulls the deprecated PyPI "sklearn" shim, which now - # hard-errors on install; this is the workaround the error message names - SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL: "True" - # Controls when the action will run. on: # Triggers the workflow on push or pull request events but only for the master and dev branches From e748960b9e4af9cbb2d9939265db167590c46f12 Mon Sep 17 00:00:00 2001 From: Allan Scott Date: Tue, 28 Jul 2026 06:10:31 -0400 Subject: [PATCH 5/5] ci: sklearn escape hatch inside the existing env block (correct placement) (cherry picked from commit 7045b036d128d42a6b85d1ba976812ccf65674f5) --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2d6567325..88eb4ba05 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,9 @@ on: env: CACHE_NUMBER: 0 + # the 2022 baseline env pulls the deprecated PyPI "sklearn" shim, which now + # hard-errors on install; this is the workaround the error message names + SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL: "True" jobs: ################################################################################