Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ASV CI Workflow #792

Merged
merged 30 commits into from
May 17, 2024
Merged
Changes from 14 commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
30f5f39
update workflow
philipc2 May 16, 2024
a0a7cde
update env file
philipc2 May 16, 2024
f864eaf
update env file (2)
philipc2 May 16, 2024
77fde7b
update asv-bencnhmarking.yml
philipc2 May 16, 2024
43a19f2
Merge branch 'main' into philipc2/fix-asv-ci
philipc2 May 16, 2024
8a70234
fetch branches
philipc2 May 16, 2024
da5cda1
Merge branch 'philipc2/fix-asv-ci' of https://github.com/UXARRAY/uxar…
philipc2 May 16, 2024
f7b4e3c
update asv-benchmarking.yml
philipc2 May 16, 2024
7deaec0
try different version scheme
philipc2 May 16, 2024
2456aeb
revert to old version scheme
philipc2 May 16, 2024
951dd94
drop 'v' from version
philipc2 May 16, 2024
9da7ce6
try to remove shell spec
philipc2 May 16, 2024
bf241a4
add v
philipc2 May 16, 2024
f4e0f3e
add bash
philipc2 May 16, 2024
917189b
Update .github/workflows/asv-benchmarking.yml
philipc2 May 16, 2024
11cf05b
update mpas_ocean benchmark to use current path
philipc2 May 16, 2024
42dfa33
fix dataset download (1)
philipc2 May 16, 2024
755c5ff
fix dataset download (2)
philipc2 May 16, 2024
179fcad
fix dataset download (3)
philipc2 May 16, 2024
d2f4b99
fix dataset download (4)
philipc2 May 16, 2024
e1623fb
add compressed mesh files using zarr
philipc2 May 16, 2024
7ca5d46
use zarr files in benchmark
philipc2 May 16, 2024
9146bdd
delete meshfiles and update benchmark to version working on fork
philipc2 May 17, 2024
2d59721
attempt to fix env cache (1)
philipc2 May 17, 2024
3a3cc5a
attempt to fix env cache (2)
philipc2 May 17, 2024
67293ac
attempt to fix env cache (3)
philipc2 May 17, 2024
a108911
attempt to fix env cache (4)
philipc2 May 17, 2024
815bc47
attempt to fix env cache (5)
philipc2 May 17, 2024
5044430
attempt to fix env cache (5)
philipc2 May 17, 2024
1646ca1
attempt to fix env cache (6)
philipc2 May 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 39 additions & 18 deletions .github/workflows/asv-benchmarking.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
jobs:
benchmark:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -el {0}
env:
CONDA_ENV_FILE: ./ci/asv.yml
ASV_DIR: ./benchmarks
Expand All @@ -19,35 +22,53 @@ jobs:
with:
repository: UXARRAY/uxarray
fetch-depth: 0
philipc2 marked this conversation as resolved.
Show resolved Hide resolved

- name: Fetch all tags and branches for uxarray
run: |
git fetch --all --tags

- name: Checkout uxarray-asv
uses: actions/checkout@v4
with:
repository: uxarray/uxarray-asv
repository: UXARRAY/uxarray-asv
persist-credentials: false
fetch-depth: 0
ref: main
path: uxarray-asv
- name: Set environment variables
run: |
echo "TODAY=$(date +'%Y-%m-%d')" >> $GITHUB_ENV

- name: Set up conda environment
id: env-setup
continue-on-error: true
uses: mamba-org/setup-micromamba@v1
- name: Setup Miniforge
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: ./ci/asv.yml
cache-environment: true
cache-environment-key: "benchmark-${{runner.os}}-${{runner.arch}}-${{env.TODAY}}"
miniforge-version: "24.1.2-0"
activate-environment: asv

- name: retry environment set up if failed
if: steps.env-setup.outcome == 'failure'
uses: mamba-org/setup-micromamba@v1
- name: Get date
id: get-date
run: echo "today=$(/bin/date -u '+%Y%m%d')" >> $GITHUB_OUTPUT
shell: bash

- name: Cache environment
uses: actions/cache@v4
with:
download-micromamba: false
environment-file: ./ci/asv.yml
cache-environment: true
cache-environment-key: "benchmark-${{runner.os}}-${{runner.arch}}-${{env.TODAY}}"
path: ${{ env.CONDA }}/envs
key:
conda-${{ runner.os }}--${{ runner.arch }}--${{
steps.get-date.outputs.today }}-${{
hashFiles('./ci/asv.yml') }}-${{ env.CACHE_NUMBER}}
env:
# Increase this value to reset cache if the environment file has not changed
CACHE_NUMBER: 0
id: cache

- name: Update environment
run:
conda env update -n asv -f ./ci/asv.yml
if: steps.cache.outputs.cache-hit != 'true'

- name: Conda list
run: |
conda info
conda list

- name: Copy existing results
run: |
Expand Down
Loading