Repository navigation
test(signature): acceptance, transaction and MCP tests for change_signature (#1533, 6/9) - #2169
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
| Layer / File(s) | Summary |
|---|---|
Indexed project fixture codebase_rag/tests/change_signature_support.py |
Adds a Python fixture project, helpers to write and index it, a subprocess smoke test, and a helper to set a call-edge resolution. |
Signature mapping and call-site tests codebase_rag/tests/test_change_signature.py |
Tests mapped parameter insertion, parameter reordering, and how heuristic-resolved call sites are handled by default and when allow_heuristic=True. |
Transaction and MCP tests codebase_rag/tests/test_change_signature.py |
Tests dry-run and transaction history behavior, rollback after re-ingestion finds an invalid caller, and MCP schema, response, and refusal behavior. |
Priority:
Estimated code review effort: 3 (Moderate) | ~20 minutes
Change: Other
Merge Risk: 
Minimal · previous review 712c7
-
This change adds test coverage for signature changes, dry runs, rollback, and MCP responses. It does not alter production behavior, and no actionable merge risk was found.
Pre-merge checks: 
4
✨ Finishing Touches
-
📝 Generate docstrings
-
- Commit to this branch
- Create a new PR
🧪 Generate unit tests (beta)
-
- Commit to this branch
- Create a new PR
-
- Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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 @coderabbitai help to get the list of available commands.
pr-split analysis
This PR has 425 LOC and could be split into 2 smaller PRs:
Run |
50c6c0b to
00536e0
Compare
|
This isn't caused by this PR. Its diff only adds Generated by Claude Code |
7b24eb6 to
f82b930
Compare
f82b930 to
15ddaee
Compare
15ddaee to
24f59aa
Compare
24f59aa to
da7bf2b
Compare
da7bf2b to
2b28262
Compare
d504534 to
fddc17c
Compare
fddc17c to
eac8482
Compare
|
|
@greptile review |
This comment has been minimized.
This comment has been minimized.
[Low impact] This tests-only PR appears safe to merge. SummaryAdds shared fixtures and 10 tests for
Reviews (1) · Last reviewed commit: "test(signature): acceptance, transaction..." · Reviewed by Greptile |



Summary
codebase_rag/tests/change_signature_support.py, the shared fixture project and helpers the later test layers (test(signature): mapping tests for change_signature (#1533, 7/9) #2168, test(signature): definition and renamed-parameter tests for change_signature (#1533, 8/9) #2165, test(signature): hierarchy, receiver and default guards for change_signature (#1533, 9/9) #2167) build on.codebase_rag/tests/test_change_signature.py: the acceptance scenarios, the dry-run, undo and contract-rollback tests, and the MCP tool tests.Demo
No user-visible change: adds the acceptance, transaction and MCP tests for
change_signature, and their shared fixture.Type of Change
None of these applies: the change adds tests only.
Related Issues
Part of #1533 (split from #1912; stack: #2163 → #2161 → #2162 → #2166 → #2164 → #2169 → #2168 → #2165 → #2167).
Test Plan
Unit tests pass (
make test-paralleloruv run pytest -n auto -m "not integration")New tests added
Integration tests pass (
make test-integration, requires Docker)Manual testing (describe below)
uv run python -m pytest codebase_rag/tests/test_change_signature.py -p no:randomly -qatfa9969c18: 10 passed.The full suite was not run locally. The CI Unit Tests run at
fa9969c18was cancelled before it finished.Checklist
make pre-commit)# type: ignore,cast(),Any, orobjecttype hintsSKIP=no-commit-to-branch pre-commit run --from-ref 09c5ae4f4 --to-ref fa9969c18(ruff, ruff-format, ty, bandit, generate-readme and the file hygiene hooks): passed. The unit-suite step ofmake pre-commitwas not run locally.Unchecked items:
Files changed
codebase_rag/tests/change_signature_support.pycodebase_rag/tests/test_change_signature.pyDiff stats
+425 additions, -0 deletions (425 LOC)
Dependencies
This PR depends on:
pr-5Dependency graph
Merge in this order:
Summary by CodeRabbit