6
6
run_cmd (){
7
7
echo " $@ "
8
8
${@ }
9
+ EXIT_CODE=$?
10
+
11
+ if [ $EXIT_CODE -eq 2 ]; then
12
+ echo " Exit code 2 encountered, regression detected, treating as success"
13
+ return 0
14
+ elif [ $EXIT_CODE -eq 3 ]; then
15
+ echo " Exit code 3 encountered, not enough data"
16
+ return 0
17
+ else
18
+ return $EXIT_CODE
19
+ fi
9
20
}
10
21
11
22
setup () {
12
23
# Make a note of daemon PID
13
- orion daemon --port 8080 &
14
- DAEMON_PID=$!
15
- echo " Orion daemon started with PID $DAEMON_PID "
16
24
export ES_SERVER=" $QE_ES_SERVER "
17
25
export es_metadata_index=" perf_scale_ci*"
18
26
export es_benchmark_index=" ripsaw-kube-burner*"
@@ -24,11 +32,11 @@ setup() {
24
32
}
25
33
26
34
@test " orion cmd payload scale 4.15 " {
27
- run_cmd orion cmd --config " examples/payload-scale-415.yaml" --lookback 5d
35
+ run_cmd orion cmd --config " examples/payload-scale-415.yaml" --lookback 5d --hunter-analyze
28
36
}
29
37
30
38
@test " orion cmd payload scale 4.16 without lookback period " {
31
- run_cmd orion cmd --config " examples/payload-scale-416.yaml"
39
+ run_cmd orion cmd --config " examples/payload-scale-416.yaml" --hunter-analyze
32
40
}
33
41
34
42
@test " orion cmd readout control plane cdv2 with text output " {
@@ -45,6 +53,7 @@ setup() {
45
53
46
54
47
55
@test " orion cmd readout netperf tcp with junit output " {
56
+ export es_benchmark_index=" k8s-netperf"
48
57
run_cmd orion cmd --config " examples/readout-netperf-tcp.yaml" --output-format junit --hunter-analyze --save-output-path=output.xml
49
58
}
50
59
@@ -73,23 +82,36 @@ setup() {
73
82
}
74
83
75
84
@test " orion daemon small scale cluster density with anomaly detection " {
85
+ orion daemon --port 8080 &
86
+ DAEMON_PID=$!
87
+ echo " Orion daemon started with PID $DAEMON_PID "
76
88
run_cmd curl http://127.0.0.1:8080/daemon/anomaly? convert_tinyurl=True& test_name=small-scale-cluster-density
89
+ if [ ! -z " $DAEMON_PID " ]; then
90
+ kill $DAEMON_PID
91
+ echo " Orion daemon with PID $DAEMON_PID killed"
92
+ fi
77
93
}
78
94
79
95
@test " orion daemon small scale node density cni with changepoint detection " {
96
+ orion daemon --port 8080 &
97
+ DAEMON_PID=$!
98
+ echo " Orion daemon started with PID $DAEMON_PID "
80
99
run_cmd curl http://127.0.0.1:8080/daemon/changepoint? filter_changepoints=true& test_name=small-scale-node-density-cni
100
+ if [ ! -z " $DAEMON_PID " ]; then
101
+ kill $DAEMON_PID
102
+ echo " Orion daemon with PID $DAEMON_PID killed"
103
+ fi
81
104
}
82
105
83
106
@test " orion daemon trt payload cluster density with version parameter " {
107
+ orion daemon --port 8080 &
108
+ DAEMON_PID=$!
109
+ echo " Orion daemon started with PID $DAEMON_PID "
84
110
run_cmd curl http://127.0.0.1:8080/daemon/changepoint? version=4.17& filter_changepoints=false& test_name=trt-payload-cluster-density
85
- }
86
-
87
- teardown () {
88
- # Kill the daemon using its PID
89
111
if [ ! -z " $DAEMON_PID " ]; then
90
112
kill $DAEMON_PID
91
113
echo " Orion daemon with PID $DAEMON_PID killed"
92
- else
93
- echo " No daemon PID found"
94
114
fi
95
115
}
116
+
117
+
0 commit comments