From 4c682c5fbaeafcb5028eb63252fc699f8a409a74 Mon Sep 17 00:00:00 2001 From: Nate Pope Date: Wed, 18 Oct 2023 10:52:48 -0700 Subject: [PATCH 1/5] Replicate CI failing --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 221b7edd4..028645dc0 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,6 @@ # stdpopsim + ![codecov](https://codecov.io/gh/popsim-consortium/stdpopsim/branch/main/graph/badge.svg) ![tests](https://github.com/popsim-consortium/stdpopsim/actions/workflows/tests.yml/badge.svg) ![docs](https://github.com/popsim-consortium/stdpopsim/actions/workflows/docs.yml/badge.svg) From 1bc33d33ec48e7d28e74406604cc5005f3adb684 Mon Sep 17 00:00:00 2001 From: Nate Pope Date: Wed, 18 Oct 2023 10:57:16 -0700 Subject: [PATCH 2/5] bump cache --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 21eeb1b25..68abe2c0e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -48,7 +48,7 @@ jobs: uses: actions/cache@v3 env: # Increase this to reset the cache if the key hasn't changed. - CACHE_NUM: 8 + CACHE_NUM: 7777 with: path: | ${{ steps.find-conda.outputs.CONDA }}/envs/${{ env.CONDA_ENV_NAME }} From f87801e0ea8fd0665aa6b5dffedea2b7f2677c95 Mon Sep 17 00:00:00 2001 From: Nate Pope Date: Wed, 18 Oct 2023 12:42:45 -0700 Subject: [PATCH 3/5] find conda debug --- .github/workflows/tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 68abe2c0e..aaed7756d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,7 +35,11 @@ jobs: - name: find conda id: find-conda run: | + echo "$CONDA" + echo "$name" echo "name=CONDA::$CONDA" >> $GITHUB_OUTPUT + echo "$CONDA" + echo "$name" - name: fix conda permissions if: runner.os == 'macOS' From 5dc7721d83417df77469325e47c53f0d5bd4245e Mon Sep 17 00:00:00 2001 From: Nate Pope Date: Wed, 18 Oct 2023 12:59:59 -0700 Subject: [PATCH 4/5] debug cache conda --- .github/workflows/tests.yml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index aaed7756d..e79bb52d3 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,11 +35,7 @@ jobs: - name: find conda id: find-conda run: | - echo "$CONDA" - echo "$name" echo "name=CONDA::$CONDA" >> $GITHUB_OUTPUT - echo "$CONDA" - echo "$name" - name: fix conda permissions if: runner.os == 'macOS' @@ -47,12 +43,17 @@ jobs: # Fix incorrect conda permissions on mac that prevent cache restore. sudo chown -R $USER:staff $CONDA + - name: debugggg + run: | + echo "${{ steps.find-conda.outputs.CONDA }}/envs/${{ env.CONDA_ENV_NAME }}" + echo "${{ steps.find-conda.outputs.CONDA }}" + - name: cache conda id: cache uses: actions/cache@v3 env: # Increase this to reset the cache if the key hasn't changed. - CACHE_NUM: 7777 + CACHE_NUM: 7778 with: path: | ${{ steps.find-conda.outputs.CONDA }}/envs/${{ env.CONDA_ENV_NAME }} From 517aced8102b3da3c0acde2842fbe8940b155341 Mon Sep 17 00:00:00 2001 From: Nate Pope Date: Wed, 18 Oct 2023 13:04:32 -0700 Subject: [PATCH 5/5] debug cache conda --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index e79bb52d3..af625856a 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -35,7 +35,7 @@ jobs: - name: find conda id: find-conda run: | - echo "name=CONDA::$CONDA" >> $GITHUB_OUTPUT + echo "CONDA=$CONDA" >> $GITHUB_OUTPUT - name: fix conda permissions if: runner.os == 'macOS'