Skip to content

fix(conversations-v3): import Home commit-stamp fields without loading the Firestore hook (main red after #25734) - #25739

Merged
Git-on-my-level merged 1 commit into
mainfrom
fix/v3-readback-import-cycle
Nov 19, 2026
Merged

Git-on-my-level merged 1 commit into
mainfrom
fix/v3-readback-import-cycle

Conversation

@Git-on-my-level

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

Copy link
Copy Markdown
Member

Summary

Main went red after #25734. database/conversations_v3.py imported COMMIT_STAMPED_FIELDS from database/home_feed_writer.py, which imports google.cloud.firestore_v1.types at load time. That put the import on the chain routers/conversations → v3 summary → conversations_v3 → home_feed_writer.

Isolated-router unit tests stub google.cloud.firestore_v1 as a plain module, not a package, so they fail with ModuleNotFoundError: ... 'google.cloud.firestore_v1' is not a package. The affected files:

  • test_conversations_date_range_validation
  • test_conversations_merge_duplicate_guard
  • test_dev_api_lock_bypass
  • test_lock_bypass_fixes
  • test_recovery_rule_skip

PR CI is graph-selected, so #25734 never ran them.

Production is unaffected, because the real package is installed.

Change

  • Move the constant to a new import-free module, database/home_feed_fields.py.
  • home_feed_writer re-exports it, so existing references keep working.
  • conversations_v3 imports it from the new module.

Verification

All five files above pass locally, along with test_conversations_v3_commit_readback and test_conversations_v3_claim_growth.

Failure-Class: none
UI-Evidence: none -- backend import-only change

🤖 Generated with Claude Code

…an import-free module

#25734 made conversations_v3 import home_feed_writer, which loads
google.cloud.firestore_v1.types; isolated-router tests stub firestore_v1 as
a non-package and fail. Production is unaffected.

Failure-Class: FC-partition-depends-on-arrival-order

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

Copy link
Copy Markdown
Codex Review Summary: ❌ Failed

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

Review Status Commit Review trigger
📝 Code Review ❌ Failed 2026-11-19T01:03:28.142883Z
We couldn’t complete this review. Comment @codex review to try again.
aa84a9c 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.

@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.
To continue using code reviews, add credits to your account and enable them for code reviews in your settings.

@Git-on-my-level
Git-on-my-level merged commit b39ae02 into main Nov 19, 2026
68 of 70 checks passed
@Git-on-my-level
Git-on-my-level deleted the fix/v3-readback-import-cycle branch November 19, 2026 01:14
Git-on-my-level added a commit that referenced this pull request Nov 19, 2026
…changes (#25739 follow-up) (#25742)

## Summary
This is the follow-up from the #25739 panel
(review-20261119t010333-6394, findings F1 and F3).

**F1.** A change to `backend/database/conversations_v3.py`,
`conversations_v3_processing.py`, `home_feed_writer.py` or
`home_feed_fields.py` now selects the five isolated-router tests that
#25734 broke without CI noticing:
- `test_conversations_date_range_validation`
- `test_conversations_merge_duplicate_guard`
- `test_dev_api_lock_bypass`
- `test_lock_bypass_fixes`
- `test_recovery_rule_skip`

These tests load `routers.conversations` fresh with
`google.cloud.firestore_v1` stubbed as a non-package. The import graph
never selects them for those modules, which is how main went red. The
mapping is a new `AREA_TESTS` entry in
`scripts/select_backend_unit_tests.py`.

**F3.** `home_feed_writer` no longer re-exports `COMMIT_STAMPED_FIELDS`.
The readback test now imports it from `database.home_feed_fields`, so it
has a single import path.

## Verification
- `select_backend_unit_tests.py --changed-files` with only
`backend/database/conversations_v3.py` now selects all five.
- `test_conversations_v3_commit_readback` passes.

Failure-Class: none
UI-Evidence: none -- backend CI selection and import path only

🤖 Generated with [Claude Code](https://claude.com/claude-code)


<!-- This is an auto-generated description by cubic. -->
<a
href="https://cubic.dev/pr/BasedHardware/omi/pull/25742?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/25742?returnTo=https%3A%2F%2Fgithub.com%2FBasedHardware%2Fomi%2Fpull%2F25742&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. -->
shubhxho pushed a commit to shubhxho/omi that referenced this pull request Nov 19, 2026
…eed changes; drop the re-export (BasedHardware#25739 panel)

Failure-Class: none

Co-Authored-By: Claude Opus 5.5 <[email protected]>
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