Skip to content

Commit f30bde1

Browse files
committed
CI: publish results of graviton and skylake runs
1 parent 56b72b4 commit f30bde1

2 files changed

Lines changed: 56 additions & 1 deletion

File tree

.github/workflows/run_cirun_graviton.yml

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,61 @@ jobs:
8383
- name: Run benchmarks
8484
run: |
8585
python3 -m asv run --config $ASV_CONFIG -v
86+
ls -l .asv/results
87+
echo ">>> results/machine"
88+
ls -l .asv/results/${{ matrix.name }}
8689
env:
8790
PKG_CONFIG_PATH: ${{ github.workspace }}
8891

92+
- name: Store/Upload benchmark results
93+
uses: actions/upload-artifact@v4
94+
with:
95+
name: ${{ matrix.name }}
96+
path: .asv/results/*
97+
if-no-files-found: error
98+
99+
combine-and-publish:
100+
runs-on: ubuntu-latest
101+
needs: bench
102+
steps:
103+
- name: Check out the repository
104+
uses: actions/checkout@v4
105+
with:
106+
fetch-depth: 0 # To fetch all commits to be able to generate benchmarks html
107+
token: ${{ secrets.AWS_BENCHMARKS }}
108+
109+
- name: Collect past runs
110+
run: |
111+
git checkout gh-pages
112+
mkdir -p .asv/resuls
113+
cp -r results .asv/results
114+
115+
- name: Download all artifacts from benchmarking runs
116+
uses: actions/download-artifact@v4
117+
118+
- name: Combine the runs
119+
run: |
120+
cp -r gh-skylake/* .asv/results
121+
cp -r gh-graviton/* .asv/results
122+
ls -l
123+
ls -l .asv/results
124+
git checkout main
125+
ls -l
126+
127+
- name: Set up Python
128+
uses: actions/setup-python@v4
129+
with:
130+
python-version: '3.11'
131+
132+
- name: Set up ASV and generate the html
133+
run: |
134+
pip install asv
135+
asv machine --yes --config $ASV_CONFIG
136+
asv publish --config $ASV_CONFIG -v
137+
138+
- name: Upload the results
139+
run: |
140+
git config --global user.email "project@openblas"
141+
git config --global user.name "OB benchmark bot"
142+
# git commit -m "Update benchmarks"
143+
asv gh-pages

.github/workflows/run_x86.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- main
77

88
env:
9-
GITHUB_TOKEN: ${{ secrets.AWS_BENCHMARKS }}
9+
# GITHUB_TOKEN: ${{ secrets.AWS_BENCHMARKS }} # DELIBERATE BREAKAGE TO BLOCK THE UPLOAD
1010
RESULTS_DIR_ROOT: gh_pages
1111
ASV_CONFIG: asv.conf.json
1212
MACHINE_NAME: github-actions-x86 # to identify github actions machine as hostname changes everytime

0 commit comments

Comments
 (0)