Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolve Failing SchemaRegistry Regressions #13817

Merged
merged 3 commits into from
Sep 22, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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