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-manager: refactor oversale resource calculate logic. #2240

Merged

Conversation

tan90github
Copy link
Contributor

@tan90github tan90github commented Oct 28, 2024

Ⅰ. Describe what this PR does

In order to better support mid resource in the future, we refactored the reporting code for oversale resources and extracted the public functions that mid resources and batch resources may use.

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

@tan90github
Copy link
Contributor Author

cc @j4ckstraw @yangfeiyu20102011

Copy link

codecov bot commented Oct 28, 2024

Codecov Report

Attention: Patch coverage is 42.85714% with 76 lines in your changes missing coverage. Please review.

Project coverage is 65.97%. Comparing base (4555e24) to head (fcf0593).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...g/slo-controller/noderesource/plugins/util/util.go 16.48% 76 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2240      +/-   ##
==========================================
- Coverage   66.31%   65.97%   -0.35%     
==========================================
  Files         453      453              
  Lines       53327    53323       -4     
==========================================
- Hits        35364    35178     -186     
- Misses      15413    15609     +196     
+ Partials     2550     2536      -14     
Flag Coverage Δ
unittests 65.97% <42.85%> (-0.35%) ⬇️

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.

@tan90github
Copy link
Contributor Author

@saintube PTAL thanks.

@saintube saintube requested review from hormes, zwzhang0107, saintube and jasonliu747 and removed request for zwzhang0107 November 1, 2024 01:42
@tan90github tan90github force-pushed the refactor/change-res-logic branch from 2513944 to 387b207 Compare November 4, 2024 02:10
@saintube
Copy link
Member

saintube commented Nov 5, 2024

/lgtm

@saintube saintube added the lgtm label Nov 5, 2024
…ate logic.

Signed-off-by: wangyang60 <wangy9834@163.com>
Signed-off-by: wangyang60 <wangy9834@163.com>
@tan90github tan90github force-pushed the refactor/change-res-logic branch from 387b207 to fcf0593 Compare November 5, 2024 01:54
@zwzhang0107
Copy link
Contributor

/approve

@koordinator-bot koordinator-bot bot merged commit e37628f into koordinator-sh:main Nov 5, 2024
22 checks passed
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.

3 participants