Skip to content

Commit 22ad8ea

Browse files
Merge pull request #30976 from BhargaviGudi/node-longrunning
OCPBUGS-81638: Add openshift/disruptive-longrunning testsuite in release-4.21 branch
2 parents ac4798a + 87e2283 commit 22ad8ea

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

pkg/testsuites/standard_suites.go

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -462,6 +462,20 @@ var staticSuites = []ginkgo.TestSuite{
462462
TestTimeout: 120 * time.Minute,
463463
ClusterStabilityDuringTest: ginkgo.Disruptive,
464464
},
465+
{
466+
Name: "openshift/disruptive-longrunning",
467+
Description: templates.LongDesc(`
468+
Long-running disruptive test suite. Tests in this suite are disruptive (cause node reboots,
469+
configuration changes, or cluster-wide disruptions) and take significant time to complete.
470+
Multiple teams can use this suite for their long-running disruptive tests.
471+
`),
472+
Qualifiers: []string{
473+
`name.contains("[Suite:openshift/disruptive-longrunning")`,
474+
},
475+
Parallelism: 1,
476+
TestTimeout: 40 * time.Minute,
477+
ClusterStabilityDuringTest: ginkgo.Disruptive,
478+
},
465479
}
466480

467481
func withExcludedTestsFilter(baseExpr string) string {

test/extended/node/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Node E2E Tests
2+
3+
## Running Long-Running Disruptive Tests
4+
5+
The `openshift/disruptive-longrunning` suite is a general-purpose suite for long-running disruptive tests
6+
across all teams. Node team tests are tagged with `[sig-node]` to identify them.
7+
8+
To run the entire long-running disruptive test suite on a cluster manually, use the command:
9+
10+
```bash
11+
./openshift-tests run "openshift/disruptive-longrunning" --cluster-stability=Disruptive
12+
```
13+
14+
To run only node-specific long-running disruptive tests:
15+
16+
```bash
17+
./openshift-tests run "openshift/disruptive-longrunning" --dry-run | grep "\[sig-node\]" | ./openshift-tests run -f - --cluster-stability=Disruptive
18+
```
19+
20+
## Prerequisites
21+
22+
- Make sure to set `oc` binary to match the cluster version
23+
- Make sure to set the kubeconfig to point to a live OCP cluster
24+
25+
## Important Notes
26+
27+
- Note that dry-run option won't list the test as it does not connect to a live cluster
28+
- Run `make update` if the test data is changed

0 commit comments

Comments
 (0)