Skip to content

[WIP] When a module has errors but the interface hash is the same, keep the cache #4353

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 5 commits into from

Conversation

gvanrossum
Copy link
Member

Closes #4212.

However, there are still many scenarios where a trivial error affects
the interface hash and hence causes a recheck of everything
downstream.

Also, this affects regular incremental mode too (making it faster, but
if there's a bug in my logic, it will also be hit by that bug.)

… cache

Closes python#4212.

However, there are still many scenarios where a trivial error affects
the interface hash and hence causes a recheck of everything
downstream.

Also, this affects regular incremental mode too (making it faster, but
if there's a bug in my logic, it will also be hit by that bug.)
@gvanrossum
Copy link
Member Author

Looking at the test failures:

  • testIncrementalInternalFunctionDefinitionChange is easy to fix (mod1 is unaffected by the error in mod2 since mod2's public API doesn't change)
  • testCacheDeletedAfterErrorsFound3 however suggests I need to think harder, because here run 3 should still give the error (the cause is a change in b.py in run 2 that causes a.py to fail -- in run 3, b.py is unchanged, so the error in a.py should persevere)

@gvanrossum
Copy link
Member Author

No, the "different idea" may fix the last failing test but it doesn't consistently address the underlying problem. Tomorrow...

@gvanrossum
Copy link
Member Author

Well, this is really tricky. I think I may have to reconsider a lot more of the way dependencies and cache freshness are tracked...

@gvanrossum gvanrossum changed the title When a module has errors but the interface hash is the same, keep the cache [WIP] When a module has errors but the interface hash is the same, keep the cache Dec 15, 2017
@gvanrossum gvanrossum closed this Jan 18, 2018
@gvanrossum gvanrossum deleted the dmypy-fast-errors branch January 18, 2018 22:50
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