You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! 👋 first of all, thanks for creating this action! I use it lots of my work.
I've been looking into speeding up my CI/CD pipelines and am currently investigating using your recommendation to cache the environments to achieve this.
My pipeline has no issues when it goes to save the cache. It also has no issues in finding the cached environments. However, the deserialisation of the cache fails due to some weird permissions issues. The two key lines are:
/usr/bin/tar: ../../../../../usr/share/miniconda/envs: Cannot utime: Operation not permitted
/usr/bin/tar: ../../../../../usr/share/miniconda/envs: Cannot change mode to rwxr-xr-x: Operation not permitted
/usr/bin/tar: Exiting with failure status due to previous errors
jobs:
example:
runs-on: ubuntu-latest...jobs:
- name: Checkout Repouses: actions/checkout@v3...
- name: Setup Mambauses: conda-incubator/setup-miniconda@v2with:
python-version: 3.9channels: conda-forgechannel-priority: flexiblemamba-version: "*"use-mamba: trueauto-activate-base: falseactivate-environment: myenv
- name: Set environment variables used in cacherun: | echo "DATE=$(date +'%Y%m%d')" >> $GITHUB_ENV
- name: Cache Mambaid: cacheuses: actions/cache@v3env:
CACHE_NUMBER: 0# Increment this number if you wish to hard-refresh the cache.with:
path: /usr/share/miniconda/envskey: conda-${{ env.DATE }}-${{ env.CACHE_NUMBER }}
- name: Install development dependencies (if invalid cache)run: conda env update -n myenv -f environment.yamlif: steps.cache.outputs.cache-hit != 'true'...
I have hard coded the cache paths as I couldn't quite get the templated ${{ env.CONDA }} to work for some reason, but I'm going to tackle that problem separately from this issue.
Any advice on how to solve this problem? Any and all help is appreciated!
The text was updated successfully, but these errors were encountered:
Hi! 👋 first of all, thanks for creating this action! I use it lots of my work.
I've been looking into speeding up my CI/CD pipelines and am currently investigating using your recommendation to cache the environments to achieve this.
My pipeline has no issues when it goes to save the cache. It also has no issues in finding the cached environments. However, the deserialisation of the cache fails due to some weird permissions issues. The two key lines are:
There is an unanswered stack exchange question posing this same question so I know it's not an isolated issue.
Here is what my configuration looks like:
I have hard coded the cache paths as I couldn't quite get the templated
${{ env.CONDA }}
to work for some reason, but I'm going to tackle that problem separately from this issue.Any advice on how to solve this problem? Any and all help is appreciated!
The text was updated successfully, but these errors were encountered: