Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
wayyoungboy committed Aug 9, 2024
1 parent a74175a commit 5a1b507
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
push:
branches:
- master
- 2.4.0-fix-get_obproxy_version

env:
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true
Expand Down
4 changes: 2 additions & 2 deletions common/command.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,8 @@ def get_obproxy_version(context):
obproxy_version_info = ssh_client.exec_cmd(cmd)
stdio.verbose("get obproxy version, run cmd = [{0}] ".format(cmd))
if obproxy_version_info is not None:
ob_version = re.findall(r'[(]OceanBase.(.+? +?)[)]', obproxy_version_info)
pattern = r"(\d+\.\d+\.\d+\.\d+)"
ob_version = re.findall(pattern, obproxy_version_info)
if len(ob_version) > 0:
return ob_version[0]
else:
Expand All @@ -295,7 +296,6 @@ def get_obproxy_version(context):
stdio.verbose("get obproxy version with LD_LIBRARY_PATH,cmd:{0}, result:{1}".format(cmd, obproxy_version_info))
if "REVISION" not in obproxy_version_info:
raise Exception("Please check conf about proxy,{0}".format(obproxy_version_info))
pattern = r"(\d+\.\d+\.\d+\.\d+)"
match = re.search(pattern, obproxy_version_info)
if match:
obproxy_version_info = match.group(1)
Expand Down

0 comments on commit 5a1b507

Please sign in to comment.