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

New stability test case for ConfigMap rollout #499

Merged
merged 22 commits into from
May 24, 2019

Conversation

aylei
Copy link
Contributor

@aylei aylei commented May 17, 2019

What problem does this PR solve?

fix #486

What is changed and how it works?

New stability test case

Check List

Tests

  • Stability test [Passed]

@weekface @xiaojingchen @tennix @onlymellb PTAL

aylei and others added 17 commits May 9, 2019 19:45
Signed-off-by: Aylei <rayingecho@gmail.com>
Signed-off-by: Aylei <rayingecho@gmail.com>
Signed-off-by: Aylei <rayingecho@gmail.com>
Signed-off-by: Aylei <rayingecho@gmail.com>
Signed-off-by: Aylei <rayingecho@gmail.com>
Signed-off-by: Aylei <rayingecho@gmail.com>
…ration check instead

Signed-off-by: Aylei <rayingecho@gmail.com>
Co-Authored-By: weekface <weekface@gmail.com>
Signed-off-by: Aylei <rayingecho@gmail.com>
Signed-off-by: Aylei <rayingecho@gmail.com>
Signed-off-by: Aylei <rayingecho@gmail.com>
Signed-off-by: Aylei <rayingecho@gmail.com>
@weekface weekface added the test/stability stability tests label May 21, 2019
@@ -9,6 +9,9 @@
#

set -uo pipefail

{{ .Values.pd.preStartScript }}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For fault-injection

tests/actions.go Outdated
@@ -328,6 +336,7 @@ func (oi *OperatorConfig) OperatorHelmSetString(m map[string]string) string {
"scheduler.logLevel": "2",
"controllerManager.replicas": "2",
"scheduler.replicas": "2",
"imagePullPolicy": "Always",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typically, we will use the latest tag of operator image. Always can avoid using stale image

@@ -1593,7 +1602,7 @@ func releaseIsNotFound(err error) bool {
}

func (oa *operatorActions) cloneOperatorRepo() error {
cmd := fmt.Sprintf("git clone https://github.com/pingcap/tidb-operator.git %s", oa.cfg.OperatorRepoDir)
cmd := fmt.Sprintf("git clone %s %s", oa.cfg.OperatorRepoUrl, oa.cfg.OperatorRepoDir)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If the developers modify the chart in their development branch, they have to configure the git url in order to test the chart modification

@weekface
Copy link
Contributor

/run-e2e-tests

2 similar comments
@aylei
Copy link
Contributor Author

aylei commented May 23, 2019

/run-e2e-tests

@aylei
Copy link
Contributor Author

aylei commented May 23, 2019

/run-e2e-tests

@aylei
Copy link
Contributor Author

aylei commented May 24, 2019

/run-e2e-tests

@aylei
Copy link
Contributor Author

aylei commented May 24, 2019

/run-e2e-tests

@@ -51,6 +52,7 @@ func main() {
WebhookServiceName: "webhook-service",
WebhookSecretName: "webhook-secret",
WebhookConfigName: "webhook-config",
ImagePullPolicy: v1.PullIfNotPresent,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The ImagePullPolicy can be omitted. It is set to IfNotPresent by default.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand correctly, according to the communication in this morning, IfNotPresent is required for e2e test so I think it's better to enforce this policy explicitly.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

@xiaojingchen
Copy link
Contributor

/run-e2e-test

1 similar comment
@xiaojingchen
Copy link
Contributor

/run-e2e-test

Copy link
Contributor

@onlymellb onlymellb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@weekface
Copy link
Contributor

/run-e2e-test

@xiaojingchen xiaojingchen merged commit cc0d2d8 into pingcap:master May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
test/stability stability tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New stability test case for ConfigMap rollout
5 participants