[skip ci] Add new func of benchmark (#11094)

Signed-off-by: wangting0128 <ting.wang@zilliz.com>
This commit is contained in:
wt 2021-11-02 20:48:48 +08:00 committed by GitHub
parent 99677d3c38
commit c37f5f1139
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,6 +41,19 @@ def get_tags(url, token):
return []
def get_master_tags(tags_list):
_list = []
if not isinstance(tags_list, list):
print("tags_list is not a list.")
return _list
for tag in tags_list:
if "master" in tag and tag != "master-latest":
_list.append(tag)
return _list
def parse_server_tag(server_tag):
""" paser server tag from server config"""
# tag format: "8c"/"8c16m"/"8c16m1g"