Repository navigation
ci(backend): wire listen/pusher workflow contracts - #9255
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 0f7738f60b
ℹ️ 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".
| "tests/unit/test_pusher_conversation_retry.py", | ||
| "tests/unit/test_transcribe_decisions.py", | ||
| "tests/unit/utils/test_listen_pusher_session.py", | ||
| "tests/unit/test_transcribe_teardown_flush.py" |
There was a problem hiding this comment.
Point the teardown contract at an existing test
This manifest lists tests/unit/test_transcribe_teardown_flush.py, but I checked git ls-files for test_transcribe_teardown_flush.py / teardown_flush and no such test exists. Since select_backend_unit_tests.workflow_contract_tests_for_path() silently keeps only manifest tests present in all_tests, listen/pusher source changes will drop this PR4 teardown coverage instead of running it; point this entry at the actual test or add the missing file.
Useful? React with 👍 / 👎.
Add listen_pusher_pipeline to workflow_contracts.json with hermetic contract tests, run check_workflow_contracts.py from pre-push and the backend-checks static-contracts job, and extend detect-changes so manifest edits trigger the checker. Closes #9238 Related #9194 Verification: cd backend && python3 scripts/check_workflow_contracts.py cd backend && python3 -m pytest tests/unit/test_workflow_contracts.py -v Co-authored-by: Cursor <[email protected]>
The 'Check workflow contracts' step was gated only on has_backend_workflow_contracts, which matches infrastructure files (manifest, checker, CI config) but not contracted source files. Editing a contracted source like projection_repair.py would skip the contract check. Also trigger on has_backend_async_gate (any backend/*.py change) so the checker runs when contracted sources are edited.
0f7738f to
984f609
Compare
|
|
|
Monitor run summary Fixed (Thread 1 — Not actionable (Thread 2 — Prior CI failure: Verification:
|
kodjima33
left a comment
There was a problem hiding this comment.
listen/pusher workflow contracts — approve; modifies .github/workflows (CI supply-chain) so not auto-merging
|
@cursor resolve merge conflicts |
|
Merge conflicts are resolved and pushed. Conflict: Resolution: Kept both:
Verification:
Pushed merge commit |
Resolve detect-changes conflict: keep has_backend_workflow_contracts from this branch and agent-logic-harness trigger from main. Co-authored-by: David Zhang <[email protected]>
## 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. -->


Merge order & dependencies
Summary
listen_pusher_pipelineinworkflow_contracts.jsonincluding PR4 teardown test.check_workflow_contracts.pyfrom pre-push andbackend-checks.ymlstatic-contracts; extend detect-changes.Related: #9194
Test plan
Merge with a regular merge (no squash).
Closes #9238
Made with Cursor