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

stability: add more checks for scale & upgrade #327

Merged
merged 27 commits into from
Mar 22, 2019
Merged
Show file tree
Hide file tree
Changes from 15 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
62425e7
add basic actions
weekface Feb 22, 2019
3a47c95
add e2e main func
weekface Mar 7, 2019
129df4f
tidb stability test main function (#306)
shuijing198799 Mar 12, 2019
4f8d71a
stability: add fault-trigger server (#312)
cwen0 Mar 14, 2019
c12bf3b
Yinliang/backup and restore add adhoc backup and restore functison (…
shuijing198799 Mar 15, 2019
da93efd
stability: add scale & upgrade case functions (#309)
zyguan Mar 18, 2019
2090950
add slack (#318)
xiaojingchen Mar 18, 2019
06a3742
log dump when test failed (#317)
xiaojingchen Mar 18, 2019
07f838d
stability: add fault-trigger client (#326)
cwen0 Mar 18, 2019
fb7184c
monitor checker (#320)
xiaojingchen Mar 18, 2019
ca26f79
stability: add more checks for scale operation
zyguan Mar 18, 2019
addadb9
stability: add checks for upgrade operations
zyguan Mar 18, 2019
4c3d275
stability: amend tidbMembersReadyFn
zyguan Mar 18, 2019
9d33e26
stability: add blockWriter case for inserting data (#321)
cwen0 Mar 19, 2019
f31476b
Merge remote-tracking branch 'origin/stability' into add-more-checks
zyguan Mar 19, 2019
61652fc
add scheduled-backup test case (#322)
shuijing198799 Mar 19, 2019
1743b8f
Merge remote-tracking branch 'origin/stability' into add-more-checks
zyguan Mar 19, 2019
7fb6083
stability: address the comments
zyguan Mar 19, 2019
432fdab
stability: port ddl test as a workload (#328)
zyguan Mar 20, 2019
b0ef8e1
stability: use fault-trigger at e2e tests and add some log (#330)
cwen0 Mar 20, 2019
fa2e51c
add binlog deploy and check process (#329)
shuijing198799 Mar 20, 2019
0f934aa
fix e2e can not make (#331)
xiaojingchen Mar 20, 2019
d3f630d
Merge remote-tracking branch 'origin/stability' into add-more-checks
zyguan Mar 20, 2019
a41eed9
revert go.mod changes
zyguan Mar 20, 2019
2d416c6
multi tidb cluster testing (#334)
xiaojingchen Mar 20, 2019
e853348
Merge remote-tracking branch 'origin/stability' into add-more-checks
zyguan Mar 20, 2019
f7dd605
Merge remote-tracking branch 'origin/master' into add-more-checks
zyguan Mar 22, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ images/tidb-operator-e2e/tidb-operator/
tmp/
data/
.idea
cscope.files
tags
filenametags

# ginkgo test coverage
*.coverprofile
Expand Down
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,10 @@ e2e-docker-push: e2e-docker
docker push "${DOCKER_REGISTRY}/pingcap/tidb-operator-e2e:latest"

e2e-docker: e2e-build
mkdir -p images/tidb-operator-e2e/bin
mv tests/e2e/e2e.test images/tidb-operator-e2e/bin/
[[ -d images/tidb-operator-e2e/tidb-operator ]] && rm -r images/tidb-operator-e2e/tidb-operator || true
[[ -d images/tidb-operator-e2e/tidb-cluster ]] && rm -r images/tidb-operator-e2e/tidb-cluster || true
cp -r charts/tidb-operator images/tidb-operator-e2e/
cp -r charts/tidb-cluster images/tidb-operator-e2e/
docker build -t "${DOCKER_REGISTRY}/pingcap/tidb-operator-e2e:latest" images/tidb-operator-e2e
docker build -t "${DOCKER_REGISTRY}/pingcap/tidb-operator-e2e:latest" tests/images/e2e

e2e-build:
$(GOENV) ginkgo build tests/e2e
$(GO) -ldflags '$(LDFLAGS)' -o tests/images/e2e/bin/e2e tests/cmd/e2e/main.go

test:
@echo "Run unit tests"
Expand Down
13 changes: 13 additions & 0 deletions pkg/label/label.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@
package label

import (
"fmt"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/labels"
"strings"
)

const (
Expand Down Expand Up @@ -138,3 +140,14 @@ func (l Label) LabelSelector() *metav1.LabelSelector {
func (l Label) Labels() map[string]string {
return l
}

// String converts label to a string
func (l Label) String() string {
var arr []string

for k, v := range l {
arr = append(arr, fmt.Sprintf("%s=%s", k, v))
}

return strings.Join(arr, ",")
}
Loading