You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
chore(deps): bump pytest-jira to >=0.5.0,<1.0.0 (MTV-7694) - #871
Update pytest-jira version constraint in pyproject.toml and refresh uv.lock.
Assisted-by: PI (gemini-4-neon)
Signed-off-by: Meni Yakove <myakove@gmail.com>
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.
Merge Risk: Minimal · up to c7f90 · assessed changes only
Merge Risk:⚪ Minimal · up to c7f90
Path filters excluded changed files. This rating applies only to the assessed changes.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the change: bumping the pytest-jira constraint to >=0.5.0,<1.0.0 in pyproject.toml. The raw summary confirms this exact dependency change, and the objectives describe the same update w…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description Check
Check skipped - CodeRabbit’s high-level summary is enabled.
Full details: Title check
Explanation
The title names the change: bumping the pytest-jira constraint to >=0.5.0,<1.0.0 in pyproject.toml. The raw summary confirms this exact dependency change, and the objectives describe the same update with a uv.lock refresh. The title includes a ticket reference (MTV-7694) and a conventional-commit prefix (chore(deps)), which are acceptable. The title is specific and accurate.
Finishing Touches
Generate unit tests (beta)
Commit to this branch
Create a new PR
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
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.
Reviewing files that changed from the base of the PR and between 6cd4267 and ffeefa0.
Files ignored due to path filters: 1
uv.lock is excluded by !**/*.lock
Files selected for processing: 1
pyproject.toml
Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.
• Require pytest-jira 0.5.0 or newer while excluding version 1.0 and above.
• Lock pytest-jira to 0.5.0 for reproducible installs.
Merge Risk 🟢 Low
Blast radius 🟢 Low💥 1 capability
1 affected end-to-end capability after fault-specific containment; implementation boundaries do not widen its functional scope.
This is one bounded integration whose end-to-end outcome is associating selected pytest tests with JIRA reporting.
The dependency and lockfile changes select the implementation used by the test runner; package installation and plugin loading are hops in the same behavior, not separate capabilities.
The repository documentation identifies this as an opt-in integration and shows no current marked tests.
Before, the project accepted pytest-jira versions >=0.4.0 and the lockfile selected 0.4.0.
After, the project requires >=0.5.0,<1.0.0 and the lockfile selects 0.5.0, with the follow-up also changing the lockfile revision from 3 to 5.
The new correctness condition is that the selected plugin remains compatible with the existing opt-in --jira configuration and any future JIRA-marked tests.
This remains a direct dependency-selection and lockfile-metadata change, not newly introduced application branching, state coordination, transformation logic, or concurrency; the package artifact and revision changes are mechanical consequences of dependency resolution.
The affected capability is an optional reporting integration, not the core migration test behavior.
If the upgraded plugin cannot initialize or report correctly when explicitly activated, JIRA-linked reporting is unavailable for that run.
Reverting the dependency or disabling --jira restores the repository's ordinary test execution, while any already-missed external JIRA updates would require rerunning or manual compensation; no repository persistent state is changed by this dependency update.
The follow-up uv.lock revision and refreshed artifact metadata do not alter this consequence.
Recoverable by reverting or repinning pytest-jira, disabling the optional integration, or correcting the JIRA configuration and rerunning the affected tests.
There is no evidence of automatic repair or of irreversible repository data effects.
The author restored the uv.lock header from revision 3 to revision 5, undoing the silent format
downgrade the finding flagged.
Description
The revision header in uv.lock changes from 5 to 3, a change the PR's stated commands (`uv lock
--upgrade-package`) would not produce with a current uv, so the lock was regenerated by an older uv
binary. Every developer or CI job running a uv version that writes revision 5 will then see the
lockfile rewritten on the next uv lock, creating churn and making uv lock --check style gates
fail.
2. Lock pins a release published the same day✗ Dismissed
Dismissed asIntentional
Dismissal explanation
pytest-jira (rhevm-qe-automation/pytest_jira) is Red Hat QE's own plugin; 0.5.0 (commit 73072ab, PR
#176 by rnetser, CI publish run 45182811054) adds Jira Cloud OAuth 2.0 service-account support and
credential-redaction tests, and was explicitly requested. Provenance documented in PR body.
Description
The lock pins pytest-jira 0.5.0, whose sdist and wheel upload-time is 2026-11-23, the same day
as this PR, and the sdist size grew from about 57 KB to 92 KB. A same-day release from a third-party
package is installed into every environment that resolves the lock, so its content has had little
public scrutiny before it is adopted.
Agent prompt
The issue below was found during a code review. Follow the provided context and guidance below and implement a solution
## Issue description
The lock now pins pytest-jira 0.5.0, uploaded the same day as this PR, with a much larger sdist than 0.4.0. Adopting a same-day third-party release without reviewing its changes widens supply-chain exposure.
## Fix Focus Areas
- uv.lock[1951-1967]
## Recommended Fix
Check the pytest-jira 0.5.0 changelog and source diff against 0.4.0 for new network calls, install-time scripts, or new dependencies, and confirm the sdist hash against the publisher's release. Keep the `<1.0.0` cap in place.
ⓘ Copy this prompt and use it to remediate the issue with your preferred AI generation tools
Context sources
⚠️ Tickets: not configured — No jira integration is connected for the linked tickets
The following review comments were reviewed and a decision was made:
uv.lock:2 (qodo finding) — Lockfile format silently downgraded from revision 5 to 3
Addressed: Fixed in c7f9019: regenerated uv.lock with uv 0.13.9 (uvx uv@latest lock --upgrade-package pytest-jira --refresh-package pytest-jira) so revision = 5 is preserved and only pytest-jira changes.
The following review comments were reviewed and a decision was made:
uv.lock:2 (qodo finding) — Lockfile format silently downgraded from revision 5 to 3
Addressed: Fixed in c7f9019: regenerated uv.lock with uv 0.13.9 (uvx uv@latest lock --upgrade-package pytest-jira --refresh-package pytest-jira) so revision = 5 is preserved and only pytest-jira changes.
Assisted-by: PI (gemini-4-neon)
The lockfile fix from the latest message is in place. uv.lock line 2 reads revision = 5, so the format downgrade (finding 1) is resolved.
The pytest-jira pin is unchanged: pyproject.toml requires >=0.5.0,<1.0.0 and uv.lock:1953-1961 locks 0.5.0. The same-day supply-chain concern (finding 2) was dismissed as intentional by the author, so it is closed. I did not re-check the sdist hash or the 0.5.0 source diff against 0.4.0.
I can:
Re-review the uv.lock diff to confirm only the pytest-jira entry changed.
Explain either finding in more detail.
Run a fresh review of the PR if you want the current state re-checked.
New container for ghcr.io/redhatqe/mtv-api-tests:latest published
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
pytest-jiraconstraint inpyproject.tomlfrom>=0.4.0to>=0.5.0,<1.0.0.pytest-jira==0.5.0inuv.lockwhile preserving lockfilerevision = 5(generated withuv 0.13.9).Upstream Release Provenance (
pytest-jira0.5.0)rhevm-qe-automation/pytest_jira0.5.0(commit73072ab, PR feat: Target power state #176 byrnetser, published by GitHub Actions Publish workflow run 45182811054)0.4.0...0.5.0): rhevm-qe-automation/pytest_jira@0.4.0...0.5.0client_credentials(cloud_id,oauth_client_id,oauth_client_secret)pytest-jiramarker/config behavior or transitive dependenciesJira
Verification
uvx uv@latest lock --upgrade-package pytest-jira --refresh-package pytest-jira(uv 0.13.9,revision = 5preserved; onlypytest-jiraupdated0.4.0->0.5.0)uv sync— verifiedimportlib.metadata.version("pytest-jira") == "0.5.0"pre-commit run --all-filespassedAssisted-by: PI (gemini-4-neon)