Skip to content

Commit

Permalink
Jetlag CI health check (#59579)
Browse files Browse the repository at this point in the history
* Jetlag CI health check

Signed-off-by: Raul Sevilla <[email protected]>

* Assign to build06

Signed-off-by: Raul Sevilla <[email protected]>

* Metadata

Signed-off-by: Raul Sevilla <[email protected]>

---------

Signed-off-by: Raul Sevilla <[email protected]>
  • Loading branch information
rsevilla87 authored Dec 5, 2024
1 parent 6b521e3 commit aeba08e
Show file tree
Hide file tree
Showing 8 changed files with 116 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ resources:
tests:
- always_run: false
as: deploy-5nodes
cluster: build05
cluster: build06
restrict_network_access: false
steps:
cluster_profile: metal-perfscale-jetlag
Expand All @@ -34,9 +34,10 @@ tests:
test:
- chain: openshift-qe-installer-bm-ping
- chain: openshift-qe-installer-bm-deploy
- chain: openshift-qe-cluster-health
- always_run: false
as: deploy-5nodes-dev
cluster: build05
cluster: build06
restrict_network_access: false
steps:
cluster_profile: metal-perfscale-jetlag
Expand All @@ -52,9 +53,10 @@ tests:
test:
- chain: openshift-qe-installer-bm-ping
- chain: openshift-qe-installer-bm-deploy
- chain: openshift-qe-cluster-health
- always_run: false
as: deploy-sno
cluster: build05
cluster: build06
restrict_network_access: false
steps:
cluster_profile: metal-perfscale-jetlag
Expand All @@ -66,9 +68,10 @@ tests:
test:
- chain: openshift-qe-installer-bm-ping
- chain: openshift-qe-installer-bm-deploy
- chain: openshift-qe-cluster-health
- always_run: false
as: deploy-sno-dev
cluster: build05
cluster: build06
restrict_network_access: false
steps:
cluster_profile: metal-perfscale-jetlag
Expand All @@ -81,6 +84,7 @@ tests:
test:
- chain: openshift-qe-installer-bm-ping
- chain: openshift-qe-installer-bm-deploy
- chain: openshift-qe-cluster-health
zz_generated_metadata:
branch: main
org: redhat-performance
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ presubmits:
branches:
- ^main$
- ^main-
cluster: build05
cluster: build06
context: ci/prow/deploy-5nodes
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/cloud: metal-perfscale-jetlag
ci-operator.openshift.io/cloud-cluster-profile: metal-perfscale-jetlag
ci-operator.openshift.io/cluster: build05
ci-operator.openshift.io/cluster: build06
ci.openshift.io/generator: prowgen
job-release: "4.17"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
Expand Down Expand Up @@ -81,15 +81,15 @@ presubmits:
branches:
- ^main$
- ^main-
cluster: build05
cluster: build06
context: ci/prow/deploy-5nodes-dev
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/cloud: metal-perfscale-jetlag
ci-operator.openshift.io/cloud-cluster-profile: metal-perfscale-jetlag
ci-operator.openshift.io/cluster: build05
ci-operator.openshift.io/cluster: build06
ci.openshift.io/generator: prowgen
job-release: "4.17"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
Expand Down Expand Up @@ -157,15 +157,15 @@ presubmits:
branches:
- ^main$
- ^main-
cluster: build05
cluster: build06
context: ci/prow/deploy-sno
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/cloud: metal-perfscale-jetlag
ci-operator.openshift.io/cloud-cluster-profile: metal-perfscale-jetlag
ci-operator.openshift.io/cluster: build05
ci-operator.openshift.io/cluster: build06
ci.openshift.io/generator: prowgen
job-release: "4.17"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
Expand Down Expand Up @@ -233,15 +233,15 @@ presubmits:
branches:
- ^main$
- ^main-
cluster: build05
cluster: build06
context: ci/prow/deploy-sno-dev
decorate: true
decoration_config:
skip_cloning: true
labels:
ci-operator.openshift.io/cloud: metal-perfscale-jetlag
ci-operator.openshift.io/cloud-cluster-profile: metal-perfscale-jetlag
ci-operator.openshift.io/cluster: build05
ci-operator.openshift.io/cluster: build06
ci.openshift.io/generator: prowgen
job-release: "4.17"
pj-rehearse.openshift.io/can-be-rehearsed: "true"
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"path": "openshift-qe/cluster-health/openshift-qe-cluster-health-chain.yaml",
"owners": {
"approvers": [
"afcollins",
"josecastillolema",
"jtaleric",
"mffiedler",
"paigerube14",
"qiliredhat",
"rsevilla87",
"svetsa-rh"
],
"reviewers": [
"jogeo",
"memodi",
"mffiedler",
"paigerube14",
"rpattath",
"skordas",
"jtaleric",
"svetsa-rh",
"shahsahil264",
"liqcui",
"krishvoor",
"afcollins",
"rsevilla87",
"vishnuchalla",
"sachinninganure",
"chaitanyaenr"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
chain:
as: openshift-qe-cluster-health
steps:
- ref: openshift-qe-cluster-health
documentation: |-
This chain uses oc adm wait-for-stable-cluster to run a cluster-health check
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash
set -eu

oc adm wait-for-stable-cluster --minimum-stable-period=${MINIMUM_STABLE_PERIOD} --timeout=${TIMEOUT}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"path": "openshift-qe/cluster-health/openshift-qe-cluster-health-ref.yaml",
"owners": {
"approvers": [
"afcollins",
"josecastillolema",
"jtaleric",
"mffiedler",
"paigerube14",
"qiliredhat",
"rsevilla87",
"svetsa-rh"
],
"reviewers": [
"jogeo",
"memodi",
"mffiedler",
"paigerube14",
"rpattath",
"skordas",
"jtaleric",
"svetsa-rh",
"shahsahil264",
"liqcui",
"krishvoor",
"afcollins",
"rsevilla87",
"vishnuchalla",
"sachinninganure",
"chaitanyaenr"
]
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
ref:
as: openshift-qe-cluster-health
from_image:
namespace: ci
name: ocp-qe-perfscale-ci
tag: latest
cli: latest
commands: openshift-qe-cluster-health-commands.sh
env:
- name: MINIMUM_STABLE_PERIOD
default: "2m"
documentation: |-
Minimum duration to consider a cluster stable
- name: TIMEOUT
default: "5m"
documentation: |-
Duration before the command times out
resources:
requests:
cpu: 100m
memory: 100Mi
documentation: >-
This chain uses oc adm wait-for-stable-cluster to run a cluster-health check

0 comments on commit aeba08e

Please sign in to comment.