-
Notifications
You must be signed in to change notification settings - Fork 20
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
feat(nvidia): set default poller once with common db pkg #341
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #341 +/- ##
==========================================
- Coverage 21.47% 21.46% -0.01%
==========================================
Files 300 300
Lines 27186 27100 -86
==========================================
- Hits 5837 5817 -20
+ Misses 20710 20641 -69
- Partials 639 642 +3 ☔ View full report in Codecov by Sentry. |
f450442
to
f77c452
Compare
Signed-off-by: Gyuho Lee <[email protected]>
f77c452
to
c8b38f7
Compare
tests? |
nvidia_query.WithInfinibandClassDirectory(cfg.InfinibandClassDirectory), | ||
) | ||
nvidia_query.GetDefaultPoller().Start(cctx, cfg.Query, Name) | ||
if nvidia_query.GetDefaultPoller() != nil { |
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.
why do we need to check nil here but not in other components?
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.
@@ -88,6 +89,9 @@ type instance struct { | |||
// read-only database instance | |||
dbRO *sql.DB | |||
|
|||
xidEventsStore events_db.Store |
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.
rever this? let us do this in another pr
@@ -88,6 +89,9 @@ type instance struct { | |||
// read-only database instance | |||
dbRO *sql.DB | |||
|
|||
xidEventsStore events_db.Store | |||
hwslowdownEventsStore events_db.Store |
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.
revert?
dbRW *sql.DB | ||
dbRO *sql.DB | ||
|
||
xidEventsStore events_db.Store |
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.
revert?
let us only remove duplicate
in this pr. add tests as well |
Cherry-picked from #341. Signed-off-by: Gyuho Lee <[email protected]>
Replace #341. Signed-off-by: Gyuho Lee <[email protected]>
This can be closed now in favor of #346. |
c.f., #336 Requires #341. Tested <img width="1102" alt="Screenshot 2025-01-28 at 11 01 33 PM" src="https://github.com/user-attachments/assets/78c12072-42df-4c17-8789-2eb900577eb5" /> <img width="1537" alt="Screenshot 2025-01-28 at 11 01 45 PM" src="https://github.com/user-attachments/assets/9a520798-9aab-499f-9f03-433f1c8a9295" /> Signed-off-by: Gyuho Lee <[email protected]>
c.f., #336