-
Notifications
You must be signed in to change notification settings - Fork 714
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
tools: support triggering an event through HTTP API #5677
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5677 +/- ##
=======================================
Coverage 77.32% 77.33%
=======================================
Files 470 471 +1
Lines 61340 61347 +7
=======================================
+ Hits 47431 47441 +10
- Misses 10331 10336 +5
+ Partials 3578 3570 -8
Flags with carried forward coverage won't be shown. Click here to find out more. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we delete the delete/add nodes case , which case based we test this scenarios ?
|
||
// IDAllocator is used to alloc unique ID. | ||
var IDAllocator idAllocator | ||
|
||
// CaseMap is a mapping of the cases to the their corresponding initialize functions. | ||
var CaseMap = map[string]func() *Case{ | ||
"balance-leader": newBalanceLeader, | ||
"redundant-balance-region": newRedundantBalanceRegion, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by the way ,why not balance region case registered?
@@ -36,7 +36,7 @@ func newRedundantBalanceRegion() *Case { | |||
|
|||
for i := 0; i < storeNum; i++ { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if we add/down-node the case checker should check all the stores balance , but it still use storeNum.
it may exists somewhere else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@lilinghai: Thanks for your review. The bot only counts approvals from reviewers and higher roles in list, but you're still welcome to leave your comments. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
@rleungx: PR needs rebase. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
Signed-off-by: Ryan Leung <rleungx@gmail.com>
/merge |
@rleungx: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
This pull request has been accepted and is ready to merge. Commit hash: 8b47279
|
Signed-off-by: Ryan Leung rleungx@gmail.com
What problem does this PR solve?
Issue Number: Ref #5468, close #5451.
What is changed and how does it work?
This PR supports the following functionality. And it can be reviewed until #5670 is merged.
curl <ip>:<status_port>/event\?event=down-node
curl <ip>:<status_port>/event\?event=add-node
Check List
Tests
Release note