Skip to content

koordlet: revise base collectors and system status check#1877

Merged
koordinator-bot[bot] merged 2 commits intokoordinator-sh:mainfrom
saintube:koordlet-decouple-cuda-image-dependency
Jan 30, 2024
Merged

koordlet: revise base collectors and system status check#1877
koordinator-bot[bot] merged 2 commits intokoordinator-sh:mainfrom
saintube:koordlet-decouple-cuda-image-dependency

Conversation

@saintube
Copy link
Member

@saintube saintube commented Jan 30, 2024

Ⅰ. Describe what this PR does

koordlet:

  • Fix panics of node and pod collectors when the device collector is disabled.
  • Revise the initialization of the system-supported status.

Ⅱ. Does this pull request fix one issue?

Ⅲ. Describe how to verify it

Ⅳ. Special notes for reviews

V. Checklist

  • I have written necessary docs and comments
  • I have added necessary unit tests and integration tests
  • All checks passed in make test

@saintube saintube force-pushed the koordlet-decouple-cuda-image-dependency branch from 4611b23 to b979c33 Compare January 30, 2024 04:04
@koordinator-bot koordinator-bot bot added size/M and removed size/L labels Jan 30, 2024
@saintube saintube changed the title Koordlet decouple cuda image dependency koordlet: revise noderesource and podresource collectors when device collector disabled Jan 30, 2024
@codecov
Copy link

codecov bot commented Jan 30, 2024

Codecov Report

Attention: 13 lines in your changes are missing coverage. Please review.

Comparison is base (83a18bf) 67.26% compared to head (4715971) 67.30%.
Report is 1 commits behind head on main.

Files Patch % Lines
pkg/koordlet/util/system/config.go 40.00% 4 Missing and 2 partials ⚠️
...collectors/noderesource/node_resource_collector.go 57.14% 1 Missing and 2 partials ⚠️
pkg/koordlet/koordlet.go 0.00% 1 Missing ⚠️
pkg/koordlet/runtimehooks/runtimehooks.go 0.00% 1 Missing ⚠️
pkg/koordlet/util/system/resctrl.go 0.00% 1 Missing ⚠️
pkg/koordlet/util/system/system_file.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1877      +/-   ##
==========================================
+ Coverage   67.26%   67.30%   +0.03%     
==========================================
  Files         411      411              
  Lines       45857    45875      +18     
==========================================
+ Hits        30845    30874      +29     
+ Misses      12779    12762      -17     
- Partials     2233     2239       +6     
Flag Coverage Δ
unittests 67.30% <53.57%> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@saintube saintube requested a review from LambdaHJ January 30, 2024 04:09
…isabled

Signed-off-by: saintube <saintube@foxmail.com>
@saintube saintube force-pushed the koordlet-decouple-cuda-image-dependency branch from b979c33 to eabe076 Compare January 30, 2024 04:19
@koordinator-bot koordinator-bot bot added size/L and removed size/M labels Jan 30, 2024
@saintube saintube changed the title koordlet: revise noderesource and podresource collectors when device collector disabled koordlet: revise base collectors and system status check Jan 30, 2024
@saintube saintube force-pushed the koordlet-decouple-cuda-image-dependency branch from 6e53bce to 69a209b Compare January 30, 2024 07:45
Signed-off-by: saintube <saintube@foxmail.com>
@saintube saintube force-pushed the koordlet-decouple-cuda-image-dependency branch from 69a209b to 4715971 Compare January 30, 2024 08:36
@zwzhang0107
Copy link
Contributor

/lgtm
/approve

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: zwzhang0107

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@koordinator-bot koordinator-bot bot merged commit ad36a0b into koordinator-sh:main Jan 30, 2024
saintube added a commit to saintube/koordinator that referenced this pull request Feb 26, 2024
saintube added a commit that referenced this pull request Feb 26, 2024
Signed-off-by: saintube <saintube@foxmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants