Repository navigation
[ci] Use mock LLM for Lightspeed CRC deployment - #110
openshift-merge-bot[bot] merged 1 commit into
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
|
Build succeeded (check pipeline). ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 28m 09s |
|
recheck |
|
Build succeeded (check pipeline). ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 39m 00s |
|
recheck |
|
Build succeeded (check pipeline). ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 01m 37s |
|
Nice progress! The lightspeed operator got deployed with the mock LLM server:) 🎉 Just an observation. If we want to continue to use the mock LLM server and we hit problem during running of the tests then the problem might be missing |
Nice find! Maybe we can quickly add the v1/models to the mocked server then ? Even part of this work, should be straight forward |
|
Build succeeded (check pipeline). ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 16m 52s |
|
This is amazing! 🎉 -> https://gateway-cloud-softwarefactory.apps.ocp.cloud.ci.centos.org/logs/df8/rdoproject.org/df89eec2e65145959fed02b30b506d5d/controller/ci-framework-data/logs/pre_tests_02_run_lightspeed_tests.log We are not running the tests via In this openstack-k8s-operators/lightspeed-tests#12 it is described how to run the tests using the tests operator. Running the tests using that configuration should be just about passing it via the corresponding ci-framework params (an example of AnsibleTest config in zuul.yaml) |
|
Build succeeded (check pipeline). ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 47m 45s |
|
Merge Failed. This change or one of its cross-repo dependencies was unable to be automatically merged with the current state of its repository. Please rebase the change and upload a new patchset. |
|
recheck |
|
Build succeeded (check pipeline). ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 52m 26s |
|
recheck |
|
Build succeeded (check pipeline). ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 06m 19s |
|
recheck |
|
Build succeeded (check pipeline). ✔️ openstack-k8s-operators-content-provider SUCCESS in 1h 59m 26s |
|
This change depends on a change that failed to merge. Change openstack-k8s-operators/ci-framework#4222 is needed. |
|
recheck |
|
Build succeeded (check pipeline). ✔️ openstack-k8s-operators-content-provider SUCCESS in 2h 05m 13s |
lpiwowar
left a comment
There was a problem hiding this comment.
This is awesome:)
Notes from the meeting. The following two things can be done as part of next set of tickets:
- Ticket no. 1: Connect it to OpenAI using the creds from Jan
- Ticket no. 2: Improve the tests results gathering (make sure that they are in separate folder here)
We still need a cleanup on the side of the ci-framework PR and move the variables for the test-operator role here (ref).
BUT IT WORKS and it is AWESOME!:) Hopefully the cleanup will suffice, let's see 🤞
5f49f7a to
b489b27
Compare
|
recheck |
1 similar comment
|
recheck |
lpiwowar
left a comment
There was a problem hiding this comment.
Just couple of comments from the meeting:). Overall it looks really good! 👍 Tests are running. These are just comments related to the polishing of the code.
| memory: 2Gi | ||
| # Allow bootstrap to save parameters before runner and PVC facts exist. | ||
| # The collector supplies those facts when it creates this Pod. | ||
| cifmw_test_operator_log_pod_definition: |
There was a problem hiding this comment.
From the meeting (non-blocking): This has been added by AI. We need to understand why.
There was a problem hiding this comment.
So can we remove this? 👀
| cifmw_test_operator_ansibletest_ansible_git_repo: https://github.com/malingatembo/lightspeed-tests | ||
| cifmw_test_operator_ansibletest_ansible_git_branch: feat/OSPRH-33344-ci-test-runner |
There was a problem hiding this comment.
issue (blocking): This needs to be updated before we merge.
There was a problem hiding this comment.
Still needs to be resolved! Important ❗
There was a problem hiding this comment.
Resolved: now uses official lightspeed-tests repo. The temp fork setting and #17 dependency is now removed. Reviewing proposed fix in lightspeed-test official repo. openstack-k8s-operators/lightspeed-tests#23
|
I just want to say that this is pretty much done. We can build on top of it and keep improving it. There are couple of comments on the ci-framework part as well but we are almost there:) |
|
This change depends on a change that failed to merge. Change openstack-k8s-operators/ci-framework#4222 is needed. |
|
recheck |
|
I left a comment on openstack-k8s-operators/ci-framework#4222 (review), but I'd like to re-iterate here. You can include the hook definition in this repo. If you can manage having the hook in the lightspeed-operator repo, I would highly recommend it, since you can then guard and test against unexpected changes to ci-framework, and also make sure that new changes to the hook playbook are always tested (EDIT: ) You can also avoid some testing complexity that would be required with Depends-On: when you make changes |
There was a problem hiding this comment.
Only bunch of non-blocking comments. There is one final thing that needs to be done which is the removal of the dependency on the lightspeed-tests PR (all the other my comments can be ignored for now -- let's just focus on merging it and we can polish later). We need to understand [1][2]:
- Is this actually needed? If yes, then keep the PR minimal and keep there only the necessary stuff. If no, just remove the two lines and that is it:).
Once that is resolved [1] I would just merge this and we can keep on improving this and potentially do the playbook migration thing Emma suggested:).
[1] https://github.com/openstack-k8s-operators/lightspeed-operator/pull/110/changes#r4358179397
[2] openstack-k8s-operators/lightspeed-tests#17
| type: playbook | ||
|
|
||
| cifmw_run_tests: true | ||
| cifmw_test_operator_fail_on_test_failure: true |
There was a problem hiding this comment.
nit (non-blocking): Is this really set to false by default?
| type: ansibletest | ||
|
|
||
| cifmw_test_operator_namespace: openstack | ||
| cifmw_test_operator_privileged: false |
There was a problem hiding this comment.
nit (non-blocking): Is this really set to true by default?
|
|
||
| cifmw_test_operator_namespace: openstack | ||
| cifmw_test_operator_privileged: false | ||
| cifmw_test_operator_selinux_level: s0:c478,c978 |
There was a problem hiding this comment.
nit (non-blocking): Do we actually need this?
| cifmw_test_operator_ansibletest_name: ansibletest | ||
| cifmw_test_operator_ansibletest_image: quay.io/podified-antelope-centos9/openstack-ansible-tests |
There was a problem hiding this comment.
nit (non-blocking): Aren't the defaults enough here? These values equal to the default values in the test-operator role.
There was a problem hiding this comment.
i'll keep these image settings for now until i have verified the inherited image selection. Will be done in follow up
| cifmw_test_operator_selinux_level: s0:c478,c978 | ||
| cifmw_test_operator_ansibletest_name: ansibletest | ||
| cifmw_test_operator_ansibletest_image: quay.io/podified-antelope-centos9/openstack-ansible-tests | ||
| cifmw_test_operator_ansibletest_image_tag: current-podified |
| cifmw_test_operator_ansibletest_ansible_git_repo: https://github.com/malingatembo/lightspeed-tests | ||
| cifmw_test_operator_ansibletest_ansible_git_branch: feat/OSPRH-33344-ci-test-runner |
There was a problem hiding this comment.
Still needs to be resolved! Important ❗
| cifmw_test_operator_ansibletest_ansible_playbook_path: playbooks/run_lightspeed_tests.yaml | ||
| cifmw_test_operator_ansibletest_ansible_inventory: | | ||
| localhost ansible_connection=local ansible_python_interpreter=python3 | ||
| cifmw_test_operator_ansibletest_debug: false |
There was a problem hiding this comment.
nit (non-blocking): The default value is false.
| memory: 2Gi | ||
| # Allow bootstrap to save parameters before runner and PVC facts exist. | ||
| # The collector supplies those facts when it creates this Pod. | ||
| cifmw_test_operator_log_pod_definition: |
There was a problem hiding this comment.
So can we remove this? 👀
|
Three things:
Then I think we can merge this and improve it. Currently there are two new test failures related to RAG but I think we can deal with it as a separate problem. Good news is that we have a job that runs the tests:) (related PR -> https://github.com/openstack-k8s-operators/lightspeed-tests/pull/23/changes) |
| secrets: | ||
| - name: openai_credentials | ||
| secret: lightspeed-openai-token | ||
| # Creates the token Secret in-cluster before the run (see playbook header). | ||
| pre-run: ci/playbooks/create_lightspeed_secret.yml | ||
| # cleanup: true so Zuul still attempts the delete when the job is canceled. | ||
| post-run: | ||
| - name: ci/playbooks/cleanup_lightspeed_secret.yml | ||
| cleanup: true |
There was a problem hiding this comment.
- We do not want to remove this, and for now, we want to ensure that we are still using the dummy secret in OpenStackLightspeed, since we are using the dummy LLM endpoint only.
There was a problem hiding this comment.
restored the secrete ref, pre-run setup and cleanup hooks in commit dcb31b5
Keep the deployment hook in the operator repository and use it to install Lightspeed with a mock LLM. Run the official tests through AnsibleTest, save the JUnit results and logs, and fail the job when tests fail. Keep the existing credential setup and cleanup. For the mock endpoint, the installer replaces the provider token in the Secret with a dummy value. Related-Issue: OSPRH-33344 Signed-off-by: malingatembo <tembomalinga@gmail.com>
18094d2 to
dcb31b5
Compare
|
@elfiesmelfie thank you taking a look and for your suggestion. The deployment hook is now in this repository, and the dependency on #4222 has been removed. Thank you |
lpiwowar
left a comment
There was a problem hiding this comment.
/lgtm
The job works. It is true that some tests are failing but the main goal was to ensure that tests can be executed in the job which is done 🎉 . Now we can work on polishing the job, making the tests green and changing the job to voting:).
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lpiwowar, malingatembo, umago The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
337ad3a
into
openstack-k8s-operators:main
The Lightspeed deployment hook is maintained in lightspeed-operator through PR #110. Remove the old framework playbook and its README entry so there is one place to maintain it. Related-PR: openstack-k8s-operators/lightspeed-operator#110 Related-Issue: #OSPRH-33344 Signed-off-by: malingatembo <tembomalinga@gmail.com>
Deploy Lightspeed with a mock LLM on CRC, run official application tests through test-operator, and collect JUnit results.
Keep the installer and documentation in this repository, preserving Jan’s credential handoff.
Local checks pass; fresh Zuul validation is pending.
Related-Issue: OSPRH-33344