diff --git a/ci-operator/config/cloud-bulldozer/e2e-benchmarking/cloud-bulldozer-e2e-benchmarking-master.yaml b/ci-operator/config/cloud-bulldozer/e2e-benchmarking/cloud-bulldozer-e2e-benchmarking-master.yaml index 513d05a5dd81f..f8537e465475b 100644 --- a/ci-operator/config/cloud-bulldozer/e2e-benchmarking/cloud-bulldozer-e2e-benchmarking-master.yaml +++ b/ci-operator/config/cloud-bulldozer/e2e-benchmarking/cloud-bulldozer-e2e-benchmarking-master.yaml @@ -454,6 +454,29 @@ tests: test: - ref: cloud-bulldozer-e2e-benchmarking-udn-density-pods workflow: openshift-qe-installer-aws +- always_run: false + as: e2e-egressip-single-node + steps: + allow_skip_on_success: true + cluster_profile: aws-perfscale + dependencies: + OPENSHIFT_INSTALL_RELEASE_IMAGE_OVERRIDE: release:arm64-latest + env: + BASE_DOMAIN: perfscale.devcluster.openshift.com + COMPUTE_NODE_REPLICAS: "1" + COMPUTE_NODE_TYPE: m6g.xlarge + CONTROL_PLANE_INSTANCE_TYPE: m6g.xlarge + IF_INSTALL_INFRA_WORKLOAD: "false" + IF_MOVE_INGRESS: "false" + IF_MOVE_MONITORING: "false" + IF_MOVE_REGISTRY: "false" + OCP_ARCH: arm64 + SPOT_INSTANCES: "true" + USER_TAGS: | + TicketId 382 + test: + - ref: cloud-bulldozer-e2e-benchmarking-egressip + workflow: openshift-qe-installer-aws zz_generated_metadata: branch: master org: cloud-bulldozer diff --git a/ci-operator/jobs/cloud-bulldozer/e2e-benchmarking/cloud-bulldozer-e2e-benchmarking-master-presubmits.yaml b/ci-operator/jobs/cloud-bulldozer/e2e-benchmarking/cloud-bulldozer-e2e-benchmarking-master-presubmits.yaml index 5dc242c3ec821..22dfa0de57c40 100644 --- a/ci-operator/jobs/cloud-bulldozer/e2e-benchmarking/cloud-bulldozer-e2e-benchmarking-master-presubmits.yaml +++ b/ci-operator/jobs/cloud-bulldozer/e2e-benchmarking/cloud-bulldozer-e2e-benchmarking-master-presubmits.yaml @@ -300,6 +300,81 @@ presubmits: secret: secretName: result-aggregator trigger: (?m)^/test( | .* )(e2e-crd-scale-single-node|remaining-required),?($|\s.*) + - agent: kubernetes + always_run: false + branches: + - ^master$ + - ^master- + cluster: build11 + context: ci/prow/e2e-egressip-single-node + decorate: true + decoration_config: + skip_cloning: true + labels: + ci-operator.openshift.io/cloud: aws + ci-operator.openshift.io/cloud-cluster-profile: aws-perfscale + ci.openshift.io/generator: prowgen + job-release: "4.18" + pj-rehearse.openshift.io/can-be-rehearsed: "true" + name: pull-ci-cloud-bulldozer-e2e-benchmarking-master-e2e-egressip-single-node + rerun_command: /test e2e-egressip-single-node + spec: + containers: + - args: + - --gcs-upload-secret=/secrets/gcs/service-account.json + - --image-import-pull-secret=/etc/pull-secret/.dockerconfigjson + - --lease-server-credentials-file=/etc/boskos/credentials + - --report-credentials-file=/etc/report/credentials + - --secret-dir=/secrets/ci-pull-credentials + - --target=e2e-egressip-single-node + command: + - ci-operator + image: ci-operator:latest + imagePullPolicy: Always + name: "" + resources: + requests: + cpu: 10m + volumeMounts: + - mountPath: /etc/boskos + name: boskos + readOnly: true + - mountPath: /secrets/ci-pull-credentials + name: ci-pull-credentials + readOnly: true + - mountPath: /secrets/gcs + name: gcs-credentials + readOnly: true + - mountPath: /secrets/manifest-tool + name: manifest-tool-local-pusher + readOnly: true + - mountPath: /etc/pull-secret + name: pull-secret + readOnly: true + - mountPath: /etc/report + name: result-aggregator + readOnly: true + serviceAccountName: ci-operator + volumes: + - name: boskos + secret: + items: + - key: credentials + path: credentials + secretName: boskos-credentials + - name: ci-pull-credentials + secret: + secretName: ci-pull-credentials + - name: manifest-tool-local-pusher + secret: + secretName: manifest-tool-local-pusher + - name: pull-secret + secret: + secretName: registry-pull-credentials + - name: result-aggregator + secret: + secretName: result-aggregator + trigger: (?m)^/test( | .* )(e2e-egressip-single-node|remaining-required),?($|\s.*) - agent: kubernetes always_run: false branches: diff --git a/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/egressip/OWNERS b/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/egressip/OWNERS new file mode 120000 index 0000000000000..ec405d65a79df --- /dev/null +++ b/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/egressip/OWNERS @@ -0,0 +1 @@ +../OWNERS \ No newline at end of file diff --git a/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/egressip/cloud-bulldozer-e2e-benchmarking-egressip-commands.sh b/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/egressip/cloud-bulldozer-e2e-benchmarking-egressip-commands.sh new file mode 100644 index 0000000000000..ebcb0eb6cfbc1 --- /dev/null +++ b/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/egressip/cloud-bulldozer-e2e-benchmarking-egressip-commands.sh @@ -0,0 +1,32 @@ +#!/bin/bash +set -o errexit +set -o nounset +set -o pipefail +set -x +cat /etc/os-release +oc config view +oc projects +pushd /tmp + +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 + AWSCRED="${CLUSTER_PROFILE_DIR}/.awscred" + if [[ -f "${AWSCRED}" ]]; then + export AWS_SHARED_CREDENTIALS_FILE="${AWSCRED}" + export AWS_DEFAULT_REGION="${LEASED_RESOURCE}" + else + echo "Did not find compatible cloud provider cluster_profile" + exit 1 + fi + export WORKLOAD=egressip + 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="" PPROF=false 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 diff --git a/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/egressip/cloud-bulldozer-e2e-benchmarking-egressip-ref.metadata.json b/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/egressip/cloud-bulldozer-e2e-benchmarking-egressip-ref.metadata.json new file mode 100644 index 0000000000000..393f685302b4f --- /dev/null +++ b/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/egressip/cloud-bulldozer-e2e-benchmarking-egressip-ref.metadata.json @@ -0,0 +1,27 @@ +{ + "path": "cloud-bulldozer/e2e-benchmarking/egressip/cloud-bulldozer-e2e-benchmarking-egressip-ref.yaml", + "owners": { + "approvers": [ + "jtaleric", + "rsevilla87", + "venkataanil", + "afcollins", + "mukrishn", + "mohit-sheth", + "morenod", + "chentex", + "vishnuchalla" + ], + "reviewers": [ + "jtaleric", + "rsevilla87", + "venkataanil", + "afcollins", + "mukrishn", + "mohit-sheth", + "morenod", + "chentex", + "vishnuchalla" + ] + } +} \ No newline at end of file diff --git a/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/egressip/cloud-bulldozer-e2e-benchmarking-egressip-ref.yaml b/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/egressip/cloud-bulldozer-e2e-benchmarking-egressip-ref.yaml new file mode 100644 index 0000000000000..f52af87c0bae8 --- /dev/null +++ b/ci-operator/step-registry/cloud-bulldozer/e2e-benchmarking/egressip/cloud-bulldozer-e2e-benchmarking-egressip-ref.yaml @@ -0,0 +1,15 @@ +ref: + as: cloud-bulldozer-e2e-benchmarking-egressip + from_image: + namespace: e2e + name: e2e-benchmarking + tag: latest + cli: latest + commands: cloud-bulldozer-e2e-benchmarking-egressip-commands.sh + timeout: 6h + resources: + requests: + cpu: 100m + memory: 100Mi + documentation: >- + This step runs the perfscale configmap-scale workload in the deployed cluster \ No newline at end of file