You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by tq...@apache.org on 2026/10/23 17:52:48 UTC

(tvm-tirx) branch main updated: [CI] Pin Miniforge to fix Windows initialization (#37)

This is an automated email from the ASF dual-hosted git repository.

tqchen pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm-tirx.git


The following commit(s) were added to refs/heads/main by this push:
     new faaf154c [CI] Pin Miniforge to fix Windows initialization (#37)
faaf154c is described below

commit faaf154c3acd33680daeebd7ad7b7098d8e86362
Author: Shushi Hong <82...@qq.com>
AuthorDate: Fri Oct 23 13:52:43 2026 -0400

    [CI] Pin Miniforge to fix Windows initialization (#37)
    
    Windows CI fails with Miniforge 26.9.4-0 during `conda init --all`,
    reporting `needs sudo` for `Scripts\conda.exe`. The retry then fails
    because the installation directory is already populated.
    
    This pr pins Miniforge to `26.7.2-1` in both the CI setup and wheel
    publishing actions, including their retry steps, following
    https://github.com/IntelPython/dpnp/pull/3119.
---
 .github/actions/build-wheel-for-publish/action.yml | 5 +++--
 .github/actions/setup/action.yml                   | 5 +++--
 2 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/.github/actions/build-wheel-for-publish/action.yml b/.github/actions/build-wheel-for-publish/action.yml
index 8310a3dd..8ff8cc97 100644
--- a/.github/actions/build-wheel-for-publish/action.yml
+++ b/.github/actions/build-wheel-for-publish/action.yml
@@ -68,14 +68,15 @@ runs:
       continue-on-error: true
       id: conda1
       with:
-        miniforge-version: latest
+        # Miniforge 26.9.4-0 fails `conda init --all` on Windows; see IntelPython/dpnp#3119.
+        miniforge-version: "26.7.2-1"
         conda-remove-defaults: true
 
     - name: Setup conda (retry with tar.bz2)
       if: steps.llvm-cache.outputs.cache-hit != 'true' && steps.conda1.outcome == 'failure'
       uses: conda-incubator/setup-miniconda@v4.0.1
       with:
-        miniforge-version: latest
+        miniforge-version: "26.7.2-1"
         use-only-tar-bz2: true
         conda-remove-defaults: true
 
diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml
index 5ca64142..7005e82b 100644
--- a/.github/actions/setup/action.yml
+++ b/.github/actions/setup/action.yml
@@ -35,7 +35,8 @@ runs:
       channel-priority: strict
       environment-file: ci/wheel/build-environment.yaml
       auto-activate-base: false
-      miniforge-version: latest
+      # Miniforge 26.9.4-0 fails `conda init --all` on Windows; see IntelPython/dpnp#3119.
+      miniforge-version: "26.7.2-1"
       python-version: "3.10"
       conda-remove-defaults: true
   - uses: conda-incubator/setup-miniconda@v4.0.1
@@ -45,7 +46,7 @@ runs:
       channel-priority: strict
       environment-file: ci/wheel/build-environment.yaml
       auto-activate-base: false
-      miniforge-version: latest
+      miniforge-version: "26.7.2-1"
       use-only-tar-bz2: true
       python-version: "3.10"
       conda-remove-defaults: true