Repository navigation
Conversation
The batching assertion reads the query log. An all-log flush can time out on a trace log that the assertion never reads. Signed-off-by: Lareb Zafar <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This was referenced Nov 25, 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: #1487
Changelog category
Changelog entry
Omitted for a test-only change.
Why
The Postgres batching test flushes every system log before it reads
system.query_log. A trace log flush can time out after all 20 writes have already reached ClickHouse. Failed Postgres 18 storage jobScope and risk
Flush the query log that supplies the assertion. The test still checks that all 20 rows reached ClickHouse and that the publisher used fewer than 20 inserts.
Compatibility, rollout and rollback
Operator steps are unnecessary. Revert the test commit to roll back.
Tests
pytest -q tests/integration/test_pg_authority.py::test_writes_made_together_share_their_clickhouse_insertson clean main using ClickHouse 26.11.2.4 and Postgres 18. A temporary materialized view on the private trace log delayed its writes and reproduced the CI error, code 159. The same test passed after the change while the trace log was still delayed.make format-check lint typecheckpassed locally. The full suites run in CI.AI assistance in the code
AI-generated. Codex wrote the test change and ran the checks above.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
Note
Low Risk
Test-only change that targets one integration assertion; no production behavior.
Overview
Fixes a CI flake in
test_writes_made_together_share_their_clickhouse_insertsby narrowing the ClickHouse flush before countingpg_batch.flushinserts.The test now runs
SYSTEM FLUSH LOGS query_loginstead of flushing every system log. Onlysystem.query_logis needed for the assertion, so unrelated trace-log flushes (which could time out after data was already published) no longer fail the run.Reviewed by Cursor Bugbot for commit ec8cbfd. Bugbot is set up for automated code reviews on this repo. Configure here.