Repository navigation
xtask: Add an opt-in testcloud + system-reinstall-bootc provisioning path for tmt - #43
cgwalters-bot wants to merge 1 commit into
Conversation
…path for tmt Add `--provision=reinstall` to `cargo xtask run-tmt` (and a `just test-tmt-reinstall` wrapper). Instead of booting the image with bcvk, it boots a cloud guest via tmt's virtual/testcloud provisioner and runs system-reinstall-bootc in place, so the readonly tmt test can also cover the in-place reinstall flow. The default bcvk path is unchanged. This is step 1 of the plan in bootc-dev#2559 Generated-by: AI Agent-run: https://github.com/bootc-dev/cgwalters-devspace-sandbox/actions/runs/37975047479/attempts/1
9628fb1 to
5126d33
Compare
|
Verification run on a devspace (16 cores, AMD EPYC 9V45, RHEL 10.2, KVM, rootless). LLM-run; nothing here was checked by a human. Head is now 5126d33 (was 9628fb1, one commit, one fix squashed in). Result: the new path works end to end with one fix, and it reproduces the What ran
The one error in the change, and the fixAs pushed, the run stopped in the reboot prepare phase. Fix (in Host setup the change needs but does not sayThese were devspace problems, not bugs in the change, but anyone running it will hit them:
State of the reinstalled system (Fedora 44 cloud image, btrfs)This matches the diagnosis in the issue: the old root's A second unit also failed on the reinstalled guest. Test 014 only looks at Not runCentOS Stream (only Fedora 44), plans other than readonly, the default c10s base on the reinstall path, and Generated-by: https://github.com/cgwalters/#llms |
|
Fix round 1 of 2 for Generated-by: https://github.com/cgwalters/#llms |
5126d33 to
38bb49c
Compare
|
The poll stopped following this pull request: a draft with no checkpoint; mark it ready if the work is complete. It is labelled Generated-by: https://github.com/cgwalters/#llms |
|
Triage verdict: release (operator's standing rule, tracker#1445) Finish current-head build, review and VM validation of opt-in reinstall provisioning. Generated-by: https://github.com/cgwalters/#llms |
Adds an opt-in
--provision=reinstallmode tocargo xtask run-tmt(plusjust test-tmt-reinstall). It boots a Fedora/CentOS Stream cloud guest with tmt virtual/testcloud instead of bcvk, transfers the image and this build's bootc/system-reinstall-bootc RPMs, reuses the existing package preparation and expect helper, and requests a guarded tmt prepare reboot. The default bcvk provisioning is unchanged. This is step 1 of the plan in bootc-dev#2559; the combined readonly target, cleanup fix, journal changes and CI edits are not included.What the run reports it did: regenerated the generated regions (unchanged); added table-driven cloud-alias and RPM-selection tests, with all 32 xtask tests passing; ran a tmt 1.79 dry run that selected the shared install plus local reinstall/reboot phases and executed zero tests. It notes that the plan's claim about an undefined
running_envwas wrong for fmf 1.7/tmt 1.79 (CannotDecide disables those phases, also in the original header), so existing undefined-context behavior is preserved. A read-only reviewer found an invalidfinish --keepoption, which was fixed to--until report.What the run could NOT verify, quoting its summary: "Full validation and real readonly execution were attempted but blocked.
BOOTC_base=quay.io/fedora/fedora-bootc:44 just test-tmt-reinstall readonlyfailed in the package build's /run/packaging/install-buildroot dnf installation: 'Curl error (60)' and 'unable to get local issuer certificate'.just validatepassed generated checks and then failed at the CentOS buildroot's equivalent TLS boundary. Direct run-tmt initially failed 'tmt is not available in PATH'; after installing tmt it failed image distro detection because localhost/bootc was not built. No real guest boot, in-place install, reboot, readonly test or cleanup journal was observed; the downstream bootc-destructive-cleanup.service failure was NOT reproduced."Links:
Draft for operator review; the code has not been reviewed or run by the bot.
Generated-by: https://github.com/cgwalters/#llms