Repository navigation
test(graph): cover site-less relationship rows on the embedded engine - #3530
Conversation
This comment has been minimized.
This comment has been minimized.
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. 🗂️ Base branches to auto review: 2
Please check the settings in the CodeRabbit UI or the
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
[Low impact] The added tests appear safe to merge. SummaryAdds tests that check site-less rows leave located call edges unchanged.
Reviews (1) · Last reviewed commit: "Add codebase_rag/tests/test_siteless_rel..." · Reviewed by Greptile |
Summary
codebase_rag/tests/test_siteless_rel_rows.py: tests for fix(graph): a row without a site leaves the located edges alone #3529's write of rows without a site, run on the embedded graph engine.Demo
No user-visible change: tests only. The behaviour they cover is shown in #3529.
Type of Change
Related Issues
Part of #2879. Stacked on #3529.
Test Plan
make test-paralleloruv run pytest -n auto -m "not integration")make test-integration, requires Docker)Red on
main: 5 of the file's tests failed. The locatedheuristicedge becameexact, the site-less rows had no edge of their own, and the graph andindex.bindisagreed on the issue's fixture. Green on #3529: 7 passed.The tests:
test_a_row_without_a_site_leaves_a_located_edge_as_it_is(negative): the located edge keepsheuristic.test_the_order_within_one_flush_does_not_matter: either order gives the same two edges.test_rows_without_a_site_share_one_edge_per_pair(negative): rows within one flush and across flushes never make a second site-less edge, and later properties win.test_the_flush_still_counts_rows_written: the summary still counts rows, and the failure log names a row whose endpoint is missing.test_trace_confirmation_writes_its_observation_on_every_site: the confirm query on a real engine sets the observation on both sites, and a key passed as null keeps the edge's value.test_the_graph_and_the_index_keep_the_same_calls: the issue's fixture gives the same CALLS edges through the graph and throughindex.bin.Checklist
!in the title and its release notes inchanges/breaking/<PR number>.md(see Breaking changes)make pre-commit)# type: ignore,cast(),Any, orobjecttype hints