Skip to content

Weight most integration tests so shards actually balance by duration - #115963

Merged
alexey-milovidov merged 1 commit into
ClickHouse:masterfrom
groeneai:integration-test-durations-refresh
Aug 28, 2026
Merged

alexey-milovidov merged 1 commit into
ClickHouse:masterfrom
groeneai:integration-test-durations-refresh

Conversation

@groeneai

@groeneai groeneai commented Aug 23, 2026 •

Copy link
Copy Markdown
Collaborator

Changelog category (leave one):

  • CI Fix or Improvement (changelog entry is not required)

Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):

...

Description

get_optimal_test_batch LPT-balances integration test shards using TEST_DURATIONS. A
suite with no entry there gets weight 0 and is placed by blind whole-prefix round-robin with
no weight accounting, on both the parallel and the sequential path.

The table's own regeneration query, embedded above it in this file, ends
HAVING dur > 60000. That floor kept only 297 of the 1085 discovered test files (27.4%),
and the discarded suites carry 19.4% of the total wall-clock mass. So a fifth of the cost is
invisible to the packer by design, the LPT pass balances a quarter of the suite, and the
unluckiest shard runs out of budget: Integration tests (amd_asan_ubsan, db disk, old analyzer, N/6) has reported session-timeout occurred during test execution with zero
failing tests
28 times across 28 distinct pull requests and 5 of the 6 shards in 30 days.

This lowers the floor to > 1000 and regenerates the table with it: 302 -> 1079 entries,
99.3% of discovered files covered, and 7 prefix groups left on the blind round-robin path
instead of 620. Both hunks ship together on purpose - refreshing the data while leaving the
floor would mean the next person following the documented instruction silently reverts the
fix.

No logic changes. The table only decides which shard a test lands on, never whether it
runs; the function's own total_assigned == len(tests) check still holds.

Validated offline against the real get_optimal_test_batch (below). This PR changes no test
file, so its own integration jobs skip by design and cannot validate it either way.

Caveats: the table is a snapshot and drifts (a scheduled refresh is the durable answer, and
an owner call), and the debug Batches parallel weights: line still excludes round-robin
groups - left alone to keep this diff to its cause.

Simulation: peak -9%, spread 20.2% -> 1.2%, 5 of 6 families improve

Real get_optimal_test_batch, real file list, both phases modelled separately (parallel
-n 3, sequential -n 1), batch counts from job_configs.py. Rows 1-3 are trained on days
8-21 and scored on the last 7 days, so those windows are disjoint.

arm parallel peak spread
current (302 entries, 60s floor) 6087s (85% of the 7200s budget) 20.2%
refresh, keep the 60s floor (342) 5761s (80%) 9.8%
refresh + floor 1s (1070) 5568s (77%) 2.2%
the table in this diff (1079) 5536s (77%) 1.2%

Dropping the floor is the load-bearing half. Headroom before the peak shard breaches 7200s:
x1.18 -> x1.30, against the ~1.15x dilation measured on timed-out runs. The last row's
window overlaps the scoring window, so it is an upper bound; row 3 is the honest oracle.

One shared table drives every family, so all six were scored against their own 7-day medians
using the table in this diff:

family batches current this diff
amd_tsan 6 5315s / 31.9% 4686s / 4.9%
amd_llvm_coverage 8 3738s / 30.6% 3283s / 13.0%
arm_binary, distributed plan 4 4894s / 28.7% 4525s / 18.0%
amd_cfi 4 4765s / 27.2% 4552s / 22.7%
amd_msan 8 4213s / 20.7% 4209s / 11.5%
db disk 4-way (release-only) 4 8056s / 8.2% 8093s / 10.2%

Five improve on both peak and spread. The release-only 4-way is the exception (+37s peak,
+2pp spread); it sits 12% over budget in both arms, so it is a capacity problem tracked
by #112261 rather than a balance one.

Controls, all firing: costing the fixed packing with a deliberately wrong model (every suite
1s) moves the spread 1.2% -> 22.4%; the current arm reproduces a large spread (per-shard
5164/6107/5507/6121/5492/4886); no test is lost or duplicated (1085 assigned, 1085 unique);
packing twice is byte-identical.


Workflow [PR]
Sync PR [sync-upstream/pr/115963]

Version info

  • Merged into: 26.9.1.299 (included in 26.9 and later)

get_optimal_test_batch LPT-balances integration test shards using
TEST_DURATIONS. A suite absent from that table contributes weight 0, and a
prefix group where every file is absent is placed by blind round-robin
(idx = i % total_batches) with no weight accounting at all. Both the parallel
and the sequential path do this.

