Skip to content

tests(bigtable): improve flaky tests - #19229

Merged
parthea merged 3 commits into
mainfrom
bigtable_fix_test_flakes
Nov 26, 2026
Merged

parthea merged 3 commits into
mainfrom
bigtable_fix_test_flakes

Conversation

@daniel-sanche

Copy link
Copy Markdown
Contributor

Improves a couple bigtable flakes I ran into:

  • sends a test request to newly created tables in sample tests, and retries if they are still spinning up
  • in mutation batcher tests, wait on flush timer before making assertions, instead of a single event loop yield

@daniel-sanche
daniel-sanche requested a review from a team as a code owner November 26, 2026 01:39

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request updates the synchronous and asynchronous Bigtable hello samples to wait for table creation to propagate to the data plane by executing a read_row call that retries on FailedPrecondition. Additionally, it updates the mutations batcher unit tests to wait explicitly on the flush timer rather than yielding to the event loop. The reviewer recommends also catching and retrying on NotFound (404) errors during table propagation to prevent potential test flakiness.

@parthea
parthea merged commit ca45a87 into main Nov 26, 2026
86 checks passed
@parthea
parthea deleted the bigtable_fix_test_flakes branch November 26, 2026 17:38
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