Skip to content

tests: Skip BLI detection test when discoverable-partitions config is absent#2155

Merged
jmarrero merged 1 commit intobootc-dev:mainfrom
jmarrero:fix-discoverable-partitions-to-filesystem
Apr 23, 2026
Merged

tests: Skip BLI detection test when discoverable-partitions config is absent#2155
jmarrero merged 1 commit intobootc-dev:mainfrom
jmarrero:fix-discoverable-partitions-to-filesystem

Conversation

@jmarrero
Copy link
Copy Markdown
Contributor

@jmarrero jmarrero commented Apr 21, 2026

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

@bootc-bot bootc-bot Bot requested a review from ckyrouac April 21, 2026 18:03
@github-actions github-actions Bot added the area/install Issues related to `bootc install` label Apr 21, 2026
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread crates/lib/src/install.rs Outdated
@jmarrero jmarrero force-pushed the fix-discoverable-partitions-to-filesystem branch from 4b3cc51 to c5c04a8 Compare April 21, 2026 18:29
@jeckersb
Copy link
Copy Markdown
Collaborator

well this might eventually pass if we can stop getting gateway timeouts...

/me re-runs yet again

@jmarrero
Copy link
Copy Markdown
Contributor Author

idk... not looking good yet:

Running on fedora 45, checking DPS root discovery
Error:   × Fedora 43+ should use DPS auto-discovery (no root= in cmdline)
    ╭─[/var/ARTIFACTS/work-plan-01-readonlypgkxqhp6/tmt/plans/integration/plan-01-readonly/discover/default-0/tests/tmt/tests/booted/readonly/052-test-bli-detection.nu:37:8]
 36 │ 
 37 │ assert (not $has_root_karg) "Fedora 43+ should use DPS auto-discovery (no root= in cmdline)"
    ·        ──────────┬─────────
    ·                  ╰── It is not true.
 38 │ 
    ╰────

@jmarrero jmarrero force-pushed the fix-discoverable-partitions-to-filesystem branch from c5c04a8 to 37f7145 Compare April 22, 2026 13:02
@jmarrero jmarrero changed the title install: Honor discoverable-partitions in to-filesystem/to-existing-root tests: Skip BLI detection test when discoverable-partitions config is absent Apr 22, 2026
@jmarrero jmarrero requested a review from jeckersb April 22, 2026 15:23
@jmarrero
Copy link
Copy Markdown
Contributor Author

@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.

@jeckersb
Copy link
Copy Markdown
Collaborator

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 test-coreos test is failing but I'm not sure if that was already broken before all of this.

@cgwalters
Copy link
Copy Markdown
Collaborator

Let's clearly mark the commit as

Fixes: #2123

or so.

This one is definitely messy, with to-filesystem we could in theory also start converting partitions over to DPS, but it would make it more difficult to support rollbacks to prior state in the future.

Probably the simplest thing here is to pass through an env var into the tests. We already do --context=running_env=image_mode but I'm not sure if that makes it into the inner test environment. It looks like we unconditionally set BCVK_EXPORT=1 right now, and we could check that in the test.

@jmarrero jmarrero force-pushed the fix-discoverable-partitions-to-filesystem branch from 37f7145 to 1a9dff6 Compare April 22, 2026 17:42
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>
@jmarrero jmarrero force-pushed the fix-discoverable-partitions-to-filesystem branch from 1a9dff6 to 2a459ac Compare April 22, 2026 17:42
@jmarrero jmarrero enabled auto-merge (rebase) April 23, 2026 01:36
@jmarrero jmarrero disabled auto-merge April 23, 2026 01:41
@jmarrero jmarrero merged commit db955ed into bootc-dev:main Apr 23, 2026
57 of 65 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/install Issues related to `bootc install`

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants