-
Notifications
You must be signed in to change notification settings - Fork 221
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
[YUNIKORN-2635] test coverage improvement: same priority case in sorter #871
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #871 +/- ##
==========================================
+ Coverage 77.08% 77.13% +0.04%
==========================================
Files 97 97
Lines 11989 11992 +3
==========================================
+ Hits 9242 9250 +8
+ Misses 2415 2411 -4
+ Partials 332 331 -1 ☔ View full report in Codecov by Sentry. |
// apps should come back in order: 0, 2, 3, 1 | ||
assertAppList(t, list, []int{0, 3, 1, 2}, "app-1 & app-3 allocated, app-3 high priority") |
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.
Nit: comment is inconsistent with the code
input["app-2"].SubmissionTime = input["app-3"].SubmissionTime | ||
input["app-1"].SubmissionTime = input["app-3"].SubmissionTime | ||
list = sortApplications(input, policies.FifoSortPolicy, false, nil) | ||
assertAppList(t, list, []int{0, 2, 3, 1}, "fifo first, priority second") // 0, 3, 1, 2 |
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.
Comment vs code: 0,3,1,2 or 0,2,3,1? I'm not sure that we need a comment at all if it's obvious.
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.
+1
What is this PR for?
Update priority cases to improve test coverage.
What type of PR is it?
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-2635
How should this be tested?
make test
Screenshots (if appropriate)
Questions: