-
Notifications
You must be signed in to change notification settings - Fork 83
fix(integration-tests): Prevent stale uv installs by marking local source packages as editable; simplify cache-clear task to directly remove uv project cache (fixes #1573).
#1574
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
Conversation
WalkthroughThese changes modify pytest cache clearing in integration tests and update dependency installation configuration. The taskfile now removes the Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes
Possibly related issues
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: ASSERTIVE Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
🧰 Additional context used🧠 Learnings (4)📓 Common learnings📚 Learning: 2025-08-17T16:10:38.722ZApplied to files:
📚 Learning: 2025-07-28T08:33:57.487ZApplied to files:
📚 Learning: 2025-08-16T10:24:29.316ZApplied to files:
🔇 Additional comments (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Bill-hbrhbr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As mentioned let's add the editable flags for an actual fix.
python -m pytest command to pytest (fixes #1571). .
python -m pytest command to pytest (fixes #1571). .python -m pytest command to pytest (fixes #1571).
Bill-hbrhbr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As discusses offline let's address issue #1571 in a separate PR.
Co-authored-by: Bingran Hu <[email protected]>
python -m pytest command to pytest (fixes #1571).
Bill-hbrhbr
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For title, how about:
fix(integration-tests): Prevent stale uv installs by marking local source packages as editable; simplify `cache-clear` to direct local project cache removal.
cache-clear to direct local project cache removal (fixes #1573).
kirkrodrigues
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the PR title, how about:
fix(integration-tests): Prevent stale uv installs by marking local source packages as editable; simplify `cache-clear` task to directly remove uv project cache (fixes #1573).
cache-clear to direct local project cache removal (fixes #1573).cache-clear task to directly remove uv project cache (fixes #1573).
8032db4
Description
When local source packages aren’t installed as editable, uv treats them like normal immutable distributions. As a result, even if the source code in the repository changes, uv will keep reinstalling the old cached wheel unless the package version is bumped or the cache is purged. Making the package editable (
editable = true) ensures the virtual environment directly references the working directory, so changes take effect immediately without rebuilding or relying on cached wheels. See issue #1573 for more details.Checklist
breaking change.
Validation performed
Ran
task clean; cleans sucessfully.Summary by CodeRabbit