-
Notifications
You must be signed in to change notification settings - Fork 231
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
cleanup manipulation of CQ/Cohort resource accounting in tests #2502
Comments
Also #2486 (comment) |
We also test against internal state of usage/quotas/limits. I will link those cleanup PRs to this issue as well. |
These are the (hopefully) last two remaining. See #2583 for a complete example of refactoring test, changing ClusterQueueSnapshot to API type, and representing cohort capacity/usage via use of a 2nd cluster queue. |
/assign |
Thanks for helping with the cleanup, @highpon! Will you also be fixing flavorassigner_test.go? |
Yes! I would love to work with you on |
Hi @highpon, will you still cleanup |
Discussed over Slack with @highpon. @vladikkuzn, could you complete the remaining cleanup please? /assign @vladikkuzn |
What would you like to be cleaned:
We sometimes manipulate the internal accounting of ClusterQueue and Cohort snapshots. This is brittle. Quota/Lending Limit/Borrowing Limit/Usage should be set by calling public api methods, or by defining the CQs/Cohorts via API objects, adding to cache, and creating snapshot (see #2486 for an example).
See this thread #2486 (comment)
Why is this needed:
Tests are brittle, and make cache/snapshot hard to update
The text was updated successfully, but these errors were encountered: