Skip to content

Qualify existing Firestore outbox wake/coalescing contract failures across store backends #23559

Open

Description

@Git-on-my-level

The daily parity run found three existing Firestore-outbox conformance failures at main a6f9d31. They reproduce with the original untouched test file and are independent of the new PL-002/003/004 tests. Postgres and simulator pass the full outbox matrix.

Existing tests:

  • backend/tests/integration/test_outbox_conformance.py::test_enqueue_without_tx_commits_then_creates_its_own_wake[emulator]: coalescing to a later due time returns no fresh token, while the shared test expects a new wake token and its new due time. Determine whether Firestore's retained early-wake semantics or the interface contract must change; do not silently count this as parity.
  • ...::test_a_failed_wake_leaves_the_row_pending_and_sweep_retries_it[emulator]: the injected wake creator raises out of nontransactional enqueue after durability, unlike the no-raise contract exercised on Postgres and the simulator.
  • ...::test_blocked_owner_is_discarded_on_delivery_and_by_sweep[emulator]: the same enqueue exception prevents the privacy-sweep setup from reaching its assertions.

One separate unchanged Store case also fails locally: test_concurrent_read_modify_write_never_loses_an_update[emulator], transaction lock timeout after five attempts. This is a qualification limitation, not a diagnosed production root cause; keep it separate from the wake-contract decision.

Full matrix: 175 passed, 4 failed, 4 backend-inapplicable skips, 3 issue-linked xfails from #23558. An isolated rerun of the four original main cases fails all four. The new focused parity cases are 9 passed, 3 strict xfailed, no skips. Real throwaway Firestore emulator and local Postgres; no production data or credentials used.

Recommendation: Plan A owner resolves the Firestore wake/coalescing interface contract and repairs the adapter or documents a reviewed contract change, then reruns all backends with OMI_REQUIRE_STORE_BACKENDS=all. Existing failing tests are left unchanged by the daily parity PR; only three selected daily rows are being ported. There is no claim of a green full conformance gate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions