Skip to content

Commit

Permalink
CI fix to always capture latest ocp version (#89)
Browse files Browse the repository at this point in the history
Signed-off-by: Vishnu Challa <[email protected]>
Co-authored-by: Vishnu Challa <[email protected]>
  • Loading branch information
vishnuchalla and Vishnu Challa authored Jan 21, 2025
1 parent 72374fa commit b82a6a8
Show file tree
Hide file tree
Showing 10 changed files with 60 additions and 133 deletions.
2 changes: 1 addition & 1 deletion examples/label-small-scale-cluster-density.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tests :
workerNodesType: m6a.xlarge
workerNodesCount: 24
benchmark.keyword: cluster-density-v2
ocpVersion: 4.15
ocpVersion: {{ version }}
# networkType: OVNKubernetes
# encrypted: true
# fips: false
Expand Down
106 changes: 0 additions & 106 deletions examples/payload-scale-416.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tests :
workerNodesType: m6a.xlarge
workerNodesCount: 6
benchmark.keyword: cluster-density-v2
ocpVersion: 4.15
ocpVersion: {{ version }}
networkType: OVNKubernetes

metrics :
Expand Down Expand Up @@ -62,7 +62,7 @@ tests :
workerNodesType: m6a.xlarge
workerNodesCount: 6
benchmark.keyword: node-density
ocpVersion: 4.15
ocpVersion: {{ version }}
networkType: OVNKubernetes

metrics :
Expand Down
14 changes: 7 additions & 7 deletions examples/readout-control-plane-cdv2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ tests :
index: {{ es_metadata_index }}
benchmarkIndex: {{ es_benchmark_index }}
metadata:
ocpVersion: 4.15
ocpVersion: {{ version }}
platform: AWS
clusterType: rosa
benchmark.keyword: cluster-density-v2
Expand Down Expand Up @@ -40,7 +40,7 @@ tests :
index: {{ es_metadata_index }}
benchmarkIndex: {{ es_benchmark_index }}
metadata:
ocpVersion: 4.15
ocpVersion: {{ version }}
platform: AWS
clusterType: rosa
benchmark.keyword: cluster-density-v2
Expand Down Expand Up @@ -77,7 +77,7 @@ tests :
index: {{ es_metadata_index }}
benchmarkIndex: {{ es_benchmark_index }}
metadata:
ocpVersion: 4.15
ocpVersion: {{ version }}
platform: AWS
clusterType: rosa
benchmark.keyword: cluster-density-v2
Expand Down Expand Up @@ -114,7 +114,7 @@ tests :
index: {{ es_metadata_index }}
benchmarkIndex: {{ es_benchmark_index }}
metadata:
ocpVersion: 4.15
ocpVersion: {{ version }}
platform: AWS
clusterType: rosa
benchmark.keyword: cluster-density-v2
Expand Down Expand Up @@ -163,7 +163,7 @@ tests :
index: {{ es_metadata_index }}
benchmarkIndex: {{ es_benchmark_index }}
metadata:
ocpVersion: 4.15
ocpVersion: {{ version }}
platform: AWS
clusterType: rosa
benchmark.keyword: cluster-density-v2
Expand Down Expand Up @@ -207,7 +207,7 @@ tests :
index: {{ es_metadata_index }}
benchmarkIndex: {{ es_benchmark_index }}
metadata:
ocpVersion: 4.15
ocpVersion: {{ version }}
platform: AWS
clusterType: rosa
benchmark.keyword: cluster-density-v2
Expand Down Expand Up @@ -252,7 +252,7 @@ tests :
index: {{ es_metadata_index }}
benchmarkIndex: {{ es_benchmark_index }}
metadata:
ocpVersion: 4.15
ocpVersion: {{ version }}
platform: AWS
clusterType: rosa
benchmark.keyword: cluster-density-v2
Expand Down
14 changes: 7 additions & 7 deletions examples/readout-control-plane-node-density.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ tests :
index: {{ es_metadata_index }}
benchmarkIndex: {{ es_benchmark_index }}
metadata:
ocpVersion: 4.15
ocpVersion: {{ version }}
platform: AWS
clusterType: rosa
benchmark.keyword: node-density-heavy
Expand Down Expand Up @@ -52,7 +52,7 @@ tests :
index: {{ es_metadata_index }}
benchmarkIndex: {{ es_benchmark_index }}
metadata:
ocpVersion: 4.15
ocpVersion: {{ version }}
platform: AWS
clusterType: rosa
benchmark.keyword: node-density
Expand Down Expand Up @@ -84,7 +84,7 @@ tests :
index: {{ es_metadata_index }}
benchmarkIndex: {{ es_benchmark_index }}
metadata:
ocpVersion: 4.15
ocpVersion: {{ version }}
platform: AWS
clusterType: rosa
benchmark.keyword: node-density
Expand Down Expand Up @@ -116,7 +116,7 @@ tests :
index: {{ es_metadata_index }}
benchmarkIndex: {{ es_benchmark_index }}
metadata:
ocpVersion: 4.15
ocpVersion: {{ version }}
platform: AWS
clusterType: rosa
benchmark.keyword: node-density
Expand Down Expand Up @@ -148,7 +148,7 @@ tests :
index: {{ es_metadata_index }}
benchmarkIndex: {{ es_benchmark_index }}
metadata:
ocpVersion: 4.15
ocpVersion: {{ version }}
platform: AWS
clusterType: rosa
benchmark.keyword: node-density-cni
Expand Down Expand Up @@ -180,7 +180,7 @@ tests :
index: {{ es_metadata_index }}
benchmarkIndex: {{ es_benchmark_index }}
metadata:
ocpVersion: 4.15
ocpVersion: {{ version }}
platform: AWS
clusterType: rosa
benchmark.keyword: node-density-cni
Expand Down Expand Up @@ -212,7 +212,7 @@ tests :
index: {{ es_metadata_index }}
benchmarkIndex: {{ es_benchmark_index }}
metadata:
ocpVersion: 4.15
ocpVersion: {{ version }}
platform: AWS
clusterType: rosa
benchmark.keyword: node-density-cni
Expand Down
2 changes: 1 addition & 1 deletion examples/readout-netperf-tcp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ tests :
index: {{ es_metadata_index }}
benchmarkIndex: {{ es_benchmark_index }}
metadata:
ocpVersion: 4.15
ocpVersion: {{ version }}
platform: AWS
clusterType: rosa
benchmark.keyword: k8s-netperf
Expand Down
2 changes: 1 addition & 1 deletion examples/small-scale-cluster-density.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ tests :
workerNodesType: m6a.xlarge
workerNodesCount: 24
benchmark.keyword: cluster-density-v2
ocpVersion: 4.15
ocpVersion: {{ version }}
networkType: OVNKubernetes
# encrypted: true
# fips: false
Expand Down
2 changes: 1 addition & 1 deletion examples/small-scale-node-density-cni.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tests :
workerNodesCount: 6
infraNodesCount: 3
benchmark.keyword: node-density-cni
ocpVersion: 4.14
ocpVersion: {{ version }}
networkType: OVNKubernetes
infraNodesType: r5.2xlarge
# encrypted: true
Expand Down
2 changes: 1 addition & 1 deletion examples/trt-payload-cluster-density.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ tests :
workerNodesType: m6a.xlarge
workerNodesCount: 6
benchmark.keyword: cluster-density-v2
ocpVersion: 4.17
ocpVersion: {{ version }}
networkType: OVNKubernetes

metrics :
Expand Down
45 changes: 39 additions & 6 deletions test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -26,19 +26,52 @@ setup() {
export ES_SERVER="$QE_ES_SERVER"
export es_metadata_index="perf_scale_ci*"
export es_benchmark_index="ripsaw-kube-burner*"
export version='4.17'
LATEST_VERSION=$(curl -s -X POST "$ES_SERVER/perf_scale_ci*/_search" \
-H "Content-Type: application/json" \
-d '{
"size": 0,
"query": {
"bool": {
"must": [
{
"range": {
"timestamp": {
"gte": "now-1M/M",
"lt": "now/M"
}
}
}
],
"must_not": [
{ "wildcard": { "releaseStream.keyword": "*nightly*" } },
{ "wildcard": { "releaseStream.keyword": "*rc*" } },
{ "wildcard": { "releaseStream.keyword": "*ci*" } },
{ "wildcard": { "releaseStream.keyword": "*ec*" } }
]
}
},
"aggs": {
"distinct_versions": {
"terms": {
"field": "releaseStream.keyword",
"order": { "_key": "desc" }
}
}
}
}' | jq -r '.aggregations.distinct_versions.buckets[0].key')
export version=$(echo "$LATEST_VERSION" | cut -d. -f1,2)
}

@test "orion cmd label small scale cluster density with hunter-analyze " {
run_cmd orion cmd --config "examples/label-small-scale-cluster-density.yaml" --lookback 5d --hunter-analyze
}

@test "orion cmd payload scale 4.15 " {
run_cmd orion cmd --config "examples/payload-scale-415.yaml" --lookback 5d --hunter-analyze
@test "orion cmd payload scale " {
run_cmd orion cmd --config "examples/payload-scale.yaml" --lookback 5d --hunter-analyze
}

@test "orion cmd payload scale 4.16 without lookback period " {
run_cmd orion cmd --config "examples/payload-scale-416.yaml" --hunter-analyze
@test "orion cmd payload scale without lookback period " {
run_cmd orion cmd --config "examples/payload-scale.yaml" --hunter-analyze
}

@test "orion cmd readout control plane cdv2 with text output " {
Expand Down Expand Up @@ -109,7 +142,7 @@ setup() {
orion daemon --port 8080 &
DAEMON_PID=$!
echo "Orion daemon started with PID $DAEMON_PID"
run_cmd curl http://127.0.0.1:8080/daemon/changepoint?version=4.17&filter_changepoints=false&test_name=trt-payload-cluster-density
run_cmd curl http://127.0.0.1:8080/daemon/changepoint?version=$version&filter_changepoints=false&test_name=trt-payload-cluster-density
if [ ! -z "$DAEMON_PID" ]; then
kill $DAEMON_PID
echo "Orion daemon with PID $DAEMON_PID killed"
Expand Down

0 comments on commit b82a6a8

Please sign in to comment.