-
Notifications
You must be signed in to change notification settings - Fork 331
Add pytest-durations to requirements for ROCm #810
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -12,6 +12,7 @@ dtlib | |||||||||
| numpy>=1.23.5 | ||||||||||
| pytest>=6.2.4 | ||||||||||
| pytest_xdist>=2.2.1 | ||||||||||
| pytest-durations | ||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💡 Verification agent 🧩 Analysis chainConfirm plugin intent vs pytest’s built-in --durations; add a version bound aligned to supported Python.
Apply one of these (pick per your Python matrix): -pytest-durations
+pytest-durations>=1.5.1 # uses fixture-aware timings; requires Python >=3.9-pytest-durations
+pytest-durations<1.5.1 # keep Py3.8 compatibilityVerification script to confirm Python versions used in CI and whether plugin flags are passed: 🏁 Script executed: #!/bin/bash
# Show declared Python versions in workflows and configs
rg -nC2 -i 'python-version|python:|^requires-python|^python_requires|^classifiers.*Programming Language :: Python ::' .github workflows || true
rg -nC2 -i 'requires-python|python_requires|Programming Language :: Python ::' pyproject.toml setup.cfg setup.py || true
# Find pytest invocations and check if using builtin or plugin flags
rg -nC2 -i 'pytest(?!-duration)|--durations(=|\b)|--pytest-durations(=|\b)' .github scripts ci Makefile || trueLength of output: 2791 Pin pytest-durations to preserve Py3.8 support or require Python ≥3.9. setup.py contains python_requires=">=3.8" and a Python 3.8 classifier — pytest-durations ≥1.5.1 dropped Py3.8, so pick one: -pytest-durations
+pytest-durations<1.5.1 # keep Py3.8 compatibility-pytest-durations
+pytest-durations>=1.5.1 # requires Python >=3.9; also bump python_requires and CI📝 Committable suggestion
Suggested change
Suggested change
🤖 Prompt for AI Agents |
||||||||||
| packaging>=21.0 | ||||||||||
| PyYAML | ||||||||||
| tqdm>=4.62.3 | ||||||||||
|
|
||||||||||
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 consistency with other
pytestpackages in this file (e.g.,pytest>=6.2.4), and to ensure reproducible builds, it's recommended to add a version specifier forpytest-durations. This will prevent potential issues if a future version of the package introduces breaking changes.