diff options
author | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2020-03-05 11:18:54 +0000 |
---|---|---|
committer | Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org> | 2020-03-11 10:23:24 +0000 |
commit | 73c89ab411102bb4627505de7a617ee8fe372657 (patch) | |
tree | bf73c4da7956978bef68f3c40a81d7f3ab358a6e /round-robin.sh | |
parent | 170d72fbc6ea94f1224e460d2e34a6b13f018f0a (diff) |
Add annotations to round-robin's "results" file
Annotations provide human-readable comments and data on regressions.
For this we ignore all lines in "results" file starting with "#".
Change-Id: I31328fe2c13895a7379137b00891a9d2fc0a39d7
Diffstat (limited to 'round-robin.sh')
-rw-r--r-- | round-robin.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/round-robin.sh b/round-robin.sh index f91109bf..3f739df7 100644 --- a/round-robin.sh +++ b/round-robin.sh @@ -477,8 +477,8 @@ no_build_regression_p () fi local build_result_ref build_result_new - build_result_ref=$(tail -n1 $ref_artifacts/results) - build_result_new=$(tail -n1 $new_artifacts/results) + build_result_ref=$(grep -v "^#" $ref_artifacts/results | tail -n1) + build_result_new=$(grep -v "^#" $new_artifacts/results | tail -n1) # In log scan for errors below # - sed -e 's/"[^"]*"//g' -- removes quoted "error: app diagnostics" strings @@ -506,7 +506,7 @@ check_regression () set -euf -o pipefail local score - score=$(tail -n1 ${rr[top_artifacts]}/results) + score=$(grep -v "^#" ${rr[top_artifacts]}/results | tail -n1) if [ x"${rr[update_baseline]}" = x"rebase" ]; then # No-one ever used "rebase" mode. It's now obsoleted by custom ci_projects. @@ -686,7 +686,7 @@ update_baseline () else msg_title="$msg_title: $(print_updated_components "-")" fi - msg_title="$msg_title: $(tail -n1 ${rr[top_artifacts]}/results)" + msg_title="$msg_title: $(grep -v "^#" ${rr[top_artifacts]}/results | tail -n1)" git -C base-artifacts add . git -C base-artifacts commit $amend -m "$msg_title |