From 197004d8e0f151f0f4fb615307991f2148a7034d Mon Sep 17 00:00:00 2001 From: sameeul Date: Tue, 1 Oct 2024 21:38:18 -0400 Subject: [PATCH 1/3] Re-enable "Remove old mamba environment" step --- .github/workflows/run_workflows.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/run_workflows.yml b/.github/workflows/run_workflows.yml index 093abbf3..b074fa80 100644 --- a/.github/workflows/run_workflows.yml +++ b/.github/workflows/run_workflows.yml @@ -111,22 +111,22 @@ jobs: if: runner.os != 'Windows' run: cd workflow-inference-compiler/install/ && echo " - pypy" >> system_deps.yml - # - name: Remove old mamba environment - # if: always() - # run: rm -rf "/home/$(whoami)/miniconda3/envs/wic_github_actions/" - # # For self-hosted runners, make sure we install into a new mamba environment - # # NOTE: Every time the github self-hosted runner executes, it sets "set -e" in ~/.bash_profile - # # So if we rm -rf the old mamba environment without also removing the mamba init code in ~/.bash_profile - # # (or removing the file altogether), then unless we immediately re-create the environment, - # # (i.e. if we try to run any other commands between removing and re-creating the environment) - # # we will get "EnvironmentNameNotFound: Could not find conda environment: wic_github_actions" - # # and (again, due to "set -e") the workflow step will fail. + - name: Remove old mamba environment + if: always() + run: rm -rf "/home/$(whoami)/miniconda3/envs/wic_github_actions/" + # For self-hosted runners, make sure we install into a new mamba environment + # NOTE: Every time the github self-hosted runner executes, it sets "set -e" in ~/.bash_profile + # So if we rm -rf the old mamba environment without also removing the mamba init code in ~/.bash_profile + # (or removing the file altogether), then unless we immediately re-create the environment, + # (i.e. if we try to run any other commands between removing and re-creating the environment) + # we will get "EnvironmentNameNotFound: Could not find conda environment: wic_github_actions" + # and (again, due to "set -e") the workflow step will fail. - - name: Setup miniforge (linux, macos) + - name: Setup mamba (linux, macos) if: always() uses: conda-incubator/setup-miniconda@v3.0.1 with: - miniforge-variant: Miniforge-pypy3 + miniforge-variant: Mambaforge-pypy3 miniforge-version: latest environment-file: workflow-inference-compiler/install/system_deps.yml activate-environment: wic_github_actions From 069647c542b8e718923ed410b923d49b96e0364e Mon Sep 17 00:00:00 2001 From: sameeul Date: Tue, 1 Oct 2024 21:39:43 -0400 Subject: [PATCH 2/3] Change to miniforge --- .github/workflows/run_workflows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_workflows.yml b/.github/workflows/run_workflows.yml index b074fa80..b253b43c 100644 --- a/.github/workflows/run_workflows.yml +++ b/.github/workflows/run_workflows.yml @@ -126,7 +126,7 @@ jobs: if: always() uses: conda-incubator/setup-miniconda@v3.0.1 with: - miniforge-variant: Mambaforge-pypy3 + miniforge-variant: Miniforge-pypy3 miniforge-version: latest environment-file: workflow-inference-compiler/install/system_deps.yml activate-environment: wic_github_actions From 3446fa9580939c111d6469cdb959ba02e840cb31 Mon Sep 17 00:00:00 2001 From: sameeul Date: Tue, 1 Oct 2024 21:40:39 -0400 Subject: [PATCH 3/3] Change to miniforge --- .github/workflows/run_workflows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run_workflows.yml b/.github/workflows/run_workflows.yml index b253b43c..737a674b 100644 --- a/.github/workflows/run_workflows.yml +++ b/.github/workflows/run_workflows.yml @@ -122,7 +122,7 @@ jobs: # we will get "EnvironmentNameNotFound: Could not find conda environment: wic_github_actions" # and (again, due to "set -e") the workflow step will fail. - - name: Setup mamba (linux, macos) + - name: Setup miniforge (linux, macos) if: always() uses: conda-incubator/setup-miniconda@v3.0.1 with: