Skip to content

Fix fine-grained deps in diff-cache.py tool + add test#20837

Merged
JukkaL merged 10 commits intomasterfrom
fix-diff-cache-deps
Feb 17, 2026
Merged

Fix fine-grained deps in diff-cache.py tool + add test#20837
JukkaL merged 10 commits intomasterfrom
fix-diff-cache-deps

Conversation

@JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Feb 17, 2026

The delta was calculated the wrong way.

Add a basic integration test for cache diffing and applying the diff. It only uses the fixed-format cache and sqlite caches, as these are expected to be the long-term defaults. The cache diff tests are pretty expensive to run, so we only have one test for now.

I used a coding agent to write the test in multiple reviewed increments.

@JukkaL JukkaL requested a review from ilevkivskyi February 17, 2026 15:53
Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow, this is a nasty bug. Yeah, having basic tests sounds good, thanks!

@github-actions
Copy link
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@JukkaL JukkaL merged commit a79b100 into master Feb 17, 2026
24 checks passed
@JukkaL JukkaL deleted the fix-diff-cache-deps branch February 17, 2026 16:26
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.

2 participants

Comments