Repository navigation
test: fix stale query_units call-log naming assertions - #3352
Conversation
Problem: test_api_query_units_routes_through_execution_control and test_api_multi_aggregate_receipt_reports_real_work_selection_and_delivery asserted the execution-control call log/owner_ref recorded the operation as "api.query_units", but production has used plain "query_units" since query_units_transaction_request() (polylogue/archive/query/transaction.py) became the single canonical constructor shared by the API, MCP, and daemon HTTP adapters (introduced in #3068) — an "api." prefix would be wrong for that shared naming since the same operation string is used by non-API surfaces too. What changed: updated both assertions to expect "query_units" instead of "api.query_units", matching current, intentional production behavior. No production code changed. Verification: - devtools test tests/unit/archive/query/test_execution_control.py -> 23 passed - mypy --strict tests/unit/archive/query/test_execution_control.py -> Success - ruff check / ruff format --check tests/unit/archive/query/test_execution_control.py -> clean Ref polylogue-0twa Co-Authored-By: Claude <[email protected]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Warning Review limit reached
Next review available in: 24 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Summary
Fixes two tests in
tests/unit/archive/query/test_execution_control.pythat asserted a stale operation name in the execution-control call log.Problem
test_api_query_units_routes_through_execution_controlandtest_api_multi_aggregate_receipt_reports_real_work_selection_and_deliveryassert the execution-control call log /owner_refrecords the operation as"api.query_units". Current production code (query_units_transaction_requestinpolylogue/archive/query/transaction.py) setsoperation="query_units"— noapi.prefix.Investigation (see polylogue-0twa): the constructor's docstring states it is "the single constructor shared by the API, MCP, and daemon HTTP adapters so the three surfaces cannot drift into building the request differently" (introduced in #3068,
feat(query): bind query_units continuations to the archive epoch). Anapi.-prefixed name would be incorrect given the name is intentionally shared across non-API surfaces too. This is a stale test assertion, not a production regression.Solution
Updated both assertions from
"api.query_units"to"query_units". No production code changed.Verification
devtools test tests/unit/archive/query/test_execution_control.py-> 23 passedmypy --strict tests/unit/archive/query/test_execution_control.py-> Successruff check/ruff format --checkon the changed file -> cleanRef polylogue-0twa
🤖 Generated with Claude Code