Skip to content

Commit 8f097b1

Browse files
authored
Benchmarks temporary debug mode.
1 parent 4c18e23 commit 8f097b1

File tree

1 file changed

+3
-67
lines changed

1 file changed

+3
-67
lines changed

.github/workflows/benchmarks_run.yml

Lines changed: 3 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -70,53 +70,13 @@ jobs:
7070
TEST_DATA_CACHE_BUILD: "2"
7171

7272
steps:
73-
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
74-
- uses: actions/checkout@v4
75-
with:
76-
fetch-depth: 0
77-
78-
- name: Install ASV & Nox
79-
run: |
80-
pip install "asv!=0.6.2" nox
81-
82-
- name: Cache environment directories
83-
id: cache-env-dir
84-
uses: actions/cache@v4
85-
with:
86-
path: |
87-
.nox
88-
benchmarks/.asv/env
89-
$CONDA/pkgs
90-
key: ${{ runner.os }}-${{ hashFiles('requirements/') }}-${{ env.ENV_CACHE_BUILD }}
91-
92-
- name: Cache test data directory
93-
id: cache-test-data
94-
uses: actions/cache@v4
95-
with:
96-
path: |
97-
${{ env.IRIS_TEST_DATA_PATH }}
98-
key:
99-
test-data-${{ env.IRIS_TEST_DATA_VERSION }}-${{ env.TEST_DATA_CACHE_BUILD }}
100-
101-
- name: Fetch the test data
102-
if: steps.cache-test-data.outputs.cache-hit != 'true'
103-
run: |
104-
wget --quiet https://github.com/SciTools/iris-test-data/archive/v${IRIS_TEST_DATA_VERSION}.zip -O iris-test-data.zip
105-
unzip -q iris-test-data.zip
106-
mkdir --parents ${GITHUB_WORKSPACE}/${IRIS_TEST_DATA_LOC_PATH}
107-
mv iris-test-data-${IRIS_TEST_DATA_VERSION} ${GITHUB_WORKSPACE}/${IRIS_TEST_DATA_PATH}
108-
109-
- name: Set test data var
110-
run: |
111-
echo "OVERRIDE_TEST_DATA_REPOSITORY=${GITHUB_WORKSPACE}/${IRIS_TEST_DATA_PATH}/test_data" >> $GITHUB_ENV
112-
11373
- name: Benchmark this pull request
11474
if: needs.pre-checks.outputs.branch == 'true'
11575
env:
11676
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
11777
PR_NUMBER: ${{ github.event.number }}
11878
run: |
119-
python benchmarks/bm_runner.py branch origin/${{ github.base_ref }}
79+
echo "Running benchmarks in branch mode."
12080
12181
- name: Run overnight benchmarks
12282
id: overnight
@@ -132,30 +92,6 @@ jobs:
13292
13393
if [ "$first_commit" != "" ]
13494
then
135-
python benchmarks/bm_runner.py overnight $first_commit
95+
echo "first commit = ${first_commit}"
96+
echo "Running benchmarks in overnight mode."
13697
fi
137-
138-
- name: Warn of failure
139-
if: >
140-
failure() &&
141-
steps.overnight.outcome == 'failure'
142-
env:
143-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
144-
run: |
145-
title="Overnight benchmark workflow failed: \`${{ github.run_id }}\`"
146-
body="Generated by GHA run [\`${{github.run_id}}\`](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})"
147-
gh issue create --title "$title" --body "$body" --label "Bot" --label "Type: Performance" --repo $GITHUB_REPOSITORY
148-
149-
- name: Upload any benchmark reports
150-
if: success() || steps.overnight.outcome == 'failure'
151-
uses: actions/upload-artifact@v4
152-
with:
153-
name: benchmark_reports
154-
path: .github/workflows/benchmark_reports
155-
156-
- name: Archive asv results
157-
if: ${{ always() }}
158-
uses: actions/upload-artifact@v4
159-
with:
160-
name: asv-raw-results
161-
path: benchmarks/.asv/results

0 commit comments

Comments
 (0)