rmdepcheck: handle rdc-repos / rdc-compose split #552
No reviewers
Labels
No labels
Closed As
Duplicate
Closed As
Fixed
Closed As
Invalid
easyfix
freeipa
improvetest
iot
newtest
silverblue
tracker
ai-review-please
Backlog Status
Needs Review
Backlog Status
Ready
chore
documentation
points
01
points
02
points
03
points
05
points
08
points
13
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
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quality/os-autoinst-distri-fedora!552
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "eln-wrapper"
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?
This adapts to the planned upstream split of rmdepcheck into
rdc-repos and rdc-compose:
quality/rmdepcheck#40
rdc-repos is the 'old' mode, still used for most cases.
rdc-compose is the new mode intended for EL cases, especially ELN;
we use it for ELN now.
Signed-off-by: Adam Williamson awilliam@redhat.com
AI Code Review
Detailed Code Review
The changes adapt the
rmdepchecktesting script to support a split intordc-reposandrdc-compose. The updates successfully swap the execution commands depending on the environment context (ELN vs. standard releases). However, there are potential logic flaws regarding how variables like$nmbaserepoare appended and potentially overwritten when using ELN, and the script uses unprofessional error messages.📂 File Reviews
📄 `lib/rmdepcheck.pm` - Adapts the repository setup and command construction to differentiate between `rdc-repos` and `rdc-compose`.
lc($version) eq "eln", the$cmdvariable is completely overwritten. Any--nmbasereposflags appended on line 41 are lost. Ifrdc-composedoes not support--nmbaserepos, this should be explicitly documented or handled. If it does, the flag is inadvertently discarded.--nmbasereposis needed forrdc-compose, append it to the new$cmd. If it isn't supported, structure the conditional so that--nmbasereposis only evaluated and appended forrdc-repos.diemessage"aargh this doesn't work!"is unprofessional and provides poor context for debugging.Questions:
rdc-composeintentionally drop support for--nmbaserepos? If so, does the workaround repository logic need to apply to ELN at all?rdc-repossupport local paths without thefile://scheme, considering the removal on line 55?📄 `tests/rmdepcheck_prepare.pm` - Updates test dependencies and checks out a specific feature branch.
eln-wrapper). Once the upstream pull request is merged, this will need to be reverted or updated to track the main branch.✅ Summary
$cmdlogic for ELN which drops$nmbaserepo.diemessage to be more descriptive and professional.rmdepcheck_prepare.pmafter upstream merge.🤖 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.
982fc029c84dc1786278Yes, or rather, it decides them on its own. Fine, I tweaked it so we don't re-declare
$cmd, but it's actually fine.Eh, we'll deal with that somehow if it ever becomes an issue, I guess.
Yes it does.
I don't care, I'm not being professional. This is a note-to-self, basically.
AI Code Review
Detailed Code Review
The changes successfully implement the transition to the upstream
rmdepchecksplit. The logic correctly routes ELN tests tordc-composeand standard ones tordc-reposwhile adhering to the constraints discussed (like intentionally omitting--nmbasereposforrdc-compose). The script preparation correctly includes the newly required Python dependencies.The only notable area for improvement is error handling. A more descriptive exception message when attempting to use ELN with tags/COPR would greatly assist in debugging future failures. Aside from that, the code behaves exactly as expected.
📂 File Reviews
📄 `lib/rmdepcheck.pm` - Switches the execution command between `rdc-compose` for ELN and `rdc-repos` for standard execution, adjusting repository inputs.
diemessage "aargh this doesn't work!" is not very descriptive for diagnosing failures in automated test logs.rdc-composelacks tag/copr support).✅ Summary
$tagor$coprto provide better debugging context.🤖 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.