summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Alfonsi <laurent.alfonsi@linaro.org>2022-08-10 13:18:14 +0200
committerLaurent Alfonsi <laurent.alfonsi@linaro.org>2022-08-10 13:33:44 +0200
commitcab5aeb079026927bbc8990b56ed33d13ba8ee38 (patch)
tree88b6eff034eb885ad3a0220befe7baf556af0a02
parent5081fcfa613516ff800bb0d55d747769c3827126 (diff)
tcwg-wip/push-results-to-squad.sh: reset restuls between each parsing
Change-Id: Id7cf337840a5f983dfdcc1b64bca01737b927011
-rwxr-xr-xtcwg-wip/push-all-projects.sh48
-rwxr-xr-xtcwg-wip/push-results-to-squad.sh18
2 files changed, 61 insertions, 5 deletions
diff --git a/tcwg-wip/push-all-projects.sh b/tcwg-wip/push-all-projects.sh
new file mode 100755
index 00000000..b3f5a25d
--- /dev/null
+++ b/tcwg-wip/push-all-projects.sh
@@ -0,0 +1,48 @@
+#!/bin/bash -fx
+
+# https://qa-reports.linaro.org/~laurent.alfonsi/tcwg_bmk_ci_gnu-build-tcwg_bmk_apm-gnu-master-aarch64-spec2k6-Os_LTO
+./jenkins-scripts/tcwg-wip/push-results-to-squad.sh --branch linaro-local/ci/tcwg_bmk_gnu_apm/gnu-master-aarch64-spec2k6-Os_LTO
+
+# https://qa-reports.linaro.org/~laurent.alfonsi/tcwg_bmk_ci_gnu-build-tcwg_bmk_sq-gnu-master-aarch64-spec2k6-Os/
+./jenkins-scripts/tcwg-wip/push-results-to-squad.sh --branch refs/heads/linaro-local/ci/tcwg_bmk_gnu_sq/gnu-master-aarch64-spec2k6-Os
+
+# https://qa-reports.linaro.org/~laurent.alfonsi/tcwg_bmk_ci_gnu-build-tcwg_bmk_tx1-gnu-release-aarch64-spec2k6-O3/
+./jenkins-scripts/tcwg-wip/push-results-to-squad.sh --branch refs/heads/linaro-local/ci/tcwg_bmk_gnu_tx1/gnu-release-aarch64-spec2k6-O3
+
+# https://qa-reports.linaro.org/~laurent.alfonsi/tcwg_bmk_ci_fujitsu_llvm-build-tcwg_bmk_fx-llvm-master-aarch64-cpu2017-O3/
+./jenkins-scripts/tcwg-wip/push-results-to-squad.sh --branch refs/heads/linaro-local/ci/tcwg_bmk_llvm_fx/llvm-master-aarch64-cpu2017-O3
+
+# https://qa-reports.linaro.org/~laurent.alfonsi/tcwg_bmk_ci_fujitsu_llvm-build-tcwg_bmk_fx-llvm-master-aarch64-cpu2017-O2/
+./jenkins-scripts/tcwg-wip/push-results-to-squad.sh --branch refs/heads/linaro-local/ci/tcwg_bmk_llvm_fx/llvm-master-aarch64-cpu2017-O2
+
+# https://qa-reports.linaro.org/~laurent.alfonsi/tcwg_bmk_ci_fujitsu_gnu-build-tcwg_bmk_fx-gnu-master-aarch64-cpu2017-O3/
+./jenkins-scripts/tcwg-wip/push-results-to-squad.sh --branch refs/heads/linaro-local/ci/tcwg_bmk_gnu_fx/gnu-master-aarch64-cpu2017-O3
+
+# https://qa-reports.linaro.org/~laurent.alfonsi/tcwg_bmk_ci_fujitsu_gnu-build-tcwg_bmk_fx-gnu-master-aarch64-cpu2017-O2/
+./jenkins-scripts/tcwg-wip/push-results-to-squad.sh --branch refs/heads/linaro-local/ci/tcwg_bmk_gnu_fx/gnu-master-aarch64-cpu2017-O2
+
+# https://qa-reports.linaro.org/~laurent.alfonsi/tcwg_bmk_ci_llvm-build-tcwg_bmk_apm-llvm-master-arm-spec2k6-Os/
+./jenkins-scripts/tcwg-wip/push-results-to-squad.sh --branch refs/heads/linaro-local/ci/tcwg_bmk_llvm_apm/llvm-master-arm-spec2k6-Os
+
+# https://qa-reports.linaro.org/~laurent.alfonsi/tcwg_bmk_ci_gnu-build-tcwg_bmk_apm-gnu-master-aarch64-spec2k6-Os_LTO/
+./jenkins-scripts/tcwg-wip/push-results-to-squad.sh --branch refs/heads/linaro-local/ci/tcwg_bmk_gnu_apm/gnu-master-aarch64-spec2k6-Os_LTO
+
+
+
+exit
+
+# User can launch the one he wants
+
+squad_inputs/tcwg_bmk_ci_gnu-build-tcwg_bmk_apm-gnu-master-aarch64-spec2k6-Os_LTO/push_results_to_squad.sh
+
+squad_inputs/tcwg_bmk_ci_gnu-build-tcwg_bmk_sq-gnu-master-aarch64-spec2k6-Os/push_results_to_squad.sh
+
+squad_inputs/tcwg_bmk_ci_gnu-build-tcwg_bmk_tx1-gnu-release-aarch64-spec2k6-O3/push_results_to_squad.sh
+
+squad_inputs/tcwg_bmk_ci_fujitsu_gnu-build-tcwg_bmk_fx-gnu-master-aarch64-cpu2017-O2/push_results_to_squad.sh
+
+squad_inputs/tcwg_bmk_ci_fujitsu_gnu-build-tcwg_bmk_fx-gnu-master-aarch64-cpu2017-O3/push_results_to_squad.sh
+
+squad_inputs/tcwg_bmk_ci_fujitsu_llvm-build-tcwg_bmk_fx-llvm-master-aarch64-cpu2017-O2/push_results_to_squad.sh
+
+squad_inputs/tcwg_bmk_ci_fujitsu_llvm-build-tcwg_bmk_fx-llvm-master-aarch64-cpu2017-O3/push_results_to_squad.sh
diff --git a/tcwg-wip/push-results-to-squad.sh b/tcwg-wip/push-results-to-squad.sh
index 976c8649..7ec11d5e 100755
--- a/tcwg-wip/push-results-to-squad.sh
+++ b/tcwg-wip/push-results-to-squad.sh
@@ -44,7 +44,6 @@ clean_squad_project_if_first_time()
}
# --------------------------- GET INFOS --------------------------------
-declare -A project_run
get_infos_from_artifacts ()
{
local artifacts_dir=$1
@@ -107,8 +106,6 @@ get_infos_from_artifacts ()
# --------------------------- GET INFOS --------------------------------
# uses RESULTS_FILE argument
# outputs project_results
-declare -A project_results
-
parse_results_csv_files()
{
echo " * parsing base-artifacts inputs"
@@ -146,7 +143,7 @@ parse_results_csv_files()
fi
#echo " # $bench,$symb,$perf,$size,$vect,$md5sum"
- verbose " $bench : ${project_results["func:$bench"]}, ${project_results["perf:$bench"]}, " \
+ verbose " $bench : ${project_results["func:$bench"]}, ${project_results["perf:$bench"]}, " \
"${project_results["size:$bench"]}, ${project_results["vect:$bench"]}, $md5sum"
done < "${project_run['artifact_topdir']}/${project_run['results_csv']}"
unset IFS
@@ -310,19 +307,30 @@ get_and_push_one_project ()
artifact_dir=$1
artifact_branch=$2
+ local project
+
echo "# base_artifact : fetch $artifact_branch"
git -C $artifact_dir fetch -q origin $artifact_branch
git -C $artifact_dir checkout FETCH_HEAD
+ git -C $artifact_dir branch -f $artifact_branch FETCH_HEAD
for sha1 in $(git -C $artifact_dir log FETCH_HEAD --pretty=%H | tac); do
+ declare -A project_run project_results
+
get_infos_from_artifacts $artifact_dir $sha1 $artifact_branch
+ project=${project_run['project']}
+
parse_results_csv_files
+
dump_json_for_squad
+
push_results_to_squad_server
+
+ unset project_run project_results
done
echo "# TO PUSH ALL RESULTS, PLEASE RUN :"
- echo "squad_inputs/${project_run['project']}/push_results_to_squad.sh"
+ echo "squad_inputs/$project/push_results_to_squad.sh"
echo ""
}