Skip to content

Commit

Permalink
remove caching, remove old docker image, mac vars (#48486)
Browse files Browse the repository at this point in the history
  • Loading branch information
aliciaaevans authored Jun 17, 2024
1 parent d883351 commit ffd6f17
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 127 deletions.
36 changes: 3 additions & 33 deletions azure-pipeline-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,10 @@ jobs:
wget https://raw.githubusercontent.com/bioconda/bioconda-common/master/{common,install-and-set-up-conda,configure-conda}.sh
displayName: Fetch bioconda install script
- task: Cache@2
inputs:
path: "/opt/mambaforge"
key: '"$(Agent.OS)" | install-and-set-up-conda.sh | configure-conda.sh | common.sh'
cacheHitVar: CACHE_RESTORED
displayName: Restore cache

- script: bash install-and-set-up-conda.sh
condition: ne(variables.CACHE_RESTORED, 'true')
displayName: Install bioconda-utils

# We reconfigure conda to use the right channel setup.
# This has to be done after the cache is restored, because
# the channel setup is not cached as it resides in the home directory.
# We could use a system-wide (and therefore cached) channel setup,
# but mamba does not support that at the time of implementation
# (it ignores settings made by --system).
- script: bash configure-conda.sh
displayName: Configure conda

Expand All @@ -49,8 +36,6 @@ jobs:
export OSTYPE="linux-gnu"
export CI="true"
docker pull quay.io/dpryan79/mulled_container:latest
bioconda-utils handle-merged-pr recipes config.yml \
--repo bioconda/bioconda-recipes \
--git-range $(Build.SourceVersion)~1 $(Build.SourceVersion) \
Expand All @@ -60,7 +45,6 @@ jobs:
# --git-range $(Build.SourceVersion)~1 $(Build.SourceVersion) \
# --docker --mulled-test --anaconda-upload --mulled-upload-target biocontainers
docker rmi quay.io/dpryan79/mulled_container:latest
env:
QUAY_LOGIN: $(QUAY_LOGIN)
QUAY_OAUTH_TOKEN: $(QUAY_OAUTH_TOKEN)
Expand All @@ -87,28 +71,11 @@ jobs:
wget https://raw.githubusercontent.com/bioconda/bioconda-common/master/{common,install-and-set-up-conda,configure-conda}.sh
displayName: Fetch bioconda install script
- bash: |
sudo mkdir -p /opt
sudo chown -R $USER /opt
displayName: Ensure cache has path to restore to
- task: Cache@2
inputs:
path: "/opt/mambaforge"
key: '"$(Agent.OS)" | install-and-set-up-conda.sh | configure-conda.sh | common.sh'
cacheHitVar: CACHE_RESTORED
displayName: Restore cache
- script: bash install-and-set-up-conda.sh
condition: ne(variables.CACHE_RESTORED, 'true')
displayName: Install bioconda-utils

# We reconfigure conda to use the right channel setup.
# This has to be done after the cache is restored, because
# the channel setup is not cached as it resides in the home directory.
# We could use a system-wide (and therefore cached) channel setup,
# but mamba does not support that at the time of implementation
# (it ignores settings made by --system).
- script: bash configure-conda.sh
displayName: Configure conda

Expand All @@ -119,6 +86,9 @@ jobs:
export OSTYPE="darwin"
export CI="true"
# Get MACOSX vars
source common.sh
bioconda-utils handle-merged-pr recipes config.yml \
--repo bioconda/bioconda-recipes \
--git-range $(Build.SourceVersion)~1 $(Build.SourceVersion) \
Expand Down
42 changes: 4 additions & 38 deletions azure-pipeline-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,28 +30,10 @@ jobs:
wget https://raw.githubusercontent.com/bioconda/bioconda-common/master/{common,install-and-set-up-conda,configure-conda}.sh
displayName: Fetch bioconda install script
- bash: |
sudo mkdir -p /opt
sudo chown -R $USER /opt
displayName: Ensure cache has path to restore to
- task: Cache@2
inputs:
path: "/opt/mambaforge"
key: '"$(Agent.OS)" | install-and-set-up-conda.sh | configure-conda.sh | common.sh'
cacheHitVar: CACHE_RESTORED
displayName: Restore cache

- script: bash install-and-set-up-conda.sh
condition: ne(variables.CACHE_RESTORED, 'true')
displayName: Install bioconda-utils

# We reconfigure conda to use the right channel setup.
# This has to be done after the cache is restored, because
# the channel setup is not cached as it resides in the home directory.
# We could use a system-wide (and therefore cached) channel setup,
# but mamba does not support that at the time of implementation
# (it ignores settings made by --system).
- script: bash configure-conda.sh
displayName: Configure conda

Expand All @@ -68,7 +50,6 @@ jobs:
set -e
eval "$(conda shell.bash hook)"
conda activate bioconda
docker pull quay.io/dpryan79/mulled_container:latest
export OSTYPE="linux-gnu"
export CI="true"
Expand All @@ -77,7 +58,6 @@ jobs:
bioconda-utils build recipes config.yml \
--docker --mulled-test --anaconda-upload --mulled-upload-target biocontainers \
--prelint --exclude bioconda-repodata-patches
docker rmi quay.io/dpryan79/mulled_container:latest
env:
QUAY_OAUTH_TOKEN: $(QUAY_OAUTH_TOKEN)
ANACONDA_TOKEN: $(ANACONDA_TOKEN)
Expand All @@ -102,28 +82,10 @@ jobs:
wget https://raw.githubusercontent.com/bioconda/bioconda-common/master/{common,install-and-set-up-conda,configure-conda}.sh
displayName: Fetch bioconda install script
- bash: |
sudo mkdir -p /opt
sudo chown -R $USER /opt
displayName: Ensure cache has path to restore to
- task: Cache@2
inputs:
path: "/opt/mambaforge"
key: '"$(Agent.OS)" | install-and-set-up-conda.sh | configure-conda.sh | common.sh'
cacheHitVar: CACHE_RESTORED
displayName: Restore cache

- script: bash install-and-set-up-conda.sh
condition: ne(variables.CACHE_RESTORED, 'true')
displayName: Install bioconda-utils

# We reconfigure conda to use the right channel setup.
# This has to be done after the cache is restored, because
# the channel setup is not cached as it resides in the home directory.
# We could use a system-wide (and therefore cached) channel setup,
# but mamba does not support that at the time of implementation
# (it ignores settings made by --system).
- script: bash configure-conda.sh
displayName: Configure conda

Expand All @@ -133,6 +95,10 @@ jobs:
conda activate bioconda
export OSTYPE="darwin"
export CI="true"
# Get MACOSX vars
source common.sh
bioconda-utils build recipes config.yml \
--anaconda-upload \
--prelint
Expand Down
60 changes: 4 additions & 56 deletions azure-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,28 +23,10 @@ stages:
wget https://raw.githubusercontent.com/bioconda/bioconda-common/master/{common,install-and-set-up-conda,configure-conda}.sh
displayName: Fetch bioconda install script
- bash: |
sudo mkdir -p /opt
sudo chown -R $USER /opt
displayName: Ensure cache has path to restore to
- task: Cache@2
inputs:
path: "/opt/mambaforge"
key: '"$(Agent.OS)" | install-and-set-up-conda.sh | configure-conda.sh | common.sh'
cacheHitVar: CACHE_RESTORED
displayName: Restore cache

- script: bash install-and-set-up-conda.sh
condition: ne(variables.CACHE_RESTORED, 'true')
displayName: Install bioconda-utils

# We reconfigure conda to use the right channel setup.
# This has to be done after the cache is restored, because
# the channel setup is not cached as it resides in the home directory.
# We could use a system-wide (and therefore cached) channel setup,
# but mamba does not support that at the time of implementation
# (it ignores settings made by --system).
- script: bash configure-conda.sh
displayName: Configure conda

Expand Down Expand Up @@ -73,42 +55,22 @@ stages:
wget https://raw.githubusercontent.com/bioconda/bioconda-common/master/{common,install-and-set-up-conda,configure-conda}.sh
displayName: Fetch bioconda install script
- bash: |
sudo mkdir -p /opt
sudo chown -R $USER /opt
displayName: Ensure cache has path to restore to
- task: Cache@2
inputs:
path: "/opt/mambaforge"
key: '"$(Agent.OS)" | install-and-set-up-conda.sh | configure-conda.sh | common.sh'
cacheHitVar: CACHE_RESTORED
displayName: Restore cache

- script: bash install-and-set-up-conda.sh
condition: ne(variables.CACHE_RESTORED, 'true')
displayName: Install bioconda-utils

# We reconfigure conda to use the right channel setup.
# This has to be done after the cache is restored, because
# the channel setup is not cached as it resides in the home directory.
# We could use a system-wide (and therefore cached) channel setup,
# but mamba does not support that at the time of implementation
# (it ignores settings made by --system).
- script: bash configure-conda.sh
displayName: Configure conda

- bash: |
set -e
eval "$(conda shell.bash hook)"
conda activate bioconda
docker pull quay.io/dpryan79/mulled_container:latest
export OSTYPE="linux-gnu"
export CI="true"
bioconda-utils build recipes config.yml \
--docker --mulled-test \
--git-range origin/"$SYSTEM_PULLREQUEST_TARGETBRANCH" HEAD
docker rmi quay.io/dpryan79/mulled_container:latest
displayName: Test
- bash: |
Expand Down Expand Up @@ -154,28 +116,10 @@ stages:
wget https://raw.githubusercontent.com/bioconda/bioconda-common/master/{common,install-and-set-up-conda,configure-conda}.sh
displayName: Fetch setup scripts
- bash: |
sudo mkdir -p /opt
sudo chown -R $USER /opt
displayName: Ensure cache has path to restore to
- task: Cache@2
inputs:
path: "/opt/mambaforge"
key: '"$(Agent.OS)" | install-and-set-up-conda.sh | configure-conda.sh | common.sh'
cacheHitVar: CACHE_RESTORED
displayName: Restore cache

- script: bash install-and-set-up-conda.sh
condition: ne(variables.CACHE_RESTORED, 'true')
displayName: Install bioconda-utils

# We reconfigure conda to use the right channel setup.
# This has to be done after the cache is restored, because
# the channel setup is not cached as it resides in the home directory.
# We could use a system-wide (and therefore cached) channel setup,
# but mamba does not support that at the time of implementation
# (it ignores settings made by --system).
- script: bash configure-conda.sh
displayName: Configure conda

Expand All @@ -185,6 +129,10 @@ stages:
conda activate bioconda
export OSTYPE="darwin"
export CI="true"
# Get MACOSX vars
source common.sh
bioconda-utils build recipes config.yml \
--git-range origin/"$SYSTEM_PULLREQUEST_TARGETBRANCH" HEAD
displayName: Test
Expand Down

0 comments on commit ffd6f17

Please sign in to comment.