Skip to content

Add a workflow to run the versions benchmark on demand - #1093

Merged
alexey-milovidov merged 1 commit into
mainfrom
versions-benchmark-workflow
Jul 26, 2026
Merged

Add a workflow to run the versions benchmark on demand#1093
alexey-milovidov merged 1 commit into
mainfrom
versions-benchmark-workflow

Conversation

@alexey-milovidov

Copy link
Copy Markdown
Member

Adds .github/workflows/versions-benchmark.yml: a manual (workflow_dispatch) workflow that runs the versions benchmark for a specified ClickHouse version — or for master.

The runner only launches, like the other benchmark workflows: it assumes the same federated ClickBenchLauncher IAM role and calls versions/run-benchmark.sh once per (version, machine type). Each machine downloads the prepared Native files, runs run-version.sh, POSTs the result (kind: versions-benchmark) and the log to the sink, and self-terminates.

Inputs:

  • versions (required, default master) — space-separated; an exact version (26.6.1.1193, 1.1.54378), a prefix resolved to the newest match (26.6, 24), or master.
  • machines (default c7a.4xlarge), datasets, tries, timeout — empty falls through to the script's own defaults (all ten datasets, 6 tries, 18000 s).
  • repo / branch — default to the repository and branch the workflow was dispatched from, so an unmerged branch can be benchmarked without passing anything.

master needed no script changes: list-versions.sh already maps it to the local provider, which installs the development build on the machine with curl https://clickhouse.com/ | sh instead of using Docker.

Unknown versions fail at resolution before any AWS call, and per-launch failures are collected and reported at the end, as in launch-benchmark/action.yml.

Verified locally: the YAML parses, the launch step is syntactically valid, the loop expands correctly over versions × machines with the optional inputs empty (dry-run against a stub run-benchmark.sh), and a bogus version fails the step without touching EC2. A real launch was not exercised.

🤖 Generated with Claude Code

A manual (workflow_dispatch) workflow that launches the versions benchmark
for a given ClickHouse version, a version prefix, or master.

The runner only launches: it assumes the same federated IAM role as the
other benchmark workflows and calls versions/run-benchmark.sh once per
(version, machine type). Each machine downloads the prepared Native files,
runs run-version.sh, sends its result to the sink and self-terminates.

master needs no script changes: list-versions.sh already maps it to the
"local" provider, which installs the development build on the machine.
The datasets / tries / timeout inputs fall through to the script's defaults
when empty, and the repository and branch default to the ones the workflow
was dispatched from, so an unmerged branch can be benchmarked as is.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@alexey-milovidov alexey-milovidov self-assigned this Jul 26, 2026
@alexey-milovidov
alexey-milovidov merged commit 4e05d9b into main Jul 26, 2026
3 checks passed
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.

1 participant