Skip to content

feat: Add NVIDIA SLES 16.1 kernel validation module for installations - #27175

Draft
hadeskun wants to merge 1 commit into
os-autoinst:masterfrom
hadeskun:validateKernelModule
Draft

hadeskun wants to merge 1 commit into
os-autoinst:masterfrom
hadeskun:validateKernelModule

Conversation

@hadeskun

@hadeskun hadeskun commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

Introduce validation test module to verify kernel version using "uname -r"

@hadeskun hadeskun self-assigned this Oct 27, 2026
@hadeskun hadeskun added the WIP Work in progress label Oct 27, 2026
@hadeskun
hadeskun force-pushed the validateKernelModule branch 11 times, most recently from 023a544 to e65e9a0 Compare October 29, 2026 10:53
@hadeskun hadeskun added qe-yam and removed WIP Work in progress labels Oct 29, 2026
sub run {
select_console 'root-console';

my $expected = get_test_suite_data()->{kernel_version}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you don't need test data, because you can only garantee that the command output will give you the nvidia64kb part, the kernel version will be changing with the builds I guess.

@hadeskun
hadeskun force-pushed the validateKernelModule branch 2 times, most recently from 7f87819 to 3383824 Compare November 2, 2026 20:07
Introduce validation test module to verify
kernel version using uname.
# Summary: Validate the kernel version of the installed system.

# Summary: Validate the kernel version of the installed system.
# Compare the output of "uname -r" with the kernel version from test data.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

with the kernel version s/from test data/'nvidia64kb'/

@hjluo hjluo added the notready label Nov 3, 2026
@lemon-suse

Copy link
Copy Markdown
Contributor

Remove test data files which are not needed any more.

Comment thread schedule/yam/agama.yaml

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think you'd better create a new schedule file for Nvidia test, it seems your module validate_kernel_version only for Nvidia test.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Same for other schedule files.


# Summary: Validate the kernel version of the installed system.

# Summary: Validate the kernel version of the installed system.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

line6 and line8 are identical, do we really need that? thanks.

# Summary: Validate the kernel version of the installed system.

# Summary: Validate the kernel version of the installed system.
# Compare the output of "uname -r" with the kernel version from test data.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we don't use test data in the code. so we can rephrase it.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

no need for any comment about specific implementation repeating the command.

@@ -1,4 +1,5 @@
---
kernel_version: 6.12.0-160100.1-nvidia64kb

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

agama_sle_nvidia_immutable.yaml
(From more generic to more specific)

# Copyright 2026 SUSE LLC
# SPDX-License-Identifier: FSFAP

# Summary: Validate the kernel version of the installed system.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Validate the installed system has a NVIDIA-specific kernel.

Comment on lines +19 to +22
my $kernel = script_output('uname -r');

assert_matches(qr/^.+-nvidia64kb$/, $kernel,
"Wrong kernel version '. Got '$kernel'");

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

assert_matches(qr/^.+-nvidia64kb$/, script_output('uname -r'), "The installed system doesn't have a NVIDIA-specific kernel");

- name: SLES-NVIDIA-%VERSION%
alias: SUSE_Linux_Enterprise_Server_for_NVIDIA_%VERSION%_%ARCH%:SLES-NVIDIA-%VERSION%
uri: http://openqa.suse.de/assets/repo/SLES-%VERSION%-%ARCH%-Build%BUILD%/
uri: http://openqa.suse.de/assets/repo/SLES-NVIDIA-%VERSION%-%ARCH%-Build%BUILD%

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

you are missing the final / for each uri.

This branch has not been deployed

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants