Repository navigation
test(backend): stub record_audio in the merge validation fixture (main red, shard 7) - #26161
Merged
Merged
Conversation
#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]>
Codex Review Summary: ✅ CompletedThis 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. |
Member
Author
|
Panel review |
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.
What changed and why
Main has been red on Backend unit shard 7 since #26135 (
4729587c). Every case intests/unit/test_merge_validation.pyerrors at setup:#26135 added
from database.record_audio import fence_record_audio_removaltoutils/conversations/merge_conversations.py. That fixture loads the module against a stubbeddatabase._clientthat carries onlydb, so the realdatabase.record_audio→pipeline_ledgerchain can't import. The pure validation functions under test never call the fence, so the fixture now stubsdatabase.record_audiothe 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