aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzaverden <zaverden@yandex-team.com>2024-08-27 09:19:32 +0300
committerzaverden <zaverden@yandex-team.com>2024-08-27 09:28:59 +0300
commit89f28eff5556218191687c45ff9b488de3cfb908 (patch)
tree10b076f104b856366378bc38ef7921bac66a0881
parentfef8a8d013c3cb51b6b3ed80e1ef5913d9ebe0ef (diff)
downloadydb-89f28eff5556218191687c45ff9b488de3cfb908.tar.gz
feat(conf/ts): set cpu:4 for build nodes but only in autocheck
0f515a62218aa2733c6fa8e3ab4685f0ac96b3e8
-rw-r--r--build/conf/ts/ts.conf11
-rw-r--r--build/conf/ts/ts_next.conf1
-rw-r--r--build/conf/ts/ts_proto.conf1
-rw-r--r--build/conf/ts/ts_tsc.conf1
-rw-r--r--build/conf/ts/ts_vite.conf1
-rw-r--r--build/conf/ts/ts_webpack.conf1
6 files changed, 11 insertions, 5 deletions
diff --git a/build/conf/ts/ts.conf b/build/conf/ts/ts.conf
index e2b9db57f9..c938fa7349 100644
--- a/build/conf/ts/ts.conf
+++ b/build/conf/ts/ts.conf
@@ -40,11 +40,22 @@ NOTS_TOOL_BASE_ARGS=\
NOTS_TOOL_BUILD_ENV=
+# All variable that potentially can affect CMD are listed for UID generation
+# Requirements does not have effect on output
+# By adding __NO_UID__ suffix we show that this variable is not a part of the UID
+NOTS_TOOL_BUILD_REQUIREMENTS__NO_UID__=
+
+when($AUTOCHECK == "yes") {
+ # we don't want to have requirements for local runs
+ NOTS_TOOL_BUILD_REQUIREMENTS__NO_UID__=${requirements;hide:"cpu:4"}
+}
+
# Arguments for builders' commands, passed after the command
NOTS_TOOL_COMMON_BUILDER_ARGS=\
--output-file ${output:TS_OUTPUT_FILE} ${output;hide:TS_OUTPUT_FILE_UUID} \
--tsconfigs $TS_CONFIG_PATH \
--vcs-info "${VCS_INFO_FILE}" \
+ $NOTS_TOOL_BUILD_REQUIREMENTS__NO_UID__ \
$NOTS_TOOL_BUILD_ENV
ERM_PACKAGES_PATH=devtools/frontend_build_platform/erm/erm-packages.json
diff --git a/build/conf/ts/ts_next.conf b/build/conf/ts/ts_next.conf
index 9130cdd828..e41f08182f 100644
--- a/build/conf/ts/ts_next.conf
+++ b/build/conf/ts/ts_next.conf
@@ -40,7 +40,6 @@ TS_NEXT_CMD=$TOUCH_UNIT \
$_NODE_MODULES_INOUTS ${hide:PEERS} \
${input;hide:"package.json"} ${TS_CONFIG_FILES} $_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES) \
${output;hide:"package.json"} \
- ${requirements;hide:"cpu:2"} \
${kv;hide:"pc magenta"} ${kv;hide:"p TS_NXT"}
### @usage: TS_NEXT([name])
diff --git a/build/conf/ts/ts_proto.conf b/build/conf/ts/ts_proto.conf
index 7d8cee24af..9ab222e8c9 100644
--- a/build/conf/ts/ts_proto.conf
+++ b/build/conf/ts/ts_proto.conf
@@ -9,7 +9,6 @@ _TS_PROTO_IMPL_CMD=$TOUCH_UNIT \
${input;hide:"package.json"} ${TS_CONFIG_FILES} $_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES) \
${output;hide:"package.json"} \
${hide:PROTO_FAKEID} \
- ${requirements;hide:"cpu:2"} \
${kv;hide:"pc magenta"} ${kv;hide:"p TS_PRO"}
diff --git a/build/conf/ts/ts_tsc.conf b/build/conf/ts/ts_tsc.conf
index 4fb73d9731..7dd51b29ac 100644
--- a/build/conf/ts/ts_tsc.conf
+++ b/build/conf/ts/ts_tsc.conf
@@ -4,7 +4,6 @@ TS_TSC_CMD=$TOUCH_UNIT \
$_NODE_MODULES_INOUTS ${hide:PEERS} \
${input;hide:"package.json"} ${TS_CONFIG_FILES} $_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES) \
${output;hide:"package.json"} \
- ${requirements;hide:"cpu:2"} \
${kv;hide:"pc magenta"} ${kv;hide:"p TS_TSC"}
### @usage: TS_TSC([name])
diff --git a/build/conf/ts/ts_vite.conf b/build/conf/ts/ts_vite.conf
index cde00c8bac..ca6ff048f9 100644
--- a/build/conf/ts/ts_vite.conf
+++ b/build/conf/ts/ts_vite.conf
@@ -42,7 +42,6 @@ TS_VITE_CMD=$TOUCH_UNIT \
$_NODE_MODULES_INOUTS ${hide:PEERS} \
${input;hide:"package.json"} ${TS_CONFIG_FILES} $_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES) \
${output;hide:"package.json"} \
- ${requirements;hide:"cpu:2"} \
${kv;hide:"pc magenta"} ${kv;hide:"p TS_VIT"}
### @usage: TS_VITE([name])
diff --git a/build/conf/ts/ts_webpack.conf b/build/conf/ts/ts_webpack.conf
index 2a27e2f88b..6cea71c0e3 100644
--- a/build/conf/ts/ts_webpack.conf
+++ b/build/conf/ts/ts_webpack.conf
@@ -39,7 +39,6 @@ TS_WEBPACK_CMD=$TOUCH_UNIT \
$_NODE_MODULES_INOUTS ${hide:PEERS} \
${input;hide:"package.json"} ${TS_CONFIG_FILES} $_AS_HIDDEN_INPUTS(IN $TS_INPUT_FILES) \
${output;hide:"package.json"} \
- ${requirements;hide:"cpu:2"} \
${kv;hide:"pc magenta"} ${kv;hide:"p TS_WPK"}
### @usage: TS_WEBPACK([name])