Commit 5fd101f
committed
test/extended/cli/adm_upgrade/recommend: TestRiskA PromQL use max_over_time
Avoid failing on rare flakes like [1]:
: [Serial][sig-cli] oc adm upgrade recommend When the update service has conditional recommendations runs successfully with conditional recommendations to the --version target [Suite:openshift/conformance/serial] 22s
...
Could not evaluate exposure to update risk TestRiskA (invalid PromQL result length must be one, but is 0)
where there was presumably some kind of hiccup in scraping the
cluster-version operator. Instead of expecting to find
cluster_version at the single point in time "now", accept it if we
find that metric anywhere in the past hour.
[1]: https://prow.ci.openshift.org/view/gs/test-platform-results/logs/periodic-ci-openshift-release-master-ci-4.20-e2e-aws-ovn-techpreview-serial/19593219555511541761 parent cc8ae10 commit 5fd101f
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
| 144 | + | |
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
| |||
0 commit comments