Repository navigation
Conversation
General health permits recording mode while the bot identity check requires the serving process to have read enforced mode. Wait for that process to report the transition before provisioning. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Use a short-lived readiness client with bounded connect and read timeouts. Ignore a heartbeat that arrives after the preparation deadline. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Open the heartbeat client within the existing readiness poll. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
This was referenced Dec 3, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related: #2057
Related: #2067
Changelog category
Changelog entry
Not required.
Why
The prepared-bot test can start provisioning after general health turns ready while the first cell's web process still reads recording mode. The bot identity endpoint requires enforced mode and returns
cell_unavailableduring that window.Scope and risk
Wait for the web process reached through the router to report enforced mode in its ClickHouse heartbeat. The fixture opens the heartbeat client within the readiness poll, so a transient ClickHouse connection error can be retried. Each request uses short timeouts and the fixture checks the original deadline before accepting the heartbeat. The test still proves both keys through the public router and checks registration, audit, and owned cleanup.
Compatibility, rollout and rollback
Tests
LOOM_ENV_FILE= .venv/bin/python -m pytest -q tests/integration/test_cell_prepared_bot_native.py::test_normal_prepared_later_cell_proves_both_bootstrap_keys.make lint,make typecheck, and the changed file's Ruff format check passed on the tested commit.AI assistance in the code
Checklist