-
Notifications
You must be signed in to change notification settings - Fork 243
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
Use oc v4.11 instead v4.7 to fix version comparison #6559
Use oc v4.11 instead v4.7 to fix version comparison #6559
Conversation
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
Kudos, SonarCloud Quality Gate passed! |
/override OpenShift-Integration-tests/OpenShift-Integration-tests |
@feloy: Overrode contexts on behalf of feloy: OpenShift-Integration-tests/OpenShift-Integration-tests In response to this:
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. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oc versions v4.7 and v4.11 use different information from the cluster to retrieve the OpenShift cluster version.
In odo, we send platform information to telemetry, and get information from the cluster the same way oc v4.11 is getting it.
In the tests, we currently compare the output of oc version v4.7 with what odo get, to check that we are sending the good version.
Unfortunalety, in some circumstances, oc v4.7 and v4.11 return different version.
This makes our tests fail in these circumstances.
Updating oc to version v4.11 for the tests should fix the problem.
LGTM, but I am now wondering if our tests could not be more resilient to avoid similar issues in the future.. Maybe we could just check that the platform version we send as telemetry property only matches a certain regular expression, no? What do you think?
/lgtm |
This way, the test also checks the detection of the version is aligned with |
/override ci/prow/v4.11-integration-e2e |
@feloy: Overrode contexts on behalf of feloy: ci/prow/v4.11-integration-e2e In response to this:
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. |
What type of PR is this:
/kind tests
What does this PR do / why we need it:
Which issue(s) this PR fixes:
oc
versions v4.7 and v4.11 use different information from the cluster to retrieve the OpenShift cluster version.In odo, we send platform information to telemetry, and get information from the cluster the same way oc v4.11 is getting it.
In the tests, we currently compare the output of
oc version
v4.7 with what odo get, to check that we are sending the good version.Unfortunalety, in some circumstances, oc v4.7 and v4.11 return different version.
This makes our tests fail in these circumstances.
Updating oc to version v4.11 for the tests should fix the problem.
Failing test: https://s3.eu-de.cloud-object-storage.appdomain.cloud/odo-tests-openshift-logs/pr-6545-openshift-tests-3993.html
This happens when cluster is updating:
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer: