fix(graph): migrate two missed Phase 2 BFS sites
_collect_ancestor_snapshots in verify.py replaces its inline deque BFS with iter_ancestors(exclude=frozenset(visited)). The main run_verify BFS remains inline — it must report missing commits as VerifyFailure entries, which iter_ancestors cannot do (it silently skips missing commits). Documented as an intentional exception alongside gc.py.
run_query in _midi_query.py replaces its while commit_id first-parent loop with iter_ancestors(first_parent_only=True, prune=..., max_commits=...).
Tests: 5 new in test_phase2b_missed_bfs_sites.py (V1, V2, M1, M2, M3).
sha256:853dcd33cf4aace116dfb1c28fa7d50853b943669b9518a097dd12f29ccec2a2
sha
+23
~2
symbols
sha256:868729927a82f1bb1d1e9a938480ff62f9a578b366709fbd7ade3ecfa4c67100
snapshot
+23
symbols added
~2
symbols modified
0
dead code introduced
Semantic Changes
25 symbols
+
test_m1run_query_uses_iter_ancestors
function
function test_m1run_query_uses_iter_ancestors L161–174
+
test_m2run_query_stops_at_from_commit
function
function test_m2run_query_stops_at_from_commit L181–211
+
test_m3run_query_respects_max_commits
function
function test_m3run_query_respects_max_commits L218–242
+
test_v1_collect_ancestor_snapshots_uses_iter_ancestors
function
function test_v1_collect_ancestor_snapshots_uses_iter_ancestors L98–111
+
test_v2_collect_ancestor_snapshots_collects_and_stops
function
function test_v2_collect_ancestor_snapshots_collects_and_stops L118–154
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:853dcd33cf4aace116dfb1c28fa7d50853b943669b9518a097dd12f29ccec2a2 --body "your comment"
No comments yet. Be the first to start the discussion.