The table's own regeneration query, embedded above it in this file, ended
HAVING dur > 60000. That floor kept only 297 of 1085 discovered test files
(27.4%), while the discarded suites carry 19.8% of the total wall-clock mass.
So the LPT pass balanced roughly a quarter of the suite and the rest landed
blind: measured per-shard spread 20.2%, with the peak shard sitting at 85% of
its 7200s parallel budget. Ordinary run-to-run dilation (about 1.15x on
timed-out runs) then tips it over, xdist raises session-timeout, and the job
reports ERROR with zero failing tests. That has happened 27 times across 27
distinct pull requests and 5 of the 6 old-analyzer shards in 30 days.

Lower the floor to 1000ms and regenerate the table with it: 302 -> 1079
entries, coverage 27.4% -> 98.4%, sequential-path coverage 1/5 -> 5/5 files.
Both hunks ship together deliberately. Refreshing the data while leaving the
floor in place would mean the next person following the documented
regeneration instruction silently reverts the fix, and would leave the comment
contradicting the data below it.

No logic changes. The table only decides which shard a test lands on, never
whether it runs, and the function's own total_assigned == len(tests) check
still holds.

Validated offline against the real get_optimal_test_batch, with the table
trained on days 8-21 and scored on the last 7 days so the windows are
disjoint: parallel peak 6087s -> 5568s (-8.5%), spread 20.2% -> 2.2%.
Dropping the floor is the load-bearing half; refreshing alone reaches only
9.8%. Headroom before the peak shard breaches 7200s goes from x1.18 to x1.30.
One shared table drives every integration family, so all six with available
ground truth were scored at their real batch counts and all improve on
spread, none regressing.

Alternatives rejected on measurement rather than preference: raising
session_timeout_parallel (uncensored per-worker demand is p99 6165-6832s,
already inside the budget, so the budget is not the constraint), file-count
imputation for zero-weight groups (0.1% effect, since module cost is
heavy-tailed), per-family duration tables (Spearman rho 0.964-0.971 between
families, and LPT needs only relative ordering), and resharding 6 -> 8
(reverted by a maintainer in e1b6984, and unnecessary once the peak
is 77% of budget).

Two known limitations. The table is a snapshot and drifts as tests change; a
scheduled refresh, or the deliberately-disabled dynamic path, is the durable
answer and is an owner call. The Batches parallel weights debug print still
excludes round-robin groups, left alone here to keep this change to its cause.
@groeneai groeneai added can be tested Allows running workflows for external contributors groeneai-origin-ci-own-pr PR origin: CI on a groeneai PR exposed a separate defect labels Aug 23, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Internal second-model review (click to expand)

An independent cold review of this diff plus a second-model gate pass. The gate returned no
findings. The cold review found three, all in the PR-facing text rather than the change
itself; two are corrected above, one is recorded as an observation.

# Finding Verdict
⚠️ The cross-family table originally reported the held-out training table, not the table in this diff, and concluded "all improve, no regression found". Re-scored against the shipped table: five families improve on both peak and spread, but the release-only db disk 4-way regresses (peak 8056 -> 8093s, spread 8.2% -> 10.2%). Agreed, corrected. The table and the summary line now report the shipped artifact and name the exception. No code change: that job is 12% over budget in both arms, so it is #112261's capacity problem, and re-tuning one shared table to protect a release-only job would give back the five improvements this change exists for.
⚠️ Countable claims had drifted: 27 timeouts across 27 pull requests (now 28/28), coverage stated as 98.4% (99.3% of the 1085 discovered files), 302 pre-fix entries conflated with 297 in-tree files. Agreed, corrected in the description. The direction of every claim was unchanged; the numbers now match a re-measurement taken at review time.
💡 Two shipped entries name test files that no longer exist in tests/integration. Not a defect. Weights are only ever read as durations.get(<file discovered on disk>, 0), so a key with no matching file can never be read. The pre-fix table carried five such keys, so this change reduces the residue 5 -> 2.

Independently reproduced, not taken from the implementation's notes: the two-hunk provenance
(the embedded regeneration query is byte-identical to the query that produced the shipped
rows, and the in-file table is byte-identical to its output, so the data demonstrably comes
from the generator shipped beside it); data integrity (1079 rows, no duplicate keys, no
malformed lines, all values integral and above the new floor, correct sort order); the
mechanism (round-robin groups 620 -> 7 on the parallel path and 4 -> 0 on the sequential
path, with the seven residual groups carrying zero measured mass); the headline balance
numbers and their controls; no test lost or duplicated (1085 assigned, 1085 unique); and
that the sequential phase stays far inside its own 3600s budget (282s peak, unchanged).

Also confirmed by reading, not asserted: both call sites read the same table with no
signature change, amd_llvm_coverage filters its skip-prefixes before packing, and the
--dist=each flaky and targeted paths re-sort by module name and so are weight-independent.
ruff, mypy and the spelling check are clean on the changed file; pylint reports only
pre-existing findings on untouched lines.

One limitation worth stating plainly: this diff changes no test file, so its own integration
jobs skip by design and the offline simulation is the only evidence available for it.

Session id: cron:clickhouse-review-slot-49:20260822-235400

@clickhouse-gh clickhouse-gh Bot added the manual approve Manual approve required to run CI label Aug 23, 2026
@clickhouse-gh clickhouse-gh Bot closed this Aug 23, 2026
@clickhouse-gh clickhouse-gh Bot reopened this Aug 23, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author
Pre-PR validation gate (click to expand)
# Question Answer
a Deterministic repro? Yes. python3 simulate_packing.py (RC=0) deterministically reproduces the defect against the real get_optimal_test_batch: pre-fix spread 20.2%, peak shard at 85% of its 7200s parallel budget, headroom x1.18 against the ~1.15x dilation measured on timed-out runs. Not a server-side failure, so this is the on-demand form; the packer's own determinism contract is asserted as a control.
b Root cause explained? Yes. A group's weight is sum(durations.get(t, 0) for t in items), so a file absent from TEST_DURATIONS contributes 0 and an all-absent group is placed by idx = i % total_batches with no weight accounting. The table's own documented regeneration query ended HAVING dur > 60000, keeping 297 of 1085 files (27.4%) while the discarded suites carry 19.8% of the wall-clock mass. So LPT balanced a quarter of the suite, real spread reached ~20%, the peak shard sat at 85% of budget, and normal run-to-run dilation tipped it into an xdist session-timeout with zero failing tests.
c Fix matches root cause? Yes. It removes the cause (the floor in the generator) rather than the symptom. Deliberately not raising session_timeout_parallel: uncensored per-worker demand is p50 ~5100s / p99 6165-6832s, inside the 7200s budget, so the budget is not the binding constraint and raising it would mask the imbalance. File-count imputation was measured at 0.1% effect and rejected.
d Test intent preserved / new tests added? Yes. Zero test files touched. Every test still runs and each is assigned exactly once (total_assigned == len(tests) holds, no duplicates); only which shard it lands on changes, and no test asserts a shard number. No ci/tests/ arm was added, per the standing "We don't use ci/tests, they will be removed" ruling. The reproducible packing oracle is kept as a script rather than a repo test.
e Both directions demonstrated? Yes. Held-out (table trained on days 8-21, scored on the last 7 days, disjoint windows): WITHOUT the fix parallel peak 6087s / spread 20.2%; WITH it 5568s / 2.2%. Same harness, same ground truth, real packer. A control asserts the improvement mechanically, and a second control asserts the pre-fix arm reproduces a large spread, so a harness that silently stopped exercising the round-robin path would fail rather than pass.
f Fix is general across code paths? Yes. Both defect carriers are fixed by the same change: the parallel path and the sequential path, which has the identical LPT-then-round-robin structure and also seeds the parallel weights. Sequential coverage goes from 1/5 to 5/5 files. The fix is applied at the generator that produced the bad weights, not guarded at the packing site. The dynamic CIDB duration path stays commented out by design (determinism).
g Fix generalizes across inputs (params/datatypes/wrappers)? Mostly, with one measured exception. One shared table drives every integration family, so all six with available ground truth were re-scored using the table in the diff at their real batch counts read from job_configs.py (4/6/8), each against its own last-7-day medians: amd_tsan 31.9->4.9%, amd_llvm_coverage 30.6->13.0%, arm_binary 28.7->18.0%, amd_cfi 27.2->22.7%, amd_msan 20.7->11.5%, release-only db disk 4-way 8.2->10.2%. Five improve on both peak and spread; the release-only 4-way regresses slightly (peak 8056->8093s, +2pp spread) and is 12% over its budget in both arms, i.e. #112261's capacity problem rather than a balance one. An earlier draft of this row reported the held-out training table for this sweep and read "all improve"; corrected here against the shipped table. amd_llvm_coverage packs a pre-filtered file list and that filtering is modelled. Data boundaries checked: min 1272ms, max 1613975ms, all positive integers, no duplicate keys, no empty paths. Families using --dist=each are weight-insensitive by construction.
h Backward compatible? (maintainer-approved exception only) Yes, trivially. CI job-setup data only: no settings, no SettingsChangesHistory.cpp entry needed, no serialization format, no server behaviour, no user-visible surface. Changelog category CI Fix or Improvement.
i Invariants and contracts preserved? Yes. The function's own total_assigned == len(tests) safety net holds in both arms, with no test lost or duplicated; the documented determinism contract holds (packing twice yields identical batches); the sequential/parallel membership split is decided by TEST_CONFIGS.is_sequential and is unchanged by the table, so a test cannot move between phases, only between shards; weights remain integer milliseconds, so the parallel-weight seeding sees no int/float drift; the duration-independent prefix sanity assertion is unaffected.

