Conversation
## Walkthrough
This update refines the version extraction logic in the Jira utilities by introducing a new regex pattern and switching from `re.search` to `re.findall` for improved matching, especially for version strings with a "z" suffix. Associated tests and documentation are updated, and dependency management is revised to include explicit version constraints and switch test execution from `poetry` to `uv`.
## Changes
| File(s) | Change Summary |
|------------------------------------------------|-------------------------------------------------------------------------------------------------------|
| apps/jira_utils/README.md | Improved formatting, split config description for readability, and added an example version with "z" suffix in the YAML sample. |
| apps/jira_utils/jira_information.py | Updated version extraction to use a new regex with `re.findall`, reformatted decorators and function calls for readability, no changes to public interfaces. |
| pyproject.toml | Added `"click (>=8.1.7)"` dependency, expanded `test` dependency group with explicit version constraints, minor formatting adjustments. |
| tests/jira_utils/test_jira_utils.py | Switched test command from `poetry` to `uv`, added test cases for "z" suffix versions, changed regex mocking from `re.search` to `re.findall`, improved formatting and parameter grouping. |
| tests/polarion/test_polarion_automated.py | Changed test command invocation from `poetry run python` to `uv run`. |
| tests/polarion/test_verify_polarion_requirements.py | Changed test command invocation from `poetry run python` to `uv run`. |
| renovate.json | Updated Renovate config to disable concurrent PRs, enable lock file maintenance, and simplify package rules with a wildcard pattern. |
| tox.ini | Simplified tox envlist from multiple Python versions with unittest to a single `unittest` environment and updated test commands to include pinning and syncing steps before running tests. |
## Possibly related issues
- RedHatQE/python-utility-scripts#176: Adds support for a "z" suffix in Jira fixVersions, matching the version extraction enhancements in this PR.
## Possibly related PRs
- RedHatQE/python-utility-scripts#162: Updates Jira utilities and tests to use `uv` command instead of `poetry run python`, directly related to test command changes here.
- RedHatQE/python-utility-scripts#111: Introduces and structures Jira utilities tests, which are extended and refined in this PR.
- RedHatQE/python-utility-scripts#135: Modifies `jira_information.py` with type hints and import reorganization; complements this PR's regex and formatting updates.
## Suggested labels
`can-be-merged`, `approved-rnetser`, `commented-coderabbitai[bot]`
## Suggested reviewers
- myakove
- dbasunag📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
⏰ Context from checks skipped due to timeout of 90000ms (8)
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
Report bugs in Issues The following are automatically added:
Available user actions:
PR will be approved when the following conditions are met:
Approvers and Reviewers
Supported /retest check runs
Supported labels
|
|
/verified |
|
/verified |
|
/verified |
|
/verified |
|
/approve |
Summary by CodeRabbit