Skip to content
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

Merged
merged 2 commits into from
Oct 20, 2023

Conversation

diegolovison
Copy link
Contributor

@diegolovison diegolovison commented Oct 16, 2023

Tests.Ods Dashboard.Data Science Pipelines.Data-Science-Pipelines-... | PASS |
1 test, 1 passed, 0 failed
==============================================================================
Tests.Ods Dashboard.Data Science Pipelines                            | PASS |
1 test, 1 passed, 0 failed
==============================================================================
Tests.Ods Dashboard                                                   | PASS |
1 test, 1 passed, 0 failed
==============================================================================
Tests                                                                 | PASS |
1 test, 1 passed, 0 failed
==============================================================================
Output:  /home/dlovison/github/rhods/ods-ci/ods_ci/test-output/ods-ci-2023-10-16-12-36-vbGMaVNjl6/output.xml
XUnit:   /home/dlovison/github/rhods/ods-ci/ods_ci/test-output/ods-ci-2023-10-16-12-36-vbGMaVNjl6/xunit_test_result.xml
Log:     /home/dlovison/github/rhods/ods-ci/ods_ci/test-output/ods-ci-2023-10-16-12-36-vbGMaVNjl6/log.html
Report:  /home/dlovison/github/rhods/ods-ci/ods_ci/test-output/ods-ci-2023-10-16-12-36-vbGMaVNjl6/test_report.html

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

Variable '${oc_version}' in 'IF' 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

Variable '${oc_version}' in 'ELSE IF' condition has unnecessary string conversion
@github-actions
Copy link
Contributor

Robot Results

✅ Passed ❌ Failed ⏭️ Skipped Total Pass %
370 0 0 370 100

@jgarciao jgarciao self-requested a review October 17, 2023 11:24
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Contributor

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).

Copy link
Contributor Author

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.

@diegolovison
Copy link
Contributor Author

diegolovison commented Oct 18, 2023

@apodhrad
Copy link
Contributor

apodhrad commented Oct 18, 2023

Hi @jgarciao @diegolovison is there any reason why we don't use the channel latest at https://github.com/red-hat-data-services/ods-ci/blob/master/ods_ci/tests/Resources/Files/redhat-openshift-pipelines.yaml#L7 and then avoid guessing a version at https://github.com/red-hat-data-services/ods-ci/blob/master/ods_ci/tests/Resources/Page/Operators/OpenShiftPipelines.resource#L33-L51 ?

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
| OCP_VERSION | Latest |
| v4.11 | 1.10 |
| v4.12 | 1.12 |
| v4.13 | 1.12 |

@jgarciao
Copy link
Contributor

jgarciao commented Oct 18, 2023

@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

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@diegolovison
Copy link
Contributor Author

Done. Ready for review

@jgarciao jgarciao self-requested a review October 19, 2023 07:50
@jgarciao jgarciao merged commit acc0e86 into red-hat-data-services:master Oct 20, 2023
@jgarciao jgarciao added enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) verified This PR has been tested with Jenkins labels Oct 20, 2023
jgarciao pushed a commit to jgarciao/ods-ci that referenced this pull request Nov 6, 2023
* Update OpenShift Pipelines to latest version

* OpenStack with 1.12
ChughShilpa pushed a commit to ChughShilpa/ods-ci that referenced this pull request Nov 28, 2023
* Update OpenShift Pipelines to latest version

* OpenStack with 1.12
ChughShilpa pushed a commit to ChughShilpa/ods-ci that referenced this pull request Jan 2, 2024
* Update OpenShift Pipelines to latest version

* OpenStack with 1.12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancements Bugfixes, enhancements, refactoring, ... in tests or libraries (PR will be listed in release-notes) verified This PR has been tested with Jenkins
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants