Skip to content

Commit 02ddd76

Browse files
authored
copying events to artifacts to analyze if needed (#63416)
1 parent 6ce3864 commit 02ddd76

15 files changed

+26
-37
lines changed

ci-operator/step-registry/redhat-chaos/application-outages/console/redhat-chaos-application-outages-console-commands.sh

+2
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,7 @@ export TELEMETRY_PASSWORD=$telemetry_password
3030

3131
./application-outages/prow_run.sh
3232
rc=$?
33+
34+
cp /tmp/events.json ${ARTIFACT_DIR}/events.json
3335
echo "Finished running application outages scenarios"
3436
echo "Return code: $rc"

ci-operator/step-registry/redhat-chaos/container-scenarios/etcd-hangup/redhat-chaos-container-scenarios-etcd-hangup-commands.sh

+1
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,6 @@ export TELEMETRY_PASSWORD=$telemetry_password
2525

2626
./container-scenarios/prow_run.sh
2727
rc=$?
28+
cp /tmp/events.json ${ARTIFACT_DIR}/events.json
2829
echo "Finished running container scenarios"
2930
echo "Return code: $rc"

ci-operator/step-registry/redhat-chaos/hog-scenarios/cpu/redhat-chaos-hog-scenarios-cpu-commands.sh

+2
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ export TELEMETRY_PASSWORD=$telemetry_password
2525

2626
./cpu-hog/prow_run.sh
2727
rc=$?
28+
29+
cp /tmp/events.json ${ARTIFACT_DIR}/events.json
2830
echo "Finished running memory hog scenario"
2931
echo "Return code: $rc"

ci-operator/step-registry/redhat-chaos/hog-scenarios/io/redhat-chaos-hog-scenarios-io-commands.sh

+2
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ export TELEMETRY_PASSWORD=$telemetry_password
2525

2626
./io-hog/prow_run.sh
2727
rc=$?
28+
29+
cp /tmp/events.json ${ARTIFACT_DIR}/events.json
2830
echo "Finished running io hog scenario"
2931
echo "Return code: $rc"

ci-operator/step-registry/redhat-chaos/hog-scenarios/memory/redhat-chaos-hog-scenarios-memory-commands.sh

+2
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,7 @@ export TELEMETRY_PASSWORD=$telemetry_password
2727
ls -alh ./memory-hog/
2828
./memory-hog/prow_run.sh
2929
rc=$?
30+
31+
cp /tmp/events.json ${ARTIFACT_DIR}/events.json
3032
echo "Finished running memory hog scenario"
3133
echo "Return code: $rc"

ci-operator/step-registry/redhat-chaos/node-disruptions/master-outage/redhat-chaos-node-disruptions-master-outage-commands.sh

+1
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,6 @@ fi
7070

7171
./node-disruptions/prow_run.sh
7272
rc=$?
73+
cp /tmp/events.json ${ARTIFACT_DIR}/events.json
7374
echo "Finished running node disruptions"
7475
echo "Return code: $rc"

ci-operator/step-registry/redhat-chaos/pod-network-chaos/redhat-chaos-pod-network-chaos-commands.sh

+2
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,7 @@ export TELEMETRY_PASSWORD=$telemetry_password
2626

2727
./pod-network-chaos/prow_run.sh
2828
rc=$?
29+
30+
cp /tmp/events.json ${ARTIFACT_DIR}/events.json
2931
echo "Finished running pod-network chaos"
3032
echo "Return code: $rc"

ci-operator/step-registry/redhat-chaos/pod-scenarios/etcd-disruption/redhat-chaos-pod-scenarios-etcd-disruption-commands.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ rc=$?
3232
echo "Done running the test!"
3333

3434
cat /tmp/*.log
35+
cp /tmp/events.json ${ARTIFACT_DIR}/events.json
3536

3637
echo "Return code: $rc"
3738
exit $rc
38-
echo $ENABLE_ALERTS

ci-operator/step-registry/redhat-chaos/pod-scenarios/kube-apiserver-disruption/redhat-chaos-pod-scenarios-kube-apiserver-disruption-commands.sh

-35
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../etcd-disruption/redhat-chaos-pod-scenarios-etcd-disruption-commands.sh

ci-operator/step-registry/redhat-chaos/power-outage/redhat-chaos-power-outage-commands.sh

+1
Original file line numberDiff line numberDiff line change
@@ -55,5 +55,6 @@ export TELEMETRY_PASSWORD=$telemetry_password
5555

5656
./power-outage/prow_run.sh
5757
rc=$?
58+
cp /tmp/events.json ${ARTIFACT_DIR}/events.json
5859
echo "Finished running power outages"
5960
echo "Return code: $rc"

ci-operator/step-registry/redhat-chaos/pvc-scenarios/prometheus-pod/redhat-chaos-pvc-scenarios-prometheus-pod-commands.sh

+2
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,7 @@ fi
8484

8585
./pvc-scenario/prow_run.sh
8686
rc=$?
87+
88+
cp /tmp/events.json ${ARTIFACT_DIR}/events.json
8789
echo "Finished running pvc scenario"
8890
echo "Return code: $rc"

ci-operator/step-registry/redhat-chaos/service-disruption/redhat-chaos-service-disruption-commands.sh

+2-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ export TELEMETRY_PASSWORD=$telemetry_password
2424

2525
./namespace-scenarios/prow_run.sh
2626
rc=$?
27+
28+
cp /tmp/events.json ${ARTIFACT_DIR}/events.json
2729
echo "Done running the test!"
2830
echo "Return code: $rc"
2931
exit $rc
30-
echo $ENABLE_ALERTS

ci-operator/step-registry/redhat-chaos/syn-flood/redhat-chaos-syn-flood-commands.sh

+2
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@ export TELEMETRY_PASSWORD=$telemetry_password
2525

2626
./syn-flood/prow_run.sh
2727
rc=$?
28+
29+
cp /tmp/events.json ${ARTIFACT_DIR}/events.json
2830
echo "Finished running syn-flood chaos"
2931
echo "Return code: $rc"

ci-operator/step-registry/redhat-chaos/time-scenarios/redhat-chaos-time-scenarios-commands.sh

+2
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,7 @@ export ENABLE_ALERTS=False
3030
./time-scenarios/prow_run.sh
3131
rc=$?
3232

33+
cp /tmp/events.json ${ARTIFACT_DIR}/events.json
34+
3335
echo "Finished running time scenario"
3436
echo "Return code: $rc"

ci-operator/step-registry/redhat-chaos/zone-outage/redhat-chaos-zone-outage-commands.sh

+3
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,8 @@ export SUBNET_ID
4646

4747
./zone-outages/prow_run.sh
4848
rc=$?
49+
50+
cp /tmp/events.json ${ARTIFACT_DIR}/events.json
51+
4952
echo "Finished running zone outages"
5053
echo "Return code: $rc"

0 commit comments

Comments
 (0)