aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/_dart_fields.py
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2025-03-04 13:27:53 +0000
committerAlexander Smirnov <alex@ydb.tech>2025-03-04 13:27:53 +0000
commitad0b83372abbcedc2887412cfdd967ea22b7148e (patch)
treed24fee47ed2aef834af220ac137f5a0e26ed4678 /build/plugins/_dart_fields.py
parent31ac77ec345d18126d79b7797bef365c9068d999 (diff)
parent040bd4000eeec19eab31a023f72c3c06494ce92d (diff)
downloadydb-ad0b83372abbcedc2887412cfdd967ea22b7148e.tar.gz
Merge pull request #15226 from ydb-platform/merge-libs-250302-1120
Diffstat (limited to 'build/plugins/_dart_fields.py')
-rw-r--r--build/plugins/_dart_fields.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/build/plugins/_dart_fields.py b/build/plugins/_dart_fields.py
index 8504891586..e102154a34 100644
--- a/build/plugins/_dart_fields.py
+++ b/build/plugins/_dart_fields.py
@@ -1137,6 +1137,20 @@ class TestFiles:
# https://a.yandex-team.ru/arcadia/devtools/ya/test/dartfile/__init__.py?rev=r14292146#L10
KEY2 = 'FILES'
+ _GRUT_PREFIX = 'grut'
+ _GRUT_INCLUDE_LINTER_TEST_PATHS = (
+ 'grut/libs/bigrt/clients',
+ 'grut/libs/bigrt/common',
+ 'grut/libs/bigrt/data',
+ 'grut/libs/bigrt/event_filter',
+ 'grut/libs/bigrt/info_keepers',
+ 'grut/libs/bigrt/processor',
+ 'grut/libs/bigrt/profile',
+ 'grut/libs/bigrt/profiles',
+ 'grut/libs/bigrt/queue_info_config',
+ 'grut/libs/shooter',
+ )
+
@classmethod
def value(cls, unit, flat_args, spec_args):
data_re = re.compile(r"sbr:/?/?(\d+)=?.*")
@@ -1230,6 +1244,13 @@ class TestFiles:
@classmethod
def cpp_linter_files(cls, unit, flat_args, spec_args):
+ upath = unit.path()[3:]
+ if upath.startswith(cls._GRUT_PREFIX):
+ for path in cls._GRUT_INCLUDE_LINTER_TEST_PATHS:
+ if os.path.commonpath([upath, path]) == path:
+ break
+ else:
+ raise DartValueError()
files_dart = _reference_group_var("ALL_SRCS", consts.STYLE_CPP_ALL_EXTS)
return {cls.KEY: files_dart, cls.KEY2: files_dart}