From ee655637ae525190ceab61e14c68eec7d0b6a31a Mon Sep 17 00:00:00 2001 From: Yuchao Yan Date: Fri, 14 Jun 2024 17:51:23 +0800 Subject: [PATCH] update (#36051) --- .../breaking_changes_checker/breaking_changes_allowlist.py | 4 +++- scripts/breaking_changes_checker/detect_breaking_changes.py | 3 ++- 2 files changed, 5 insertions(+), 2 deletions(-) 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 9f81ffe02c41..7f5880befb36 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 @@ -412,7 +413,7 @@ def main(package_name: str, target_module: str, version: str, in_venv: Union[boo package_name = os.path.basename(pkg_dir) changelog = args.changelog 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)