-
Notifications
You must be signed in to change notification settings - Fork 354
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
chore: add intg tests to resource_pool.go #9199
Conversation
✅ Deploy Preview for determined-ui ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
c78830d
to
0abbfd4
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9199 +/- ##
==========================================
+ Coverage 45.14% 45.24% +0.09%
==========================================
Files 1230 1230
Lines 154572 154572
Branches 2405 2405
==========================================
+ Hits 69786 69932 +146
+ Misses 84591 84445 -146
Partials 195 195
Flags with carried forward coverage won't be shown. Click here to find out more. |
e243aed
to
32ea2d8
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.
i think this is a fine start but most of the tests are too shallow to be meaningfully effective. e.g., i'd like the max slots test to actually check jobs exceeding max slots get queued, i'd like test allocate/release to actually start the allocation it gets, etc -- and i'd like to have a lot more asserts about the external system (k8s) state while they are ongoing. i approving this (modulo anything i've commented that you can easily fix) and we can try to fill the tests out on top of my pods->jobs pr.
in trying to make these tests more effective, i think it would be useful to run these tests in isolation and look at code coverage to see what paths are getting hit.
Name: uuid.NewString(), | ||
BlockedNodes: []string{uuid.NewString(), uuid.NewString()}, | ||
} | ||
rp.AllocateRequest(allocReq) |
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.
i think this test would be a lot more useful if it started the resources it gets and makes some asserts about the state of the kubernetes cluster. but i can add that onto my pr since im changing some of this fundementally.
04383f7
to
e9d34b4
Compare
b409ee9
to
1c1f9be
Compare
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @determined-ci, @djanicekpach, @ShreyaLnuHpe on file. In order for us to review and merge your code, please start the CLA process at https://determined.ai/cla. After we approve your CLA, we will update the contributors list (private) and comment |
Docsite preview being generated for this PR. |
34d42b7
to
97efc29
Compare
94aff2a
to
7637063
Compare
Thank you for your pull request and welcome to our community. We require contributors to sign our Contributor License Agreement, and we don't seem to have the users @determined-ci, @djanicekpach, @ShreyaLnuHpe on file. In order for us to review and merge your code, please start the CLA process at https://determined.ai/cla. After we approve your CLA, we will update the contributors list (private) and comment |
Docsite preview being generated for this PR. |
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. Bummer the orb didn't work out as planned.
This reverts commit 54fb10a.
Ticket
RM-201
Description
Add tests to resource_pool.go for exported functions on
kubernetesResourcePool
. These tests run on a minikube cluster that circleCI spins up before running all master intg tests.Test Plan
See attached test.
Checklist
docs/release-notes/
.See Release Note for details.