Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.
Python aicode-complexitycode-healthcode-intelligencecode-qualitydead-codedeveloper-toolsdocumentationgit-analyticsmcpopen-sourcepythonrefactoringstatic-analysistechnical-debt
fix(coverage): read the cached test-reach walk through the shared index-stamp cache (#4158)
Raghav Chamadiya7c459183c30d
diff --git a/packages/core/src/repowise/core/analysis/test_reachability.py b/packages/core/src/repowise/core/analysis/test_reachability.pyindex 5fb1e560e..8c1a97e16 100644--- a/packages/core/src/repowise/core/analysis/test_reachability.py+++ b/packages/core/src/repowise/core/analysis/test_reachability.py@@ -456,13 +456,12 @@ async def cached_files_reached_by_tests(session: AsyncSession, repo_id: str) ->The Tests page asks this on every load and the answer moves only when anindex run rewrites the graph, so the bulk edge read is paid once per index."""- key = await _cache_key(session, repo_id, "files_reached")+ key = await _cache.key(session, repo_id, "files_reached")if key in _cache:- _cache.move_to_end(key)- return _cache[key]+ return _cache.get(key)test_files = set(await cached_test_files(session, repo_id))view = await call_graph_from_db(session, repo_id)- return _remember(key, frozenset(files_reached_by_tests(view, test_files)))+ return _cache.remember(key, frozenset(files_reached_by_tests(view, test_files)))async def any_tests_reaching(