Skip to content

Commit 413179b

Browse files
author
Vishnu Challa
committed
Addressing PR comments
Signed-off-by: Vishnu Challa <[email protected]>
1 parent 1bcd444 commit 413179b

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/rds-core/cloud-bulldozer-e2e-benchmarking-rds-core-commands.sh

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,19 @@ oc projects
99
pushd /tmp
1010

1111

12-
git clone https://github.com/vishnuchalla/e2e-benchmarking --branch v0.0.1 --depth 1
13-
pushd e2e-benchmarking
14-
pushd workloads/kube-burner-ocp-wrapper
15-
export WORKLOAD=rds-core
12+
if [[ "$JOB_TYPE" == "presubmit" ]] && [[ "$REPO_OWNER" = "cloud-bulldozer" ]] && [[ "$REPO_NAME" = "e2e-benchmarking" ]]; then
13+
git clone https://github.com/${REPO_OWNER}/${REPO_NAME}
14+
pushd ${REPO_NAME}
15+
git config --global user.email "[email protected]"
16+
git config --global user.name "ocp-perfscale"
17+
git pull origin pull/${PULL_NUMBER}/head:${PULL_NUMBER} --rebase
18+
git switch ${PULL_NUMBER}
19+
pushd workloads/kube-burner-ocp-wrapper
20+
export WORKLOAD=rds-core
1621

17-
current_worker_count=$(oc get nodes --no-headers -l node-role.kubernetes.io/worker=,node-role.kubernetes.io/infra!=,node-role.kubernetes.io/workload!= --output jsonpath="{.items[?(@.status.conditions[-1].type=='Ready')].status.conditions[-1].type}" | wc -w | xargs)
22+
current_worker_count=$(oc get nodes --no-headers -l node-role.kubernetes.io/worker=,node-role.kubernetes.io/infra!=,node-role.kubernetes.io/workload!= --output jsonpath="{.items[?(@.status.conditions[-1].type=='Ready')].status.conditions[-1].type}" | wc -w | xargs)
1823

19-
ES_SERVER="" ITERATIONS=${current_worker_count} CHURN=false ./run.sh
24+
ES_SERVER="" ITERATIONS=${current_worker_count} CHURN=false ./run.sh
25+
else
26+
echo "We are sorry, this job is only meant for cloud-bulldozer/e2e-benchmarking repo PR testing"
27+
fi

0 commit comments

Comments
 (0)