aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins
diff options
context:
space:
mode:
authorAlexander Smirnov <alex@ydb.tech>2025-03-02 11:21:41 +0000
committerAlexander Smirnov <alex@ydb.tech>2025-03-02 11:21:41 +0000
commit8322fb9ff849dc37fa752d5aba04ef9e7ba2a7c9 (patch)
tree0d722004f839a80a1c4a02aa4dd2704daae5adec /build/plugins
parent22b98a26c01070ae980dc5477323d8d4152aabbc (diff)
parent6678165e016ba474f1b8dd6d49af92b0d46350b9 (diff)
downloadydb-8322fb9ff849dc37fa752d5aba04ef9e7ba2a7c9.tar.gz
Merge branch 'rightlib' into merge-libs-250302-1120
Diffstat (limited to 'build/plugins')
-rw-r--r--build/plugins/_dart_fields.py21
-rw-r--r--build/plugins/lib/test_const/__init__.py1
-rw-r--r--build/plugins/ytest.py13
3 files changed, 34 insertions, 1 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}
diff --git a/build/plugins/lib/test_const/__init__.py b/build/plugins/lib/test_const/__init__.py
index cd7534926c..293b514d01 100644
--- a/build/plugins/lib/test_const/__init__.py
+++ b/build/plugins/lib/test_const/__init__.py
@@ -181,6 +181,7 @@ NODEJS_RESOURCE = 'NODEJS_RESOURCE_GLOBAL'
NYC_RESOURCE = 'NYC_RESOURCE_GLOBAL'
RUFF_RESOURCE = 'RUFF_RESOURCE_GLOBAL'
CLANG_FORMAT_RESOURCE = 'CLANG_FORMAT_RESOURCE_GLOBAL'
+CLANG_FORMAT_15_RESOURCE = 'CLANG_FORMAT_15_RESOURCE_GLOBAL'
# test_tool resource for host platform.
# source - build/platform/test_tool/host.ya.make.inc.
diff --git a/build/plugins/ytest.py b/build/plugins/ytest.py
index 7adb582a91..4ae288e062 100644
--- a/build/plugins/ytest.py
+++ b/build/plugins/ytest.py
@@ -141,7 +141,18 @@ def validate_test(unit, kw):
if valid_kw.get('SCRIPT-REL-PATH') == 'boost.test':
project_path = valid_kw.get('BUILD-FOLDER-PATH', "")
if not project_path.startswith(
- ("contrib", "mail", "maps", "tools/idl", "metrika", "devtools", "mds", "yandex_io", "smart_devices")
+ (
+ "contrib",
+ "mail",
+ "maps",
+ "mobile/geo/maps",
+ "tools/idl",
+ "metrika",
+ "devtools",
+ "mds",
+ "yandex_io",
+ "smart_devices",
+ )
):
errors.append("BOOSTTEST is not allowed here")