chore(deps): upgrade pytest to >=9.0.3 with Python 3.9 compatibility#171
chore(deps): upgrade pytest to >=9.0.3 with Python 3.9 compatibility#171Koosha-Owji merged 1 commit intomainfrom
Conversation
…5-71176) - Python >=3.10: pytest>=9.0.3 (includes fix for CVE-2025-71176) - Python <3.10 (3.9): pytest>=7.4.0,<9 (pytest 9 dropped Python 3.9 support) Updates requirements.txt, pyproject.toml [project.optional-dependencies].dev, and [tool.poetry.dev-dependencies] with environment-marker–based constraints. Relates to: #169"
|
Warning Rate limit exceeded
Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 58 minutes and 18 seconds. ⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (1)
✨ Finishing Touches🧪 Generate unit tests (beta)
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 |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
@coderabbitai resume |
✅ Actions performedReviews resumed. |
Summary
This PR upgrades
pytestto>=9.0.3(for Python >=3.10) to address CVE-2025-71176 while preserving Python 3.9 support - a conservative, non-breaking alternative to #169.Security Fix
CVE-2025-71176 (CVSS 6.8 / Medium): pytest through 9.0.2 on UNIX relies on directories with the
/tmp/pytest-of-{user}name pattern, allowing local users to cause denial of service or gain privileges. Fixed in pytest 9.0.3.Why not just merge #169?
pytest 9 dropped Python 3.9 support. The SDK's
requires-python = ">=3.9"and the CI matrix includes Python 3.9. Merging #169 directly would cause the Python 3.9 CI job to fail on install.Approach (environment-marker based constraints)
>=3.10>=9.0.3<3.10(3.9)>=7.4.0,<9Files changed
requirements.txt— splitpytestinto two conditional lines using pip environment markerspyproject.toml— updated both[project.optional-dependencies].dev(pip markers) and[tool.poetry.dev-dependencies](Poetry inline-table multi-constraint syntax)Relates to / supersedes
Closes / supersedes renovate PR #169 (
chore(deps): update dependency pytest to v9 [security])"