Skip to content

Commit 7a070ce

Browse files
committed
Merge pull request #18043 from ydb-platform/merge-libs-250506-0050
2 parents 369528a + aea70a0 commit 7a070ce

File tree

176 files changed

+4929
-2528
lines changed

Some content is hidden

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

176 files changed

+4929
-2528
lines changed

build/conf/java.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1034,6 +1034,7 @@ _BUILD_PROTO_JAR_SEM= \
10341034
&& consumer-classpath $EXPORT_GRADLE_CLASSPATH \
10351035
&& consumer-jar ${MODDIR}/${REALPRJNAME}.jar \
10361036
&& consumer-type library \
1037+
${pre=&& consumer-proto_namespace :PROTO_NAMESPACE} \
10371038
$_JAVAC_SEM \
10381039
$_KOTLINC_SEM \
10391040
$_ANN_PROCESSORS_SEM \

build/conf/ts/ts.conf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
NODEJS_ROOT=
22
NODEJS_BIN=$NODEJS_ROOT/node
3+
NODEJS_COPY_CMD=$COPY_CMD $NODEJS_BIN ${output:"node"}
34

45
_TS_REQUIRED_MISSING=~~required~~
56
TS_TRACE=no

build/conf/ts/ts_test.conf

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,13 @@ TS_TEST_NM=
66

77
_TS_TEST_DEPENDS_ON_BUILD=
88

9+
_TS_TEST_COPY_NODEJS_CMD=
10+
911
# We have to rename node_modules.tar to workspace_node_modules.tar,
1012
# so TS_TEST_JEST module has it's own unique output.
1113
# TS_TEST_JEST_FOR module has to output all files required for test run.
1214
TS_TEST_JEST_CMD=$TOUCH_UNIT \
15+
&& $_TS_TEST_COPY_NODEJS_CMD \
1316
&& $NOTS_TOOL $NOTS_TOOL_BASE_ARGS --nm-bundle yes create-node-modules \
1417
--moddir $TS_TEST_FOR_PATH \
1518
$_NODE_MODULES_INOUTS ${hide:PEERS} \
@@ -253,6 +256,13 @@ macro TS_TEST_DEPENDS_ON_BUILD() {
253256
ENABLE(_TS_TEST_DEPENDS_ON_BUILD)
254257
}
255258

259+
### @usage: TS_TEST_INCLUDE_NODEJS()
260+
###
261+
### Macro adds NodeJS binary to the test module build output.
262+
macro TS_TEST_INCLUDE_NODEJS() {
263+
SET(_TS_TEST_COPY_NODEJS_CMD \$NODEJS_COPY_CMD)
264+
}
265+
256266
# TS_TYPECHECK
257267

258268
_TS_TYPECHECK_VALUE=none

build/export_generators/gradle/generator.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,4 +102,5 @@ kotlinc-flags="list"
102102
consumer-classpath="str"
103103
consumer-jar="str"
104104
consumer-type="str"
105+
consumer-proto_namespace="str"
105106
consumer-prebuilt="flag"

build/export_generators/ide-gradle/generator.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,5 @@ target_commands-flags="list"
112112
consumer-classpath="str"
113113
consumer-jar="str"
114114
consumer-type="str"
115+
consumer-proto_namespace="str"
115116
consumer-prebuilt="flag"

