Repository navigation
test(backend): load summary database dependency during fixture setup - #23025
Merged
Merged
Conversation
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. |
Git-on-my-level
added a commit
that referenced
this pull request
Oct 21, 2026
During a partial batch ramp, a single catch-up owner can dominate the
hash cohort. New sync uploads and recording reservations now keep owners
with more than 30 open items or six hours of waiting, active and
incoming audio on legacy. Existing batch receipts and native recording
owners retain their dispatcher and drain normally.
The shared pure predicate ships on, with
`BATCH_PIPELINE_RAMP_EXCLUDE_HEAVY_OWNERS=off` as its kill switch.
Bounded metadata reads fail to legacy on unknown load.
`omi_batch_ramp_heavy_owner_excluded_total{reason}` reports excluded
admission decisions without account labels. Percent-zero explicit
qualification and the separate 100%/heavy-owner step retain their
existing semantics. No deploy, runtime env change or `.github` edit is
included.
Validation: focused `backend/test.sh` run via `omi-heavy run -- nice -n
19`, with a path-list file and four workers: 899 tests passed across 15
owner-load, intake, native recording, live-preview, shadow, privacy,
metric-retention, admission-regression, Firestore query and
summary-delivery suites after integrating current main. Workspace
rollout suite: 407 tests passed, including synthetic run-24/run-25
admission replay and the unchanged real-loss gate. Pinned Pyright
reports zero errors. The owning slow-guardrail runner passed 2,047
tests. Review round two returned SHIP; the reviewed ramp
predicate/reader are unchanged by the main integration. This is hermetic
admission/query evidence; staging traffic soak and production acceptance
remain lead-owned.
Main includes the independently reviewed test-only repair #23025 for a
cold database import charged to the unit call CPU guard. Its
real-dependency fixture preserves all assertions and the 1-second
budget; no budget or allowlist was changed.
Review fixes: unknown or invalid upload bounds fail closed to legacy,
including desktop WALs without timestamps; existing legacy custody
receives a legacy policy, while accepted batch custody keeps draining.
Regression tests exercise the actual sync route and all three bounded
metric reasons.
Product invariants: INV-DATA-1 — reads use the existing data-plane
client and explicit stage namespaces. Accepted custody never transfers
to legacy under a later owner-load decision.
Failure-Class: none
Failure-Class-Reason: This adds the approved typical-user admission
cohort contract; no failure-class definition or workflow changes are
introduced.
Line-Count-Exception: backend/routers/sync.py | 3863 -> 3881 | Keep the
admission filter and durable-owner override at the existing sync route
boundary.
Line-Count-Exception: backend/database/firestore_index_registry.py |
2187 -> 2196 | Declare both stage-qualified owner-load indexes in the
existing registry authority.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The summary-delivery unit suite crosses its unchanged 1-second call CPU guard when the banked-summary case first imports
database.conversations. Two CI attempts failed at 1.01s and 1.05s, and the normal local runner reproduced 1.18s; all 19 assertions passed each time.Preload that real dependency in a module fixture so the CPU guard measures the merge logic. Import errors still fail setup, all assertions run unchanged, and there are no stubs, threshold, allowlist, production or workflow changes. This urgent independent test-only fix unblocks P19 #23004.
Validation: the normal pinned
backend/test.shfile-list run passed all 19 tests and its unchanged CPU guard underomi-heavy run -- nice -n 19, with four workers. Requiredmake preflightpassed 31 checks under the same wrapper. The earlier scratch-only preload probe is separate diagnostic evidence.Failure-Class: none
Failure-Class-Reason: Test dependency setup only; no production behavior or failure-class contract changes.