Skip to content

Commit 056c724

Browse files
committed
Enforce fail on regression
1 parent cb6c2e2 commit 056c724

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

devops/actions/run-tests/benchmark/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ runs:
7171
echo "-----"
7272
./devops/scripts/benchmarking/benchmark.sh -n '${{ runner.name }}' -s
7373
- name: Push compute-benchmarks results
74+
if: always()
7475
shell: bash
7576
run: |
7677
# TODO -- waiting on security clearance

devops/scripts/benchmarking/benchmark.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ check_and_cache() {
119119
fi
120120
else
121121
[ "$CACHE_RESULTS" -eq "1" ] && echo "Regression found -- Not caching!"
122+
_regression_found=1
122123
fi
123124
}
124125

@@ -296,5 +297,7 @@ DEVICE_SELECTOR_DIRNAME="$(echo "$ONEAPI_DEVICE_SELECTOR" | sed 's/:/-/')"
296297
[ ! -d ./compute-benchmarks ] && clone_compute_bench
297298
[ ! -d ./compute-benchmarks/build ] && build_compute_bench
298299
# Process benchmarks:
300+
_regression_found=0
299301
process_benchmarks
300302
process_results
303+
exit "$_regression_found"

0 commit comments

Comments
 (0)