summaryrefslogtreecommitdiff
path: root/tcwg_bmk-build.sh
diff options
context:
space:
mode:
authorLaurent Alfonsi <laurent.alfonsi@linaro.org>2023-08-14 11:38:45 +0200
committerLaurent Alfonsi <laurent.alfonsi@linaro.org>2023-08-16 15:12:00 +0000
commit2ec1a6363957f53f2082af20db78979f82b9ee42 (patch)
tree93bdbc5a89d2c9e597366d81c88d707069f813c0 /tcwg_bmk-build.sh
parentfc461960b98ea8092891acd924b31f0aa3f6dd4f (diff)
tcwg_bmk-build.sh: Use all history to compute sample variability
Change-Id: I9c7bd0f100f06a520a6111a25dd41564a47f5a67
Diffstat (limited to 'tcwg_bmk-build.sh')
-rwxr-xr-xtcwg_bmk-build.sh21
1 files changed, 15 insertions, 6 deletions
diff --git a/tcwg_bmk-build.sh b/tcwg_bmk-build.sh
index 9b269105..db94f71f 100755
--- a/tcwg_bmk-build.sh
+++ b/tcwg_bmk-build.sh
@@ -446,11 +446,20 @@ compare_results ()
# Extract 5 most recent compare-results-vs-prev-internal.csv files from
# base-artifacts and compute std deviation out of them
- local -a history_csvs
- history_csvs=("results-vs-prev/compare-results-internal.csv"
+ local -a csvs_paths
+ csvs_paths=("results-vs-prev/compare-results-internal.csv"
"$(basename $run_step_artifacts)/compare-results-vs-prev-internal.csv")
- readarray -t history_csvs \
- < <(get_git_history 5 base-artifacts "${history_csvs[@]}")
+
+ local -a history_csvs
+ local csv history_root=""
+ while read csv; do
+ if [ "$history_root" = "" ]; then
+ history_root="$csv"
+ continue
+ fi
+
+ history_csvs+=("$csv")
+ done < <(get_git_history -0 base-artifacts "${csvs_paths[@]}")
local csv tmpf
local -a compare_results_list=()
@@ -460,7 +469,7 @@ compare_results ()
# To deal with some differences along base-artifacts recent history
# - remove 'Failed for column' message from csv file
# - skip emtpy csv files.
- for csv in "${history_csvs[@]:1}"; do
+ for csv in "${history_csvs[@]}"; do
grep -v 'Failed for column' "$csv" > "$tmpf" || true
cp "$tmpf" "$csv"
if [ -s "$csv" ]; then
@@ -474,7 +483,7 @@ compare_results ()
--output $run_step_artifacts/bmk-specific-variability.csv || true
fi
- rm -rf "${history_csvs[0]}" "$tmpf"
+ rm -rf "$history_root" "$tmpf"
echo "called_from_notify=$called_from_notify"
local verbose_opt="quiet"