Repository navigation
Add a disabled attribute to performance test queries, and disable five verbatim duplicates - #129366
Conversation
Each of these queries was written twice in its own file, so it was
measured twice and reported as two queries:
- agg_functions_argmin_argmax: the argMinIf(Title, ...) query was
present twice since the file was created.
- avg_weighted: avgWeighted(num_f, num_f) was repeated, column-aligned,
as the first row of the toNullable matrix.
- hash_table_sizes_stats: two identical numbers_mt({numbers_threshold_value})
templates, left when the four numbers_mt sizes were parameterized into
two values. The hash table size statistics are keyed by the query plan,
so both copies used one cache entry.
- joins_in_memory: the CROSS JOIN query was repeated with the tag
'CROSS KEY'; tags are not used by the harness.
The later copy is removed, so the earlier one keeps its index and text.
The queries after it move up one index: 23 queries in total.
Related: ClickHouse#129258
Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
cc @egor-click, could you review this and add the |
|
Workflow [PR], commit [2cd27b0] Summary: ✅
AI ReviewSummaryAdds a Final Verdict✅ Approve. |
|
@groeneai lets stop this task for a while, i will tell you when to resume if needed, cutting 1 second per PR and messing up query numbers does not worth it i think let me try my experiments first, i will let you know the next steps later |
|
Understood. I've stopped the series and won't open the remaining #129258 items until you tell me to resume. I'll leave this PR open in case the duplicate removal is still wanted; feel free to close it otherwise. |
|
@egor-click I disagree. We must fix performance tests and they've been broken since forever. We have duplicated tests, slow tests, noisy tests, hard to understand thresholds that hide regressions. @groeneai Please keep going. Ping me on new PRs and I'll review them |
|
@Algunenano this will mess up history, i think we can do better than that this is a solution made in a hurry and saving a couple of seconds and it doesn’t save us from anything |
|
we have only test and query number for historical results, if we start deleting tests, all query numbers will change and all history we have will be thrown into trash i don’t like that, @groeneai , this is a solution made in a hurry that will break more than it will improve i think that we need a way to mark queries disabled,stale so they don't run and only append new queries or create new tests and never change or delete |
|
Understood. This PR moves 23 later queries up one number in the 4 files, so their history and learned thresholds would restart under the new numbers. I won't push to it (or open more in the series) until you and @ Algunenano agree on the approach. A |
|
@groeneai Please add a disabled marker |
…g them The performance history is keyed by the test name and the query number, which is the position of the query in the expanded query list. Deleting the five duplicates moved 23 later queries of the same files to new numbers, so their history and learned thresholds would restart. perf.py now reads `<query disabled="1">`: a disabled query keeps its number, and `--print-queries` still prints it, but it is not run in the default or sampled set (an explicit `--queries-to-run` still runs it), and it does not keep merges running under `--stop-merges`. The five copies are restored and marked disabled, so every query number in the four files is the same as on master. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…checks A disabled query is now inert everywhere: `--queries-to-run` with a disabled index fails before connecting (`--print-queries` still prints it), the setup statements of a disabled `<query file=...>` are not run, a disabled shell query no longer rejects `--user`/`--secure` or `do_not_check_in_pr`, nor makes profile collection skip the test, and the Iceberg configuration does not rewrite it. Co-Authored-By: Claude Opus 5.5 <[email protected]>
disabled attribute to performance test queries, and disable five verbatim duplicates
|
Added in ce4ea29 and 2cd27b0: |
|
Thanks. Once this merges, I'll rework the rest of the #129258 series to this approach (disable, never renumber or delete) and ping you for review. @ Algunenano asked to wait for your history rework before changing any performance test queries (#129399 (comment)), so I'll hold those PRs until it lands, unless you two tell me otherwise. |
|
disable approach is a good workaround for now so this should be unblocked, i will work on better alternatives next week |
|
One detail for the rest of the series: |
|
yes, if the fill is not used i think it should be safe and correct to skip fills in case no queries use that data |
Related: #129258
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Part of the #129258 audit (duplicated queries), reworked after review: deleting the five duplicates moved 23 later queries to new numbers and restarted their history, so the duplicates are now disabled instead.
perf.pyreads<query disabled="1">: a disabled query keeps its query number (its position in the expanded query list, which keys the performance history), and--print-queriesstill prints it, but it is never run (--queries-to-runrefuses it) and does not take part in the setup: theCREATE/DROPstatements of a disabled<query file=...>are skipped, a disabled shell query does not trigger the shell-query restrictions (also in profile-collection discovery), and a disabled write query does not keep merges running under--stop-merges. Documented intests/performance/README.md.The later copy of each duplicated
<query>element is disabled:agg_functions_argmin_argmaxExtra include for std::mt19937_64 #5 = Repair subtree2 #1 (argMinIf(Title, EventTime, Title != '')).avg_weightedfix docs #6 = Extra include for std::mt19937_64 #5 (avgWeighted(num_f, num_f)).hash_table_sizes_statsdoc: fix typo #4, Extra include for std::mt19937_64 #5 = Repair subtree2 #2, BaseDaemon: terminate on double SIGINT #3 (thenumbers_mt({numbers_threshold_value})template; the statistics cache is keyed by the query plan, so both copies used one entry).joins_in_memoryUnknown identifier when a column is referenced in subquery #26 = add Enums to English reference #25 (theCROSS JOINquery, repeated with tagCROSS KEY).Validation:
perf.py --print-queriesoutput of the four files is byte-identical to master, so no query number moves.perf.pyruns on two local servers (official master build):hash_table_sizes_statsran #0-3 and fix docs #6-12 (masterperf.py: #0-12),joins_in_memoryran #0-25 and Chebotarev push test 2 #27 (master: #0-27),--max-queries 11picked exactly the 11 enabled queries, and--queries-to-run 4 5was refused before connecting. Synthetic tests: with a disabledINSERT, merges were stopped (masterperf.pykept them running); a disabled file query'sCREATEwas not run, and a disabled shell query no longer conflicts withdo_not_check_in_pr(masterperf.pyrejects the test).🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/129366]
Version info
26.11.1.1450-master(included in26.11and later)