Skip to content

update health check required versions for 3.9 #6757

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

Merged
merged 3 commits into from
Jan 18, 2018

Conversation

sosiouxme
Copy link
Member

Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1534922

A little refactoring in the first commits to reuse code and prevent having to update this for every single release. Then, updating the actual versions for 3.9.

@sosiouxme sosiouxme added the kind/bug Categorizes issue or PR as related to a bug. label Jan 17, 2018
@openshift-ci-robot openshift-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Jan 17, 2018
"""Parse and return the deployed version of OpenShift as a tuple."""
if openshift_image_tag and openshift_image_tag[0] == 'v':
openshift_image_tag = openshift_image_tag[1:]
Copy link
Contributor

Choose a reason for hiding this comment

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

Did some previous change obviate need to strip any leading 'v'?

Copy link
Member Author

Choose a reason for hiding this comment

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

Parsing with a regex instead of splitting on .

Copy link
Contributor

Choose a reason for hiding this comment

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

Ah, that would do it.

latest = max(version_map)
if openshift_version < earliest:
return version_map[earliest]
if openshift_version > latest:
Copy link
Contributor

Choose a reason for hiding this comment

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

You could change < and > to <= and >=, respectively, but this is fine as is.

@openshift-ci-robot
Copy link

openshift-ci-robot commented Jan 18, 2018

@sosiouxme: The following tests failed, say /retest to rerun them all:

Test name Commit Details Rerun command
ci/openshift-jenkins/extended_conformance_install_crio c23910b link /test crio
ci/openshift-jenkins/install c23910b link /test install

Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here.

@sosiouxme
Copy link
Member Author

enough with the flakes.

@sosiouxme sosiouxme merged commit 13cdf9c into openshift:master Jan 18, 2018
@sosiouxme sosiouxme deleted the 20180117-update-check-versions branch January 18, 2018 17:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants