Skip to content

Codebase intelligence for AI and humans: code health scores, auto-generated docs, git analytics, dead code detection, and architectural decisions via MCP.

test: drop the removed file_page_top_percentile from two test configs (#1077)

Raghav Chamadiya248ddf35b527
diff --git a/tests/integration/test_generation_pipeline.py b/tests/integration/test_generation_pipeline.py
index caef021db..7b90d0eec 100644
--- a/tests/integration/test_generation_pipeline.py
+++ b/tests/integration/test_generation_pipeline.py
@@ -255,7 +255,10 @@ async def test_embedding_latency_does_not_gate_llm_concurrency():
token_budget=1000,
max_concurrency=2,
embed_concurrency=1,
- file_page_top_percentile=1.0,
+ # 0 is the explicit "every eligible file" answer, which is what this test
+ # wants: the point is concurrency, so no page should be missing because a
+ # size policy trimmed the bucket.
+ max_file_pages=0,
top_symbol_percentile=0.01,
# coverage_pct / max_pages_pct are inert: selection no longer rations by
# coverage. Set here only to exercise the config round-trip.
diff --git a/tests/unit/cli/test_cost_estimator.py b/tests/unit/cli/test_cost_estimator.py
index c200f701d..47d8947b0 100644
--- a/tests/unit/cli/test_cost_estimator.py
+++ b/tests/unit/cli/test_cost_estimator.py
@@ -47,7 +47,9 @@ class FakeParsedFile:
@dataclass
class FakeConfig:
top_symbol_percentile: float = 0.10
- file_page_top_percentile: float = 0.20
+ # None, like the real GenerationConfig: the file-page volume policy decides,
+ # and it leaves a fixture this size alone.
+ max_file_pages: int | None = None
file_page_min_symbols: int = 1
max_pages_pct: float = 0.10