Skip to content

test(backend): load summary database dependency during fixture setup - #23025

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/ramp-pipeline-ci
Oct 21, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/ramp-pipeline-ci

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

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.sh file-list run passed all 19 tests and its unchanged CPU guard under omi-heavy run -- nice -n 19, with four workers. Required make preflight passed 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.

View guided diff Turn on auto-fix

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-21T11:11:59.214703Z cf3ca98 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

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
Git-on-my-level merged commit c29ea5d into main Oct 21, 2026
62 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/ramp-pipeline-ci branch October 21, 2026 11:27
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.
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.

1 participant