Skip to content

pytest: fix test_automated_checkpoint_sync1 race against empty initial sync#6552

Merged
abhizer merged 2 commits into
mainfrom
py-fix-multihost-sync-test
Jun 27, 2026
Merged

pytest: fix test_automated_checkpoint_sync1 race against empty initial sync#6552
abhizer merged 2 commits into
mainfrom
py-fix-multihost-sync-test

Conversation

@abhizer

@abhizer abhizer commented Jun 27, 2026

Copy link
Copy Markdown
Contributor

Explicitly wait for a checkpoint with items >= processed.

@abhizer abhizer requested a review from swanandx June 27, 2026 09:31
sync

Explicitly wait for a checkpoint with items >= processed.

Signed-off-by: Abhinav Gyawali <22275402+abhizer@users.noreply.github.com>
@abhizer abhizer force-pushed the py-fix-multihost-sync-test branch from c3a4b4f to 833e219 Compare June 27, 2026 09:55

@mythical-fred mythical-fred left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Clean race fix. The old call to _wait_for_automated_sync() with no anchor would happily return on a stale/empty initial sync that completed before the manual checkpoint became visible — explicitly anchoring against the latest checkpoint whose cumulative processed_records >= processed closes that window. The 2 * ft_interval timeout for _latest_checkpoint is sensible (manual checkpoint(wait=True) should make it visible essentially immediately, and ft_interval=5s gives 10s of headroom).

The test_output_buffer_size_limit.py change is parens-only; no behavioral change.

Signed-off-by: Abhinav Gyawali <22275402+abhizer@users.noreply.github.com>
@abhizer abhizer requested a review from ryzhyk June 27, 2026 15:46
@abhizer abhizer added this pull request to the merge queue Jun 27, 2026
Merged via the queue into main with commit 98228b0 Jun 27, 2026
1 check passed
@abhizer abhizer deleted the py-fix-multihost-sync-test branch June 27, 2026 17:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants