-
Notifications
You must be signed in to change notification settings - Fork 499
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
test: ensure pods unaffected when upgrading #955
test: ensure pods unaffected when upgrading #955
Conversation
140661a
to
9e74eac
Compare
/run-e2e-in-kind |
9e74eac
to
84f2680
Compare
/run-e2e-in-kind |
e2f7932
to
39d9ede
Compare
/run-e2e-in-kind |
tests/actions.go
Outdated
@@ -469,7 +479,42 @@ func (oa *operatorActions) UpgradeOperator(info *OperatorConfig) error { | |||
if err != nil { | |||
return fmt.Errorf("failed to upgrade operator to: %s, %v, %s", info.Image, err, string(res)) | |||
} | |||
return nil | |||
|
|||
time.Sleep(5 * time.Minute) |
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.
check ready status? that will be more efficient
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.
The main purpose here is to prevent the pod from being rebuilt after updating the operator. After updating the operator, it may become ready soon, but it may take a while to rebuild all the pods. This time is not easy to grasp, so I just use sleep
here.
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.
I will change it to wait.Poll
This pr must wait for #896 merged. |
…om/weekface/tidb-operator into ensure-pods-unchanged-when-upgrade
/run-e2e-in-kind |
1 similar comment
/run-e2e-in-kind |
8b8abc5
to
043d5de
Compare
@tennix @xiaojingchen PTAL |
/run-e2e-in-kind |
/run-e2e-in-kind |
2 similar comments
/run-e2e-in-kind |
/run-e2e-in-kind |
@weekface Please fix the conflict. |
conflict resolved. |
/run-e2e-in-kind |
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
/run-e2e-in-kind |
4 similar comments
/run-e2e-in-kind |
/run-e2e-in-kind |
/run-e2e-in-kind |
/run-e2e-in-kind |
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
/run-e2e-in-kind |
What problem does this PR solve?
What is changed and how does it work?
Check List
Tests
Code changes
Side effects
Related changes
Does this PR introduce a user-facing change?: