Skip to content
Merged
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
44 changes: 44 additions & 0 deletions .github/workflows/stresshouse-benchmark-compare.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Benchmark this PR's build vs `main` on StressHouse and comment the comparison
# on the PR.
#
# Thin caller: the logic lives in the shared reusable workflow
# ClickHouse/integrations-shared-workflows/.github/workflows/clickhouse-benchmark.yml,
# so behaviour can be adjusted in one place. It uses the Workflow Auth app to
# start the central `StressHouse dispatch` workflow in
# ClickHouse/clickhouse-client-benchmarks; when the run finishes, StressHouse
# posts a sticky comparison comment back onto this PR.
#
# Trigger: a `/benchmark-compare` PR comment from a maintainer, or manually from
# the Actions tab (supply the PR number).
---
name: StressHouse Benchmark (PR vs main)

on:
issue_comment:
types: [created]
workflow_dispatch:
inputs:
pr_number:
description: "PR number to benchmark and comment on."
required: true
type: string

permissions:
contents: read
pull-requests: write

jobs:
benchmark:
# Comment path: only on PRs, only `/benchmark-compare`, only from someone
# with write access. Manual path: always allowed.
Comment on lines +32 to +33
if: >-
github.event_name == 'workflow_dispatch' ||
(github.event.issue.pull_request &&
startsWith(github.event.comment.body, '/benchmark-compare') &&
contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'), github.event.comment.author_association))
uses: ClickHouse/integrations-shared-workflows/.github/workflows/clickhouse-benchmark.yml@main
with:
client: clickhouse-js
profile: pr-compare
pr_number: ${{ github.event.issue.number || inputs.pr_number }}
secrets: inherit