Repository navigation
Enable David-only batch quarantine recovery - #21843
Git-on-my-level wants to merge 18 commits into
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. |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: d1f5c37bcb
ℹ️ 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".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| BATCH_PIPELINE_RECOVERY_MODE: {value: 'on', category: rollout} | ||
| BATCH_PIPELINE_RECOVERY_UID_ALLOWLIST: {value: vi7SA9ckQCe4ccobWNxlbdcNdC23, category: rollout} |
There was a problem hiding this comment.
Serialize recovery across serving replicas
When this enables recovery on prod backend-integration, the deployment keeps 3–50 instances with CPU unthrottled (.github/actions/deploy-backend-stack/action.yml:805-807), and every instance runs reconcile(recover_quarantine=True) every 20 seconds. The per-segment CAS prevents duplicate work only for the same segment: a replica that encounters another replica's running segment receives held and continues to the next candidate, so several legacy STT calls for David can run concurrently despite the sweep's one-dispatch-per-owner bound. Gate the sweep with a process-external owner/leader lease, or activate recovery only on a singleton worker.
Useful? React with 👍 / 👎.
| BATCH_PIPELINE_RECOVERY_MODE: {value: 'on', category: rollout} | ||
| BATCH_PIPELINE_RECOVERY_UID_ALLOWLIST: {value: vi7SA9ckQCe4ccobWNxlbdcNdC23, category: rollout} |
There was a problem hiding this comment.
Provide an authenticated path for manual recovery
When an operator follows the documented rollout procedure and calls POST /v2/batch-pipeline/reconcile, no configured service can perform this recovery: backend-integration is the only host with recovery enabled, but its BATCH_PIPELINE_WORKER_AUDIENCE and BATCH_PIPELINE_WORKER_SERVICE_ACCOUNT are empty, so verify_configured_cloud_tasks_oidc always returns 403; backend-sync has the required OIDC settings but recovery remains off there. This leaves the advertised bounded/manual reconciliation unavailable and makes the continuously running background sweep the only control path; expose an authenticated recovery endpoint on the enabled host or enable recovery on an appropriately authenticated singleton control host.
Useful? React with 👍 / 👎.
|
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! |
Summary
Declare
BATCH_PIPELINE_RECOVERY_MODEandBATCH_PIPELINE_RECOVERY_UID_ALLOWLISTfor every backend Cloud Run service andbackend-listen, with recovery default-off and an empty allowlist. Enable the gate only on prodbackend-integration, where the serving pump runs, and allowlist David's UID. The backend-listen Helm values declare recovery off/empty to satisfy the runtime-env parity contract; the pusher cohost guard marks both vars listen-only.Purpose: one-time bounded recovery of David's 101 quarantined units, estimated at about 29.9 minutes. The prod gate remains on for future David-cohort quarantines.
Product invariants affected
Failure-Class: none
Validation
origin/mainat50737e86a7b266572d9b6d881a66a888c7d8ec38with merge commitfbf71750f860e730d057c3590bc33743c8a7edd2(no rebase). Regenerated runtime source overlays, composedruntime_env.yaml, passedcompose_runtime_env.py --check, and re-rendered the feature flag registry as of 2026-09-24.backend/test.sh: 227 passed across the five targeted backend unit files, including the reported CI failures and the earlier 41 tests.origin/mainat50737e86: 20 additions, zero removals, and zero changed existing entries. Additions are the recovery pair on four Cloud Run services plusbackend-listenin each environment. The pair is off/empty everywhere except prodbackend-integration, which is on with David's UID.TRANSCRIPTION_SHADOW_ENABLEDis present with the same values in all 7 runtime env maps and all 3 Helm lists where main defines it.