Repository navigation
fix: invalidate stale interpreter cache after fast-path resolution failures - #1926
Open
Mateeh Ullah (MateehUllah) wants to merge 5 commits into
Open
Mateeh Ullah (MateehUllah) wants to merge 5 commits into
Mateeh Ullah (MateehUllah) wants to merge 5 commits into
Conversation
Author
@microsoft-github-policy-service agree |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Fixes stale interpreter-cache handling in the Python Environments extension when fast-path environment resolution fails.
Previously, a persisted interpreter path could remain cached even when resolving that interpreter failed. This change ensures that stale cache entries are cleared so subsequent environment discovery can proceed without repeatedly relying on an invalid entry.
Changes
Related Issue
Related to #1795.
This PR addresses the stale interpreter-cache handling identified during investigation of that issue. It does not claim to resolve the complete Jupyter kernel connection hang or incomplete Python version metadata.
Testing
Added regression-test assertions in
src/test/managers/common/fastPath.unit.test.tscovering:Validation status:
npm run unittestlocally.The full test suite has not been executed locally. CI validation and maintainer review are required.
Scope
This PR is intentionally limited to stale interpreter-cache invalidation. It does not modify Jupyter kernel startup behavior or Python version-discovery logic.
AI Assistance
AI assistance was used for code analysis and PR preparation. The changes remain subject to test verification and maintainer review.