Skip to content

Commit 40e8b9b

Browse files
committed
bug fixes
1 parent 5d5c755 commit 40e8b9b

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ runs:
6060
git commit -m "[GHA] Upload compute-benchmarks results from https://github.com/intel/llvm/actions/runs/${{ github.run_id }}"
6161
git push "https://[email protected]/$PERF_RES_GIT_REPO.git" "$PERF_RES_BRANCH"
6262
- name: Archive compute-benchmark results
63-
if: inputs.tests_selector == 'benchmark' && always()
63+
if: always()
6464
uses: actions/upload-artifact@v4
6565
with:
6666
name: Compute-benchmark results (${{ runner.name }})

devops/scripts/benchmarking/benchmark.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ This script builds and runs benchmarks from compute-benchmarks."
2222

2323
clone_perf_res() {
2424
echo "### Cloning llvm-ci-perf-res ($PERF_RES_GIT_REPO:$PERF_RES_BRANCH) ###"
25-
mkdir -p "$(dirname $PERF_RES_PATH)"
25+
mkdir -p "$(dirname "$PERF_RES_PATH")"
2626
git clone -b $PERF_RES_BRANCH https://github.com/$PERF_RES_GIT_REPO $PERF_RES_PATH
2727
[ "$?" -ne 0 ] && exit $?
2828
}
2929

3030
clone_compute_bench() {
3131
echo "### Cloning compute-benchmarks ($COMPUTE_BENCH_GIT_REPO:$COMPUTE_BENCH_BRANCH) ###"
32-
mkdir -p "$(dirname $COMPUTE_BENCH_PATH)"
32+
mkdir -p "$(dirname "$COMPUTE_BENCH_PATH")"
3333
git clone -b $COMPUTE_BENCH_BRANCH \
3434
--recurse-submodules https://github.com/$COMPUTE_BENCH_GIT_REPO \
3535
$COMPUTE_BENCH_PATH
@@ -98,8 +98,8 @@ samples_under_threshold () {
9898
#
9999
# Usage: check_regression <relative path of output csv>
100100
check_regression() {
101-
csv_relpath="$(dirname $1)"
102-
csv_name="$(basename $1)"
101+
csv_relpath="$(dirname "$1")"
102+
csv_name="$(basename "$1")"
103103
if samples_under_threshold "$csv_relpath"; then
104104
echo "Not enough samples to construct a good average, performance\
105105
check skipped!"
@@ -145,7 +145,7 @@ process_benchmarks() {
145145
exit 1
146146
else
147147
rm "$BENCHMARK_ERROR_LOG" "$BENCHMARK_SLOW_LOG" 2> /dev/null
148-
mkdir -p "$(dirname $BENCHMARK_ERROR_LOG)" "$(dirname $BENCHMARK_SLOW_LOG)"
148+
mkdir -p "$(dirname "$BENCHMARK_ERROR_LOG")" "$(dirname "$BENCHMARK_SLOW_LOG")"
149149
# Loop through each line of enabled_tests.conf, but ignore lines in the
150150
# test config starting with #'s:
151151
grep "^[^#]" "$TESTS_CONFIG" | while read -r testcase; do
@@ -216,7 +216,7 @@ load_configs() {
216216
# If this is not provided, this function tries to guess where the files
217217
# are based on how the script is called, and verifies that all necessary
218218
# configs and scripts are reachable.
219-
[ -z "$BENCHMARKING_ROOT" ] && BENCHMARKING_ROOT="$(dirname $0)"
219+
[ -z "$BENCHMARKING_ROOT" ] && BENCHMARKING_ROOT="$(dirname "$0")"
220220

221221
BENCHMARK_CI_CONFIG="$(realpath $BENCHMARKING_ROOT/benchmark-ci.conf)"
222222
TESTS_CONFIG="$(realpath $BENCHMARKING_ROOT/enabled_tests.conf)"

devops/scripts/benchmarking/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def load_configs():
4949
for perf_res in perf_res_re.findall(configs_str):
5050
PERF_RES_PATH = str(perf_res[1:-1])
5151

52-
for output_cache in output_path_re.findall(configs_str):
52+
for output_cache in output_cache_re.findall(configs_str):
5353
OUTPUT_CACHE = str(output_cache[1:-1])
5454

5555
for b_slow_log in b_slow_re.findall(configs_str):

0 commit comments

Comments
 (0)