-
Notifications
You must be signed in to change notification settings - Fork 15
fix: deduplicate pymilvus dependency #55
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
fix: deduplicate pymilvus dependency #55
Conversation
This commit ensure there is only one pymilvus dependnecy in req.txt. Signed-off-by: Mustafa Elbehery <[email protected]>
WalkthroughRefines dependency text transformation in distribution/build.py to only append "[milvus-lite]" to packages containing "pymilvus" that do not already specify "[milvus-lite]". No other logic or exports changed. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant Builder as Build Script
participant Transform as Dependency Transformer
participant Output as Requirements
Builder->>Transform: Provide dependency line
alt contains "pymilvus" AND not contains "[milvus-lite]"
Transform->>Transform: Replace "pymilvus" → "pymilvus[milvus-lite]"
Transform-->>Builder: Transformed line
else already includes "[milvus-lite]" or not pymilvus
Transform-->>Builder: Return line unchanged
end
Builder->>Output: Write finalized dependency line
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests
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. 🧪 Early access (Sonnet 4.5): enabledWe are currently testing the Sonnet 4.5 model, which is expected to improve code review quality. However, this model may lead to increased noise levels in the review comments. Please disable the early access features if the noise level causes any inconvenience. Note:
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.
Actionable comments posted: 0
🧹 Nitpick comments (1)
distribution/build.py (1)
92-97: LGTM! The fix correctly prevents duplicate [milvus-lite] extras.The added condition on line 94 ensures that packages already containing "[milvus-lite]" are not processed again, which solves the CI failure mentioned in the PR objectives.
Optional future enhancement: Consider using a more precise pattern match (e.g., regex) to ensure "pymilvus" is matched as a standalone package name rather than as a substring. The current
replace()would incorrectly transform hypothetical packages like "my-pymilvus-fork" into "my-pymilvus[milvus-lite]-fork". However, this is a pre-existing behavior and doesn't need to block this PR.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (1)
distribution/build.py(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (2)
- GitHub Check: build-test-push (linux/amd64)
- GitHub Check: Summary
nathan-weinberg
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.
Good catch!
|
lets merge so that I can rebase #54 |
|
@Elbehery you need one more approval, then you can remove the remaining reviews and it will automerge |
|
thanks for approvals everyone 🥳 |
What does this PR do?
This PR ensures there is only one pymilvus dependnecy in req.txt.
During bumping LLS version in #54, the CI failed upon illegal
pymilvusdependency inreq.txt. See CI run.Closes https://issues.redhat.com/browse/RHAIENG-1312.
Test Plan
Summary by CodeRabbit