Repository navigation
CI: refresh integration-test duration table for shard balancing - #108555
Conversation
get_optimal_test_batch packs integration shards with an LPT bin-packer keyed on the static RAW_TEST_DURATIONS table; suites absent from it get weight 0 and are only round-robin distributed. The table was last refreshed ~5 months ago (300000ms floor, 129 entries) and had drifted: it covered only 43.5% of integration wall-clock mass, so 56% was packed duration-blind. Regenerate from 14-day master medians with a 60000ms floor (302 entries, 79.8% mass coverage) and add a path filter to drop functional-test rows that leak into the integration check_name. Measured against ground-truth durations the 4-way db-disk split imbalance drops from 15.1% to 5.1% (683s -> 225s wall-clock spread). Pure data refresh, no logic change; output stays deterministic. Helps every integration config on every branch. Co-Authored-By: Claude Opus 4.8 <[email protected]>
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-worker-slot-1:20260625-213800 |
|
@maxknv could you review? You last refreshed |
|
Workflow [PR], commit [3d4bfec] Summary: ✅ AI ReviewSummaryThis PR refreshes the static integration-test duration table and its documented regeneration query so Final VerdictStatus: ✅ Approve |
…tion-test-durations CI: refresh integration-test duration table for shard balancing
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
...
Description
get_optimal_test_batch(ci/jobs/scripts/integration_tests_configs.py) packs integration-test shards with a deterministic LPT bin-packer keyed on the staticRAW_TEST_DURATIONStable. Suites absent from the table get weight 0 and are only round-robin distributed, so the more wall-clock mass the table covers, the better the packer can balance.The table was last refreshed ~5 months ago (
300000msfloor, 129 entries) and had drifted: it covered only 43.5% of integration wall-clock mass, leaving 56% packed duration-blind. That is the source of the chronic batch-levelTimeoutfailures on the heavierIntegration tests (... db disk ...)shards (the last split is consistently the heaviest), and it affects every integration config.This is a pure data refresh, no logic change:
RAW_TEST_DURATIONSfrom 14-dayamd_asan_ubsanmaster medians with a60000msfloor -> 302 entries, 79.8% mass coverage (up from 43.5%).match(test_suite, '^test_[^/]+/.*\.py$')filter to the documented regeneration query so functional-test rows that leak into theIntegration testscheck_name(e.g.00024_unused_array_join_in_subquery) are dropped instead of polluting the table.Validation (simulated against ground-truth 14-day medians, packer fed only the floored table it actually sees):
Output stays deterministic (verified: two runs identical; all real test files assigned exactly once, no loss/duplication). Helps every integration config on every branch; weakens no assertion and touches no release branch.
Version info
26.7.1.153(included in26.7and later)