Skip to content

Commit 792769e

Browse files
committed
Update artifacts
1 parent 619c86b commit 792769e

File tree

3 files changed

+16
-5
lines changed

3 files changed

+16
-5
lines changed

.github/workflows/sycl-benchmark-aggregate.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,10 @@ jobs:
102102
git config user.email "[email protected]"
103103
git add .
104104
git commit -m "[GHA] Aggregate median data from $CUTOFF_TIMESTAMP to $(date +"$TIMESTAMP_FORMAT")"
105-
git push "https://[email protected]/$PERF_RES_GIT_REPO.git" "$PERF_RES_BRANCH"
105+
git push "https://[email protected]/$PERF_RES_GIT_REPO.git" "$PERF_RES_BRANCH"
106+
- name: Archive new medians
107+
if: always()
108+
uses: actions/upload-artifact@v4
109+
with:
110+
name: llvm-ci-perf-results new medians
111+
path: ${{ env.PERF_RES_PATH }}/**/*-median.csv

.github/workflows/sycl-linux-run-tests.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -524,9 +524,11 @@ jobs:
524524
git add .
525525
git commit -m "[GHA] Upload compute-benchmarks results from ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
526526
git push "https://[email protected]/$PERF_RES_GIT_REPO.git" "$PERF_RES_BRANCH"
527-
- name: Archive uncached compute-benchmark results
527+
- name: Archive compute-benchmark results
528528
if: inputs.tests_selector == 'benchmark' && always()
529529
uses: actions/upload-artifact@v4
530530
with:
531-
name: Uncached compute-benchmark results (${{runner.name}})
532-
path: ./uncached_res
531+
name: Compute-benchmark results (${{runner.name}})
532+
path: |
533+
./uncached_res
534+
./success

devops/scripts/benchmarking/benchmark.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,13 @@ check_regression() {
110110
return $?
111111
}
112112

113-
# Move the results of our benchmark into the git repo
113+
# Move the results of our benchmark into the git repo, and save benchmark
114+
# results to artifact archive
114115
#
115116
# Usage: cache <relative path of output csv>
116117
cache() {
118+
mkdir -p "$(dirname "./success/$1")"
119+
cp "$OUTPUT_PATH/$1" "./success/$1"
117120
mv "$OUTPUT_PATH/$1" "$PERF_RES_PATH/$1"
118121
}
119122

0 commit comments

Comments
 (0)