-
Notifications
You must be signed in to change notification settings - Fork 81
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
Update OpenShift Pipelines to latest version #979
Update OpenShift Pipelines to latest version #979
Conversation
diegolovison
commented
Oct 16, 2023
•
edited
Loading
edited
IF "4.10" in "${oc_version}" | ||
${openshift_pipelines_version}= Set Variable pipelines-1.8" | ||
ELSE IF "4.11" in "${oc_version}" | ||
IF "4.11" in "${oc_version}" |
Check notice
Code scanning / Robocop
Variable '{{ name }}' in '{{ block_name }}' condition has unnecessary string conversion
@@ -46,8 +43,10 @@ | |||
ELSE | |||
${openshift_pipelines_version}= Set Variable pipelines-1.11 | |||
END | |||
ELSE IF "4.14" in "${oc_version}" |
Check notice
Code scanning / Robocop
Variable '{{ name }}' in '{{ block_name }}' condition has unnecessary string conversion
Robot Results
|
ods_ci/tests/Resources/Page/Operators/OpenShiftPipelines.resource
Outdated
Show resolved
Hide resolved
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.
We should try to detect if the operator is already installed and do nothing in that case (to make this keyword faster)
Once the OpenShift Pipelines operator is installed, we need to wait a little bit more (e.g. adding Sleep 30s) so RHODS Dashboard will properly detect that it is available. We have seen the pipeline tests in Smoke failing because of this.
We could use the existing keywords Install ISV Operator From OperatorHub Via CLI
, Wait Until Operator Subscription Last Condition Is
and Wait For Pods To Be Ready
as it is done by Install Service Mesh Stack
in ods_ci/tests/Tests/400__ods_dashboard/420__model_serving/422__model_serving_llm.robot
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.
Sleep is not good. We need to find the right way and replace https://github.com/red-hat-data-services/ods-ci/blob/8008f0619953cc510aea3a9d1ba01af520ab0abc/ods_ci/tests/Resources/Page/Operators/OpenShiftPipelines.resource#L58-L59 with the proper solution
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.
We should try to detect if the operator is already installed and do nothing in that case (to make this keyword faster)
Hi @diegolovison this is something we need to implement for Component Dependency Testing (something like interop testing) where all dependent operators (e.g. pipelines) are already installed. Please let me know if that's something you are already working on or if some help from my side is needed (e.g. due to your other assignments).
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.
Should be addressed in other PR.
This is for update the version.
Hi @jgarciao is there any reason why we don't use the channel latest at |
We support multiple version |
That's ok but hardcoding the versions into tests is not ideal and should be parameterized. Of course, that's not the goal of this issue right now and we can consider it as a future enhancement. Btw, using the channel 'latest' we will always use the latest supported version in the appropeiate Openshift version, for example |
@apodhrad Here is the support matrix for OpenShift Pipelines: https://docs.openshift.com/pipelines/1.12/about/op-release-notes.html. As they support multiple versions of their operator, we try to test as many options as possible, but in an automated way (we didn't want to add another parameter in Jenkins). That's why the logic is hardcoded like this. Looking at the support matrix, if we used "latest" OpenShift Pipelines 1.11 wouldn't be tested, as for OCP 4.11 latest is 1.10 and for OCP 4.12 is 1.12 |
8008f06
to
2ce2929
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Done. Ready for review |
* Update OpenShift Pipelines to latest version * OpenStack with 1.12
* Update OpenShift Pipelines to latest version * OpenStack with 1.12
* Update OpenShift Pipelines to latest version * OpenStack with 1.12