Repository navigation
Speed up two slow integration tests - #107928
Conversation
`test_ttl_drop_parts_limit`: insert 50 parts instead of 1100 (and lower `max_parts_to_merge_at_once` 123 -> 20), keeping the same assertions. It only needs more parts than the limit so the TTL drop runs in several rounds. `test_fetch_exponential_backoff_with_replicated_tree`: lower the sleepless poll `retry_count` 200 -> 100; the positive case breaks as soon as a task is postponed, the negative case just busy-polls. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
|
Workflow [PR], commit [364be45] Summary: ✅ AI ReviewSummaryThis PR reduces work in two slow integration tests: Missing context / blind spots
Final VerdictStatus: ✅ Approve |
LLVM Coverage Report
Changed lines: No C/C++ source files changed — skipping uncovered code analysis. Newly covered by added/modified tests: 375 line(s), 11 function(s) across 127 file(s) · Details Top files
|
|
@groeneai investigate how Michael optimized these tests and remember (write is down) to do similar things if possible going forward. |
|
I did it by asking claude to do it, so probably not much to learn here :) |
|
Also, on 2/2 tests I had to read the test and intervene, claude's first attempt was no good. Claude did find the slowest tests by looking at test run logs (or something? I didn't actually check, maybe that part was also bs). |
|
@nikitamikhaylov Studied the diff and recorded two reusable patterns for future slow-test work:
General rule we will apply: cut the dominant cost driver while keeping the assertion identical, never relax it. Thanks Michael. |
Two integration tests do far more work than their assertions need.
test_ttl_drop_parts_limitinserted 1100 parts one row at a time (~850s in CI) just to exceedmax_parts_to_merge_at_once. Insert 50 parts and lower the limit 123 -> 20; the assertions (a TTL drop merge hits the limit, all expired parts are dropped over several rounds) are unchanged.test_fetch_exponential_backoff_with_replicated_treebusy-polls with no sleep; the negative case runs the full loop (~155s). Lowerretry_count200 -> 100 (the positive case breaks as soon as a task is postponed).Changelog category (leave one):
Version info
26.6.1.1051