Skip to content

Commit

Permalink
Maximizing CI Coverage (#196)
Browse files Browse the repository at this point in the history
Signed-off-by: Vishnu Challa <vchalla@vchalla-thinkpadp1gen2.rmtusnc.csb>
Co-authored-by: Vishnu Challa <vchalla@vchalla-thinkpadp1gen2.rmtusnc.csb>
  • Loading branch information
vishnuchalla and Vishnu Challa authored Feb 27, 2025
1 parent 6e31617 commit 303796a
Show file tree
Hide file tree
Showing 8 changed files with 41 additions and 4 deletions.
3 changes: 3 additions & 0 deletions cmd/config/egressip/egressip.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This workload has special hardware requirements.
# In order to meet those requirements we have added CI tests in e2e-benchmarking:
# https://github.com/openshift/release/tree/master/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking
---
global:
gc: {{.GC}}
Expand Down
3 changes: 3 additions & 0 deletions cmd/config/rds-core/rds-core.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This workload has special hardware requirements.
# In order to meet those requirements we have added CI tests in e2e-benchmarking:
# https://github.com/openshift/release/tree/master/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking
---
global:
gc: {{.GC}}
Expand Down
3 changes: 3 additions & 0 deletions cmd/config/udn-density-pods/udn-density-pods.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This workload has special hardware requirements.
# In order to meet those requirements we have added CI tests in e2e-benchmarking:
# https://github.com/openshift/release/tree/master/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking
---
global:
gc: {{.GC}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# This feature is under the deprecation path and will be removed in a future release.
---
global:
gc: {{.GC}}
gcMetrics: {{.GC_METRICS}}
Expand Down
1 change: 1 addition & 0 deletions cmd/config/web-burner-init/web-burner-init.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This feature is under the deprecation path and will be removed in a future release.
---
global:
gc: {{.GC}}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# This feature is under the deprecation path and will be removed in a future release.
---
global:
gc: {{.GC}}
Expand Down
3 changes: 2 additions & 1 deletion pvc-density.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ var dynamicStorageProvisioners = map[string]string{
"gce": "kubernetes.io/gce-pd",
"ibm": "powervs.csi.ibm.com",
"vsphere": "kubernetes.io/vsphere-volume",
"oci": "blockvolume.csi.oraclecloud.com",
}

// NewPVCDensity holds pvc-density workload
Expand All @@ -57,7 +58,7 @@ func NewPVCDensity(wh *workloads.WorkloadHelper) *cobra.Command {
for key := range dynamicStorageProvisioners {
storageProvisioners = append(storageProvisioners, key)
}
re := regexp.MustCompile(`(?sm)^(cinder|azure\-disk|azure\-file|gce|ibm|vsphere|aws)$`)
re := regexp.MustCompile(`(?sm)^(cinder|azure\-disk|azure\-file|gce|ibm|vsphere|aws|oci)$`)
if !re.MatchString(provisioner) {
log.Fatal(fmt.Errorf("%s does not match one of %s", provisioner, storageProvisioners))
}
Expand Down
29 changes: 26 additions & 3 deletions test/test-ocp.bats
Original file line number Diff line number Diff line change
Expand Up @@ -81,22 +81,44 @@ teardown_file() {
}

@test "index: metrics-endpoints=true; es-indexing=true" {
run_cmd kube-burner-ocp index --uuid="${UUID}" --metrics-endpoint metrics-endpoints.yaml --metrics-profile metrics.yml --es-server=https://search-perfscale-dev-chmf5l4sh66lvxbnadi4bznl3a.us-west-2.es.amazonaws.com:443 --es-index=ripsaw-kube-burner --user-metadata user-metadata.yml
run_cmd kube-burner-ocp index --uuid="${UUID}" --metrics-endpoint metrics-endpoints.yaml --metrics-profile metrics.yml --es-server=$PERFSCALE_PROD_ES_SERVER --es-index=ripsaw-kube-burner --user-metadata user-metadata.yml
}

@test "networkpolicy" {
run_cmd kube-burner-ocp network-policy --iterations 2 ${COMMON_FLAGS} --uuid=${UUID}
}

@test "networkpolicy-matchexpressions" {
run_cmd kube-burner-ocp networkpolicy-matchexpressions --iterations 2 ${COMMON_FLAGS} --uuid=${UUID}
}

@test "networkpolicy-matchlabels" {
run_cmd kube-burner-ocp networkpolicy-matchlabels --iterations 2 ${COMMON_FLAGS} --uuid=${UUID}
}

@test "networkpolicy-multitenant" {
run_cmd kube-burner-ocp networkpolicy-multitenant --iterations 5 ${COMMON_FLAGS} --uuid=${UUID}
}

@test "whereabouts" {
run_cmd kube-burner-ocp whereabouts --iterations 2 ${COMMON_FLAGS} --uuid=${UUID}
}

@test "crd-scale; alerting=false" {
run_cmd kube-burner-ocp crd-scale --iterations=10 --alerting=false
run_cmd kube-burner-ocp crd-scale --iterations=2 --alerting=false
}

@test "pvc-density" {
PVC_DENSITY_STORAGE_CLASS=${PVC_DENSITY_STORAGE_CLASS:-oci}
run_cmd kube-burner-ocp pvc-density --iterations=2 --provisioner $PVC_DENSITY_STORAGE_CLASS
}

@test "virt-density" {
run_cmd kube-burner-ocp virt-density --vms-per-node=10 --uuid=${UUID} ${COMMON_FLAGS}
run_cmd kube-burner-ocp virt-density --vms-per-node=2 --uuid=${UUID} ${COMMON_FLAGS}
check_metric_value jobSummary vmiLatencyMeasurement vmiLatencyQuantilesMeasurement
}

# This test is under the deprecation path and will be removed in a future update.
@test "web-burner-node-density" {
LB_WORKER=$(oc get node | grep worker | head -n 1 | cut -f 1 -d' ')
run_cmd oc label node $LB_WORKER node-role.kubernetes.io/worker-spk="" --overwrite
Expand All @@ -108,6 +130,7 @@ teardown_file() {
run_cmd oc delete project served-ns-0 serving-ns-0
}

# This test is under the deprecation path and will be removed in a future update.
@test "web-burner-cluster-density" {
LB_WORKER=$(oc get node | grep worker | head -n 1 | cut -f 1 -d' ')
run_cmd oc label node $LB_WORKER node-role.kubernetes.io/worker-spk="" --overwrite
Expand Down

0 comments on commit 303796a

Please sign in to comment.