diff --git a/scripts/breaking_changes_checker/breaking_changes_allowlist.py b/scripts/breaking_changes_checker/breaking_changes_allowlist.py index 52999ba91abb..7672c78f665d 100644 --- a/scripts/breaking_changes_checker/breaking_changes_allowlist.py +++ b/scripts/breaking_changes_checker/breaking_changes_allowlist.py @@ -6,7 +6,9 @@ # -------------------------------------------------------------------------------------------- -RUN_BREAKING_CHANGES_PACKAGES = [] +RUN_BREAKING_CHANGES_PACKAGES = [ + "azure-mgmt-*", +] # See Readme for ignore format diff --git a/scripts/breaking_changes_checker/detect_breaking_changes.py b/scripts/breaking_changes_checker/detect_breaking_changes.py index 355dcb2017f9..09a709ac7a60 100644 --- a/scripts/breaking_changes_checker/detect_breaking_changes.py +++ b/scripts/breaking_changes_checker/detect_breaking_changes.py @@ -5,6 +5,7 @@ # Licensed under the MIT License. See License.txt in the project root for license information. # -------------------------------------------------------------------------------------------- +import re import ast import os import jsondiff @@ -395,7 +396,7 @@ def main(package_name: str, target_module: str, version: str, in_venv: Union[boo pkg_dir = os.path.abspath(args.target_package) package_name = os.path.basename(pkg_dir) logging.basicConfig(level=logging.INFO) - if package_name not in RUN_BREAKING_CHANGES_PACKAGES: + if package_name not in RUN_BREAKING_CHANGES_PACKAGES and not any(bool(re.findall(p, package_name)) for p in RUN_BREAKING_CHANGES_PACKAGES): _LOGGER.info(f"{package_name} opted out of breaking changes checks. " f"See http://aka.ms/azsdk/breaking-changes-tool to opt-in.") exit(0)