Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding version overrides ENVs for e2e and individual tools #46763

Merged
merged 1 commit into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ source ./venv_qe/bin/activate
ES_PASSWORD=$(cat "/secret/password")
ES_USERNAME=$(cat "/secret/username")


git clone https://github.com/cloud-bulldozer/e2e-benchmarking --depth=1
REPO_URL="https://github.com/cloud-bulldozer/e2e-benchmarking";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we add this repo url as an env variable as well so that in the future we can specify it in the config files if we ever want to test a pr/someone else repo/branch

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • Testing PRs is out of scope for this change. It needs to be taken through this JIRA: https://issues.redhat.com/browse/PERFSCALE-2731
  • And the idea is to use only tags for testing but not branches going forward as they are error prone. (because as soon as a PR gets merged branch gets updated with those changes whereas release tag does not)

LATEST_TAG=$(curl -s "https://api.github.com/repos/cloud-bulldozer/e2e-benchmarking/releases/latest" | jq -r '.tag_name');
TAG_OPTION="--branch $(if [ "$E2E_VERSION" == "default" ]; then echo "$LATEST_TAG"; else echo "$E2E_VERSION"; fi)";
git clone $REPO_URL $TAG_OPTION --depth 1
pushd e2e-benchmarking/workloads/kube-burner-ocp-wrapper
export WORKLOAD=cluster-density-v2

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,12 @@ ref:
name: ocp-qe-perfscale-ci
tag: latest
env:
- name: E2E_VERSION
default: "v2.1.2"
documentation: |-
Override the e2e version
- name: KUBE_BURNER_VERSION
default: "1.7.12"
default: "default"
documentation: |-
Override the kube burner version
- name: CHURN
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ ES_USERNAME=$(cat "/secret/username")

export KUBE_BURNER_URL="https://github.com/cloud-bulldozer/kube-burner/releases/download/v0.17.3/kube-burner-0.17.3-Linux-x86_64.tar.gz"

git clone https://github.com/cloud-bulldozer/e2e-benchmarking/ --depth=1
REPO_URL="https://github.com/cloud-bulldozer/e2e-benchmarking";
LATEST_TAG=$(curl -s "https://api.github.com/repos/cloud-bulldozer/e2e-benchmarking/releases/latest" | jq -r '.tag_name');
TAG_OPTION="--branch $(if [ "$E2E_VERSION" == "default" ]; then echo "$LATEST_TAG"; else echo "$E2E_VERSION"; fi)";
git clone $REPO_URL $TAG_OPTION --depth 1
pushd e2e-benchmarking/workloads/kube-burner
export WORKLOAD=concurrent-builds

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ ref:
cpu: 100m
memory: 100Mi
env:
- name: E2E_VERSION
default: "v2.1.2"
documentation: |-
Override the e2e version
- name: BUILD_LIST
default: "1 8 15 30 45 60 75"
documentation: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ pushd /tmp
python -m virtualenv ./venv_qe
source ./venv_qe/bin/activate

git clone https://github.com/cloud-bulldozer/e2e-benchmarking --depth=1
REPO_URL="https://github.com/cloud-bulldozer/e2e-benchmarking";
LATEST_TAG=$(curl -s "https://api.github.com/repos/cloud-bulldozer/e2e-benchmarking/releases/latest" | jq -r '.tag_name');
TAG_OPTION="--branch $(if [ "$E2E_VERSION" == "default" ]; then echo "$LATEST_TAG"; else echo "$E2E_VERSION"; fi)";
git clone $REPO_URL $TAG_OPTION --depth 1
pushd e2e-benchmarking/workloads/kube-burner-ocp-wrapper

sleep 60;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ ref:
name: ocp-qe-gcp-sa
mount_path: /ga-gsheet
env:
- name: E2E_VERSION
default: "v2.1.2"
documentation: |-
Override the e2e version
- name: KUBE_BURNER_VERSION
default: "1.7.12"
default: "default"
documentation: |-
Override the kube burner version
- name: GC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ ES_PASSWORD=$(cat "/secret/password")
ES_USERNAME=$(cat "/secret/username")

# Clone the e2e repo
git clone https://github.com/cloud-bulldozer/e2e-benchmarking
REPO_URL="https://github.com/cloud-bulldozer/e2e-benchmarking";
LATEST_TAG=$(curl -s "https://api.github.com/repos/cloud-bulldozer/e2e-benchmarking/releases/latest" | jq -r '.tag_name');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we had issues on jenins being able to consistently connect and get the latest tag. I wonder if we will hit that here as well. Might need another option

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 Also, do we even want a latest tag vs latest i.e. git clone of main branch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That shouldn't ideally happen here as it is just hitting the endpoint and getting the tag_name. Where as previous command had some processing like below

$(curl -s https://api.github.com/repos/cloud-bulldozer/kube-burner/releases/latest | jq -r '.assets | map(select(.name | test("linux-x86_64"))) | .[0].browser_download_url')

And it used to run tar on top of it to extract binaries too.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So if someone wants a specific tag, they can override E2E_VERSION in their test or else latest would be picked by default.

TAG_OPTION="--branch $(if [ "$E2E_VERSION" == "default" ]; then echo "$LATEST_TAG"; else echo "$E2E_VERSION"; fi)";
git clone $REPO_URL $TAG_OPTION --depth 1
pushd e2e-benchmarking/workloads/ingress-perf

# ES Configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,14 @@ ref:
name: ocp-qe-perfscale-es
mount_path: /secret
env:
- name: E2E_VERSION
default: "v2.1.2"
documentation: |-
Override the e2e version
- name: INGRESS_PERF_VERSION
default: "default"
documentation: |-
Override the ingress-perf version
- name: CONFIG
default: "config/standard.yml"
documentation: |-
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,12 @@ ref:
cpu: 100m
memory: 100Mi
env:
- name: E2E_VERSION
default: "v2.1.2"
documentation: |-
Override the e2e version
- name: KUBE_BURNER_VERSION
default: "1.7.12"
default: "default"
documentation: |-
Override the kube burner version
- name: ENABLE_FORCE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ source ./venv_qe/bin/activate
ES_PASSWORD=$(cat "/secret/password")
ES_USERNAME=$(cat "/secret/username")

git clone https://github.com/cloud-bulldozer/e2e-benchmarking --depth=1
REPO_URL="https://github.com/cloud-bulldozer/e2e-benchmarking";
LATEST_TAG=$(curl -s "https://api.github.com/repos/cloud-bulldozer/e2e-benchmarking/releases/latest" | jq -r '.tag_name');
TAG_OPTION="--branch $(if [ "$E2E_VERSION" == "default" ]; then echo "$LATEST_TAG"; else echo "$E2E_VERSION"; fi)";
git clone $REPO_URL $TAG_OPTION --depth 1
pushd e2e-benchmarking/workloads/network-perf-v2

# Clean up resources from possible previous tests.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@ ref:
name: ocp-qe-perfscale-ci
tag: latest
env:
- name: E2E_VERSION
default: "v2.1.2"
documentation: |-
Override the e2e version
- name: NETPERF_VERSION
default: "default"
documentation: |-
Override the k8s netperf
commands: openshift-qe-network-perf-commands.sh
timeout: 4h
credentials:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,10 @@ ES_PASSWORD=$(cat "/secret/password")
ES_USERNAME=$(cat "/secret/username")


git clone https://github.com/cloud-bulldozer/e2e-benchmarking --depth=1
REPO_URL="https://github.com/cloud-bulldozer/e2e-benchmarking";
LATEST_TAG=$(curl -s "https://api.github.com/repos/cloud-bulldozer/e2e-benchmarking/releases/latest" | jq -r '.tag_name');
TAG_OPTION="--branch $(if [ "$E2E_VERSION" == "default" ]; then echo "$LATEST_TAG"; else echo "$E2E_VERSION"; fi)";
git clone $REPO_URL $TAG_OPTION --depth 1
pushd e2e-benchmarking/workloads/kube-burner

export JOB_TIMEOUT=${JOB_TIMEOUT:=21600}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ ref:
commands: openshift-qe-network-policy-commands.sh
timeout: 8h0m0s
env:
- name: E2E_VERSION
default: "v2.1.2"
documentation: |-
Override the e2e version
- name: KUBE_BURNER_VERSION
default: "1.7.12"
default: "default"
documentation: |-
Override the kube burner version
- name: WORKLOAD
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ pushd /tmp
python -m virtualenv ./venv_qe
source ./venv_qe/bin/activate

git clone https://github.com/cloud-bulldozer/e2e-benchmarking --depth=1
REPO_URL="https://github.com/cloud-bulldozer/e2e-benchmarking";
LATEST_TAG=$(curl -s "https://api.github.com/repos/cloud-bulldozer/e2e-benchmarking/releases/latest" | jq -r '.tag_name');
TAG_OPTION="--branch $(if [ "$E2E_VERSION" == "default" ]; then echo "$LATEST_TAG"; else echo "$E2E_VERSION"; fi)";
git clone $REPO_URL $TAG_OPTION --depth 1
pushd e2e-benchmarking/workloads/network-perf-v2

# Clean up
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,14 @@ ref:
requests:
cpu: 100m
memory: 100Mi
env:
- name: E2E_VERSION
default: "v2.1.2"
documentation: |-
Override the e2e version
- name: NETPERF_VERSION
default: "default"
documentation: |-
Override the netperf version
documentation: >-
This step runs the perfscale network-perf smoke workload in the deployed cluster
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ source ./venv_qe/bin/activate
ES_PASSWORD=$(cat "/secret/password")
ES_USERNAME=$(cat "/secret/username")

git clone https://github.com/cloud-bulldozer/e2e-benchmarking
REPO_URL="https://github.com/cloud-bulldozer/e2e-benchmarking";
LATEST_TAG=$(curl -s "https://api.github.com/repos/cloud-bulldozer/e2e-benchmarking/releases/latest" | jq -r '.tag_name');
TAG_OPTION="--branch $(if [ "$E2E_VERSION" == "default" ]; then echo "$LATEST_TAG"; else echo "$E2E_VERSION"; fi)";
git clone $REPO_URL $TAG_OPTION --depth 1
pushd e2e-benchmarking/workloads/kube-burner-ocp-wrapper
export WORKLOAD=node-density-cni

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ ref:
name: ocp-qe-perfscale-es
mount_path: /secret
env:
- name: E2E_VERSION
default: "v2.1.2"
documentation: |-
Override the e2e version
- name: KUBE_BURNER_VERSION
default: "1.7.12"
default: "default"
documentation: |-
Override the kube burner version
- name: PODS_PER_NODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ ES_USERNAME=$(cat "/secret/username")
GSHEET_KEY_LOCATION="/ga-gsheet/gcp-sa-account"
export GSHEET_KEY_LOCATION

git clone https://github.com/cloud-bulldozer/e2e-benchmarking
REPO_URL="https://github.com/cloud-bulldozer/e2e-benchmarking";
LATEST_TAG=$(curl -s "https://api.github.com/repos/cloud-bulldozer/e2e-benchmarking/releases/latest" | jq -r '.tag_name');
TAG_OPTION="--branch $(if [ "$E2E_VERSION" == "default" ]; then echo "$LATEST_TAG"; else echo "$E2E_VERSION"; fi)";
git clone $REPO_URL $TAG_OPTION --depth 1
pushd e2e-benchmarking/workloads/kube-burner-ocp-wrapper
export WORKLOAD=node-density-heavy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,12 @@ ref:
name: ocp-qe-gcp-sa
mount_path: /ga-gsheet
env:
- name: E2E_VERSION
default: "v2.1.2"
documentation: |-
Override the e2e version
- name: KUBE_BURNER_VERSION
default: "1.7.12"
default: "default"
documentation: |-
Override the kube burner version
- name: PODS_PER_NODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ source ./venv_qe/bin/activate
ES_PASSWORD=$(cat "/secret/password")
ES_USERNAME=$(cat "/secret/username")

git clone https://github.com/cloud-bulldozer/e2e-benchmarking --depth=1
REPO_URL="https://github.com/cloud-bulldozer/e2e-benchmarking";
LATEST_TAG=$(curl -s "https://api.github.com/repos/cloud-bulldozer/e2e-benchmarking/releases/latest" | jq -r '.tag_name');
TAG_OPTION="--branch $(if [ "$E2E_VERSION" == "default" ]; then echo "$LATEST_TAG"; else echo "$E2E_VERSION"; fi)";
git clone $REPO_URL $TAG_OPTION --depth 1
pushd e2e-benchmarking/workloads/kube-burner-ocp-wrapper
export WORKLOAD=node-density

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,12 @@ ref:
cpu: 100m
memory: 100Mi
env:
- name: E2E_VERSION
default: "v2.1.2"
documentation: |-
Override the e2e version
- name: KUBE_BURNER_VERSION
default: "1.7.12"
default: "default"
documentation: |-
Override the kube burner version
- name: PODS_PER_NODE
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ ES_USERNAME=$(cat "/secret/username")
GSHEET_KEY_LOCATION="/ga-gsheet/gcp-sa-account"
export GSHEET_KEY_LOCATION

git clone https://github.com/cloud-bulldozer/e2e-benchmarking --depth=1
REPO_URL="https://github.com/cloud-bulldozer/e2e-benchmarking";
LATEST_TAG=$(curl -s "https://api.github.com/repos/cloud-bulldozer/e2e-benchmarking/releases/latest" | jq -r '.tag_name');
TAG_OPTION="--branch $(if [ "$E2E_VERSION" == "default" ]; then echo "$LATEST_TAG"; else echo "$E2E_VERSION"; fi)";
git clone $REPO_URL $TAG_OPTION --depth 1
pushd e2e-benchmarking/workloads/router-perf-v2
# ES configuration
export ES_SERVER="https://$ES_USERNAME:$ES_PASSWORD@search-ocp-qe-perf-scale-test-elk-hcm7wtsqpxy7xogbu72bor4uve.us-east-1.es.amazonaws.com"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ ref:
name: ocp-qe-gcp-sa
mount_path: /ga-gsheet
env:
- name: E2E_VERSION
default: "v2.1.2"
documentation: |-
Override the e2e version
- name: WORKLOAD_TYPE
default: router-perf
documentation: |-
Expand Down