Skip to content

Commit 6b43480

Browse files
committed
Add a bootc-base tag and kola.BootcBaseTag for Kola tests that do not set UserData.docs.
Tag the agreed core, ostree, and rpm-ostree upgrade-rollback tests so we can select them without custom Ignition
1 parent b23d8cf commit 6b43480

5 files changed

Lines changed: 15 additions & 4 deletions

File tree

mantle/kola/harness.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ const InstalledTestDefaultTest = "test.sh"
8080
// Specifying this in the tags list is required to denote a need for Internet access
8181
const NeedsInternetTag = "needs-internet"
8282

83+
// BootcBaseTag marks tests with no test-specific Ignition/Butane (no register.Test.UserData).
84+
// They are intended to run when SSH is provisioned without custom Ignition (e.g. systemd/SMBIOS).
85+
const BootcBaseTag = "bootc-base"
86+
8387
// PlatformIndependentTag is currently equivalent to platform: qemu, but that may change in the future.
8488
// For more, see the doc in external-tests.md.
8589
const PlatformIndependentTag = "platform-independent"

mantle/kola/tests/coretest/core.go

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import (
1111

1212
"github.com/pborman/uuid"
1313

14+
"github.com/coreos/coreos-assembler/mantle/kola"
1415
"github.com/coreos/coreos-assembler/mantle/kola/register"
1516
"github.com/coreos/coreos-assembler/mantle/platform"
1617
)
@@ -57,6 +58,7 @@ func init() {
5758
Run: LocalTests,
5859
ClusterSize: 1,
5960
NativeFuncs: nativeFuncs,
61+
Tags: []string{kola.BootcBaseTag},
6062
})
6163
register.RegisterTest(&register.Test{
6264
Name: "basic.uefi",
@@ -69,6 +71,7 @@ func init() {
6971
MachineOptions: platform.MachineOptions{
7072
Firmware: uefi,
7173
},
74+
Tags: []string{kola.BootcBaseTag},
7275
})
7376
register.RegisterTest(&register.Test{
7477
Name: "basic.uefi-secure",
@@ -81,6 +84,7 @@ func init() {
8184
MachineOptions: platform.MachineOptions{
8285
Firmware: uefiSecure,
8386
},
87+
Tags: []string{kola.BootcBaseTag},
8488
})
8589
register.RegisterTest(&register.Test{
8690
Name: "basic.nvme",
@@ -95,6 +99,7 @@ func init() {
9599
MachineOptions: platform.MachineOptions{
96100
Nvme: true,
97101
},
102+
Tags: []string{kola.BootcBaseTag},
98103
})
99104
register.RegisterTest(&register.Test{
100105
Name: "rootfs.uuid",
@@ -106,6 +111,7 @@ func init() {
106111
},
107112
// FIXME run on RHCOS once it has https://github.com/coreos/ignition-dracut/pull/93
108113
Distros: []string{"fcos"},
114+
Tags: []string{kola.BootcBaseTag},
109115
})
110116
register.RegisterTest(&register.Test{
111117
Name: "rhcos.services-disabled",
@@ -116,6 +122,7 @@ func init() {
116122
"ServicesDisabled": register.CreateNativeFuncWrap(TestServicesDisabledRHCOS),
117123
},
118124
Distros: []string{"rhcos"},
125+
Tags: []string{kola.BootcBaseTag},
119126
})
120127
}
121128

mantle/kola/tests/ostree/sync.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func init() {
8181
Name: "ostree.sync",
8282
Description: "Verify ostree can sync the filesystem with disconnected the NFS volume.",
8383
Distros: []string{"rhcos"},
84-
Tags: []string{"ostree", kola.SkipBaseChecksTag, kola.NeedsInternetTag, "reprovision"},
84+
Tags: []string{"ostree", kola.SkipBaseChecksTag, kola.NeedsInternetTag, "reprovision", kola.BootcBaseTag},
8585
})
8686
}
8787

mantle/kola/tests/ostree/unlock.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ func init() {
3131
Name: "ostree.unlock",
3232
Description: "Verify installing an rpm does not persist when using `ostree admin unlock`.",
3333
FailFast: true,
34-
Tags: []string{"ostree", kola.NeedsInternetTag}, // need network to pull RPM
34+
Tags: []string{"ostree", kola.NeedsInternetTag, kola.BootcBaseTag}, // need network to pull RPM
3535
})
3636
register.RegisterTest(&register.Test{
3737
Run: ostreeHotfixTest,
3838
ClusterSize: 1,
3939
Name: "ostree.hotfix",
4040
Description: "Verify that the deployment can be put into hotfix mode where RPMs installed with persist across reboots.",
4141
FailFast: true,
42-
Tags: []string{"ostree", kola.NeedsInternetTag}, // need network to pull RPM
42+
Tags: []string{"ostree", kola.NeedsInternetTag, kola.BootcBaseTag}, // need network to pull RPM
4343
})
4444
}
4545

mantle/kola/tests/rpmostree/deployments.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ func init() {
3333
Name: "rpmostree.upgrade-rollback",
3434
Description: "Verify an upgrade and rollback with a simulated update works.",
3535
FailFast: true,
36-
Tags: []string{"rpm-ostree", "upgrade"},
36+
Tags: []string{"rpm-ostree", "upgrade", kola.BootcBaseTag},
3737
})
3838
register.RegisterTest(&register.Test{
3939
Run: rpmOstreeInstallUninstall,

0 commit comments

Comments
 (0)