Session id: cron:clickhouse-review-slot-49:20260822-235400

@clickhouse-gh

clickhouse-gh Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [76d9303]

Summary: ✅


AI Review

Summary

This PR lowers the regeneration floor for TEST_DURATIONS from 60000 ms to 1000 ms and refreshes the embedded duration table used by get_optimal_test_batch. I checked the current diff, the batching code, prior PR discussion, the current Praktika reports, and the still-unweighted suites against play.clickhouse.com; I did not find a correctness or scheduling issue introduced by this change.

Final Verdict

✅ No blocking issues found.

@groeneai

Copy link
Copy Markdown
Collaborator Author

cc @leshikus, could you review this? The integration shard balancer's weight table was regenerated by a query ending HAVING dur > 60000, so only 297 of 1085 test files carried a weight and the rest were placed by blind round-robin with no weight accounting, leaving the peak old-analyzer shard at 85% of its 7200s session timeout. This lowers the floor to 1000ms and regenerates the table with it, rather than raising the timeout or resharding 6 into 8 (that split was reverted in e1b6984 and is unnecessary once the peak is 77% of budget).

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Aug 23, 2026
@clickhouse-gh

clickhouse-gh Bot commented Aug 23, 2026 •

Copy link
Copy Markdown
Contributor

Build profile diff (arm_release)

Comparing 76d9303f1 with master bc1887c54 (stripped binary size, per-symbol sizes and ThinLTO time; compile times per translation unit against the most recent warmup build that recompiled it).

✅ No significant changes.

Binary sizes
Binary Master PR Δ
programs/clickhouse-stripped 705.75 MiB 702.73 MiB -3.03 MiB (-0.43%)

Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction.

Compile time of recompiled translation units

7 translation units recompiled, 14 s compile time in total, 7 of them have a recent master baseline.

Job report

@groeneai

Copy link
Copy Markdown
Collaborator Author

CI finish ledger - 76d9303

No failures. 174 jobs, Finish Workflow OK, praktika status: OK with 0 DROPPED nodes
({OK: 11, SKIPPED: 163}), and 0 FAIL/ERROR rows in CIDB against 306,527 rows at this sha.

The 163 skips are scoping rather than lost signal: each carries a self-describing reason
(Not affected by the changed files and not required, Skipped: only CI scripts changed,
No tests selected for this change, not labeled 'pr-performance', not a bug-fix PR,
reused from cache), and the diff is a single CI script,
ci/jobs/scripts/integration_tests_configs.py. Style check, Code Review,
PromQL Compliance, Build profile diff and all three builds ran green.

Session id: cron:our-pr-ci-monitor:20260823-023000

@alexey-milovidov alexey-milovidov self-assigned this Aug 28, 2026
@alexey-milovidov
alexey-milovidov added this pull request to the merge queue Aug 28, 2026
Merged via the queue into ClickHouse:master with commit 2bd35e9 Aug 28, 2026
359 of 360 checks passed
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Aug 29, 2026
@groeneai

Copy link
Copy Markdown
Collaborator Author

This change left a residual that I do not think I should pick a fix for on my own, so here is what I measured.

Integration tests (amd_asan_ubsan, db disk, old analyzer, 5/6) hit the 7200 s session timeout on master tree 003d95fa079e0cf53e1babdfda32568a6e7648d5, 41 commits past the merge commit, with 860 passed / 25 skipped and no real test failures. Since the merge, shard 5 is the only unhealthy shard of the six: 19 trees, 1 timeout, 2 with real failures, against 0 of 14 to 20 trees on each of the others.

