Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion .github/workflows/bench-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Runs once when we add the `benchmark` tag to a pull request.
# Runs all benchmarks once when we add the `action/benchmark` tag to a pull request.

name: PR Benchmarks

Expand Down Expand Up @@ -130,6 +130,16 @@ jobs:
file-path: comment.md
comment-tag: bench-pr-comment-${{ matrix.benchmark.id }}

- name: Comment PR on failure
if: failure() && inputs.mode == 'pr' && github.event.pull_request.head.repo.fork == false
uses: thollander/actions-comment-pull-request@v3
with:
message: |
# 🚨🚨🚨❌❌❌ BENCHMARK FAILED ❌❌❌🚨🚨🚨

Benchmark `${{ matrix.benchmark.name }}` failed! Check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.
comment-tag: bench-pr-failure-${{ matrix.benchmark.id }}

sql:
needs: label_trigger
uses: ./.github/workflows/sql-benchmarks.yml
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/sql-benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,16 @@ jobs:
# unique benchmark configuration must have a unique comment-tag.
comment-tag: bench-pr-comment-${{ matrix.id }}

- name: Comment PR on failure
if: failure() && inputs.mode == 'pr' && github.event.pull_request.head.repo.fork == false
uses: thollander/actions-comment-pull-request@v3
with:
message: |
# 🚨🚨🚨❌❌❌ SQL BENCHMARK FAILED ❌❌❌🚨🚨🚨

Benchmark `${{ matrix.name }}` failed! Check the [workflow run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) for details.
comment-tag: bench-pr-failure-${{ matrix.id }}

- name: Upload Benchmark Results
if: inputs.mode == 'develop'
shell: bash
Expand Down
Loading