Skip to content

Stabilize test_split_cache_system_files_no_eviction test - #112099

Merged
PedroTadim merged 4 commits into
masterfrom
fiz-test-cache
Jul 28, 2026
Merged

PedroTadim merged 4 commits into
masterfrom
fiz-test-cache

Conversation

@PedroTadim

@PedroTadim PedroTadim commented Jul 27, 2026 •

Copy link
Copy Markdown
Member

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):

Fix flaky test_filesystem_split_cache::test_split_cache_system_files_no_eviction.
The baseline System-segment count was sampled straight after wait_for_cache_initialized,
which only reports that the cache became usable while background loading keeps adding
segments, so the baseline was a partially populated snapshot (416 or 467 against a steady
state of 701). The assertion was also two-sided (abs), so it failed when the count grew —
the opposite of what a no-eviction test should check, and the cause of every observed failure.
Both comparison points now sample once the count has settled, and the assertion only fails
on a drop.
Fixes failures like this one https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=111406&sha=6282394660bff978c2f06b63ecfd9f27d28b1e97&name_0=PR&name_1=Integration+tests+%28amd_tsan%2C+3%2F6%29

Closes #112091

Version info

  • Backported to: 26.7.9.8, 26.6.7.9, 26.3.33.82

@clickhouse-gh

clickhouse-gh Bot commented Jul 27, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [5c7e4c7]

Summary: ✅


AI Review

Summary

This PR replaces the count-based check in test_split_cache_system_files_no_eviction with a stable snapshot of concrete System cache segments, then verifies that baseline subset survives both the full table scan and the second restart. That addresses the false-positive mechanism from the linked flaky failure, and I did not find a remaining correctness gap in the current diff.

Final Verdict

Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-ci label Jul 27, 2026
@PedroTadim
PedroTadim added this pull request to the merge queue Jul 28, 2026
Merged via the queue into master with commit abd3bfd Jul 28, 2026
178 checks passed
@PedroTadim
PedroTadim deleted the fiz-test-cache branch July 28, 2026 08:19
@robot-ch-test-poll robot-ch-test-poll added the pr-synced-to-cloud The PR is synced to the cloud repo label Jul 28, 2026
@PedroTadim

Copy link
Copy Markdown
Member Author

Backporting to fix CI

@robot-ch-test-poll3 robot-ch-test-poll3 added pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR labels Sep 14, 2026
clickhouse-gh Bot added a commit that referenced this pull request Sep 14, 2026
Backport #112099 to 26.7: Stabilize test_split_cache_system_files_no_eviction test
clickhouse-gh Bot pushed a commit that referenced this pull request Sep 14, 2026
clickhouse-gh Bot added a commit that referenced this pull request Sep 14, 2026
Backport #112099 to 26.6: Stabilize test_split_cache_system_files_no_eviction test
PedroTadim added a commit that referenced this pull request Sep 15, 2026
Backport #112099 to 26.3: Stabilize test_split_cache_system_files_no_eviction test
kewin-robetti pushed a commit to viasoftkorp/ClickHouse that referenced this pull request Sep 18, 2026
kewin-robetti pushed a commit to viasoftkorp/ClickHouse that referenced this pull request Sep 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-ci pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-synced-to-cloud The PR is synced to the cloud repo v26.3-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Flaky test: test_filesystem_split_cache/test.py::test_split_cache_system_files_no_eviction[split_cache_lru]

3 participants