-
Notifications
You must be signed in to change notification settings - Fork 62
pin pip to 24.3.1 to make pybuild-deps work #982
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
WalkthroughMakefile: changes to konflux-requirements filtering to extract package==version lines from Changes
Sequence Diagram(s)(omitted — changes are small configuration/dependency edits without a new multi-component control flow) Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested reviewers
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. 📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (3)
🧰 Additional context used📓 Path-based instructions (1)pyproject.toml📄 CodeRabbit inference engine (CLAUDE.md)
Files:
🧠 Learnings (3)📓 Common learnings📚 Learning: 2026-01-11T16:30:41.767ZApplied to files:
📚 Learning: 2026-01-11T16:30:41.768ZApplied to files:
⏰ 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). (4)
🔇 Additional comments (3)
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 |
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: 1
🤖 Fix all issues with AI agents
In @Makefile:
- Around line 119-121: The grep regex `^[a-z]+==[^ ]+` in the Makefile silently
excludes many valid package names; update the pattern used in the `grep -Eo
"^[a-z]+==[^ ]+" requirements.x86_64.txt` invocation to allow letters, digits,
dots, hyphens and underscores (e.g. use a character class like [A-Za-z0-9._-]+
before `==`) so package names such as `a2a-sdk`, `httpx-sse`, `jinja2`,
`email-validator`, etc. are matched and included.
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
uv.lockis excluded by!**/*.lock
📒 Files selected for processing (3)
Makefilepyproject.tomlrequirements-build.txt
🧰 Additional context used
📓 Path-based instructions (1)
pyproject.toml
📄 CodeRabbit inference engine (CLAUDE.md)
pyproject.toml: Checkpyproject.tomlfor supported Python versions before development
Always checkpyproject.tomlfor existing dependencies before adding new ones
Always verify current library versions inpyproject.tomlrather than assuming versions
Use pylint withsource-roots = "src"configuration
Files:
pyproject.toml
🧠 Learnings (4)
📓 Common learnings
Learnt from: matysek
Repo: lightspeed-core/lightspeed-stack PR: 292
File: pyproject.toml:43-45
Timestamp: 2025-08-18T10:55:18.914Z
Learning: The lightspeed-stack project updates dependencies every sprint as part of their regular maintenance cycle, which explains their preference for exact dependency pins rather than version ranges.
📚 Learning: 2026-01-11T16:30:41.767Z
Learnt from: CR
Repo: lightspeed-core/lightspeed-stack PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-11T16:30:41.767Z
Learning: Applies to pyproject.toml : Always check `pyproject.toml` for existing dependencies before adding new ones
Applied to files:
pyproject.toml
📚 Learning: 2026-01-11T16:30:41.768Z
Learnt from: CR
Repo: lightspeed-core/lightspeed-stack PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-11T16:30:41.768Z
Learning: Use `uv sync --group dev --group llslibdev` to install development dependencies
Applied to files:
pyproject.toml
📚 Learning: 2026-01-11T16:30:41.767Z
Learnt from: CR
Repo: lightspeed-core/lightspeed-stack PR: 0
File: CLAUDE.md:0-0
Timestamp: 2026-01-11T16:30:41.767Z
Learning: Applies to **/*.py : Use Llama Stack imports: `from llama_stack_client import AsyncLlamaStackClient`
Applied to files:
requirements-build.txt
⏰ 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). (4)
- GitHub Check: build-pr
- GitHub Check: Konflux kflux-prd-rh02 / lightspeed-stack-on-pull-request
- GitHub Check: E2E: server mode / ci
- GitHub Check: E2E: library mode / ci
🔇 Additional comments (2)
requirements-build.txt (1)
1-6: LGTM! Auto-generated file with expected updates.This file is auto-generated by
pybuild-deps compile. The version bumps and pruned transitive dependency comments are expected results of regenerating the build requirements with the pinned pip version.pyproject.toml (1)
132-133: Reconsider pinning pip to 24.3.1 due to known security vulnerabilities.While pip 24.3.1 is a valid version (released October 27, 2024), it contains multiple known security vulnerabilities:
- CVE-2025-8869: Symlink validation bypass in tar extraction (affects pip < 25.2)
- Arbitrary code execution in pip self-update (affects pip < 25.0)
- CVE-2025-50181: Bundled urllib3 vulnerability
These issues are fixed in pip >= 25.0 (for arbitrary code execution) and >= 25.2 (for symlink validation). Pinning to 24.3.1 should only proceed if there is a documented incompatibility with newer versions that cannot be resolved. If pybuild-deps compatibility with pip 25.x has been verified or fixed, use a newer pip version instead.
⛔ Skipped due to learnings
Learnt from: CR Repo: lightspeed-core/lightspeed-stack PR: 0 File: CLAUDE.md:0-0 Timestamp: 2026-01-11T16:30:41.767Z Learning: Applies to pyproject.toml : Always verify current library versions in `pyproject.toml` rather than assuming versions
Signed-off-by: Haoyu Sun <hasun@redhat.com>
0b93195 to
1f6da72
Compare
tisnik
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.
LGTM
|
/retest |
Description
due to this issue in pybuild-deps, we have to pin the
pippackage to version below 25 to make pybuild-deps working, so that we can generate the requirements-build.txt required by prefetch step in KonfluxType of change
Tools used to create PR
Identify any AI code assistants used in this PR (for transparency and review context)
Related Tickets & Documents
Checklist before requesting a review
Testing
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.