-
Notifications
You must be signed in to change notification settings - Fork 51
Converted Go upgrade tests in Codeflare-SDK to python tests and add support for kueue integration #494
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
Converted Go upgrade tests in Codeflare-SDK to python tests and add support for kueue integration #494
Conversation
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.
Great work Abhijeet! Since we no longer require the use of .go
files we can remove go.mod
, go.sum
, and the support.go
file too.
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.
@abhijeet-dhumal Both the tests TestMNISTRayClusterUp
and TestMnistJobSubmit
should run independently for upgrade testing , incorporate accordingly.
you can run tests independently like this poetry run pytest -v -s ./tests/e2e/raycluster_sdk_upgrade_test.py::TestMnistJobSubmit
ce631d4
to
35b4533
Compare
@ChristianZaccaria Thanks for reviewing, yes I have cleaned up Go files since they are no longer required |
Thank you for reviewing @Srihari1192 :) According to above review I have made some changes wrt independent execution of tests and thoroughly tested required usecases of upgrade tests. |
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.
Keep this tests in same upgrade folder as if we run the tests with command poetry run pytest -v -s ./tests/e2e
this tests also be picked and not the right way
5bf9103
to
69b1e84
Compare
69b1e84
to
b466308
Compare
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.
/lgtm
…cad parameter in cluster-configuration function (project-codeflare#494)
…instead of REST post request (project-codeflare#494)
a02de37
to
540ef4a
Compare
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.
/lgtm
540ef4a
to
436a7e6
Compare
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.
/approve
Ran and verified it works on OpenShift
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Bobbins228, ChughShilpa, Srihari1192, sutaakar The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
4f5a930
into
project-codeflare:main
…cad parameter in cluster-configuration function (#494)
…instead of REST post request (#494)
Issue link
RHOAIENG-2444
What changes have been made
Verification steps
oc apply --server-side -k "github.com/opendatahub-io/kueue/config/rhoai?ref=dev"
poetry run pytest -v -s ./tests/upgrade/raycluster_sdk_upgrade_test.py::TestMNISTRayClusterUp
~ asserts RayCluster status -
READY
(Namespace created inTestMNISTRayClusterUp
will be used inTestMnistJobSubmit
)poetry run pytest -v -s ./tests/upgrade/raycluster_sdk_upgrade_test.py::TestMnistJobSubmit
~ asserts JobSubmission status
Note : In case of testing with Kind cluster, skip token authentication step.
Checks
- Manual testing followed :