Skip to content

Commit

Permalink
Kwxm/ci/visible total (#6470)
Browse files Browse the repository at this point in the history
* Put the TOTAL line for a benchmakr comparison in a table of its own

* Try again

* Complete merge
  • Loading branch information
Kenneth MacKenzie authored Sep 11, 2024
1 parent c54c96c commit a9b163e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/ci-plutus-benchmark.sh
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@ Comparing benchmark results of '$BENCHMARK_NAME' on '$BASE_BRANCH_REF' (base) an
EOF
./plutus-benchmark/bench-compare-markdown bench-base.log bench-PR.log "${BASE_BRANCH_REF:0:7}" "${PR_BRANCH_REF:0:7}" |
awk '/^[| \t]*$/ {print "</details>"; next}
/TOTAL/ {print "\n| :------| :------: | :------: | :------: |"}
awk -v hdr1="${BASE_BRANCH_REF:0:7}" -v hdr2="${PR_BRANCH_REF:0:7}" '
/^[| \t]*$/ {print "</details>"; next}
/TOTAL/ {printf ("\n| %s | %s | Change |\n| :------| :------: | :------: | :------: |\n", hdr1, hdr2)}
{print}'
# ^ This puts </details> after the individual results and puts the TOTAL line in a small table on its own.
} > bench-compare-result.log

0 comments on commit a9b163e

Please sign in to comment.