test: stabilize release validation on develop - #1802
Conversation
There was a problem hiding this comment.
Code Review
This pull request updates the test suite. In tests/test_hybrid_search.py, the test test_closet_preview_exposed_when_boosted is updated with more specific topics, a revised search query, and additional assertions for matched_via and closet_boost. In tests/test_miner_fts5_validation.py, a try-except block is added to catch sqlite3.OperationalError when attempting to write to the FTS5 shadow table, skipping the test if the SQLite build restricts direct modifications. There are no review comments, and I have no feedback to provide.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
There was a problem hiding this comment.
Pull request overview
This PR stabilizes release-validation tests on develop by making two test-harness adjustments for cross-platform SQLite/Windows behavior while keeping the intended coverage for hybrid search and FTS5 corruption validation.
Changes:
- Strengthen
test_closet_preview_exposed_when_boostedto assertcloset_previewonly when the top hit is verifiably closet-boosted (matched_via == "drawer+closet"andcloset_boost > 0). - Skip the fabricated FTS5 shadow-table corruption path when the local SQLite build rejects direct writes to FTS5 shadow tables (instead of failing before corruption can be created).
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| tests/test_miner_fts5_validation.py | Adds a portability skip for SQLite builds that prohibit direct writes to FTS5 shadow tables during corruption fabrication. |
| tests/test_hybrid_search.py | Makes the closet-preview assertion depend on an actually closet-boosted top result to avoid Windows ranking ambiguity. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| (garbage, target[0]), | ||
| ) | ||
| except sqlite3.OperationalError as exc: | ||
| if "may not be modified" in str(exc): |
Summary
This is a small release-polish PR for the current
develophead while preparing v3.4.1.It addresses two test-harness issues found during local release validation:
test_closet_preview_exposed_when_boostedso the expectedcloset_previewassertion is tied to an actual closet-boosted result instead of a borderline fixture that failed on WindowsWhy
The latest
developpush at422edc2is red only on Windows intests/test_hybrid_search.py::TestClosetMetadata::test_closet_preview_exposed_when_boosted. Linux 3.9/3.11/3.13, macOS, and lint passed. The strengthened fixture keeps the intended coverage but removes the Windows-specific ranking ambiguity.The FTS5 change came from local Python 3.9/macOS validation, where the SQLite build reports
table embedding_fulltext_search_data may not be modified. That is a test fabrication limitation, not a product-path failure.Verification
Run from a clean worktree based on
origin/develop(422edc2):Also previously verified the FTS5 portability path under a separate pip-installed Python 3.9 environment: targeted suite passed with the unsupported direct-shadow-write cases skipped.