older-media-writer #142
No reviewers
Labels
No labels
Closed As
Duplicate
Closed As
Fixed
Closed As
Invalid
easyfix
enhancement
ai-review-please
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
pr2jira
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Sprint Status
Blocked
Sprint Status
Done
Sprint Status
In Progress
Sprint Status
Review
Sprint Status
To Do
Technical Debt
Work Item
Bug
Work Item
Epic
Work Item
Spike
Work Item
Task
Work Item
User Story
No milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quality/fedora_openqa!142
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "older-media-writer"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
ea3f1e0023205af3666bAI Code Review
Detailed Code Review
The implementation correctly maps the new 'stable' and 'legacy' test names to their appropriate test suites and computes the expected Fedora versions for the test reports. The unit tests are well-structured and cover the new edge cases effectively. However, a potential critical issue exists in
report.pyregarding the handling of non-numeric Fedora versions (such as 'Rawhide' or 'Branched'), which could cause unhandled exceptions during execution.📂 File Reviews
📄 `src/fedora_openqa/report.py` - Updated logic to calculate the target Fedora version based on test name suffixes.
versionto an integer viaint(version)will raise aValueErrorif the version string is non-numeric, such as 'Rawhide', 'ELN', or 'Branched'. This will crash the report generation for these branches. You should handle cases where the version cannot be parsed into an integer.✅ Summary
ValueErrorcrash risk inreport.pywhenversioncontains non-numeric values like 'Rawhide'.🤖 AI Code Review | Generated with ai-code-review | Model:
gemini-3.1-pro-preview⚠️ AI-generated suggestions may be incorrect. Verify before applying. Not a replacement for human review.
The
Rawhidething is handled a couple of lines above the place I useversion, so I guess it it safe to assume that it has a numeric value.whoops, we merged the tests so we should merge this.