Repository navigation
Conversation
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the
|
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
tests/test_freshness_checker.py— 5 красных тестов, которые не видел ни один гейт.Симптом. На
main(a6524d6,801621d) файл даёт5 failed, 2 passed, но помеченpytestmark = pytest.mark.slowи в дефолтный прогон не попадает.Корень. Тесты читали
indexer.table(LanceDB), а дефолтное хранилище — SQLite:src/core/indexing/indexer.py:146-154создаётSQLiteChunkStore, когдаSearchConfig.sqlite_chunks(src/config/settings.py) истинно (по умолчаниюtrue).Запись шла в SQLite, таблица LanceDB оставалась пустой →
set()вassert "b.py" in set(df["file_path"])и0 == 1в проверке схемы.Это не регресс Цели 1/2: те же 5 падают на до-мержевом
maina6524d6.Fix (только тесты, код не менялся).
_file_rows(indexer, columns)читает слой, который реально использует индексатор;для SQLite агрегирует чанки по
file_path(одна строка на файл).test_store_is_the_default_oneпиннит дефолт (sqlite) — при смене бэкенда падает.slow-маркер: файл занимает 4.2 s и обязан быть в гейте.Доказательства
Планка: было
2507 passed(без этого файла) → стало 2518 passed, 0 failed;slow-тесты больше не прячутся.
Documentation = code
AGENT_DIARY.md— запись со ссылками наsrc/core/indexing/indexer.py:146-154,src/config/settings.py::SearchConfig.sqlite_chunks,src/core/indexing/chunk_store.py::all_records.Risks
test_concurrent_verify_parallelостаётся многопоточным (он был в наборе и раньше,просто не запускался). Прогон файла 3× подряд:
8 passedкаждый (3.15 / 3.12 / 3.16 s).