You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
bootc: integration test for list_dev_by_dir_optional via internals #247
Follow-up requested in cgwalters' approval of bootc-dev/bootc#2517: expose list_dev_by_dir_optional through bootc internals and cover it with a booted tmt test (real disk, /proc or tmpfs, overlay).
Valid, and already implemented. It needs the operator's review, not another run. The draft fork PR cgwalters-forge/bootc#34 ("cli: Add blockdev ls-filesystem --optional, test it booted", opened 30 Sep by cgwalters-bot) does exactly what this issue asks. It has had no review since then.
bootupd CI: composefs e2e boot broken by bootc composefs.digest= karg vs 1.16 initramfs #34 adds --optional to ls-filesystem, which prints null when there is no backing block device. It also adds tmt/tests/booted/readonly/016-test-blockdev-optional.nu, which covers /sysroot (real disk, same result as without the flag), / (a device, or null on a composefs overlay), and /proc (null, and the plain command fails). It also covers a tmpfs and an overlayfs, each mounted in a private mount namespace. The PR description says just validate, the unit tests and readonly tmt passed for both ostree and composefs on devspaces. Fork CI is off, so I couldn't check this.
(a) Approve as it is, or comment /promote. This opens it upstream.
(b) Ask for a separate internals subcommand instead of the --optional flag. This is open question 1 on the PR.
(c) Close it if the unit test from #2517 is enough.
Open question 2 on the PR: the test VMs have no virtiofs mount, so virtiofs isn't tested. tmpfs and overlay go through the same st_dev major-0 path, and I think that is enough. A nit you might raise: there is already a readonly/016-test-blockdev-no-udev.nu, so the new test shares the number 016. That only affects the order the tests run in. Once the upstream PR merges, this issue can be closed as completed.
Activity
cgwalters-bot commentedon Oct 22, 2026
✅ dispatch ended well. Result: #247 (comment)
cgwalters-bot commentedon Oct 22, 2026
Valid, and already implemented. It needs the operator's review, not another run. The draft fork PR cgwalters-forge/bootc#34 ("cli: Add blockdev ls-filesystem --optional, test it booted", opened 30 Sep by cgwalters-bot) does exactly what this issue asks. It has had no review since then.
What I checked:
main(de7ae55),list_dev_by_dir_optionalis still called only from its own unit test (/proc).bootc internals blockdev ls-filesystemstill only callslist_dev_by_dir. So the gap is real upstream.--optionaltols-filesystem, which printsnullwhen there is no backing block device. It also addstmt/tests/booted/readonly/016-test-blockdev-optional.nu, which covers/sysroot(real disk, same result as without the flag),/(a device, ornullon a composefs overlay), and/proc(null, and the plain command fails). It also covers a tmpfs and an overlayfs, each mounted in a private mount namespace. The PR description saysjust validate, the unit tests and readonly tmt passed for both ostree and composefs on devspaces. Fork CI is off, so I couldn't check this.mergeable: cleanagainst the fork'smain. The fork'smainis one commit behind upstream, and that commit only changesADOPTERS.md. No other PR, upstream or on the fork, touches this.Decision for
@cgwalters: review #34. The options:/promote. This opens it upstream.internalssubcommand instead of the--optionalflag. This is open question 1 on the PR.Open question 2 on the PR: the test VMs have no virtiofs mount, so virtiofs isn't tested. tmpfs and overlay go through the same
st_devmajor-0 path, and I think that is enough. A nit you might raise: there is already areadonly/016-test-blockdev-no-udev.nu, so the new test shares the number 016. That only affects the order the tests run in. Once the upstream PR merges, this issue can be closed as completed.Generated-by: https://github.com/cgwalters/#llms