Repository navigation
fix(sync): do not unstage GCS blobs after Cloud Tasks enqueue - #9252
Merged
Merged
Conversation
Gate _delete_staged_blobs_async on dispatch failure only and isolate post-enqueue local cleanup so shutil.rmtree errors cannot unstage blobs the handler still needs. Closes #9235 Verification: cd backend && python3 -m pytest tests/unit/test_sync_cloud_tasks.py tests/unit/test_sync_v2.py -v -k post_enqueue cd backend && python3 scripts/check_workflow_contracts.py Co-authored-by: Cursor <[email protected]>
Router import in the new regression test exceeds the fast-unit CPU guard. Co-authored-by: Cursor <[email protected]>
This was referenced Jul 8, 2026
kodjima33
approved these changes
Jul 8, 2026
kodjima33
left a comment
Collaborator
There was a problem hiding this comment.
backend bug fix conf 5/5: gate blob unstaging so enqueued Cloud Tasks retain staged GCS blobs, test+contract, CI green
Git-on-my-level
added a commit
that referenced
this pull request
Jul 9, 2026
## Merge order & dependencies | PR | Dependencies | |----|--------------| | 9250 | None — **merge first** (unblocks CI) | | 9252 | None — parallel with #9253, #9254 | | 9253 | None — parallel with #9252, #9254 | | 9254 | None — parallel with #9252, #9253; **#9255 should merge after this** | | 9255 | Merge after #9254 (registers teardown tests). Merge after #9250 recommended. | | 9256 | Independent code PR; **PR6b prod deploy** after merge. Related #9255 not blocking. | | 9257 | **Draft.** Merge after #9255 (workflow contract CI). | | 9258 | **Draft.** Independent; merge after wave 1. | | 9260 | **Draft.** Independent; merge after wave 1. | | 9261 | **Draft.** Merge after wave 1; **PR10c** proxy routing follow-up optional. | ## Summary - Register `listen_pusher_pipeline` in `workflow_contracts.json` including PR4 teardown test. - Run `check_workflow_contracts.py` from pre-push and `backend-checks.yml` static-contracts; extend detect-changes. Related: #9194 ## Test plan ```bash cd backend && .venv/bin/python scripts/check_workflow_contracts.py cd backend && .venv/bin/python -m pytest tests/unit/test_workflow_contracts.py -v # 5 passed ``` Merge with a **regular merge** (no squash). Closes #9238 Made with [Cursor](https://cursor.com) <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/9255?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="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a> <!-- End of auto-generated description by cubic. -->
Git-on-my-level
added a commit
that referenced
this pull request
Jul 9, 2026
## Merge order & dependencies | PR | Dependencies | |----|--------------| | 9250 | None — **merge first** (unblocks CI) | | 9252 | None — parallel with #9253, #9254 | | 9253 | None — parallel with #9252, #9254 | | 9254 | None — parallel with #9252, #9253; **#9255 should merge after this** | | 9255 | Merge after #9254 (registers teardown tests). Merge after #9250 recommended. | | 9256 | Independent code PR; **PR6b prod deploy** after merge. Related #9255 not blocking. | | 9257 | **Draft.** Merge after #9255 (workflow contract CI). | | 9258 | **Draft.** Independent; merge after wave 1. | | 9260 | **Draft.** Independent; merge after wave 1. | | 9261 | **Draft.** Merge after wave 1; **PR10c** proxy routing follow-up optional. | ## Summary - Wire `MCP_OAUTH_CLIENTS_JSON` / `MCP_OAUTH_CLAUDE_*` into `runtime_env.yaml`, Helm secrets, and prod backend-listen values. - Extend `smoke_mcp_chatgpt_review.py` authorize checks, add `check_mcp_oauth_deploy_contract.py`, and gate `pre-deploy-check.sh`. - Remove stale `("oauth_client_id", "omi")` automation fallback in `MemoryExportService.swift`. **Deploy follow-up (PR6b):** run backend-listen prod deploy + `smoke_mcp` after merge (requires deploy credentials; not done in this PR). ## Test plan ```bash cd backend && .venv/bin/python scripts/check_mcp_oauth_deploy_contract.py cd backend && .venv/bin/python -m pytest tests/unit/test_mcp_oauth.py -v -k claude # 1 passed ``` Merge with a **regular merge** (no squash). Closes #9149 Closes #8537 Made with [Cursor](https://cursor.com) <!-- This is an auto-generated description by cubic. --> <a href="https://cubic.dev/pr/BasedHardware/omi/pull/9256?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="Review in cubic" src="https://www.cubic.dev/buttons/review-in-cubic-dark.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.
Merge order & dependencies
Summary
_delete_staged_blobs_asyncso post-enqueue local cleanup failures do not delete staged blobs while a Cloud Task is still pending.workflow_contracts.jsoninvariant for enqueued jobs retaining staged blobs until handler completion.Test plan
Merge with a regular merge (no squash).
Closes #9235
Made with Cursor