aboutsummaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorzaverden <zaverden@yandex-team.com>2023-03-24 12:31:01 +0300
committerzaverden <zaverden@yandex-team.com>2023-03-24 12:31:01 +0300
commitea9f34fb40dba772ec8e2d6edbc38d4579b08bbd (patch)
tree0839de552a1505884a1550608e9d88a1f7b7af38 /build
parent8ef8071c99c12bc82db6da5950e9b8c02765126e (diff)
downloadydb-ea9f34fb40dba772ec8e2d6edbc38d4579b08bbd.tar.gz
feat(TS_TEST): implement extract_node_modules recipe
Diffstat (limited to 'build')
-rw-r--r--build/conf/ts.conf3
-rw-r--r--build/plugins/nots.py3
2 files changed, 5 insertions, 1 deletions
diff --git a/build/conf/ts.conf b/build/conf/ts.conf
index 5735787ea4..a6fa837ce0 100644
--- a/build/conf/ts.conf
+++ b/build/conf/ts.conf
@@ -325,4 +325,7 @@ module TS_TEST: _TS_BASE_UNIT {
TS_TEST_EXTENSION=$HERMIONE_TEST_EXTENSION
TS_TEST_EXTRA_SRCS_MASK=$HERMIONE_EXTRA_SRCS_MASK
}
+
+ DEPENDS(devtools/frontend_build_platform/nots/recipes/extract_node_modules)
+ USE_RECIPE(devtools/frontend_build_platform/nots/recipes/extract_node_modules/recipe $TS_TEST_FOR_PATH workspace_node_modules.tar)
}
diff --git a/build/plugins/nots.py b/build/plugins/nots.py
index 7f2184a27c..a12304d0bb 100644
--- a/build/plugins/nots.py
+++ b/build/plugins/nots.py
@@ -264,6 +264,7 @@ def _add_test(unit, test_type, test_files, deps=None, test_record=None, test_cwd
"TEST-TIMEOUT": unit.get("TEST_TIMEOUT") or "",
"TEST-ENV": ytest.prepare_env(unit.get("TEST_ENV_VALUE")),
"TESTED-PROJECT-NAME": os.path.splitext(unit.filename())[0],
+ "TEST-RECIPES": ytest.prepare_recipes(unit.get("TEST_RECIPES_VALUE")),
"SCRIPT-REL-PATH": test_type,
"SOURCE-FOLDER-PATH": test_dir,
"BUILD-FOLDER-PATH": test_dir,
@@ -277,7 +278,7 @@ def _add_test(unit, test_type, test_files, deps=None, test_record=None, test_cwd
"REQUIREMENTS": ytest.serialize_list(ytest.get_values_list(unit, "TEST_REQUIREMENTS_VALUE")),
"NODEJS-ROOT-VAR-NAME": unit.get("NODEJS_ROOT_VAR_NAME"),
"NODE-MODULES-BUNDLE-FILENAME": constants.NODE_MODULES_WORKSPACE_BUNDLE_FILENAME,
- "CUSTOM-DEPENDENCIES": " ".join(deps) if deps else "",
+ "CUSTOM-DEPENDENCIES": " ".join((deps or []) + ytest.get_values_list(unit, 'TEST_DEPENDS_VALUE')),
}
if test_record: