Add a partial kickstart install test (#308) #522
No reviewers
Labels
No labels
ai-review-please
Closed As
Duplicate
Closed As
Fixed
Closed As
Invalid
easyfix
freeipa
improvetest
iot
newtest
silverblue
tracker
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!522
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "partial-kickstart"
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?
We also split out the _do_root_and_user stuff from
_do_install_and_reboot into a separate test module. This makes
the logic for the partial kickstart install easier, but it's also
just the right thing to do anyway; those things used to be part
of _do_install_and_reboot because you did them while the install
was actually running, but we stopped that since Fedora 31, so it
didn't make any sense for them to be in that module any more.
Signed-off-by: Adam Williamson awilliam@redhat.com
ca9576f7e6ff7a4caed6AI Code Review
📋 MR Summary
This MR splits out the user and root password creation logic from
_do_install_and_reboot.pminto a new module_do_root_and_user.pm. It also introduces support for aPARTIAL_KICKSTARTvariable, which skips the user/root password creation step during partial kickstart installations.tests/_do_root_and_user.pm.PARTIAL_KICKSTARTvariable toVARIABLES.mdand added logic inmain.pmto conditionally skip user/root creation when it is set.utils.pmand_graphical_wait_login.pmto reference the newly renamed module.install_kickstart_partialintemplates.fif.json.Detailed Code Review
The refactoring is clean and effectively addresses the goal described in the MR. Splitting the user creation from the install step improves modularity and makes skipping it for partial kickstart testing straightforward. No critical security, performance, or logic issues were found during the review. Code transitions well, and references in other files were appropriately updated.
✅ Summary
🤖 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.
ff7a4caed61351991d071351991d074adffd25a74adffd25a77d719e89627d719e8962b4e92ee6c1AI Code Review
📋 MR Summary
This MR separates the root and user password setup logic from the main install and reboot module into a new
_do_root_and_usertest module. It also introduces support for aPARTIAL_KICKSTARTinstallation by adjusting the test flow accordingly.PARTIAL_KICKSTARTvariable to documentation and test templates._do_root_and_userlogic fromtests/_do_install_and_reboot.pmto a newtests/_do_root_and_user.pmmodule.main.pmto conditionally load software selection and the new_do_root_and_user.pmmodule based onPARTIAL_KICKSTART._boot_to_anaconda.pmto handle language/layout selection skipping ifPARTIAL_KICKSTARTis set._do_install_and_rebootto_do_root_and_user.Detailed Code Review
The changes look solid and well-reasoned. Splitting out the user/root setup into a separate module cleans up the
_do_install_and_rebootstep logically. The addition of thePARTIAL_KICKSTARTcondition handles the test branching cleanly. Documentation has been properly updated for the newly introduced variable. No major issues were found, just a few cleanups and verifications regarding the conditional execution flows.✅ Summary
tests/_do_root_and_user.pmis included in test distribution/installation manifests if applicable.install_kickstart_partialintemplates.fif.jsonneeds further variable settings comparable to standard kickstarts.🤖 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.
Reporting PR: quality/fedora_openqa#135
This works in staging, merging.
b4e92ee6c19d0a1092e6Well, actually, I'll do a full compose run first to check the flow changes don't break anything else.
Note on dropping
MEMCHECKfrom the _software_selection bail-out path in the move: there's only one test whereMEMCHECKis set (memory_check), and in that test,PACKAGE_SETis set to "workstation". So we never actually hit this path. I probably put it in at a time when the memory_check test used "default" as the package set.Full compose run looks good. Merging.