Skip to content

Commit 6062a0b

Browse files
author
Vishnu Challa
committed
updating rds-core to work through PRs
Signed-off-by: Vishnu Challa <[email protected]>
1 parent eaa9dc9 commit 6062a0b

File tree

6 files changed

+144
-171
lines changed

6 files changed

+144
-171
lines changed

ci-operator/config/cloud-bulldozer/e2e-benchmarking/cloud-bulldozer-e2e-benchmarking-master.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,39 @@ tests:
473473
test:
474474
- ref: cloud-bulldozer-e2e-benchmarking-egressip
475475
workflow: openshift-qe-installer-aws
476+
- always_run: false
477+
as: e2e-rds-core-mno
478+
capabilities:
479+
- intranet
480+
restrict_network_access: false
481+
steps:
482+
cluster_profile: metal-perfscale-jetlag
483+
env:
484+
BAREMETAL: "true"
485+
BASTION_CP_INTERFACE: ens7f1
486+
CRUCIBLE: "false"
487+
ISOLATED_CORES: 2-39,42-79
488+
JETLAG_BRANCH: main
489+
LAB_CLOUD: cloud19
490+
LAB_INTERFACE: eno3
491+
LABEL: node-role.kubernetes.io/worker-dpdk,node-role.kubernetes.io/worker-metallb
492+
OCP_BUILD: ga
493+
OCP_VERSION: 4.18.5
494+
PUBLIC_VLAN: "true"
495+
RESERVED_CORES: 0,40,1,41
496+
SRIOV_NODE_SELECTOR: node-role.kubernetes.io/worker
497+
SRIOV_NUM_VFS: "64"
498+
SRIOV_PF_NAME: ens7f0
499+
TELCO: "true"
500+
test:
501+
- chain: openshift-qe-installer-bm-ping
502+
- chain: openshift-qe-installer-bm-deploy
503+
- chain: openshift-qe-cluster-health
504+
- chain: openshift-qe-installer-bm-day2-label
505+
- chain: openshift-qe-installer-bm-day2-sriov
506+
- chain: openshift-qe-installer-bm-day2-metallb
507+
- chain: openshift-qe-installer-bm-day2-perf-profile-rds-core
508+
- ref: cloud-bulldozer-e2e-benchmarking-rds-core
476509
zz_generated_metadata:
477510
branch: master
478511
org: cloud-bulldozer

ci-operator/config/cloud-bulldozer/e2e-benchmarking/cloud-bulldozer-e2e-benchmarking-master_metal.yaml

Lines changed: 0 additions & 60 deletions
This file was deleted.

ci-operator/jobs/cloud-bulldozer/e2e-benchmarking/cloud-bulldozer-e2e-benchmarking-master-presubmits.yaml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1125,6 +1125,82 @@ presubmits:
11251125
secret:
11261126
secretName: result-aggregator
11271127
trigger: (?m)^/test( | .* )(e2e-pvc-density-single-node|remaining-required),?($|\s.*)
1128+
- agent: kubernetes
1129+
always_run: false
1130+
branches:
1131+
- ^master$
1132+
- ^master-
1133+
cluster: build11
1134+
context: ci/prow/e2e-rds-core-mno
1135+
decorate: true
1136+
decoration_config:
1137+
skip_cloning: true
1138+
labels:
1139+
capability/intranet: intranet
1140+
ci-operator.openshift.io/cloud: metal-perfscale-jetlag
1141+
ci-operator.openshift.io/cloud-cluster-profile: metal-perfscale-jetlag
1142+
ci.openshift.io/generator: prowgen
1143+
job-release: "4.18"
1144+
pj-rehearse.openshift.io/can-be-rehearsed: "true"
1145+
name: pull-ci-cloud-bulldozer-e2e-benchmarking-master-e2e-rds-core-mno
1146+
rerun_command: /test e2e-rds-core-mno
1147+
spec:
1148+
containers:
1149+
- args:
1150+
- --gcs-upload-secret=/secrets/gcs/service-account.json
1151+
- --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson
1152+
- --lease-server-credentials-file=/etc/boskos/credentials
1153+
- --report-credentials-file=/etc/report/credentials
1154+
- --secret-dir=/secrets/ci-pull-credentials
1155+
- --target=e2e-rds-core-mno
1156+
command:
1157+
- ci-operator
1158+
image: ci-operator:latest
1159+
imagePullPolicy: Always
1160+
name: ""
1161+
resources:
1162+
requests:
1163+
cpu: 10m
1164+
volumeMounts:
1165+
- mountPath: /etc/boskos
1166+
name: boskos
1167+
readOnly: true
1168+
- mountPath: /secrets/ci-pull-credentials
1169+
name: ci-pull-credentials
1170+
readOnly: true
1171+
- mountPath: /secrets/gcs
1172+
name: gcs-credentials
1173+
readOnly: true
1174+
- mountPath: /secrets/manifest-tool
1175+
name: manifest-tool-local-pusher
1176+
readOnly: true
1177+
- mountPath: /etc/pull-secret
1178+
name: pull-secret
1179+
readOnly: true
1180+
- mountPath: /etc/report
1181+
name: result-aggregator
1182+
readOnly: true
1183+
serviceAccountName: ci-operator
1184+
volumes:
1185+
- name: boskos
1186+
secret:
1187+
items:
1188+
- key: credentials
1189+
path: credentials
1190+
secretName: boskos-credentials
1191+
- name: ci-pull-credentials
1192+
secret:
1193+
secretName: ci-pull-credentials
1194+
- name: manifest-tool-local-pusher
1195+
secret:
1196+
secretName: manifest-tool-local-pusher
1197+
- name: pull-secret
1198+
secret:
1199+
secretName: registry-pull-credentials
1200+
- name: result-aggregator
1201+
secret:
1202+
secretName: result-aggregator
1203+
trigger: (?m)^/test( | .* )(e2e-rds-core-mno|remaining-required),?($|\s.*)
11281204
- agent: kubernetes
11291205
always_run: false
11301206
branches:

ci-operator/jobs/cloud-bulldozer/e2e-benchmarking/cloud-bulldozer-e2e-benchmarking-master_metal-presubmits.yaml

Lines changed: 0 additions & 78 deletions
This file was deleted.

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

Lines changed: 35 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,42 @@ set -o nounset
44
set -o pipefail
55
set -x
66
cat /etc/os-release
7-
8-
if [ ${BAREMETAL} == "true" ]; then
9-
SSH_ARGS="-i /bm/jh_priv_ssh_key -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null"
10-
bastion="$(cat /bm/address)"
11-
# Copy over the kubeconfig
12-
if [ ! -f "${SHARED_DIR}/kubeconfig" ]; then
13-
ssh ${SSH_ARGS} root@$bastion "cat ${KUBECONFIG_PATH}" > /tmp/kubeconfig
14-
export KUBECONFIG=/tmp/kubeconfig
15-
else
16-
export KUBECONFIG=${SHARED_DIR}/kubeconfig
17-
fi
18-
# Setup socks proxy
19-
ssh ${SSH_ARGS} root@$bastion -fNT -D 12345
20-
export https_proxy=socks5://localhost:12345
21-
export http_proxy=socks5://localhost:12345
22-
oc --kubeconfig="$KUBECONFIG" config set-cluster bm --proxy-url=socks5://localhost:12345
23-
fi
24-
25-
python --version
26-
pushd /tmp
27-
python -m virtualenv ./venv_qe
28-
source ./venv_qe/bin/activate
29-
307
oc config view
318
oc projects
9+
pushd /tmp
3210

33-
git clone https://github.com/vishnuchalla/e2e-benchmarking --branch v0.0.1 --depth 1
34-
pushd e2e-benchmarking
35-
pushd workloads/kube-burner-ocp-wrapper
36-
export WORKLOAD=rds-core
37-
ES_SERVER="" ITERATIONS=1 PPROF=false CHURN=false PERFORMANCE_PROFILE="cpt-pao" ./run.sh
3811

39-
if [ ${BAREMETAL} == "true" ]; then
40-
# kill the ssh tunnel so the job completes
41-
pkill ssh
42-
fi
12+
if [[ "$JOB_TYPE" == "presubmit" ]] && [[ "$REPO_OWNER" = "cloud-bulldozer" ]] && [[ "$REPO_NAME" = "e2e-benchmarking" ]]; then
13+
if [ ${BAREMETAL} == "true" ]; then
14+
SSH_ARGS="-i /bm/jh_priv_ssh_key -oStrictHostKeyChecking=no -oUserKnownHostsFile=/dev/null"
15+
bastion="$(cat /bm/address)"
16+
# Copy over the kubeconfig
17+
if [ ! -f "${SHARED_DIR}/kubeconfig" ]; then
18+
ssh ${SSH_ARGS} root@$bastion "cat ${KUBECONFIG_PATH}" > /tmp/kubeconfig
19+
export KUBECONFIG=/tmp/kubeconfig
20+
else
21+
export KUBECONFIG=${SHARED_DIR}/kubeconfig
22+
fi
23+
# Setup socks proxy
24+
ssh ${SSH_ARGS} root@$bastion -fNT -D 12345
25+
export https_proxy=socks5://localhost:12345
26+
export http_proxy=socks5://localhost:12345
27+
oc --kubeconfig="$KUBECONFIG" config set-cluster bm --proxy-url=socks5://localhost:12345
28+
fi
29+
git clone https://github.com/${REPO_OWNER}/${REPO_NAME}
30+
pushd ${REPO_NAME}
31+
git config --global user.email "[email protected]"
32+
git config --global user.name "ocp-perfscale"
33+
git pull origin pull/${PULL_NUMBER}/head:${PULL_NUMBER} --rebase
34+
git switch ${PULL_NUMBER}
35+
pushd workloads/kube-burner-ocp-wrapper
36+
export WORKLOAD=rds-core
37+
ES_SERVER="" ITERATIONS=1 PPROF=false CHURN=false PERFORMANCE_PROFILE="cpt-pao" ./run.sh
38+
39+
if [ ${BAREMETAL} == "true" ]; then
40+
# kill the ssh tunnel so the job completes
41+
pkill ssh
42+
fi
43+
else
44+
echo "We are sorry, this job is only meant for cloud-bulldozer/e2e-benchmarking repo PR testing"
45+
fi

ci-operator/step-registry/openshift-qe/installer/bm/day2/perf-profile/rds-core/openshift-qe-installer-bm-day2-perf-profile-rds-core-commands.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ spec:
6464
userLevelNetworking: false
6565
EOF
6666
67-
sleep 60
6867
kubectl wait --for jsonpath='{.status.updatedMachineCount}'="$(oc get node --no-headers -l node-role.kubernetes.io/worker= | wc -l)" --timeout=30m mcp worker
6968
oc adm wait-for-stable-cluster --minimum-stable-period=2m --timeout=20m
7069

0 commit comments

Comments
 (0)