What this PR did and did not do. Coverage went from 27.4% to over 99% of measured wall-clock mass, and that part holds: the packer now prices the six shards to within 1.3% of each other. What it did not do is make the price correct. Measured on that tree, the priced spread is 3.5% and the real spread is 24.7%: shards 1 to 4 carry 17108 to 18538 test-seconds, shard 5 carries 21761. One model fits all five arms, wall = test_seconds / 2.92 for 3 workers at 97.3% utilisation, predicting the measured leg times to within 0.6%. The 7200 s bound is about 21024 test-seconds.

Why shard 5. Eight multi-node cluster-starting suites moved onto it from four different origins, and their cost there inflated 1.5x to 6.8x with identical test counts, so this is not staleness or added tests. The inflation is ordered by how startup-dominated a suite is: a 1-test cluster suite goes 25 s to 167 s, while a 96-test work-dominated suite does not move at all. That is the mechanism you described in eb8874234f62 for this same job, concurrent startup saturating the host and timing out co-scheduled tests.

It is not the memory-thrash shape: that node stalls 1.71 s, 0% of runtime, against 72% and 80% on the hung jobs, so #112984 does not cover it. The timeout leg also has no crashed or replaced worker, unlike the two trees that produced real test failures.

The part that decides the fix. I tried the input-side levers first and both fail by measurement, because LPT equalises the priced weight by construction, so changing its inputs gives a different set of modules at the same price rather than a lighter worst shard.

  • Marking those suites sequential in TEST_CONFIGS moves shard 5 by 16 seconds. Replaying the real get_optimal_test_batch on that tree, LPT spreads the six suites over sequential batches 1, 2, 3, 4, 5, 5 and their weights reseed the parallel packing, so batch 5 churns 278 paths and lands at 16194 s priced against 16210 s before. Control: the unmodified arm reproduces the real shard-5 module list exactly, 173 of 173.
  • Repricing at p90 is not enough either. Six batches under perfect p90 balance already sit at 92.9% of the budget, and p90 does not bound shard 5 anyway: 21761 measured against a 19291 price, while it bounds shards 1 to 4.

So the levers that deterministically reduce the worst shard both cost something I should not spend for you:

  1. A seventh batch. One token in integration_test_jobs_required, and it takes p90 mass per shard from 92.9% to 79.6% of the budget. But this job set is required, so it is one more runner on every PR rather than only on master; you reverted 8 to 6 here before; and it renames every shard from N/6 to N/7, which resets the CIDB history keyed on check_name.
  2. A larger session budget for this job. args.session_timeout is already plumbed, and 8400 s clears the measured 7417 s with 12% margin while typical shards finish at 5839 to 6354 s. But it accepts the 24.7% imbalance permanently and lengthens the worst-case leg.

I would not revert this PR: that restores a table that hid 19.4% of the measured mass, and the residual is the contention term the coverage work exposed rather than a regression in it.

Tell me which of the two you want and I will send it. If you would rather fold it into what you already have open, that works too and I will leave it alone.

One observation I am not filing: on the two trees with real test failures, a replacement xdist worker starts a fresh session and so re-runs the session-scoped cleanup_environment, which kills containers host-wide and takes out the surviving workers' live clusters. Both show gw0 dying at 99% peak RAM, which is the containment family #112984 already covers.

@alexey-milovidov

@groeneai

Copy link
Copy Markdown
Collaborator Author

A second, independent symptom of the same overcommit, measured today, because it bears on the choice above.

Integration tests (amd_asan_ubsan, db disk, old analyzer, 6/6) is red on 13 of 13 true-master trees that contain #117202, while 2/6, 5/6 and amd_tsan, 2/6 were cleared by it outright (0 of 13, 0 of 13, 0 of 14; true master only, each tree's arm from compare/7fc3004ed25a...<sha>). The row is Container memory budget exceeded (/docker), and nothing else fails: the praktika result for master 619fe300f6ce carries 1214 leaves and that row is the only non-OK one, with 1189 passed, 23 skipped from pytest.

What the kernel records at the four kills in that job, from the dmesg-follow.log it uploads:

anon share
33 clickhouse processes 35.5 to 37.3 GiB 88 to 93%
1 gdb 2.25 to 3.95 GiB 6 to 10%
minio, nginx, python3, bash 0.7 GiB 2%

