Repository navigation
fix(testing): verify Sync worker fencing under processing hold - #23935
Merged
Merged
Conversation
Make the gauntlet gate explicitly STT-owned and exercise concurrent deliveries with the processing hold enabled and disabled. Verify durable deferred enrichment versus eager full processing, including terminal duplicate delivery. Failure-Class: none 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. |
Register the existing OpenAPI deletion response schemas in the users wire generator and use them in the account-deletion adapter. Preserve the conservative legacy normalization for grace, deadlines, counts and pending deletion acknowledgements. This fixes the sole pre-existing CI failure on the Sync stack gauntlet PR without relaxing the zero-manual-DTO assertion. Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
This reverts commit 4fae5f1. The account-deletion wire-model repair is independent of the Sync gauntlet and is being sent in its own PR to clear the existing main unit failure. Failure-Class: none Co-Authored-By: Claude Opus 5.5 <[email protected]>
Git-on-my-level
added a commit
that referenced
this pull request
Oct 29, 2026
…23936) ## Summary - Generate Dart wire models for the account deletion status, action, and restore responses already defined in OpenAPI. - Decode account deletion API responses through those generated types while preserving legacy aliases and conservative normalization. - Add coverage for generated-backed responses and preserve the existing deletion behavior. This is separate from #23935: it fixes an existing main-branch backend unit failure after the account deletion API changes in #23873 and #23897. `test_app_client_schema_inventory.py::test_inventory_separates_generated_backed_adapters_from_raw_manual_dtos` reported one remaining manual Dart response adapter, `account_deletion.dart`. ## Verification - `backend/test.sh` with `BACKEND_UNIT_TEST_FILE_LIST=tests/unit/test_app_client_schema_inventory.py` under `nice`: 14 passed. - `cd app && flutter test test/unit/backend/http/deletion_contract_test.dart`: 6 passed. - `cd backend && .venv/bin/python scripts/generate_dart_models.py --group users --check`: passed. - `cd app && dart run build_runner build --delete-conflicting-outputs`: completed; no tracked generated-file changes. ## Metadata Product invariants affected: none Failure-Class: none UI-Evidence: none <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/23936?utm_source=github" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img alt="View guided diff" src="https://www.cubic.dev/buttons/review-in-cubic-light.svg"></picture></a> <a href="https://www.cubic.dev/action/auto-fix/pr/BasedHardware/omi/23936?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F23936&source=description" target="_blank" rel="noopener noreferrer" data-no-image-dialog="true"><picture><source media="(prefers-color-scheme: dark)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-dark.svg"><source media="(prefers-color-scheme: light)" srcset="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"><img alt="Turn on auto-fix" src="https://www.cubic.dev/buttons/turn-on-auto-fix-light.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
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 Sync Cloud Tasks concurrency gauntlet must hold paid STT inside the upload worker lease. PR #23919 (merge
0dee519a) deferred full note processing until merge settlement, so waiting for that processor could never enter the gate. Current main already moved the call to STT; this finishes that fixture contract and makes the hold behavior executable.SYNC_PROCESSING_HOLD_ENABLED=truefor normal scenarios. The held concurrency scenario verifies one STT call, Redis fencing before pipeline work and during STT, completed upload/ledger readback, pending conversation hold, and a durable deferred enrichment obligation with zero full-processor calls.Product behavior, worker budgets and CI timeouts are unchanged.
Failure-Class: none
This is test-fixture phase drift after a deliberate product scheduling change; no existing semantic failure class describes it. Why isn't this a shared primitive instead? Both hold modes use the same STT gate and
_assert_full_processing_policyverifier in the existing blocking emulator gauntlet, rather than adding a separate guard. The regression instance is merged PR #23919, with the supplied bisect showing its parent passes and merge fails waiting for the processor gate.Product invariants affected
none (test harness and fixture only)
Validation
test_sync_cloud_tasks_stack_ci_wiring.py,test_sync_stack_postgres_hook.py,test_sync_processing_hold.pyandtest_sync_reprocess_coalesce.py(separate pytest processes).nice -n 10 backend/testing/sync_cloud_tasks_stack/run.sh --state-dir /Volumes/Ephemeral/scratch/gauntlet-holdfix-20261029/full, underomi-heavy(both hold modes, all legacy Sync and batch scenarios, plus 5 passing Firestore shard-spread integration tests).make preflightpassed all 33 selected checks;scripts/pr-preflight --pr-body-filealso passed all 33 checks on commitd3981e1de54.🤖 Generated with Claude Code
Main CI follow-up
The backend unit failure is independent of the Sync gauntlet: main currently fails
tests/unit/test_app_client_schema_inventory.py::test_inventory_separates_generated_backed_adapters_from_raw_manual_dtosbecause account deletion is the remaining manual Dart response adapter after #23873/#23897. The fix is split into PR #23936. This PR excludes the app change; its unit checks need a rerun after the main-branch fix lands.