Skip to content

Commit

Permalink
Resolve Failing SchemaRegistry Regressions (#13817)
Browse files Browse the repository at this point in the history
* make the wheel retrieval a little bit more forgiving

* add 1.0.0b1 to the omission

* update version exclusion
  • Loading branch information
scbedd authored Sep 22, 2020
1 parent e16b1f8 commit f76f0c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
11 changes: 7 additions & 4 deletions scripts/devops_tasks/common_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
# this assumes the presence of "packaging"
from packaging.specifiers import SpecifierSet
from packaging.version import Version
from packaging.version import parse


DEV_REQ_FILE = "dev_requirements.txt"
Expand Down Expand Up @@ -340,13 +341,15 @@ def find_whl(package_name, version, whl_directory):
logging.error("Whl directory is incorrect")
exit(1)

logging.info("Searching whl for package {}".format(package_name))
whl_name = "{0}-{1}*.whl".format(package_name.replace("-", "_"), version)
parsed_version = parse(version)

logging.info("Searching whl for package {0}-{1}".format(package_name, parsed_version.base_version))
whl_name = "{0}-{1}*.whl".format(package_name.replace("-", "_"), parsed_version.base_version)
paths = glob.glob(os.path.join(whl_directory, whl_name))
if not paths:
logging.error(
"whl is not found in whl directory {0} for package {1}".format(
whl_directory, package_name
"whl is not found in whl directory {0} for package {1}-{2}".format(
whl_directory, package_name, parsed_version.base_version
)
)
exit(1)
Expand Down
1 change: 1 addition & 0 deletions scripts/devops_tasks/git_helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
'azure-cosmos': '3.2.0',
'azure-servicebus': '0.50.3',
'azure-eventgrid': '1.3.0',
'azure-schemaregistry-avroserializer': '1.0.0b1'
}

# This method identifies release tag for latest or oldest released version of a given package
Expand Down

0 comments on commit f76f0c7

Please sign in to comment.