Add real-world case-based tests #33
Labels
No labels
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
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quality/rmdepcheck#33
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
The synthetic tests are OK, but pretty limited and hard to extend to cover more cases. I had an idea that we can just add real-world based tests as well: we can literally just download the real-world metadata for specific interesting results (the base repo metadata, and the metadata from the tested package repo) and use those as test cases.
Of course, they're quite large. So an idea I had is to resurrect the lxml (or pygixml?) based parsing as a standalone script to minify real-world metadata: parse it and rip out bits that don't matter, like the summary, description, packager, url, time, size, location, license, vendor, group, buildhost etc etc. If dnf breaks without some we can replace their values with empty strings at least. It could also allow you to filter out chunks of packages - perhaps by initial letter, so you can just leave out packages that are irrelevant to the scenario. This should allow us to reduce the sizes quite substantially, I hope, so we can keep a few real-world scenarios in the repo without overly bloating it. Possibly we could use a separate repo for this, though.