diff --git a/tidb/daily.yaml b/tidb/daily.yaml index 8f1c6d9..6ea6d3e 100644 --- a/tidb/daily.yaml +++ b/tidb/daily.yaml @@ -32,7 +32,7 @@ tasks: go build -o ../bin/failpoint-ctl github.com/pingcap/failpoint/failpoint-ctl cd ../.. find $$PWD/ -type d | grep -vE "(\.git|tools)" | xargs tools/bin/failpoint-ctl enable - gotestsum --junitfile test.xml --packages="$(go list ./... | grep -v github.com/pingcap/tidb/cmd)" -- -p 8 -coverprofile=cov.out | grep -A 10 -B 10 "\-\-\- Fail" || true + gotestsum --junitfile test.xml --packages="$(go list ./... | grep -v github.com/pingcap/tidb/cmd)" -- -p 8 -timeout 25m -coverprofile=cov.out | grep -A 10 -B 10 "\-\-\- Fail" || true gocov convert cov.out | gocov-xml > coverage.xml buildEnv: image: hub.pingcap.net/jenkins/centos7_golang-1.16:latest @@ -51,7 +51,7 @@ tasks: go build -o ../bin/failpoint-ctl github.com/pingcap/failpoint/failpoint-ctl cd ../.. find $$PWD/ -type d | grep -vE "(\.git|tools)" | xargs tools/bin/failpoint-ctl enable - gotestsum -f standard-verbose --junitfile test.xml --packages="$(go list ./... | grep -v github.com/pingcap/tidb/cmd)" -- -race -coverprofile=cov.out | grep -A 10 -B 10 "\-\-\- Fail" + gotestsum -f standard-verbose --junitfile test.xml --packages="$(go list ./... | grep -v github.com/pingcap/tidb/cmd)" -- -timeout 25m -race -coverprofile=cov.out | grep -A 10 -B 10 "\-\-\- Fail" gocov convert cov.out | gocov-xml > coverage.xml buildEnv: image: hub.pingcap.net/jenkins/centos7_golang-1.16:latest @@ -69,7 +69,7 @@ tasks: go build -o ../bin/failpoint-ctl github.com/pingcap/failpoint/failpoint-ctl cd ../.. find $$PWD/ -type d | grep -vE "(\.git|tools)" | xargs tools/bin/failpoint-ctl enable - gotestsum --junitfile test.xml --packages="$(go list ./... | grep -v github.com/pingcap/tidb/cmd)" -- -p 8 -tags leak -coverprofile=cov.out | grep -A 10 -B 10 "\-\-\- Fail" + gotestsum --junitfile test.xml --packages="$(go list ./... | grep -v github.com/pingcap/tidb/cmd)" -- -timeout 25m -p 8 -tags leak -coverprofile=cov.out | grep -A 10 -B 10 "\-\-\- Fail" gocov convert cov.out | gocov-xml > coverage.xml buildEnv: image: hub.pingcap.net/jenkins/centos7_golang-1.16:latest