Skip to content

Commit bb24538

Browse files
authored
Merge pull request kubernetes#128923 from kannon92/drop-node-special-feature-node-e2e
[KEP-3041]: Drop NodeSpecialFeature and NodeAlphaFeature from e2e-node
2 parents cc03c60 + 6a608c3 commit bb24538

File tree

8 files changed

+21
-12
lines changed

8 files changed

+21
-12
lines changed

test/e2e/common/node/pod_level_resources.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ var (
5252
cmd = []string{"/bin/sh", "-c", "sleep 1d"}
5353
)
5454

55-
var _ = SIGDescribe("Pod Level Resources", framework.WithSerial(), feature.PodLevelResources, "[NodeAlphaFeature:PodLevelResources]", func() {
55+
var _ = SIGDescribe("Pod Level Resources", framework.WithSerial(), feature.PodLevelResources, func() {
5656
f := framework.NewDefaultFramework("pod-level-resources-tests")
5757
f.NamespacePodSecurityLevel = admissionapi.LevelPrivileged
5858

test/e2e/common/node/pod_resize.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1210,7 +1210,7 @@ func doPodResizeErrorTests() {
12101210
// Above tests are performed by doSheduletTests() and doPodResizeResourceQuotaTests()
12111211
// in test/e2e/node/pod_resize.go
12121212

1213-
var _ = SIGDescribe("Pod InPlace Resize Container", feature.InPlacePodVerticalScaling, "[NodeAlphaFeature:InPlacePodVerticalScaling]", func() {
1213+
var _ = SIGDescribe("Pod InPlace Resize Container", feature.InPlacePodVerticalScaling, func() {
12141214
f := framework.NewDefaultFramework("pod-resize-tests")
12151215

12161216
ginkgo.BeforeEach(func(ctx context.Context) {

test/e2e/feature/feature.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,12 @@ var (
110110
// is enabled such that passing CDI device IDs through CRI fields is supported
111111
DynamicResourceAllocation = framework.WithFeature(framework.ValidFeatures.Add("DynamicResourceAllocation"))
112112

113+
// owning-sig: sig-node
114+
// kep: https://kep.k8s.io/4009
115+
// DevicePluginCDIDevices tests the CDI feature which is GA.
116+
// This label is used for https://testgrid.k8s.io/sig-node-cri-o#ci-crio-cdi-device-plugins
117+
DevicePluginCDIDevices = framework.WithFeature(framework.ValidFeatures.Add("DevicePluginCDIDevices"))
118+
113119
// TODO: document the feature (owning SIG, when to use this feature for a test)
114120
EphemeralStorage = framework.WithFeature(framework.ValidFeatures.Add("EphemeralStorage"))
115121

@@ -207,6 +213,9 @@ var (
207213
// TODO: document the feature (owning SIG, when to use this feature for a test)
208214
LocalStorageCapacityIsolationQuota = framework.WithFeature(framework.ValidFeatures.Add("LocalStorageCapacityIsolationQuota"))
209215

216+
// owning-sig: sig-node
217+
// Marks a disruptive test for lock contention
218+
LockContention = framework.WithFeature(framework.ValidFeatures.Add("LockContention"))
210219
// TODO: document the feature (owning SIG, when to use this feature for a test)
211220
MasterUpgrade = framework.WithFeature(framework.ValidFeatures.Add("MasterUpgrade"))
212221

test/e2e_node/density_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ var _ = SIGDescribe("Density", framework.WithSerial(), framework.WithSlow(), fun
168168

169169
for _, testArg := range dTests {
170170
itArg := testArg
171-
desc := fmt.Sprintf("latency/resource should be within limit when create %d pods with %v interval [Benchmark][NodeSpecialFeature:Benchmark]", itArg.podsNr, itArg.interval)
171+
desc := fmt.Sprintf("latency/resource should be within limit when create %d pods with %v interval [Benchmark]", itArg.podsNr, itArg.interval)
172172
ginkgo.It(desc, func(ctx context.Context) {
173173
itArg.createMethod = "batch"
174174
testInfo := getTestNodeInfo(f, itArg.getTestName(), desc)
@@ -206,7 +206,7 @@ var _ = SIGDescribe("Density", framework.WithSerial(), framework.WithSlow(), fun
206206
for _, testArg := range dTests {
207207
itArg := testArg
208208
ginkgo.Context("", func() {
209-
desc := fmt.Sprintf("latency/resource should be within limit when create %d pods with %v interval (QPS %d) [Benchmark][NodeSpecialFeature:Benchmark]", itArg.podsNr, itArg.interval, itArg.APIQPSLimit)
209+
desc := fmt.Sprintf("latency/resource should be within limit when create %d pods with %v interval (QPS %d) [Benchmark]", itArg.podsNr, itArg.interval, itArg.APIQPSLimit)
210210
// The latency caused by API QPS limit takes a large portion (up to ~33%) of e2e latency.
211211
// It makes the pod startup latency of Kubelet (creation throughput as well) under-estimated.
212212
// Here we set API QPS limit from default 5 to 60 in order to test real Kubelet performance.

test/e2e_node/device_plugin_test.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@ import (
4949
kubeletpodresourcesv1 "k8s.io/kubelet/pkg/apis/podresources/v1"
5050
kubeletpodresourcesv1alpha1 "k8s.io/kubelet/pkg/apis/podresources/v1alpha1"
5151
"k8s.io/kubernetes/pkg/features"
52+
"k8s.io/kubernetes/test/e2e/feature"
5253
"k8s.io/kubernetes/test/e2e/framework"
5354
e2enode "k8s.io/kubernetes/test/e2e/framework/node"
5455
e2epod "k8s.io/kubernetes/test/e2e/framework/pod"
55-
e2eskipper "k8s.io/kubernetes/test/e2e/framework/skipper"
5656
e2etestfiles "k8s.io/kubernetes/test/e2e/framework/testfiles"
5757
"k8s.io/kubernetes/test/e2e/nodefeature"
5858
)
@@ -283,8 +283,7 @@ func testDevicePlugin(f *framework.Framework, pluginSockDir string) {
283283
gomega.Expect(v1ResourcesForOurPod.Containers[0].Devices[0].DeviceIds).To(gomega.HaveLen(1))
284284
})
285285

286-
ginkgo.It("[NodeSpecialFeature:CDI] can make a CDI device accessible in a container", func(ctx context.Context) {
287-
e2eskipper.SkipUnlessFeatureGateEnabled(features.DevicePluginCDIDevices)
286+
f.It("can make a CDI device accessible in a container", feature.DevicePluginCDIDevices, func(ctx context.Context) {
288287
// check if CDI_DEVICE env variable is set
289288
// and only one correspondent device node /tmp/<CDI_DEVICE> is available inside a container
290289
podObj := makeBusyboxPod(SampleDeviceResourceName, "[ $(ls /tmp/CDI-Dev-[1,2] | wc -l) -eq 1 -a -b /tmp/$CDI_DEVICE ]")

test/e2e_node/dra_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ limitations under the License.
1818
E2E Node test for DRA (Dynamic Resource Allocation)
1919
This test covers node-specific aspects of DRA
2020
The test can be run locally on Linux this way:
21-
make test-e2e-node FOCUS='\[NodeAlphaFeature:DynamicResourceAllocation\]' SKIP='\[Flaky\]' PARALLELISM=1 \
21+
make test-e2e-node FOCUS='\[Feature:DynamicResourceAllocation\]' SKIP='\[Flaky\]' PARALLELISM=1 \
2222
TEST_ARGS='--feature-gates="DynamicResourceAllocation=true" --service-feature-gates="DynamicResourceAllocation=true" --runtime-config=api/all=true'
2323
*/
2424

@@ -83,7 +83,7 @@ const (
8383
retryTestTimeout = kubeletRetryPeriod + 30*time.Second
8484
)
8585

86-
var _ = framework.SIGDescribe("node")("DRA", feature.DynamicResourceAllocation, "[NodeAlphaFeature:DynamicResourceAllocation]", func() {
86+
var _ = framework.SIGDescribe("node")("DRA", feature.DynamicResourceAllocation, func() {
8787
f := framework.NewDefaultFramework("dra-node")
8888
f.NamespacePodSecurityLevel = admissionapi.LevelBaseline
8989

test/e2e_node/hugepages_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func getHugepagesTestPod(f *framework.Framework, limits v1.ResourceList, mounts
201201
}
202202

203203
// Serial because the test updates kubelet configuration.
204-
var _ = SIGDescribe("HugePages", framework.WithSerial(), feature.HugePages, "[NodeSpecialFeature:HugePages]", func() {
204+
var _ = SIGDescribe("HugePages", framework.WithSerial(), feature.HugePages, func() {
205205
f := framework.NewDefaultFramework("hugepages-test")
206206
f.NamespacePodSecurityLevel = admissionapi.LevelPrivileged
207207

test/e2e_node/lock_contention_linux_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,17 @@ import (
2727

2828
"github.com/onsi/ginkgo/v2"
2929
"github.com/onsi/gomega"
30+
"k8s.io/kubernetes/test/e2e/feature"
3031
"k8s.io/kubernetes/test/e2e/framework"
3132
)
3233

3334
const contentionLockFile = "/var/run/kubelet.lock"
3435

3536
// Kubelet Lock contention tests the lock contention feature.
3637
// Disruptive because the kubelet is restarted in the test.
37-
// NodeSpecialFeature:LockContention because we don't want the test to be picked up by any other
38+
// Feature:LockContention because we don't want the test to be picked up by any other
3839
// test suite, hence the unique name "LockContention".
39-
var _ = SIGDescribe("Lock contention", framework.WithSlow(), framework.WithDisruptive(), "[NodeSpecialFeature:LockContention]", func() {
40+
var _ = SIGDescribe("Lock contention", framework.WithSlow(), framework.WithDisruptive(), feature.LockContention, func() {
4041

4142
// Requires `--lock-file` & `--exit-on-lock-contention` flags to be set on the Kubelet.
4243
ginkgo.It("Kubelet should stop when the test acquires the lock on lock file and restart once the lock is released", func(ctx context.Context) {

0 commit comments

Comments
 (0)