Skip to content

Commit 8322fb9

Browse files
committed
Merge branch 'rightlib' into merge-libs-250302-1120
2 parents 22b98a2 + 6678165 commit 8322fb9

File tree

304 files changed

+14146
-17712
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

304 files changed

+14146
-17712
lines changed

build/conf/docs.conf

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ _DOCS_YFM_CMD=$_DOCS_YFM_CMD_IMPL($_DOCS_CONFIG_VALUE EXTRA_INPUTS $_DOCS_EXTRA_
5353
### should be defined here.
5454
module _DOCS_BARE_UNIT: _BARE_UNIT {
5555
.ALLOWED=DOCS_DIR DOCS_CONFIG DOCS_VARS
56-
.CMD=TOUCH_DOCS_MF
56+
.CMD=$TOUCH_DOCS_MF
57+
.STRUCT_CMD=yes
5758
.FINAL_TARGET=no
5859
.NODE_TYPE=Bundle
5960
.PEERDIR_POLICY=as_include
@@ -82,7 +83,7 @@ _DOCS_LIBRARY_CMD=$_DOCS_LIBRARY_CMD_IMPL(SOURCES $_DOCS_SOURCES_VALUE INCLUDE_S
8283

8384
# tag:docs
8485
module DOCS_LIBRARY: _DOCS_BARE_UNIT {
85-
.CMD=_DOCS_LIBRARY_CMD
86+
.CMD=$_DOCS_LIBRARY_CMD
8687
.ALIASES=SRCS=_DOCS_SRCS DOCS_DIR=_YFM_DOCS_DIR
8788
.EPILOGUE=_DOCS_LIBRARY_EPILOGUE
8889
.NODE_TYPE=Library
@@ -150,7 +151,7 @@ macro _DOCS_YFM_USE_PLANTUML() {
150151
### @see: [DOCS_DIR()](#macro_DOCS_DIR), [DOCS_CONFIG()](#macro_DOCS_CONFIG), [DOCS_VARS()](#macro_DOCS_VARS).
151152
multimodule DOCS {
152153
module DOCSBOOK: _DOCS_BASE_UNIT {
153-
.CMD=_DOCS_YFM_CMD
154+
.CMD=$_DOCS_YFM_CMD
154155
.FINAL_TARGET=yes
155156
.PEERDIR_POLICY=as_build_from
156157
.IGNORED=DOCS_DIR DOCS_INCLUDE_SOURCES DOCS_COPY_FILES PEERDIR PYTHON RUN_PROGRAM RUN_PYTHON3 RUN_LUA RUN_JAVA_PROGRAM FROM_SANDBOX SRCS COPY COPY_FILE FILES
@@ -167,7 +168,7 @@ multimodule DOCS {
167168
}
168169

169170
module DOCSLIB: _DOCS_BASE_UNIT {
170-
.CMD=_DOCS_YFM_CMD
171+
.CMD=$_DOCS_YFM_CMD
171172
.PEERDIR_POLICY=as_build_from
172173
.IGNORED=DOCS_DIR DOCS_INCLUDE_SOURCES DOCS_COPY_FILES PEERDIR PYTHON RUN_PROGRAM RUN_PYTHON3 RUN_LUA RUN_JAVA_PROGRAM FROM_SANDBOX SRCS COPY COPY_FILE FILES
173174
.PEERDIRSELF=DOCSLIB_INTERNAL

build/conf/go.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,5 +1022,5 @@ macro GO_MOCKGEN_MOCKS() {
10221022
PEERDIR(vendor/go.uber.org/mock/gomock)
10231023

10241024
# Unfortunately ${rootrel;tool:TOOL} doesn't work currently, so we use this ugly workaround $MODDIR/gen/gen$_GO_EXE_SUFFIX
1025-
RUN_PROGRAM(vendor/go.uber.org/mock/mockgen -package mocks -exec_only $MODDIR/gen/gen$_GO_EXE_SUFFIX ${GO_ARCADIA_PROJECT_PREFIX}${MOCKGEN_FROM} $MOCKGEN_TYPES STDOUT main.go TOOL $MODDIR/gen CWD $ARCADIA_BUILD_ROOT)
1025+
RUN_PROGRAM(vendor/go.uber.org/mock/mockgen -package mocks -exec_only $MODDIR/gen/gen$_GO_EXE_SUFFIX ${GO_ARCADIA_PROJECT_PREFIX}${MOCKGEN_FROM} $MOCKGEN_TYPES STDOUT main.go TOOL $MODDIR/gen CWD $ARCADIA_BUILD_ROOT ENV PATH=${GO_TOOLS_ROOT}/bin GOROOT=${GO_TOOLS_ROOT} GOCACHE=${BINDIR}/.gocache)
10261026
}

build/conf/java.conf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -451,11 +451,6 @@ macro DEFAULT_JUNIT_JAVA_SRCS_LAYOUT() {
451451
FULL_JAVA_SRCS(RESOURCES SRCDIR resources **/* SKIP_CHECK_SRCDIR)
452452
}
453453

454-
macro _HASH_HELPER(Args...) {
455-
.CMD=${hash:Args}
456-
.SEM=${hash:Args}
457-
}
458-
459454
macro _GENTAR_HELPER(HASH_SUF="hash_suf", OUT_DIR[]) {
460455
.CMD=${cwd:BINDIR} $YMAKE_PYTHON ${input:"build/scripts/autotar_gendirs.py"} --pack ${OUT_DIR} --outs ${output;tared;suf=$HASH_SUF:OUT_DIR} ${hide;kv:"tared_kind nodir"}
461456
.SEM=${hide;suf=$HASH_SUF;tared;output:OUT_DIR}

build/conf/opensource.conf

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ when ($OPENSOURCE == "yes" && $EXPORT_GRADLE == "yes") {
4141
EXPORT_SEM=yes
4242
EXPORTED_BUILD_SYSTEM_SOURCE_ROOT=${"$"}{PROJECT_SOURCE_DIR}
4343
EXPORTED_BUILD_SYSTEM_BUILD_ROOT=${"$"}{PROJECT_BINARY_DIR}
44+
}
45+
46+
when ($EXPORT_GRADLE == "yes") {
4447
EXPORT_LANG=JAVA
4548
}
4649

@@ -58,6 +61,9 @@ when ($OPENSOURCE == "yes" && $EXPORT_CMAKE == "yes") {
5861
EXPORT_SEM=yes
5962
EXPORTED_BUILD_SYSTEM_SOURCE_ROOT="${PROJECT_SOURCE_DIR}"
6063
EXPORTED_BUILD_SYSTEM_BUILD_ROOT="${PROJECT_BINARY_DIR}"
64+
}
65+
66+
when ($EXPORT_CMAKE == "yes") {
6167
EXPORT_LANG=CPP
6268
}
6369

build/conf/python.conf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ multimodule PY3_PROGRAM {
267267
# Notify pybuild to skip all python main function definitions
268268
ENABLE(IGNORE_PY_MAIN)
269269
NO_CLANG_TIDY()
270+
DISABLE(START_TARGET)
270271
}
271272
}
272273

@@ -435,6 +436,7 @@ multimodule PY3TEST {
435436
PEERDIR+=library/python/pytest
436437
_DONT_REQUIRE_LICENSE()
437438
WITHOUT_VERSION()
439+
DISABLE(START_TARGET)
438440
}
439441
}
440442

build/conf/settings.conf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
11
JSON_CACHE_IS_ATTACHED=yes
22
LANGS_REQUIRE_BUILD_AND_SRC_ROOTS=c asm cython proto flatc swig ydl nlg
3-
CHECK_GO_INCORRECT_DEPS=yes
43
USE_PREBUILT_TOOLS=yes
54
RESOLVE_FORCE_LISTDIR=no
6-
ENABLE_NODE_SELF_UID=yes
75
REPORT_CONFIGURE_PROGRESS=yes
8-
FORCE_RESOLVE_MACRO_INCLS=yes
9-
ENABLE_RERESOLVE_FOR_GENERATED_FILES=yes
106
REPORT_ALL_DUPSRC=yes
117
DEPS_CACHE_CONTROL_UIDS_CACHE=yes
128
USE_GLOBAL_CMD=yes
139
PIC_NO_PIE=no
1410
FAIL_PY2=no
1511
MAIN_OUTPUT_AS_EXTRA=yes
16-
USE_REACHABILITY_TO_REPORT_CONF_ERRORS = yes
1712
DISABLE_ATD=yes
1813

1914
when ($OS_WINDOWS == "yes") {

build/plugins/_dart_fields.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,6 +1137,20 @@ class TestFiles:
11371137
# https://a.yandex-team.ru/arcadia/devtools/ya/test/dartfile/__init__.py?rev=r14292146#L10
11381138
KEY2 = 'FILES'
11391139

1140+
_GRUT_PREFIX = 'grut'
1141+
_GRUT_INCLUDE_LINTER_TEST_PATHS = (
1142+
'grut/libs/bigrt/clients',
1143+
'grut/libs/bigrt/common',
1144+
'grut/libs/bigrt/data',
1145+
'grut/libs/bigrt/event_filter',
1146+
'grut/libs/bigrt/info_keepers',
1147+
'grut/libs/bigrt/processor',
1148+
'grut/libs/bigrt/profile',
1149+
'grut/libs/bigrt/profiles',
1150+
'grut/libs/bigrt/queue_info_config',
1151+
'grut/libs/shooter',
1152+
)
1153+
11401154
@classmethod
11411155
def value(cls, unit, flat_args, spec_args):
11421156
data_re = re.compile(r"sbr:/?/?(\d+)=?.*")
@@ -1230,6 +1244,13 @@ def py_linter_files(cls, unit, flat_args, spec_args):
12301244

12311245
@classmethod
12321246
def cpp_linter_files(cls, unit, flat_args, spec_args):
1247+
upath = unit.path()[3:]
1248+
if upath.startswith(cls._GRUT_PREFIX):
1249+
for path in cls._GRUT_INCLUDE_LINTER_TEST_PATHS:
1250+
if os.path.commonpath([upath, path]) == path:
1251+
break
1252+
else:
1253+
raise DartValueError()
12331254
files_dart = _reference_group_var("ALL_SRCS", consts.STYLE_CPP_ALL_EXTS)
12341255
return {cls.KEY: files_dart, cls.KEY2: files_dart}
12351256

build/plugins/lib/test_const/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@
181181
NYC_RESOURCE = 'NYC_RESOURCE_GLOBAL'
182182
RUFF_RESOURCE = 'RUFF_RESOURCE_GLOBAL'
183183
CLANG_FORMAT_RESOURCE = 'CLANG_FORMAT_RESOURCE_GLOBAL'
184+
CLANG_FORMAT_15_RESOURCE = 'CLANG_FORMAT_15_RESOURCE_GLOBAL'
184185

185186
# test_tool resource for host platform.
186187
# source - build/platform/test_tool/host.ya.make.inc.

build/plugins/ytest.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,18 @@ def get_list(key):
141141
if valid_kw.get('SCRIPT-REL-PATH') == 'boost.test':
142142
project_path = valid_kw.get('BUILD-FOLDER-PATH', "")
143143
if not project_path.startswith(
144-
("contrib", "mail", "maps", "tools/idl", "metrika", "devtools", "mds", "yandex_io", "smart_devices")
144+
(
145+
"contrib",
146+
"mail",
147+
"maps",
148+
"mobile/geo/maps",
149+
"tools/idl",
150+
"metrika",
151+
"devtools",
152+
"mds",
153+
"yandex_io",
154+
"smart_devices",
155+
)
145156
):
146157
errors.append("BOOSTTEST is not allowed here")
147158

build/scripts/fetch_resource.py

Lines changed: 0 additions & 43 deletions
This file was deleted.

0 commit comments

Comments
 (0)