-
Notifications
You must be signed in to change notification settings - Fork 628
ci: add StressHouse PR-vs-main benchmark workflow #2922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| 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. | ||
| 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 | ||
|
Check failure on line 39 in .github/workflows/stresshouse-benchmark-compare.yml
|
||
|
chernser marked this conversation as resolved.
Dismissed
|
||
| with: | ||
| client: clickhouse-java | ||
| profile: pr-compare | ||
| pr_number: ${{ github.event.issue.number || inputs.pr_number }} | ||
| secrets: inherit | ||
|
Check warning on line 44 in .github/workflows/stresshouse-benchmark-compare.yml
|
||
|
chernser marked this conversation as resolved.
Dismissed
|
||
Uh oh!
There was an error while loading. Please reload this page.