Skip to content

Resolve flaky firestore tests #17428

Closed

Description

@ohmayr

The Firestore watch/listener system tests (test_watch_document, test_watch_collection, test_watch_query, and test_watch_query_order) currently rely on hardcoded sleep(0.2) delays and polling loops to coordinate snapshot updates.

These delays are fragile, highly susceptible to environmental latency/slow networks, and can cause test flakiness. We should investigate replacing these arbitrary polling loops with a robust, event-driven synchronization mechanism (e.g., using threading.Event or callback signals) that yields immediately upon receiving the expected snaps.

Activity

  1. added
    type: bug
    triage me
    on Jun 11, 2026
  2. changed the title [-]Investigate fragile sleep/polling delays in Firestore watch system tests[/-] [+]Resolve flaky firestore tests[/+] on Jun 11, 2026
  3. self-assigned this
    on Jun 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

triage metype: bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions