Skip to content

tests: fix test_server_reload/test.py::test_change_listen_host flakiness - #101213

Merged
alesapin merged 1 commit into
ClickHouse:masterfrom
azat:tests/test_server_reload
Mar 30, 2026
Merged

alesapin merged 1 commit into
ClickHouse:masterfrom
azat:tests/test_server_reload

Conversation

@azat

@azat azat commented Mar 30, 2026 •

Copy link
Copy Markdown
Member

Previously sync_loaded_config() updates loads_before, but the config can be already reloaded and MainConfigLoads updated, and then configure_from_zk() will wait for MainConfigLoads update and will timeout.

CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=101092&sha=246d165cac385dac5d10b74e71cddf422fec5a5e&name_0=PR&name_1=Integration%20tests%20%28amd_llvm_coverage%2C%205%2F5%29
#101092

Changelog category (leave one):

  • Not for changelog (changelog entry is not required)

Version info

  • Merged into: 26.4.1.426

@clickhouse-gh

clickhouse-gh Bot commented Mar 30, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [30a691f]

Summary: ✅


AI Review

Summary

This PR updates tests/integration/test_server_reload/test.py to make test_change_listen_host less flaky by replacing a coarse sync_loaded_config wrapper with configure_from_zk(zk, localhost_client.query), which synchronizes config-load checks at the point of each ZooKeeper update. I did not find correctness, safety, performance, or compliance issues that require changes.

ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ✅
Safe rollout ✅
Compilation time ✅
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Mar 30, 2026
@azat azat mentioned this pull request Mar 30, 2026
@alesapin
alesapin added this pull request to the merge queue Mar 30, 2026
Merged via the queue into ClickHouse:master with commit 8fd15c5 Mar 30, 2026
160 checks passed
@robot-ch-test-poll1 robot-ch-test-poll1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Mar 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-not-for-changelog This PR should not be mentioned in the changelog 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