From cf640fef619ae77794560efd6e4298b5764066cf Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Sat, 28 Oct 2023 12:42:51 -0400 Subject: [PATCH] MAINTAINERS: add 2 new keys: tags, tests Add two new keys: tags, tests. tags for aligning with what we use in tests and samples and tests to associate areas and components with tests. Signed-off-by: Anas Nashif --- scripts/get_maintainer.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/get_maintainer.py b/scripts/get_maintainer.py index 08ecc1b898..8e2a09b215 100755 --- a/scripts/get_maintainer.py +++ b/scripts/get_maintainer.py @@ -191,6 +191,8 @@ class Maintainers: area.collaborators = area_dict.get("collaborators", []) area.inform = area_dict.get("inform", []) area.labels = area_dict.get("labels", []) + area.tests = area_dict.get("tests", []) + area.tags = area_dict.get("tags", []) area.description = area_dict.get("description") # area._match_fn(path) tests if the path matches files and/or @@ -403,12 +405,16 @@ def _print_areas(areas): \tcollaborators: {} \tinform: {} \tlabels: {} +\ttests: {} +\ttags: {} \tdescription: {}""".format(area.name, area.status, ", ".join(area.maintainers), ", ".join(area.collaborators), ", ".join(area.inform), ", ".join(area.labels), + ", ".join(area.tests), + ", ".join(area.tags), area.description or "")) @@ -479,7 +485,7 @@ def _check_maintainers(maints_path, yaml): ok_keys = {"status", "maintainers", "collaborators", "inform", "files", "files-exclude", "files-regex", "files-regex-exclude", - "labels", "description"} + "labels", "description", "tests", "tags"} ok_status = {"maintained", "odd fixes", "unmaintained", "obsolete"} ok_status_s = ", ".join('"' + s + '"' for s in ok_status) # For messages @@ -504,7 +510,7 @@ def _check_maintainers(maints_path, yaml): "for area '{}'".format(area_name)) for list_name in "maintainers", "collaborators", "inform", "files", \ - "files-regex", "labels": + "files-regex", "labels", "tags", "tests": if list_name in area_dict: lst = area_dict[list_name] if not (isinstance(lst, list) and