Skip to content

Solve cache tests failure and merge explain ambiguity handling - #2

Open
FolatheDuckofDuckingburg wants to merge 3 commits into
v8from
jules-fix-cache-tests-and-explain-ambiguity-2159019173269205490
Open

Solve cache tests failure and merge explain ambiguity handling#2
FolatheDuckofDuckingburg wants to merge 3 commits into
v8from
jules-fix-cache-tests-and-explain-ambiguity-2159019173269205490

Conversation

@FolatheDuckofDuckingburg

Copy link
Copy Markdown
Owner

Fixes a flaky test on the cache prune logic and merges ambiguity handling into the explain CLI command.


PR created automatically by Jules for task 2159019173269205490 started by @FolatheDuckofDuckingburg

…uity handling

1. Fix `test_semantic_prune_removes_orphan_entries` test failure by using different content lengths for successive writes, preventing the filesystem stat fastpath from mis-matching cache hashes within the same nanosecond/mtime window.
2. Integrate explain ambiguity detection and exact node-ID bypass from origin/fix/explain-ambiguity-1969 to handle multiple tied nodes and accept exact node IDs.
3. Add regression tests in tests/test_explain_ambiguity.py and verify via uv/pre-commit.

Co-authored-by: FolatheDuckofDuckingburg <268987568+FolatheDuckofDuckingburg@users.noreply.github.com>
@google-labs-jules

Copy link
Copy Markdown

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

google-labs-jules Bot and others added 2 commits July 27, 2026 14:11
1. Resolve flake8 F824 unused global variable warning for _stat_index_root in graphify/cache.py by removing it from the global declaration in _flush_stat_index().
2. Fix `test_semantic_prune_removes_orphan_entries` test failure by using different content lengths for successive writes, preventing the filesystem stat fastpath from mis-matching cache hashes within the same nanosecond/mtime window.
3. Integrate explain ambiguity detection and exact node-ID bypass from origin/fix/explain-ambiguity-1969 to handle multiple tied nodes and accept exact node IDs.
4. Add regression tests in tests/test_explain_ambiguity.py and verify via uv/pre-commit.

Co-authored-by: FolatheDuckofDuckingburg <268987568+FolatheDuckofDuckingburg@users.noreply.github.com>
…ckage installation

1. Resolve flake8 F824 unused global variable warning for _stat_index_root in graphify/cache.py by removing it from the global declaration in _flush_stat_index().
2. Fix `test_semantic_prune_removes_orphan_entries` test failure by using different content lengths for successive writes, preventing the filesystem stat fastpath from mis-matching cache hashes within the same nanosecond/mtime window.
3. Integrate explain ambiguity detection and exact node-ID bypass from origin/fix/explain-ambiguity-1969 to handle multiple tied nodes and accept exact node IDs.
4. Add package installation step (`pip install .`) to `.github/workflows/python-app.yml` so that tests can successfully collect and run with all dependencies (such as networkx, numpy) installed.
5. Add regression tests in tests/test_explain_ambiguity.py and verify via uv/pre-commit.

Co-authored-by: FolatheDuckofDuckingburg <268987568+FolatheDuckofDuckingburg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant