Skip to content

Commit 61fac16

Browse files
committed
[nrf fromlist] ci: Support standalone anchors for reusability
If we want to reuse a set of files for multiple tags, then allow defining a standalone anchor and skip processing it. e.g., below will work now, as the first entry wifi_common will be ignored wifi_common: *wifi_common - a - b ci_samples_wifi: files: - c - *wifi_common Upstream PR #: 90028 Signed-off-by: Chaitanya Tata <[email protected]>
1 parent b1c7699 commit 61fac16

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

scripts/ci/test_plan.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,10 @@ def find_tags(self):
337337
tag.exclude = True
338338
tag.name = t
339339

340+
if not isinstance(x, dict) or x.get("files") is None:
341+
logging.debug(f"Tag {t} is might be a standalone anchor, skipping...")
342+
continue
343+
340344
# tag._match_fn(path) tests if the path matches files and/or
341345
# files-regex
342346
tag._match_fn = _get_match_fn(x.get("files"), x.get("files-regex"))

0 commit comments

Comments
 (0)