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

resource group: support more mode for burstable #9044

Draft
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

lhy1024
Copy link
Contributor

@lhy1024 lhy1024 commented Feb 7, 2025

What problem does this PR solve?

Issue Number: Close #xxx

What is changed and how does it work?

Check List

Tests

  • Unit test
    image
[
    {
        "name": "default",
        "mode": 1,
        "r_u_settings": {
            "r_u": {
                "settings": {
                    "fill_rate": 2147483647,
                    "burst_limit": -1
                },
                "state": {
                    "last_update": "2025-02-07T22:44:17.808735228+08:00",
                    "initialized": true,
                    "burst_limit_factor": 2
                }
            }
        },
        "priority": 8
    },
    {
        "name": "x1",
        "mode": 1,
        "r_u_settings": {
            "r_u": {
                "settings": {
                    "fill_rate": 1000,
                    "burst_limit": -1
                },
                "state": {
                    "initialized": false,
                    "burst_limit_factor": 2
                }
            }
        },
        "priority": 8
    },
    {
        "name": "y",
        "mode": 1,
        "r_u_settings": {
            "r_u": {
                "settings": {
                    "fill_rate": 1000,
                    "burst_limit": -2
                },
                "state": {
                    "initialized": false,
                    "burst_limit_factor": 2
                }
            }
        },
        "priority": 8
    },
    {
        "name": "z",
        "mode": 1,
        "r_u_settings": {
            "r_u": {
                "settings": {
                    "fill_rate": 1000,
                    "burst_limit": 1000
                },
                "state": {
                    "initialized": false,
                    "burst_limit_factor": 2
                }
            }
        },
        "priority": 8
    },
    {
        "name": "z1",
        "mode": 1,
        "r_u_settings": {
            "r_u": {
                "settings": {
                    "fill_rate": 2147483647
                },
                "state": {
                    "initialized": false,
                    "burst_limit_factor": 2
                }
            }
        },
        "priority": 8
    }]

Release note

None.

Signed-off-by: lhy1024 <admin@liudos.us>
Copy link
Contributor

ti-chi-bot bot commented Feb 7, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Copy link
Contributor

ti-chi-bot bot commented Feb 7, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please ask for approval from lhy1024, ensuring that each of them provides their approval before proceeding. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@ti-chi-bot ti-chi-bot bot added do-not-merge/needs-linked-issue release-note-none Denotes a PR that doesn't merit a release note. do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. dco-signoff: yes Indicates the PR's author has signed the dco. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 7, 2025
Copy link

codecov bot commented Feb 7, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.25%. Comparing base (d9abd06) to head (56cbe1f).
Report is 1429 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #9044      +/-   ##
==========================================
+ Coverage   75.65%   76.25%   +0.59%     
==========================================
  Files         332      467     +135     
  Lines       33902    71141   +37239     
==========================================
+ Hits        25650    54249   +28599     
- Misses       6056    13502    +7446     
- Partials     2196     3390    +1194     
Flag Coverage Δ
unittests 76.25% <100.00%> (+0.59%) ⬆️

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

Signed-off-by: lhy1024 <admin@liudos.us>
@ti-chi-bot ti-chi-bot bot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Feb 7, 2025
Signed-off-by: lhy1024 <admin@liudos.us>
Copy link
Contributor

ti-chi-bot bot commented Feb 7, 2025

[FORMAT CHECKER NOTIFICATION]

Notice: To remove the do-not-merge/needs-linked-issue label, please provide the linked issue number on one line in the PR body, for example: Issue Number: close #123 or Issue Number: ref #456, multiple issues should use full syntax for each issue and be separated by a comma, like: Issue Number: close #123, ref #456.

📖 For more info, you can check the "Linking issues" section in the CONTRIBUTING.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dco-signoff: yes Indicates the PR's author has signed the dco. do-not-merge/needs-linked-issue do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none Denotes a PR that doesn't merit a release note. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant