Skip to content

test(firestore): fix flaky BulkWriter thread tests#34609

Open
aandreassa wants to merge 1 commit into
mainfrom
firestore-bw-flaky
Open

test(firestore): fix flaky BulkWriter thread tests#34609
aandreassa wants to merge 1 commit into
mainfrom
firestore-bw-flaky

Conversation

@aandreassa

@aandreassa aandreassa commented Jun 11, 2026

Copy link
Copy Markdown
Contributor

Assert on individual thread pool executor configuration parameters (max_length) instead of counting the global VM thread list size.

This fixes flakiness caused by:

  • Global active VM thread count instability.
  • Timing race conditions on thread execution lifetimes.

Please note that the original test was checking the sum of both thread pools, and now we are checking each pool individually and directly.

Fixes #34608

Assert on individual thread pool executor configuration parameters
(max_length) instead of counting the global VM thread list size.

This fixes flakiness caused by:
- Global active VM thread count instability.
- Timing race conditions on thread execution lifetimes.

Please note that the original test was checking the sum of both thread pools, and now we are checking each pool individually and directly
@aandreassa aandreassa marked this pull request as ready for review June 11, 2026 20:55
@aandreassa aandreassa requested review from a team and yoshi-approver as code owners June 11, 2026 20:55
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.

Ruby: Address test flakiness in google-cloud-firestore bulkwriter test

2 participants