From c8cddaee8aee30a4d893d445a705ff5e3d7d69e3 Mon Sep 17 00:00:00 2001 From: Fu Hanxi Date: Thu, 17 Aug 2023 15:43:19 +0800 Subject: [PATCH] ci: exclude checking manifest files under managed_components --- tools/ci/check_build_test_rules.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/ci/check_build_test_rules.py b/tools/ci/check_build_test_rules.py index b6e1f16c86..886ca50d1d 100755 --- a/tools/ci/check_build_test_rules.py +++ b/tools/ci/check_build_test_rules.py @@ -418,8 +418,11 @@ def check_exist() -> None: config_files = [str(p) for p in Path(IDF_PATH).glob('**/.build-test-rules.yml')] for file in config_files: + if 'managed_components' in Path(file).parts: + continue + with open(file) as fr: - configs = yaml.load(fr) + configs = yaml.safe_load(fr) for path in configs.keys(): if path.startswith('.'): continue