Repository navigation
Conversation
A pause in the test runner can consume the command cleanup budget while the fake authority prepares its response. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The shared settlement fixture gives the event loop and the cleanup code a virtual clock. Calculate the ownership deadlines on that clock so elapsed runner time cannot extend or shorten the tested budget. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
3 tasks done
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: #2062
Changelog category
CI Fix or Improvement
Why
The Postgres retirement tests use a 40 ms command cleanup budget with fake connections. A runner pause while the fake reads authority metadata can use up that budget before settlement is verified. The timeout reproduces on clean main and on the failed CI merge.
Scope and risk
The settlement fixture and the ownership tests that reuse it read deadlines from the event loop's test clock. Waiting for timers advances time, so cleanup deadlines still expire. The acknowledgment, cancellation, certificate, and no-certificate assertions keep their original bounds.
Compatibility, rollout and rollback
No wire changes or operator steps. Reverting restores wall-clock timing in the tests.
Tests
git diff --checkpass.AI assistance in the code
AI-generated (Codex). The agent reproduced the failures and ran the focused suites and local gates.
Checklist