From 413179b0f94b921ca0e5e4c44d0ebb4e8daf9a90 Mon Sep 17 00:00:00 2001 From: Vishnu Challa Date: Thu, 27 Feb 2025 12:07:39 -0500 Subject: [PATCH] Addressing PR comments Signed-off-by: Vishnu Challa --- ...ozer-e2e-benchmarking-rds-core-commands.sh | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/rds-core/cloud-bulldozer-e2e-benchmarking-rds-core-commands.sh b/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/rds-core/cloud-bulldozer-e2e-benchmarking-rds-core-commands.sh index e2ba529a962d..30ee60bd28fe 100644 --- a/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/rds-core/cloud-bulldozer-e2e-benchmarking-rds-core-commands.sh +++ b/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/rds-core/cloud-bulldozer-e2e-benchmarking-rds-core-commands.sh @@ -9,11 +9,19 @@ oc projects pushd /tmp -git clone https://github.com/vishnuchalla/e2e-benchmarking --branch v0.0.1 --depth 1 -pushd e2e-benchmarking -pushd workloads/kube-burner-ocp-wrapper -export WORKLOAD=rds-core +if [[ "$JOB_TYPE" == "presubmit" ]] && [[ "$REPO_OWNER" = "cloud-bulldozer" ]] && [[ "$REPO_NAME" = "e2e-benchmarking" ]]; then + git clone https://github.com/${REPO_OWNER}/${REPO_NAME} + pushd ${REPO_NAME} + git config --global user.email "ocp-perfscale@redhat.com" + git config --global user.name "ocp-perfscale" + git pull origin pull/${PULL_NUMBER}/head:${PULL_NUMBER} --rebase + git switch ${PULL_NUMBER} + pushd workloads/kube-burner-ocp-wrapper + export WORKLOAD=rds-core -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) + 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) -ES_SERVER="" ITERATIONS=${current_worker_count} CHURN=false ./run.sh + ES_SERVER="" ITERATIONS=${current_worker_count} CHURN=false ./run.sh +else + echo "We are sorry, this job is only meant for cloud-bulldozer/e2e-benchmarking repo PR testing" +fi \ No newline at end of file