Skip to content

Commit

Permalink
[skip e2e]Update get tag function (milvus-io#14120)
Browse files Browse the repository at this point in the history
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
  • Loading branch information
zhuwenxing authored Dec 23, 2021
1 parent 5a4dc83 commit 0c43d18
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/python_client/deploy/scripts/get_tag.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ def get_tag(url):
response = requests.request("GET", url, headers=headers, data=payload)

res = response.json()["results"]
tags = [r["name"] for r in res]
sorted_r = sorted(res, key=lambda k: k['last_updated'])
tags = [r["name"] for r in sorted_r]
return tags


latest_tag = "master-latest"
latest_rc_tag = [tag for tag in sorted(get_tag(milvus)) if "rc" and "v" in tag][-1]
latest_tag = [tag for tag in get_tag(milvus_dev) if "latest" not in tag][-1]
latest_rc_tag = [tag for tag in get_tag(milvus) if "rc" and "v" in tag][-1]
release_version = "-".join(latest_rc_tag.split("-")[:-2])
print(release_version)
print(latest_tag, latest_rc_tag)
Expand Down

0 comments on commit 0c43d18

Please sign in to comment.