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

koordlet: fix proxy container service and revise cpu.max updater #1885

Conversation

saintube
Copy link
Member

@saintube saintube commented Jan 31, 2024

Ⅰ. Describe what this PR does

koordlet

  • Fix a nil reference bug when the runtime proxy server is invoked for the container-related methods.
  • Revise the cgroup updater for the cpu.max where the old cgroup content is not a single integer.
  • Add UTs to avoid regression problems.

Ⅱ. Does this pull request fix one issue?

Fixes #1882.

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

Copy link

codecov bot commented Jan 31, 2024

Codecov Report

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

Comparison is base (ad36a0b) 67.27% compared to head (7cc7973) 67.48%.
Report is 1 commits behind head on main.

Files Patch % Lines
pkg/koordlet/resourceexecutor/updater.go 75.86% 4 Missing and 3 partials ⚠️
...oordlet/runtimehooks/protocol/container_context.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1885      +/-   ##
==========================================
+ Coverage   67.27%   67.48%   +0.20%     
==========================================
  Files         411      413       +2     
  Lines       45875    46046     +171     
==========================================
+ Hits        30863    31073     +210     
+ Misses      12775    12722      -53     
- Partials     2237     2251      +14     
Flag Coverage Δ
unittests 67.48% <71.05%> (+0.20%) ⬆️

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.

Signed-off-by: saintube <saintube@foxmail.com>
@saintube saintube force-pushed the koordlet-fix-proxyserver-nil-reference branch from fc29d58 to 7cc7973 Compare January 31, 2024 09:44
@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

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 6dd48ad into koordinator-sh:main Jan 31, 2024
20 checks passed
saintube added a commit to saintube/koordinator that referenced this pull request Feb 22, 2024
saintube added a commit that referenced this pull request Feb 26, 2024
saintube added a commit to saintube/koordinator that referenced this pull request Feb 26, 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
ls-2018 pushed a commit to ls-2018/koordinator that referenced this pull request Mar 25, 2024
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.

[BUG] koordlet panic in runtimeproxy PreCreateContainerHook
2 participants