List unstable tests with pass rate below 95%
Queries OpenShift CI test results to list unstable tests with pass rates below 95%.
/plugin marketplace add openshift-eng/ai-helpers/plugin install ci@ai-helpers<version> <keywords> [sippy-url]ci:list-unstable-tests
/ci:list-unstable-tests <version> <keywords> [sippy-url]
The ci:list-unstable-tests command queries OpenShift CI test results from Sippy and lists all tests matching the keywords that have a pass rate below 95%. This is useful for quickly identifying unstable tests that need attention.
By default, it queries the production Sippy instance at sippy.dptools.openshift.org. You can optionally specify a different Sippy instance URL to query alternative environments (e.g., QE component readiness).
This command is useful for:
$1 (version): OpenShift version to query (e.g., "4.21", "4.20", "4.19")$2 (keywords): Keywords to search in test names (e.g., "olmv1", "sig-storage", "operator")$3 (sippy-url) [optional]: Sippy instance base URL. Defaults to "sippy.dptools.openshift.org" if not provided. Examples: "qe-component-readiness.dptools.openshift.org"Parse Arguments
$1 (e.g., "4.20")$2 (e.g., "olmv1")$3 if provided, otherwise use default "sippy.dptools.openshift.org"Build Sippy API Request
/api/tests endpoint:
filters = {
"items": [
{
"columnField": "name",
"not": False,
"operatorValue": "contains",
"value": keywords
}
],
"linkOperator": "and"
}
release: The OpenShift versionfilter: JSON-encoded filter objectsort: "asc"sortField: "current_pass_percentage"Query Test Statistics
https://{base_url}/api/testsFilter Tests Below 95% Pass Rate
current_pass_percentage < 95Format and Display Results
Format: Formatted text output with:
Summary Section:
Unstable Tests List: For each test with pass rate < 95%:
If all tests pass at 95% or above, display a success message indicating all tests are stable.
List unstable OLMv1 tests from QE Sippy:
/ci:list-unstable-tests 4.20 olmv1 qe-component-readiness.dptools.openshift.org
Lists all OLMv1-related tests in version 4.20 from QE Sippy that have a pass rate below 95%.
List unstable storage tests (using default Sippy):
/ci:list-unstable-tests 4.21 sig-storage
Lists all storage-related tests in version 4.21 from production Sippy with pass rate below 95%.
List unstable operator tests:
/ci:list-unstable-tests 4.19 operator
Lists all operator-related tests in version 4.19 with pass rate below 95%.
Check specific component stability:
/ci:list-unstable-tests 4.20 sig-network qe-component-readiness.dptools.openshift.org
Lists all network-related unstable tests from QE Sippy.
sippy.dptools.openshift.org by default================================================================================
Unstable Tests Report - 4.20 olmv1
================================================================================
Sippy Instance: qe-component-readiness.dptools.openshift.org
Pass Rate Threshold: < 95%
Summary:
Total Tests Matching 'olmv1': 45
Unstable Tests (< 95%): 8 (17.8%)
Stable Tests (>= 95%): 37 (82.2%)
================================================================================
Tests Below 95% Pass Rate (sorted by worst first):
================================================================================
1. Test: [sig-olmv1] clusterextension install should fail validation
Pass Rate: 23.5%
Runs: 17 | Passes: 4 | Failures: 13
Net Improvement: -45.2
2. Test: [sig-olmv1] clusterextension upgrade from v1 to v2
Pass Rate: 67.8%
Runs: 28 | Passes: 19 | Failures: 9
Net Improvement: -12.3
[... additional tests ...]
================================================================================
/ci:query-test-result - Query detailed results for a specific test