diff options
Diffstat (limited to 'tcwg-wip/push-results-to-squad.sh')
-rwxr-xr-x | tcwg-wip/push-results-to-squad.sh | 18 |
1 files changed, 13 insertions, 5 deletions
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 "" } |