build/export_generators/ide-gradle/proto_prepare.jinja

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,26 @@ val prepareMainProtos = tasks.register<Copy>("prepareMainProtos") {
3333
{%- if extractLibrariesProtosTask %}
3434

3535
val extractMainLibrariesProtos = tasks.register<Copy>("extractMainLibrariesProtos") {
36-
{%- if libraries|length %}
36+
{%- set root_libraries = libraries|rejectattr('proto_namespace') -%}
37+
{%- set ns_libraries = libraries|selectattr('proto_namespace') -%}
38+
{%- if root_libraries|length %}
3739
from("$arcadia_root") {
38-
{#- list of all library directories -#}
39-
{%- for library in libraries -%}
40+
{%- for library in root_libraries -%}
4041
{%- set path_and_jar = rsplit(library.jar, '/', 2) %}
4142
include("{{ path_and_jar[0] }}/**/*.proto")
4243
{%- endfor %}
4344
}
44-
{% endif -%}
45+
{%- endif -%}
46+
{%- if ns_libraries|length -%}
47+
{%- for library in ns_libraries -%}
48+
{%- set path_and_jar = rsplit(library.jar, '/', 2) -%}
49+
{%- set path = "#R/" + path_and_jar[0] -%}
50+
{%- set path = path|replace("#R/" + library.proto_namespace + "/", "")|replace("#R/", "") %}
51+
from("$arcadia_root/{{ library.proto_namespace }}") {
52+
include("{{ path }}/**/*.proto")
53+
}
54+
{%- endfor -%}
55+
{%- endif %}
4556
into(mainExtractedIncludeProtosDir)
4657
}
4758
{%- endif %}

build/platform/clang/arch.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ IF (ARCH_I386 OR ARCH_I686)
44
SET(CLANG_ARCH i386)
55
ELSEIF (ARCH_X86_64)
66
SET(CLANG_ARCH x86_64)
7+
ELSEIF (ARCH_ARM6)
8+
SET(CLANG_ARCH armv6)
79
ELSEIF (ARCH_ARM7 OR ARCH_ARM7_NEON)
810
SET(CLANG_ARCH armv7)
911
ELSEIF (ARCH_ARM64 OR ARCH_AARCH64)

build/platform/linux_sdk/ya.make

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ ELSEIF (ARCH_PPC64LE)
4444
ELSE()
4545
MESSAGE(FATAL_ERROR "There is no ${OS_SDK} SDK for PPC64LE")
4646
ENDIF()
47+
ELSEIF (ARCH_ARM6)
48+
IF (ARM6_FLOAT_ABI == "hard" AND OS_SDK == "ubuntu-16")
49+
DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:1323200692)
50+
ELSE()
51+
MESSAGE(FATAL_ERROR "There is no ${OS_SDK} SDK for ARMv6 32 bit (float ABI: ${ARM6_FLOAT_ABI})")
52+
ENDIF()
4753
ELSEIF (ARCH_ARM7)
4854
IF (ARM7_FLOAT_ABI == "hard" AND OS_SDK == "ubuntu-16")
4955
DECLARE_EXTERNAL_RESOURCE(OS_SDK_ROOT sbr:1323200692)

build/plugins/nots.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -893,8 +893,13 @@ def on_ts_test_for_configure(
893893

894894
for_mod_path = df.TsTestForPath.value(unit, (), {})[df.TsTestForPath.KEY]
895895
unit.onpeerdir([for_mod_path])
896+
897+
# user-defined recipes should be in the end
898+
user_recipes = unit.get("TEST_RECIPES_VALUE").replace("$TEST_RECIPES_VALUE", "").strip()
899+
unit.set(["TEST_RECIPES_VALUE", ""])
896900
unit.on_setup_extract_node_modules_recipe([for_mod_path])
897901
unit.on_setup_extract_output_tars_recipe([for_mod_path])
902+
__set_append(unit, "TEST_RECIPES_VALUE", user_recipes)
898903

899904
build_root = "$B" if test_runner in [TsTestType.HERMIONE, TsTestType.PLAYWRIGHT_LARGE] else "$(BUILD_ROOT)"
900905
unit.set(["TS_TEST_NM", os.path.join(build_root, for_mod_path, node_modules_filename)])

build/ya.conf.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1612,6 +1612,16 @@
16121612
"os": "IOSSIM"
16131613
}
16141614
},
1615+
{
1616+
"default": true,
1617+
"host": {
1618+
"os": "LINUX"
1619+
},
1620+
"target": {
1621+
"arch": "armv6hf",
1622+
"os": "LINUX"
1623+
}
1624+
},
16151625
{
16161626
"default": true,
16171627
"host": {

0 commit comments

Comments
 (0)