Total anon 40.2 GiB against the 40.78 GiB /docker cap. Two things follow. #117202 does exactly what it set out to do: never more than one gdb is alive in any of the four tables. And the shard's ordinary container population already holds 90% of the budget it is given, so the one remaining debugger does not fit. It is the victim all four times, so the stack dump it exists to produce is never produced. Those 33 servers are about 4 live compose networks, i.e. the normal concurrency of three xdist workers here, not leaked clusters.

So this shard is over its container budget in the same way it is over its session budget, and I do not think I should choose between the levers on my own:

  • a 7th batch, which lowers the mass per shard and the concurrent container count together, at the cost of one more runner on every PR and a check_name rename that resets history;
  • a larger session budget, which addresses the timeout but not the memory, since concurrency is unchanged;
  • skipping the shutdown stack dump when the leaf cannot hold it. That stops the breach and costs nothing on this shard today, since the dump is killed every time, but it gives up the dump on a genuine shutdown hang, and the decision has to come from the harness rather than the entrypoint because the budget is a property of the whole shard and not of one container.

I will implement whichever you prefer. My own preference is the 7th batch, because it is the only one that moves the memory and the wall-clock at the same time.

rorylshanks pushed a commit to rorylshanks/ClickHouse that referenced this pull request Sep 12, 2026
`Integration tests (amd_asan_ubsan, db disk, old analyzer, 5/6)` reported
`Timeout` on master with `xdist.dsession.Interrupted: session-timeout: 7200.0
sec exceeded` after `974 passed, 10 skipped ... in 7360.29s`. Nothing failed
and nothing hung - the longest quiet gap in the whole run was 136 s - the batch
simply held more work than the two-hour pytest `--session-timeout` allows, and
was cut off with 20 of its 1004 modules still to go.

This is chronic rather than a one-off. Over the last three weeks the six
old-analyzer batches reported `Timeout` 133 times between them, on every one of
the six. The job is required on every pull request, on master and on backport
branches, so each occurrence is a red required check on an unrelated change.

The cause is capacity, not balance. The integration suite measures about 112000
test-seconds; six batches of three xdist workers can absorb at most 129600, so
the packing runs at 86% of the budget on average and the heaviest shard lands at
119.7 of the 120 available minutes. Scoring `get_optimal_test_batch` over the
1139 modules actually in `tests/integration/`, weighted by per-module
`sum(test_duration_ms)` measured on the failing commit itself, reproduces the
failure exactly: batch 5 of 6 - the batch that timed out - is the heaviest, at
100% of budget. At eight batches the heaviest shard is 82 minutes, 68% of the
budget, and the measured spread across shards narrows from 1.24 to 1.09.

Batches are the right lever rather than a longer timeout. Aggregate compute is
unchanged, because the work is the same and only the parallelism differs, so the
only cost is one more per-batch setup (about 3 minutes) - and the job returns its
answer 25% sooner than it does today.

Both ASan flavors move together. `integration_test_asan_master_jobs`
(`amd_asan_ubsan, db disk`, release branches) runs the same suite with the same
worker count against the same budget and sits at the same 96-103 minutes per
shard, so the measurement that rules out six for one rules it out for the other;
it has simply had far fewer runs in which to show it since ClickHouse#116591 took it from
four to six. The shared count now lives in `ASAN_IT_NUM_BATCHES` so the two
cannot drift apart.

`CORE_BLOCKING_JOB_NAMES` selects these jobs by substring, so the blocking gate
picks up all eight batches with no change.

While measuring this: `TEST_DURATIONS` in
`ci/jobs/scripts/integration_tests_configs.py` sums to about 97000 test-seconds
against a measured 112000, so the packer reports every shard as evenly packed
(printing weights of `[5384, 5384, 5384, 5384, 5384, 5383]` for a run whose real
shards ranged over 97 to 120 minutes). Refreshing that table is separate
periodic maintenance - it is documented as such, and it repacks every
integration flavor at once - so it is left for its own change. Eight batches
hold with the table as it is.

CI report:
https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?REF=master&sha=417aa9966eed1467f418da9b4deae15ef020c5f3&name_0=MasterCI&name_1=Integration%20tests%20%28amd_asan_ubsan%2C%20db%20disk%2C%20old%20analyzer%2C%205%2F6%29

Related: ClickHouse#116591
Related: ClickHouse#115963

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

can be tested Allows running workflows for external contributors groeneai-origin-ci-own-pr PR origin: CI on a groeneai PR exposed a separate defect manual approve Manual approve required to run CI pr-ci pr-synced-to-cloud The PR is synced to the cloud repo

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants