Skip to content

Commit 7d63ac2

Browse files
vishnuchallaVishnu Challa
andauthored
Moving orion params outside of JUNIT if-block for reusability (#61103)
* Moving orion params outside of JUNIT if-block for reusability Signed-off-by: Vishnu Challa <[email protected]> * Adding additional checks for ubound variables Signed-off-by: Vishnu Challa <[email protected]> --------- Signed-off-by: Vishnu Challa <[email protected]> Co-authored-by: Vishnu Challa <[email protected]>
1 parent b9555a8 commit 7d63ac2

File tree

5 files changed

+29
-21
lines changed

5 files changed

+29
-21
lines changed

ci-operator/config/openshift-qe/ocp-qe-perfscale-ci/openshift-qe-ocp-qe-perfscale-ci-main__aws-4.17-nightly-x86.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ tests:
2626
ENABLE_LOCAL_INDEX: "true"
2727
ES_TYPE: qe
2828
EXTRA_FLAGS: --churn-duration=20m --pod-ready-threshold=13s
29+
HUNTER_ANALYZE: "true"
2930
ITERATION_MULTIPLIER_ENV: "15"
3031
JUNIT: "true"
3132
RUN_ORION: "true"

ci-operator/config/openshift-qe/ocp-qe-perfscale-ci/openshift-qe-ocp-qe-perfscale-ci-main__aws-4.18-nightly-x86.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ tests:
2626
ENABLE_LOCAL_INDEX: "true"
2727
ES_TYPE: qe
2828
EXTRA_FLAGS: --churn-duration=20m --pod-ready-threshold=13s
29+
HUNTER_ANALYZE: "true"
2930
ITERATION_MULTIPLIER_ENV: "15"
3031
JUNIT: "true"
3132
RUN_ORION: "true"

ci-operator/config/openshift-qe/ocp-qe-perfscale-ci/openshift-qe-ocp-qe-perfscale-ci-main__aws-4.19-nightly-x86.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ tests:
3939
ENABLE_LOCAL_INDEX: "true"
4040
ES_TYPE: qe
4141
EXTRA_FLAGS: --churn-duration=20m --pod-ready-threshold=20s
42+
HUNTER_ANALYZE: "true"
4243
ITERATION_MULTIPLIER_ENV: "15"
4344
JUNIT: "true"
4445
RUN_ORION: "true"

ci-operator/step-registry/openshift-qe/orion/openshift-qe-orion-commands.sh

Lines changed: 22 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -36,38 +36,39 @@ else
3636
fi
3737

3838
pip install .
39-
export EXTRA_FLAGS=""
40-
if [[ -n "$UUID" ]]; then
39+
export EXTRA_FLAGS=" --lookback ${LOOKBACK}d"
40+
if [[ ! -z "$UUID" ]]; then
4141
export EXTRA_FLAGS+=" --uuid ${UUID}"
4242
fi
4343
if [ ${HUNTER_ANALYZE} == "true" ]; then
44-
export EXTRA_FLAGS+=" --hunter-analyze"
44+
export EXTRA_FLAGS+=" --hunter-analyze"
4545
fi
4646
if [ ${JUNIT} == true ]; then
47-
export EXTRA_FLAGS+=" --lookback ${LOOKBACK}d"
48-
export EXTRA_FLAGS+=" --output-format junit"
49-
export EXTRA_FLAGS+=" --save-output-path=junit.xml"
50-
export EXTRA_FLAGS+=" --ack /tmp/${VERSION}_${ACK_FILE}"
51-
export EXTRA_FLAGS+=" --hunter-analyze"
47+
export EXTRA_FLAGS+=" --output-format junit"
48+
export EXTRA_FLAGS+=" --save-output-path=junit.xml"
5249
fi
5350

54-
if [[ -n "$ORION_CONFIG" ]]; then
55-
export CONFIG="${ORION_CONFIG}"
51+
if [[ ! -z "$ORION_CONFIG" ]]; then
52+
export CONFIG="${ORION_CONFIG}"
5653
fi
5754

58-
if [[ -n "$ORION_ENVS" ]]; then
59-
ORION_ENVS=$(echo "$ORION_ENVS" | xargs)
60-
IFS=',' read -r -a env_array <<< "$ORION_ENVS"
61-
for env_pair in "${env_array[@]}"; do
62-
env_pair=$(echo "$env_pair" | xargs)
63-
env_key=$(echo "$env_pair" | cut -d'=' -f1)
64-
env_value=$(echo "$env_pair" | cut -d'=' -f2-)
65-
export "$env_key"="$env_value"
66-
done
55+
if [[ ! -z "$ACK_FILE" ]]; then
56+
export EXTRA_FLAGS+=" --ack /tmp/${VERSION}_${ACK_FILE}"
6757
fi
6858

69-
if [[ -n "$LOOKBACK_SIZE" ]]; then
70-
export EXTRA_FLAGS+=" --lookback-size ${LOOKBACK_SIZE}"
59+
if [[ -n "${ORION_ENVS:-}" ]]; then
60+
ORION_ENVS=$(echo "$ORION_ENVS" | xargs)
61+
IFS=',' read -r -a env_array <<< "$ORION_ENVS"
62+
for env_pair in "${env_array[@]}"; do
63+
env_pair=$(echo "$env_pair" | xargs)
64+
env_key=$(echo "$env_pair" | cut -d'=' -f1)
65+
env_value=$(echo "$env_pair" | cut -d'=' -f2-)
66+
export "$env_key"="$env_value"
67+
done
68+
fi
69+
70+
if [[ -n "${LOOKBACK_SIZE:-}" ]]; then
71+
export EXTRA_FLAGS+=" --lookback-size ${LOOKBACK_SIZE}"
7172
fi
7273

7374
set +e

ci-operator/step-registry/openshift-qe/orion/openshift-qe-orion-ref.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,10 @@ ref:
6262
default: ""
6363
documentation:
6464
Var used to tell the step which workload is calling Orion, like cluster-density, node-density, etc.
65+
- name: ACK_FILE
66+
default: ""
67+
documentation:
68+
Orion ack file name that has a list of acknowledged issues/regressions.
6569
- name: ORION_ENVS
6670
default: ""
6771
documentation:

0 commit comments

Comments
 (0)