Unify benchmark job name conventions

This commit is contained in:
Fabing Li 2025-01-23 09:00:06 +00:00 committed by Tate, Hongliang Tian
parent 95bbc7f367
commit 185b27b01c
27 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ jobs:
run: |
BENCHMARK_DIR=$(echo ${{ matrix.benchmark }} | sed 's/-/\//g')
BENCHMARK_SUITE=$(echo $BENCHMARK_DIR | awk -F'/' '{print $1}')
BENCHMARK_NAME=$(basename "$BENCHMARK_DIR")
BENCHMARK_NAME=$(echo "$BENCHMARK_DIR" | sed -E 's|^[^/]+/||; s|/bench_results||g; s|/|_|g')
BENCH_RESULT="test/benchmark/${BENCHMARK_DIR}/bench_result.json"
[ -f "$BENCH_RESULT" ] || BENCH_RESULT="test/benchmark/${BENCHMARK_DIR}.json"
ALERT_THRESHOLD=$(jq -r '.alert.threshold // "130%"' "$BENCH_RESULT")