Skip to content
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

koord-scheduler: make Coscheduling/ElasticQuota/DeviceShare plugins more flexible #704

Merged
merged 1 commit into from
Oct 21, 2022

Conversation

xulinfei1996
Copy link
Contributor

Signed-off-by: xulinfei.xlf xulinfei.xlf@alibaba-inc.com

Ⅰ. Describe what this PR does

1、make some functions from func xxx() to var xxx = func()
2、deviceResourceNames -> DeviceResourceNames
3、nvidiaGpuExist -> NvidiaGpuExist and etc.

Ⅱ. 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

@codecov
Copy link

codecov bot commented Oct 17, 2022

Codecov Report

Base: 68.92% // Head: 68.89% // Decreases project coverage by -0.02% ⚠️

Coverage data is based on head (e690f9a) compared to base (22e9d78).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #704      +/-   ##
==========================================
- Coverage   68.92%   68.89%   -0.03%     
==========================================
  Files         205      205              
  Lines       23329    23330       +1     
==========================================
- Hits        16079    16073       -6     
- Misses       6141     6149       +8     
+ Partials     1109     1108       -1     
Flag Coverage Δ
unittests 68.89% <100.00%> (-0.03%) ⬇️

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

Impacted Files Coverage Δ
pkg/scheduler/plugins/coscheduling/core/gang.go 76.34% <100.00%> (ø)
.../scheduler/plugins/coscheduling/core/gang_cache.go 74.85% <100.00%> (+0.15%) ⬆️
pkg/scheduler/plugins/deviceshare/device_cache.go 86.57% <100.00%> (ø)
pkg/scheduler/plugins/deviceshare/plugin.go 90.05% <100.00%> (ø)
pkg/scheduler/plugins/deviceshare/pod_handler.go 94.59% <100.00%> (ø)
pkg/scheduler/plugins/deviceshare/utils.go 100.00% <100.00%> (ø)
...kg/scheduler/plugins/elasticquota/plugin_helper.go 79.34% <100.00%> (ø)
pkg/webhook/elasticquota/pod_check.go 85.71% <100.00%> (ø)
pkg/scheduler/plugins/elasticquota/controller.go 65.33% <0.00%> (-10.67%) ⬇️
pkg/util/httputil/reverseproxy.go 84.84% <0.00%> (-0.27%) ⬇️
... and 1 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@xulinfei1996 xulinfei1996 changed the title koord-scheduler: organize some functions and datas to make adaption to ack's protocal koord-scheduler: make Coscheduling/ElasticQuota/DeviceShare plugins more flexible Oct 18, 2022
@xulinfei1996 xulinfei1996 force-pushed the ack-protocal branch 3 times, most recently from d472e49 to fcf9d9a Compare October 19, 2022 05:46
Copy link
Member

@eahydra eahydra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

…ore flexible

Signed-off-by: xulinfei.xlf <xulinfei.xlf@alibaba-inc.com>
Copy link

@yihuifeng yihuifeng left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

Copy link
Contributor

@buptcozy buptcozy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@hormes
Copy link
Member

hormes commented Oct 21, 2022

/approve

@koordinator-bot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: buptcozy, eahydra, hormes

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

The pull request process is described here

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

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.

None yet

6 participants