Skip to content

Commit 9fd6145

Browse files
committed
Track old workflows, test dev
1 parent 7dbb9b1 commit 9fd6145

File tree

5 files changed

+160
-19
lines changed

5 files changed

+160
-19
lines changed
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
name: micromamba
2+
# concurrency:
3+
# group: ${{ github.head_ref || github.run_id }}
4+
# cancel-in-progress: true
5+
6+
on:
7+
# pull_request:
8+
workflow_dispatch:
9+
schedule:
10+
- cron: "30 1 * * *" # at 1.30am
11+
## these permissions are only for deployment to gh pages
12+
# permissions:
13+
# id-token: write
14+
# pages: write
15+
16+
jobs:
17+
run-benchmark-micromamba:
18+
name: run_clustbench_micromamba
19+
## runs-on: ubuntu-latest
20+
runs-on: self-hosted
21+
strategy:
22+
matrix:
23+
ob_branch: [dev, reduce_install_scope, main]
24+
micromamba-version: ['2.1.1-0', '1.5.12-0']
25+
fail-fast: false
26+
concurrency:
27+
group: micromamba-${{ matrix.micromamba-version }}-${{ matrix.ob_branch }}
28+
cancel-in-progress: false # true
29+
steps:
30+
- name: Check out repository
31+
uses: actions/checkout@v4
32+
33+
- name: Install (with) micromamba
34+
uses: mamba-org/setup-micromamba@v2
35+
with:
36+
cache-environment: false # true
37+
micromamba-version: ${{ matrix.micromamba-version }}
38+
download-micromamba: true
39+
micromamba-binary-path: ${{ runner.temp }}/bin/micromamba-${{ matrix.micromamba-version }}/micromamba
40+
environment-name: test-env-${{matrix.ob_branch }}-${{ matrix.micromamba-version }}
41+
create-args: >-
42+
python=3.12
43+
pip
44+
conda
45+
post-cleanup: environment # all
46+
- name: Overwrite omnibenchmark CLI to branch
47+
shell: bash -l {0}
48+
run: |
49+
micromamba --version
50+
pip install git+https://github.com/omnibenchmark/omnibenchmark.git@${{ matrix.ob_branch }}
51+
52+
# - name: Enable a benchmarking `out` cache
53+
# id: cache-benchmark
54+
# uses: actions/cache@v3
55+
# with:
56+
# path: out/
57+
# key: benchmark-${{ runner.os }}-${{ hashFiles('Clustering.yaml') }}
58+
59+
- name: Run benchmark
60+
shell: bash -l {0}
61+
run: |
62+
env
63+
output=$( echo "y" | ob run benchmark -b Clustering_conda.yml --local --cores 10 2>&1 )
64+
status=$?
65+
if echo "$output" | grep -i 'Benchmark run has finished successfully'; then
66+
status=0
67+
fi
68+
echo -e $output
69+
sh -c "exit $status"
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
name: clustbench_miniforge
2+
# concurrency:
3+
# group: ${{ github.head_ref || github.run_id }}
4+
# cancel-in-progress: true
5+
6+
on:
7+
# pull_request:
8+
workflow_dispatch:
9+
schedule:
10+
- cron: "30 1 * * *" # at 1.30am
11+
12+
## these permissions are only for deployment to gh pages
13+
# permissions:
14+
# id-token: write
15+
# pages: write
16+
17+
jobs:
18+
run-benchmark-miniforge:
19+
name: run_clustbench_miniforge
20+
## runs-on: ubuntu-latest
21+
runs-on: self-hosted
22+
strategy:
23+
matrix:
24+
ob_branch: [dev, reduce_install_scope, main]
25+
fail-fast: false
26+
concurrency:
27+
group: mambaforge-${{ matrix.ob_branch }}
28+
cancel-in-progress: false # true
29+
steps:
30+
- name: Check out repository
31+
uses: actions/checkout@v4
32+
33+
- name: Install Mambaforge
34+
uses: conda-incubator/setup-miniconda@v3
35+
with:
36+
miniforge-variant: Miniforge3
37+
use-mamba: true
38+
activate-environment: test-env-${{matrix.ob_branch }}
39+
python-version: "3.12"
40+
auto-update-conda: true
41+
channels: conda-forge
42+
43+
- name: Cache environment
44+
id: cache-env
45+
uses: actions/cache@v3
46+
with:
47+
path: |
48+
~/.conda/pkgs
49+
~/.conda/envs/omnibenchmark-env
50+
~/.cache/pip
51+
key: ${{ runner.os }}-conda-pip-${{ hashFiles('requirements.txt') }}
52+
restore-keys: |
53+
${{ runner.os }}-conda-pip-
54+
55+
- name: Install omnibenchmark CLI
56+
shell: bash -l {0}
57+
run: |
58+
mamba install -y pip
59+
pip install git+https://github.com/omnibenchmark/omnibenchmark.git@${{ matrix.ob_branch }}
60+
61+
# - name: Enable a benchmarking `out` cache
62+
# id: cache-benchmark
63+
# uses: actions/cache@v3
64+
# with:
65+
# path: out/
66+
# key: benchmark-${{ runner.os }}-${{ hashFiles('Clustering.yaml') }}
67+
68+
- name: Run benchmark
69+
shell: bash -l {0}
70+
run: |
71+
env
72+
output=$( echo "y" | ob run benchmark -b Clustering_conda.yml --local --cores 10 2>&1 )
73+
status=$?
74+
if echo "$output" | grep -i 'Benchmark run has finished successfully'; then
75+
status=0
76+
fi
77+
echo -e $output
78+
sh -c "exit $status"
File renamed without changes.

.github/workflows/run_conda.yml

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,16 @@
11
name: run_on_conda
22
on:
3-
# pull_request:
3+
pull_request:
44
workflow_dispatch:
5-
schedule:
6-
- cron: "30 1 * * *" # at 1.30am
5+
# schedule:
6+
# - cron: "30 1 * * *" # at 1.30am
77

88
jobs:
9-
run-benchmark:
9+
run_benchmark_main:
1010
name: Run on conda
11-
## runs-on: ubuntu-latest
12-
runs-on: self-hosted
13-
strategy:
14-
matrix:
15-
ob_branch: [main]
16-
fail-fast: false
11+
runs-on: ubuntu-latest
12+
# runs-on: self-hosted
13+
fail-fast: false
1714
steps:
1815
- name: Checkout
1916
uses: actions/checkout@v4
@@ -23,4 +20,4 @@ jobs:
2320
with:
2421
yaml: Clustering_conda.yml
2522
backend: conda
26-
omnibenchmark_branch: ${{ matrix.ob_branch }}
23+
omnibenchmark_branch: 'dev'

.github/workflows/run_oras.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,15 @@
11
name: run_on_oras
22
on:
3-
# pull_request:
3+
pull_request:
44
workflow_dispatch:
5-
schedule:
6-
- cron: "30 1 * * *" # at 1.30am
5+
# schedule:
6+
# - cron: "30 1 * * *" # at 1.30am
77

88
jobs:
99
run-benchmark:
1010
name: Run on oras
1111
runs-on: ubuntu-latest
12-
strategy:
13-
matrix:
14-
ob_branch: [main]
15-
fail-fast: false
12+
fail-fast: false
1613
steps:
1714
- name: Checkout
1815
uses: actions/checkout@v4
@@ -22,4 +19,4 @@ jobs:
2219
with:
2320
yaml: Clustering_oras.yml
2421
backend: apptainer
25-
omnibenchmark_branch: ${{ matrix.ob_branch }}
22+
omnibenchmark_branch: 'dev'

0 commit comments

Comments
 (0)