Skip to content

Commit

Permalink
various little fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
danking committed Dec 13, 2024
1 parent 6f42892 commit 6223ac9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/bench-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,16 @@ jobs:
> base.json
echo '# Benchmarks: ${{ matrix.benchmark.id }}' > comment.md
echo '<details>' >> comment.md
echo '<summary>Table of Results</summary>' >> comment.md
uv run python3 scripts/compare-benchmark-jsons.py base.json ${{ matrix.benchmark.id }}.json \
>> comment.md
echo '</details>' >> comment.md
- name: Comment PR
uses: thollander/actions-comment-pull-request@v3
with:
file-path: comment.md
comment-tag: execution
comment-tag: bench-pr-comment-${{ matrix.benchmark.id }}
tpch:
needs: label_trigger
runs-on: self-hosted
Expand Down Expand Up @@ -139,13 +142,16 @@ jobs:
> base.json
echo '# Benchmarks: TPC-H' > comment.md
echo '<details>' >> comment.md
echo '<summary>Table of Results</summary>' >> comment.md
uv run python3 scripts/compare-benchmark-jsons.py base.json tpch.json \
>> comment.md
echo '</details>' >> comment.md
- name: Comment PR
uses: thollander/actions-comment-pull-request@v3
with:
file-path: comment.md
comment-tag: execution
comment-tag: bench-pr-comment-tpch
clickbench:
needs: label_trigger
runs-on: self-hosted
Expand Down Expand Up @@ -192,10 +198,13 @@ jobs:
> base.json
echo '# Benchmarks: Clickbench' > comment.md
echo '<details>' >> comment.md
echo '<summary>Table of Results</summary>' >> comment.md
uv run python3 scripts/compare-benchmark-jsons.py base.json clickbench.json \
>> comment.md
echo '</details>' >> comment.md
- name: Comment PR
uses: thollander/actions-comment-pull-request@v3
with:
file-path: comment.md
comment-tag: execution
comment-tag: bench-pr-comment-clickbench
2 changes: 1 addition & 1 deletion scripts/coerce-criterion-json.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -Eeu -o pipefail -x

commit_id=${GITHUB_HEAD_REF:-$GITHUB_SHA} # Prefer the PR tip SHA if this is a PR (not the merged SHA)
commit_id=${GITHUB_SHA}

jq --compact-output 'select(.reason == "benchmark-complete" or .reason == null)
| if (.throughput | length) == 0
Expand Down

0 comments on commit 6223ac9

Please sign in to comment.