Skip to content

test(backend): stub record_audio in the merge validation fixture (main red, shard 7) - #26161

Merged
Git-on-my-level merged 1 commit into
mainfrom
lane/merge-validation-stub
Nov 23, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
lane/merge-validation-stub

Conversation

@Git-on-my-level

@Git-on-my-level Git-on-my-level commented Nov 23, 2026 •

Copy link
Copy Markdown
Member

What changed and why

Main has been red on Backend unit shard 7 since #26135 (4729587c). Every case in tests/unit/test_merge_validation.py errors at setup:

ImportError: cannot import name 'get_firestore_client' from 'database._client'

#26135 added from database.record_audio import fence_record_audio_removal to utils/conversations/merge_conversations.py. That fixture loads the module against a stubbed database._client that carries only db, so the real database.record_audio → pipeline_ledger chain can't import. The pure validation functions under test never call the fence, so the fixture now stubs database.record_audio the same way it stubs the other persistence modules. Test-only; no production code changes.

This blocks the backend roll that carries #26129 (Play Billing server side), which is needed today for the Android test purchase before the Google resubmission.

Verification

From backend/, each file in its own process, as CI runs them:

  • tests/unit/test_merge_validation.py: 50 passed. The unfixed file gives 50 errors.
  • tests/unit/test_merge_conversations_canonical_delete.py: 18 passed.
  • tests/unit/test_conversation_smart_merge_flatten.py: 103 passed.

Rollback: revert this PR.

Failure class (fixes)

Failure-Class: none

🤖 Generated with Claude Code

View guided diff Turn on auto-fix

#26135 made merge_conversations import database.record_audio at module
scope. The fixture's database._client stub only carries db, so every
test_merge_validation case errored at setup and Backend unit shard 7
went red on main at 4729587. Stub the fence module like the other
persistence imports; the pure validation surface never calls it.

Failure-Class: none

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

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

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-23T17:50:25.223621Z e44bb1a 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

Copy link
Copy Markdown
Member Author

Panel review review-20261123t174637-9c41 at e44bb1a98c: SHIP from 2 of 3 members (luna, glm-flash), no findings. deepseek is still pending and gets collected later. Test-only change.

@Git-on-my-level
Git-on-my-level merged commit 61ddb88 into main Nov 23, 2026
70 checks passed
@Git-on-my-level
Git-on-my-level deleted the lane/merge-validation-stub branch November 23, 2026 18:04
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