-
Notifications
You must be signed in to change notification settings - Fork 239
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-2908] Remove associated metrics when queue is removed #987
Conversation
@hguo25 is this change ready for review? I can only see two "wip" commits. If it's not ready, please make it draft by clicking on "Convert to Draft". |
Also, when ready, squash the commits into a single one and change the commit message to "[YUNIKORN-nnnn] JIRA title" format. Thanks. |
88ccbd9
to
e544145
Compare
@pbacsko yes it's ready. Squashed commits as you asked. Please review, thanks |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #987 +/- ##
=========================================
Coverage ? 81.32%
=========================================
Files ? 97
Lines ? 15491
Branches ? 0
=========================================
Hits ? 12598
Misses ? 2610
Partials ? 283 ☔ View full report in Codecov by Sentry. |
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.
There's no coverage for the new functions in the "metrics" package. Please extend the coverage.
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.
Approach is good, add tests (as Peter indicated).
35c7c74
to
e175210
Compare
thanks @pbacsko @craigcondit I have added test |
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.
Address linter error.
Run locally with 'make lint".
e175210
to
4eee4d0
Compare
4eee4d0
to
6e1def7
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.
+1 LGTM (pending e2e)
@pbacsko thanks for the review. The e2e failed in gang scheduling, which doesn't seem to be related to my change? |
We need a follow up on YUNIKORN-2926 to fix the gang scheduling e2e test. The changes I made there are not enough to fix the whole issue. Logged new jira for that. |
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 LGTM.
What is this PR for?
Delete all metrics so a deleted queue will not continue to report 'guaranteed resource' 'max resource'
What type of PR is it?
Todos
What is the Jira issue?
https://issues.apache.org/jira/browse/YUNIKORN-2908
How should this be tested?
Screenshots (if appropriate)
Questions: