Repository navigation
Make test 01035_avg four times cheaper - #124000
Conversation
The test inserted 1,000,000 rows of 18 wide computed columns (Int256, UInt256, Decimal256 defaults, about 79 MiB compressed) and scanned them four times. Under tsan with s3 storage it exceeded the 180 s budget of the targeted lane (192 s on ClickHouse#116101, 248 s on ClickHouse#118721) and ran over 180 s 20 times on master in 30 days in `amd_tsan, s3 storage, parallel`. Insert 250,000 rows instead and regenerate reference lines 2-5. The assertions stay exact averages over the same expressions and types: 8 and 16 bit columns still wrap, and a local-disk read still uses at least 2 streams (32 marks, above the 24-mark concurrent-read minimum). The new values match a direct recomputation from numbers(250000). Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review (1 nit, no action).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-10:20261005-101100 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-5:20261005-095600 |
|
Workflow [PR], commit [ff19ada] Summary: ✅ AI ReviewSummaryThis PR makes Final Verdict
|
azat
left a comment
There was a problem hiding this comment.
Nothing in history says that it should scan that much rows, so OK
|
Backporting to fix CI |
Backport #124000 to 26.9: Make test 01035_avg four times cheaper
Backport #124000 to 26.8: Make test 01035_avg four times cheaper
Backport #124000 to 26.3: Make test 01035_avg four times cheaper
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
Related: #116101
01035_avgfails withTest runs too long (> 180s)inStateless tests (amd_tsan, s3 storage, targeted): 192 s on #116101 and 248 s twice on #118721. On master over 30 days it ran over 180 s 20 times inamd_tsan, s3 storage, parallel(max 439 s, p99 213 s) and reached 185 s inamd_msan, parallel.The test inserts 1,000,000 rows of 18 wide computed columns (Int256, UInt256, Decimal256 defaults, about 79 MiB compressed) and scans them four times, so its cost is linear in the row count. In the slow targeted runs the big scan read S3 at 1-5 MB/s instead of 100-600 MB/s in other runs of the same job; I did not isolate why (the profiles are in the S3 HTTP body read path that #116222 rewrites), and this PR does not change it.
The test now inserts 250,000 rows; reference lines 2-5 are regenerated, the empty-table and Int8 overflow lines are unchanged. The assertions are the same exact averages over the same expressions and types: 8 and 16 bit columns still wrap (250,000 > 65,536), and a local-disk read still uses 2 or more streams (32 marks; 100,000 rows would drop to one stream).
Validation: the new reference values match a direct recomputation from
numbers(250000)without MergeTree (the same query reproduces the old reference for 1,000,000 rows). 50/50 randomized runs pass. With the tsan binary from #116101 on a local disk, the test takes 2.6-3.4 s instead of 8.7-11.9 s.Workflow [PR]
Sync PR [sync-upstream/pr/124000]
Version info
26.10.1.1621-master(included in26.10and later)26.9.26.27,26.8.35.24,26.3.61.20