Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testiso: add new PXE tests instead of '--pxe-append-rootfs' switch #4031

Merged
merged 1 commit into from
Mar 5, 2025

Conversation

nikita-dubrovskii
Copy link
Contributor

@nikita-dubrovskii nikita-dubrovskii commented Feb 27, 2025

The kola testiso command supported --pxe-append-rootfs, but it was never used in CI, and probably was also ignored by developers. This PR drops that switch and adds 1 new test for each arch:

  • pxe-[online|offline]-install.rootfs-appended

@nikita-dubrovskii
Copy link
Contributor Author

Or another way - coreos/coreos-ci-lib#162

@dustymabe
Copy link
Member

Thanks @nikita-dubrovskii - this LGTM. We can merge after our FCOS releases go out this week.

One suggestion I have is that we don't actually add more testiso tests as part of this, but rather repurpose existing ones (trying to get coverage of the various scenarios across the architectures).

WDYT of something like this:

diff --git a/mantle/cmd/kola/testiso.go b/mantle/cmd/kola/testiso.go
index 709bcbf1c..2eaeb0613 100644
--- a/mantle/cmd/kola/testiso.go
+++ b/mantle/cmd/kola/testiso.go
@@ -96,23 +96,21 @@ var (
                "miniso-install.nm.bios",
                "miniso-install.4k.uefi",
                "miniso-install.4k.nm.uefi",
-               "pxe-offline-install.bios",
+               "pxe-offline-install.rootfs-appended.bios",
                "pxe-offline-install.4k.uefi",
                "pxe-online-install.bios",
                "pxe-online-install.4k.uefi",
-               "pxe-offline-install.rootfs-appended.uefi",
        }
        tests_s390x = []string{
                "iso-live-login.s390fw",
                "iso-offline-install.s390fw",
                "iso-offline-install.mpath.s390fw",
                "iso-offline-install.4k.s390fw",
-               "pxe-online-install.s390fw",
+               "pxe-online-install.rootfs-appended.s390fw",
                "pxe-offline-install.s390fw",
                "miniso-install.s390fw",
                "miniso-install.nm.s390fw",
                "miniso-install.4k.nm.s390fw",
-               "pxe-offline-install.rootfs-appended.s390fw",
                // FIXME https://github.com/coreos/fedora-coreos-tracker/issues/1657
                //"iso-offline-install-iscsi.ibft.s390fw,
                //"iso-offline-install-iscsi.ibft-with-mpath.s390fw",
@@ -127,9 +125,8 @@ var (
                "miniso-install.nm.ppcfw",
                "miniso-install.4k.ppcfw",
                "miniso-install.4k.nm.ppcfw",
-               "pxe-online-install.ppcfw",
-               "pxe-offline-install.4k.ppcfw",
                "pxe-offline-install.rootfs-appended.ppcfw",
+               "pxe-offline-install.4k.ppcfw",
                // FIXME https://github.com/coreos/fedora-coreos-tracker/issues/1657
                //"iso-offline-install-iscsi.ibft.ppcfw",
                //"iso-offline-install-iscsi.ibft-with-mpath.ppcfw",
@@ -146,10 +143,9 @@ var (
                "miniso-install.4k.uefi",
                "miniso-install.4k.nm.uefi",
                "pxe-offline-install.uefi",
-               "pxe-offline-install.4k.uefi",
+               "pxe-offline-install.rootfs-appended.4k.uefi",
                "pxe-online-install.uefi",
                "pxe-online-install.4k.uefi",
-               "pxe-offline-install.rootfs-appended.uefi",
                // FIXME https://github.com/coreos/fedora-coreos-tracker/issues/1657
                //"iso-offline-install-iscsi.ibft.uefi",
                //"iso-offline-install-iscsi.ibft-with-mpath.uefi",

@nikita-dubrovskii
Copy link
Contributor Author

@dustymabe

WDYT of something like this

What's the goal? Reducing overall test time? I prefer more different tests

@dustymabe
Copy link
Member

What's the goal? Reducing overall test time? I prefer more different tests

The goal is to have a balance of test coverage versus time spent doing tests. The testiso tests are already over an hour in our pipeline runs.

In a world where we had infinite resources I would agree with you, but practically I'd prefer to not add to our testiso test load here.

cc @jlebon for another opinion.

@nikita-dubrovskii
Copy link
Contributor Author

@dustymabe, Done, now it's just a suffix to existing tests

@dustymabe
Copy link
Member

This LGTM.

weird.. CI is showing:

[2025-03-04T15:13:00.791Z] WARNING: DATA RACE
[2025-03-04T15:13:00.791Z] Read at 0x00c000948458 by goroutine 4451:

but it's not even on the testiso tests..

The `kola testiso` command supported `--pxe-append-rootfs`, but it
was never used in CI, and probably was also ignored by developers.
This PR drops that switch and adds 1 new test for each arch:
- pxe-[online|offline]-install.rootfs-appended
@nikita-dubrovskii
Copy link
Contributor Author

[2025-03-04T15:13:00.791Z] WARNING: DATA RACE
[2025-03-04T15:13:00.791Z] Read at 0x00c000948458 by goroutine 4451:

but it's not even on the testiso tests..

Locally haven't seen this. Rebased , let's see if this occurs again

@dustymabe
Copy link
Member

another CI failure happened that looks unrelated :(

Do you mind looking into that one? maybe the toolbox container in the remote registry is broken?

@dustymabe dustymabe enabled auto-merge (rebase) March 5, 2025 16:34
@dustymabe dustymabe merged commit 3ca9484 into coreos:main Mar 5, 2025
5 checks passed
@nikita-dubrovskii nikita-dubrovskii deleted the pxe_appended_rootfs branch March 6, 2025 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants