-
Story
-
Resolution: Done
-
Normal
-
None
-
RHOSi v0.5
-
None
-
None
-
3
-
False
-
False
-
No
-
-
-
RHODS-7452 - Test Automation Backlog
-
No
-
No
-
Pending
-
None
-
-
RHOSi Sprint 8, RHOSi Sprint 9, RHOSi 1.8, RHOSi 1.9
Automate this two MPTC/MRTC tests with Importance=Critical:
- ODS-717 - Verify alert "JupyterHub image builds are failing" fires when there is an image build error
- ODS-790 - Verify alert "JupyterHub image builds are failing" stops firing if a subsequent build for the same buildconfig passes
Here is a hint of the steps to follow to implement it using oc command (you can probably use the openshiftcli library for most of the commands). Please, create appropriate keywords for each of the commands that could be reused
oc get builds -n redhat-ods-applications # Get last tensorflow build oc get builds -n redhat-ods-applications | grep tensorflow | awk '{print $1;}' # Delete tensorflow build oc delete builds s2i-tensorflow-gpu-cuda-11.4.2-notebook-1 -n redhat-ods-applicationsSleep 12m # Start a new tensorflow build oc start-build s2i-tensorflow-gpu-cuda-11.4.2-notebook -n redhat-ods-applications # Wait until tensorflow build starts oc get builds -n redhat-ods-applications | grep tensorflow # Search and kill pod with tensorflow build oc get pods -n redhat-ods-applications | grep tensorflow | grep Running | awk '{print $1;}' oc exec s2i-tensorflow-gpu-cuda-11.4.2-notebook-2-build -n redhat-ods-applications -- /bin/kill 1 # Verify tensorflow build is in Failed state oc get builds -n redhat-ods-applications | grep tensorflow # Verify alert "JupyterHub image builds are failing" fires in 5 minutes or less (Use existing keyword) # Start a new tensorflow build oc start-build s2i-tensorflow-gpu-cuda-11.4.2-notebook -n redhat-ods-applications # Verify alert "JupyterHub image builds are failing" stops firing (Use existing keyword)
https://docs.openshift.com/container-platform/4.9/cicd/builds/basic-build-operations.html
- is related to
-
RHODS-2051 Update RHODS failing-build alert to stop constantly firing even when the build succeeds
- Closed