Skip to content

Fix three python tests.#6328

Merged
gz merged 2 commits into
mainfrom
0.300-postfix
May 27, 2026
Merged

Fix three python tests.#6328
gz merged 2 commits into
mainfrom
0.300-postfix

Conversation

@ryzhyk

@ryzhyk ryzhyk commented May 27, 2026

Copy link
Copy Markdown
Contributor

Fix three test failures caused by bugs in test code (see commits).

ryzhyk added 2 commits May 26, 2026 15:36
Two new tests in test_delta_input_catchup pause the input connector to modify
and process the input table in lock step. It didn't pause the connector before
the first iteration, introducing a race.

Signed-off-by: Leonid Ryzhyk <ryzhyk@gmail.com>
The semantics of transmitted_records field in output connector metrics has
recently changed to not reset to 0 on view and connecto changes. Update the
test accordingly.

Signed-off-by: Leonid Ryzhyk <ryzhyk@gmail.com>
@ryzhyk ryzhyk requested a review from gz May 27, 2026 00:36
@gz gz added this pull request to the merge queue May 27, 2026

@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.

LGTM. Two clean test-only fixes.

test_delta_input_catchup: removes the pause_before_first_round flag and always pauses the connector before each round (including the first). This closes the race where the connector could begin polling the new commits before the test asserted the pre-round counter values \u2014 simpler and strictly more deterministic than the previous conditional.

test_silent_bootstrap_enterprise: updates expected transmitted_records from 0/1 (delta) to monotonically accumulated totals, matching the recent semantics change where output connector metrics are no longer reset on view/connector changes. The new 2 * expected_processed_records math for the post-non-silent-bootstrap restart is correct (every accumulated record gets retransmitted once on the non-silent restart). Inline comments are a nice touch.

Merged via the queue into main with commit d777534 May 27, 2026
1 check passed
@gz gz deleted the 0.300-postfix branch May 27, 2026 08:51
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