Skip to content

Commit

Permalink
Addressing PR comments
Browse files Browse the repository at this point in the history
Signed-off-by: Vishnu Challa <[email protected]>
  • Loading branch information
Vishnu Challa committed Feb 27, 2025
1 parent 1bcd444 commit 413179b
Showing 1 changed file with 14 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 "[email protected]"
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

0 comments on commit 413179b

Please sign in to comment.