Repository navigation
test(backend): preserve committed partial-pull leases across stores (PL-194) - #24145
Git-on-my-level wants to merge 1 commit into
Conversation
Port PL-194 into the shared scheduler/Store matrix and existing emulator proof lane. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Folded into survivor #24591 ( Carried as-is: |
|
Hey @Git-on-my-level 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
A multi-item scheduler pull must hand the worker every lease already committed even if a later transaction fails. PL-194 now exercises that contract through the real Scheduler and simulator, loopback Firestore, and local Postgres Store implementations.
The new matrix injects unexpected failure or typed contention exhaustion after the real pull body buffers a lease. It covers first/third-item failure, legacy selection and shard claims, rollback of job/queue/service state, token fencing, cooldown, overlapping pulls, restart before job-lease expiry, and eventual exactly-once completion at attempt one. Namespaced fixture cleanup now includes pull claims. The existing emulator-proof runner executes the suite and requires sim/emulator; no new workflow.
Validation:
OMI_REQUIRE_STORE_BACKENDS=all, Firebase demo project, offline providers): 30 passed, zero skipped/xfail.OMI_PR_BODY_FILE=<body> make preflight: all 33 selected checks pass.Architecture acceptance: KB projects/backend-target-architecture/plan-a-job-store.md (daily parity 2026-10-31), parity ledger PL-194. Source mechanism: #23915. Existing old-only unit checks are extended to a shared migration guard; this open PR earns no completed parity until merged.
Product invariants affected: none (test/harness-only).
UI-Evidence: none -- test/harness-only, no UI change.
Failure-Class: none
This adds conformance coverage to the existing scheduler contract without changing a runtime failure path.
CI: the exact-head emulator proof passes all 30 new parameters on three stores, with zero skips/xfails. See the current checks on this PR for complete qualification.
🤖 Generated with Claude Code