Repository navigation
Add NightlyExtendedPerformance: nightly ARM run of all performance test queries and new long tests - #122231
Merged
Conversation
Runs without the `nightly` test option or `perf.py --long` are unchanged. `nightly`: sorted test list, `calibration.xml` first in every batch, all queries (no sampling), `timeout -k 60` of 3 h per test; a non-zero exit is red, a missing `teardown-complete` is red and stops the batch; no tests-tree replacement for `release_base`; rows keyed by the `GIT_HASH` of both binaries; raw-run, query-metric and test-time uploads are required; no dashboard or delta gates; `CHPC_NIGHTLY=1` skips `confirm_changes`. `--reference-path`: use a local reference binary. `perf.py --long`: per-statement budget from the `max_query_seconds` test attribute, run loop ends at 3 budgets; a timeout is a censored time, on all servers `double-timeout`, on the tested server only an error; reference-only settings, setup or prewarm failures make the query `partial`; `SIGTERM` runs the `atexit` teardown; `teardown-complete` only when every server is clean. `clickbench.py --info`: text for the job result. Threshold query: `pr_number = 0` rows from `MasterCI` only (also in the `double-check-perf-tests` skill); identical thresholds today. New `long` tests `calibration`, `tpch_sf100`, `tpcds_sf100`; README section. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nightlyBenchmarkRunPR # Conflicts: # ci/jobs/performance_tests.py
Contributor
|
Workflow [PR], commit [e32fa75] Summary: ✅
AI ReviewSummaryAdds Final Verdict✅ Approve. No new inline findings. |
Co-Authored-By: Claude Fable 5.1 <[email protected]>
egor-click
reviewed
Sep 25, 2026
egor-click
reviewed
Sep 25, 2026
…nightlyBenchmarkRunPR # Conflicts: # ci/jobs/performance_tests.py # tests/performance/scripts/perf.py
With `--long`, `perf.py` prints ordinary `query` rows with the censored time (completed statements plus the budget) for a query that timed out on all servers, followed by a `double-timeout` line. `compare.sh` treated those rows as real samples, so they entered `all-query-metrics.tsv` and the CI database history as `client_time` values. `compare.sh` now collects the `double-timeout` lines and excludes those queries from `query_run_metric_arrays`, the same way `partial` queries are excluded. The rows stay in the raw output and the job result still shows the number of double timeouts. Addresses a review comment on #122231 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
fm4v
marked this pull request as ready for review
September 30, 2026 17:03
…nightlyBenchmarkRunPR Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…nightlyBenchmarkRunPR # Conflicts: # .github/workflows/nightly_extended_performance.yml
Setup `OPTIMIZE ... FINAL` of SF100 tests exceeds the default 300 s. Run: https://github.com/ClickHouse/ClickHouse/actions/runs/37030092255 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
`UNKNOWN_TABLE` and `UNKNOWN_DATABASE` from a drop leave the server clean on every server, so a failed setup no longer stops the batch. Run: https://github.com/ClickHouse/ClickHouse/actions/runs/37030092255 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A tested-side error or an asymmetric timeout now prints one `run-error` line, drops the query's rows and continues; the test exits non-zero at the end. Run: https://github.com/ClickHouse/ClickHouse/actions/runs/37030092255 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Hold-and-flush once at the end lost most rows of a nightly job. Now the sends are released and held again after each test; `nightly` runs also attribute the right server's rows to the tested binary. https://github.com/ClickHouse/ClickHouse/actions/runs/37030092255 Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
A single `INSERT` of 2.4M rows timed out in run https://github.com/ClickHouse/ClickHouse/actions/runs/37030092255. Each chunk has its own deduplication token. PR and master runs are unchanged. Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
…nightlyBenchmarkRunPR
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Reverts the `skipped` report of queries failing on every server and removes `double-timeout`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…rams` to fit the timeout Co-Authored-By: Claude Opus 5.5 <[email protected]>
…_uniq_v2` It blocks the measured `MATERIALIZE STATISTICS` mutations. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nightlyBenchmarkRunPR
Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
… rows in `double_check_perf.py` Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Co-Authored-By: Claude Opus 5.5 <[email protected]>
…nightlyBenchmarkRunPR
nightly performance harness option and long testsNightlyExtendedPerformance: nightly ARM run of all performance test queries and new long tests
egor-click
approved these changes
Oct 16, 2026
This was referenced Oct 17, 2026
This was referenced Oct 17, 2026
alexey-milovidov
pushed a commit
to bacek/ClickHouse
that referenced
this pull request
Oct 19, 2026
…efore measuring Since 2f07f3f (ClickHouse#122231) `t_materialize_uniq_v2_{i64,f64}` no longer stop merges, so background merges run while the fill commits its 20 1M-row parts and keep running during queries #0-#3. Each compared server ends up with its own layout (CI server logs: 8 servers, 8 layouts, from [6,6,6,1,1] to [20] million rows). The measured `ALTER ... CLEAR STATISTICS ALL, MATERIALIZE STATISTICS ALL` runs one single-threaded mutation task per part, so its time follows the largest part, and the layout lasts the whole job, so the dashboard confirmation restart reproduces the gap (`confirmed_regression` on unrelated PRs, e.g. ClickHouse#126296: #4 0.1445 -> 0.1933 s). Merge both tables into one part in the fill with `OPTIMIZE TABLE ... FINAL SETTINGS optimize_throw_if_noop = 1` and assert one active part per table with `throwIf`, as `and_compare_chain_derived.xml` does. Without `optimize_throw_if_noop` a failed merge assignment only logs and returns success, leaving a random layout. A table that background merges already collapsed to one part is still rewritten under FINAL, so the pin never throws on it. `projection_materialize.xml` measures a mutation over one merged part the same way and is stable on the same harness. Validated on the official master release build (26.11.1.120): before, 10 fills gave 5 i64 layouts and a 1.92x spread of #4, and perf.py on two servers gave right/left 1.249, 0.892, 0.841 in 3 of 5 fills; after, one 20M-row part per table in 10 of 10 fills, #4/#5 spread 1.029/1.041, and perf.py right/left within 5% in 5 of 5. Replacing one OPTIMIZE with `SELECT 1` fails the fill. Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
PR and master performance runs measure at most 10 sampled queries per test and skip tests tagged
long. Nothing measures the fulltests/performancecorpus or large-scale benchmarks on master. This PR adds a nightly workflow for that, the firstlongtests, and the harness support they need. It also tightens the error rule of the regularPerformance Comparisonjobs and fixes the perf tests that were silently broken.Heads-up for PR authors and CI owners: in
Performance Comparisonjobs, a query that fails or times out in prewarm on your build is now red (run-error,N errorsin the report). Before, it was quietly measured on the reference only, or skipped. Expect also new query names without threshold history in a few fixed tests, and three new tests listed as skipped.Changes to PR and master CI
These apply to
Performance Comparison (<arch>_release, master_head, N/6)unless noted otherwise.partial(measured on the reference only), and a failure on both servers was skipped silently; both stayed green. A failure on the reference only is stillpartial. A shell query that fails on the tested server now skips only that query instead of aborting the test; the job is still red.queryrows ofpartialqueries, the version is now the real server index (1) instead of 0. Partial queries are still left out of the comparison.top_level_domains_lists.xml(public_suffix_list).--top_level_domains_pathis an absolute path everywhere, including thecompare.shserver restarts for confirmation reruns.--security-opt seccomp=unconfined, as stateless and integration jobs already do, soio_uringworks.user_filescleanup between tests keeps every entry that exists indb0/user_files(dataset files). Before, it kept only the Iceberg dataset directories.url_hitsqueries 25 and 27,io_uring,insert_values_with_expressions;add_distinct_to_in_clause(remoteinstead of a cluster on port 9000),adaptive_aggregation_nullable_keys(columnRefresh),date_time_long(toTimeWithFixedDate),nlp(argument order ofstem),vector_binary_serialization(analysisOfVarianceMergeState),to_valid_utf8(aliases for column names with invalid UTF-8);analyzer_nested_function_resolution: depth 1024 exceeds the stack limit and is disabled; a depth-384 query is added;insert_statistics_uniq_v2: noSYSTEM STOP MERGESon the tables that runMATERIALIZE STATISTICS;join_convert_to_fixed_hash_table:max_bytes_before_external_joinforgrace_hash;sparse_grams: the missingSELECTis added; one query runs on fewer rows to fit the timeout;tpch-join_algorithm-partial_merge: Q4 and Q22 are skipped, so the indexes of later queries shift.calibration,tpch_sf100andtpcds_sf100appear as skipped in PR and master reports and inperf_skipped_tests_v1. The new files shift the round-robin shard assignment once.pr_number = 0rows labelledNightlyExtendedPerformanceto the shared perf tables, tochecks(check namesPerformance Comparison (arm_release, master_head, nightly, N/4)), and system logs to CI Logs. Readers that filter only bypr_number = 0or by check name see these rows, e.g. the per-query history links in the Check Results of ARM jobs (check_name LIKE '%Performance%arm%master_head%'). PR thresholds are not affected: since Add new test workflow NightlyExtendedPerformance (preliminary changes) #123095 they read onlyMasterCIrows.double_check_perf.py(thedouble-check-perf-testsskill) reads onlyPRandMasterCIrows.perf.pywith a single server treats it as the tested one, so a prewarm failure there now exits with code 1..github/workflows/nightly_extended_performance.ymlchanges.Risks
MasterCI(about 1257 runs per arch) it would have added no red job. The only such failure was on a server that died, and that job was already red. The prewarm budget is 180 s; master medians are at most about 5 s.io_uringstill depends on the host kernel.SYSTEM FLUSH DISTRIBUTEDoftrace_logoften fails withMEMORY_LIMIT_EXCEEDED. It happens in master perf jobs without the nightly too, so it is a CI Logs limit. Jobs stay green; only system-log rows are lost, and each flush is bounded by 5 min. If needed, the nightly can stop exportingtrace_log.pr_number = 0only. This can make its ARM gate slightly more lenient, never cause a false red. A one-line filter fix is with the dashboard owner.calibration.xmlin its tests). Expected, once.What this PR adds
NightlyExtendedPerformance(ci/workflows/nightly_extended_performance.py): daily at 05:13 UTC, ARM only, on its own runner labelarm-medium-storage.ci/jobs/nightly_extended_performance.py --resolvepicks binaries thatMasterCIalready published. Tested: the newest published masterBuild (arm_release). Reference: the tested binary of the previous nightly (within three nights); without one, the newest master build at least 24 h older.perf.py --long: every query, no sampling,calibrationfirst in each batch.longtests:calibration(a per-host yardstick),tpch_sf100andtpcds_sf100(TPC-H and TPC-DS at scale factor 100, loaded from S3, with statistics, final state checked on every run).partial) and regressions. Changes do not gate; there are no confirmation reruns.workflow_name = 'NightlyExtendedPerformance', readable onplay.clickhouse.com. Each row has the test, query index, display name, metric, old and new values, diff, threshold, architecture, instance type, commit and report link. The workflow docstring has SQL for the slowest and the most regressed queries;perf.py --print-queriesprints the query text.tests/performance/README.mddocuments the suite, how to write and run alongtest, and the red/green rules. Rerun withgh workflow run NightlyExtendedPerformance.Validation
e32fa75f4ea: https://github.com/ClickHouse/ClickHouse/actions/runs/38740818656, 6/6 jobs green, 8 h 06 min on twor8g.4xlargemachines;tpcds_sf100took about 117 min,tpch_sf100about 47 min. Earlier green runs: https://github.com/ClickHouse/ClickHouse/actions/runs/38636377041 (7 h 25 min) and https://github.com/ClickHouse/ClickHouse/actions/runs/38558795782 (7 h 51 min).Not in this PR: coming in the next PRs soon
MasterCIruns today.longbenchmarks.Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Add the
NightlyExtendedPerformanceworkflow, which runs every performance test query without sampling, including the newlongtestscalibration,tpch_sf100andtpcds_sf100, on the latest master ARM build every night and compares it with the previous night's build.🤖 Generated with Claude Code
Version info
26.11.1.100-master(included in26.11and later)