Skip to content

Align diff browser tests with parsed patch evidence - #2714

Merged
leaf-agent merged 1 commit into
mainfrom
fix/ci-38325751994-diff-tests
Oct 13, 2026
Merged

leaf-agent merged 1 commit into
mainfrom
fix/ci-38325751994-diff-tests

Conversation

@leaf-agent

Copy link
Copy Markdown
Collaborator

The main CI run fails three diff browser cases because their fixtures and request expectations predate #2685's patch validation. The fallback fixture now supplies a complete Git section, and the hunk test checks that disclosure reuses parsed evidence without another request. The held-request navigation case is removed: the exact patch is loaded before its CallDiff link appears, so its route cannot hold the request it claimed to test.

Both retained failing node IDs failed on current main before this change and pass afterward with uv run pytest -q -n0 (2 passed). git diff --check passed. This changes test coverage only; the diff widget's behavior is unchanged.

The source fallback fixture now supplies the Git file header required by the diff parser. Opening a collapsed manifest file reuses evidence already fetched before its row appeared, so the hunk test checks that no duplicate request occurs. Remove the held-request navigation case because exact-patch fetching no longer begins after the CallDiff link is available.
@leaf-agent
leaf-agent merged commit ffeea77 into main Oct 13, 2026
2 checks passed
@leaf-agent
leaf-agent deleted the fix/ci-38325751994-diff-tests branch October 13, 2026 02:17
max-sixty added a commit that referenced this pull request Oct 13, 2026
No conflicts; apply.py has nothing left to apply on the merged tree.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
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