Enable 70% of delta condition judgment for codecov (#7160)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
pull/7160/merge
紫晴 2021-08-19 15:50:12 +08:00 committed by GitHub
parent ec9ccd8bd1
commit 7233b62dad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 2 deletions

1
.github/mergify.yml vendored
View File

@ -5,6 +5,7 @@ pull_request_rules:
- "status-success=Code Checker AMD64 Ubuntu 18.04"
- "status-success=Build and test AMD64 Ubuntu 18.04"
- "status-success=continuous-integration/jenkins/pr-merge"
- "status-success=codecov/patch"
actions:
label:
add:

View File

@ -1,4 +1,8 @@
#Configuration File for CodeCov
codecov:
notify:
require_ci_to_pass: yes
coverage:
precision: 2
round: down
@ -16,6 +20,7 @@ coverage:
threshold: 0%
branches:
- master
if_ci_failed: error #success, failure, error, ignore
comment:
layout: "reach, diff, flags, files"

View File

@ -275,7 +275,6 @@ func (rmq *rocksmq) DestroyTopic(topicName string) error {
func (rmq *rocksmq) ExistConsumerGroup(topicName, groupName string) (bool, *Consumer) {
key := groupName + "/" + topicName + "/current_id"
// keyExist := false
// if ll, ok := topicMu.Load(topicName); !ok {
// keyExist = rmq.checkKeyExist(key)
@ -288,7 +287,6 @@ func (rmq *rocksmq) ExistConsumerGroup(topicName, groupName string) (bool, *Cons
// keyExist = rmq.checkKeyExist(key)
// }
// }
if rmq.checkKeyExist(key) {
if vals, ok := rmq.consumers.Load(topicName); ok {
for _, v := range vals.([]*Consumer) {