tests: Skip BLI detection test when discoverable-partitions config is absent#2155
Conversation
There was a problem hiding this comment.
Code Review
This pull request introduces logic to omit the root= kernel argument when discoverable-partitions is enabled, allowing systemd-gpt-auto-generator to handle root discovery. A review comment points out that the current implementation incorrectly discards all other kernel arguments in root_info.kargs, such as rootflags, which are necessary for certain configurations like btrfs. It is recommended to preserve these arguments while only omitting the mount specification.
4b3cc51 to
c5c04a8
Compare
|
well this might eventually pass if we can stop getting gateway timeouts... /me re-runs yet again |
|
idk... not looking good yet: |
c5c04a8 to
37f7145
Compare
|
@jeckersb this is starting to pass now, since this pass locally and in github ci and not in tmt, I am just skipping it on tmt. |
|
The tmt rawhide failures should be fixed by #2153 but fortunately those rawhide jobs are non-voting so ideally we can get this PR merged and then I'll go rebase that one to pull in this fix and then we should be good? Only other notable thing here is that the |
|
Let's clearly mark the commit as Fixes: #2123 or so. This one is definitely messy, with Probably the simplest thing here is to pass through an env var into the tests. We already do |
37f7145 to
1a9dff6
Compare
The 052-test-bli-detection test asserts that Fedora 43+ systems boot without a root= kernel argument (using DPS auto-discovery instead). However, this only works when the install was performed via bootc install to-disk, which creates partitions with DPS type GUIDs. In Packit/gating CI, the system is installed via bootc install to-existing-root on a Testing Farm VM whose partitions were not created with DPS type GUIDs. The test was unconditionally failing in this environment. Fix this by checking for the BCVK_EXPORT environment variable, which is set by xtask when running tests via bcvk (image-mode). When not in image-mode, the test skips since DPS root discovery cannot work on partitions that lack the proper type GUIDs. Fixes: bootc-dev#2123 Assisted-by: OpenCode (Claude Opus 4.6) Signed-off-by: Joseph Marrero Corchado <jmarrero@redhat.com>
1a9dff6 to
2a459ac
Compare
The 052-test-bli-detection test asserts that Fedora 43+ systems boot
without a root= kernel argument (using DPS auto-discovery instead).
However, this only works when the install was performed via
bootc install to-disk, which creates partitions with DPS type GUIDs.
In Packit/gating CI, the system is installed via
bootc install to-existing-root on a Testing Farm VM whose partitions
were not created with DPS type GUIDs. The test was unconditionally
failing in this environment.
Fix this by checking for the BCVK_EXPORT environment variable, which
is set by xtask when running tests via bcvk (image-mode). When not
in image-mode, the test skips since DPS root discovery cannot work
on partitions that lack the proper type GUIDs.
Fixes: #2123
Assisted-by: OpenCode (Claude Opus 4.6)
Signed-off-by: Joseph Marrero Corchado jmarrero@redhat.com