Skip to content

ci: add StressHouse PR-vs-main benchmark workflow#943

Merged
alex-clickhouse merged 2 commits into
mainfrom
add-stresshouse-benchmark-compare
Jul 20, 2026
Merged

ci: add StressHouse PR-vs-main benchmark workflow#943
alex-clickhouse merged 2 commits into
mainfrom
add-stresshouse-benchmark-compare

Conversation

@alex-clickhouse

Copy link
Copy Markdown
Contributor

Adds .github/workflows/stresshouse-benchmark-compare.yml — a thin caller for the shared reusable workflow (ClickHouse/integrations-shared-workflowsclickhouse-benchmark.yml).

What it does

A /benchmark-compare comment from a maintainer (or a manual workflow_dispatch with a PR number) benchmarks this PR's build against main on StressHouse and posts a sticky comparison comment back on the PR. The client: input is set to clickhouse-js.

This mirrors the workflow already running successfully in clickhouse-cs.

Prerequisites (org-level, one-time)

  • The shared Workflow Auth app secrets (WORKFLOW_AUTH_PUBLIC_APP_ID, WORKFLOW_AUTH_PUBLIC_PRIVATE_KEY) must be available to this repo; secrets: inherit forwards them to the reusable workflow.
  • That app must be installed on ClickHouse/clickhouse-client-benchmarks with actions: write so it can start the dispatch workflow there.

🤖 Generated with Claude Code

Thin caller for the shared reusable workflow
(ClickHouse/integrations-shared-workflows clickhouse-benchmark.yml). A
/benchmark-compare comment from a maintainer (or a manual dispatch)
benchmarks this PR's build against main on StressHouse and posts a sticky
comparison comment back on the PR. Mirrors the workflow already in use in
clickhouse-cs, with client: clickhouse-js.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings July 13, 2026 13:21

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new GitHub Actions workflow that triggers StressHouse benchmarks to compare a PR build against main, delegating the implementation to the shared reusable workflow in ClickHouse/integrations-shared-workflows.

Changes:

  • Introduces an issue_comment trigger (/benchmark-compare) and a workflow_dispatch trigger (manual PR number).
  • Calls the shared clickhouse-benchmark.yml reusable workflow with client: clickhouse-js and profile: pr-compare.
  • Configures PR write permissions to allow posting benchmark results back to the PR.

client: clickhouse-js
profile: pr-compare
pr_number: ${{ github.event.issue.number || inputs.pr_number }}
secrets: inherit
Comment on lines +32 to +33
# Comment path: only on PRs, only `/benchmark-compare`, only from someone
# with write access. Manual path: always allowed.
(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
@alex-clickhouse
alex-clickhouse merged commit 0f8458b into main Jul 20, 2026
12 checks passed
@alex-clickhouse
alex-clickhouse deleted the add-stresshouse-benchmark-compare branch July 20, 2026 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants