diff options
author | zaverden <zaverden@yandex-team.com> | 2023-03-21 09:16:33 +0300 |
---|---|---|
committer | zaverden <zaverden@yandex-team.com> | 2023-03-21 09:16:33 +0300 |
commit | 175b27de7e4b77cc71766bf094b9118d5590385e (patch) | |
tree | 42d647d4bb569c707cba82cd51c836bc6e2667bb | |
parent | 313f836da84cf3f30f4c0ad01f5eca0e1f1e7935 (diff) | |
download | ydb-175b27de7e4b77cc71766bf094b9118d5590385e.tar.gz |
feat(schoolbook): run tests in tier0
-rw-r--r-- | build/conf/ts.conf | 7 | ||||
-rw-r--r-- | build/plugins/nots.py | 2 |
2 files changed, 6 insertions, 3 deletions
diff --git a/build/conf/ts.conf b/build/conf/ts.conf index 789d06c9f2..5735787ea4 100644 --- a/build/conf/ts.conf +++ b/build/conf/ts.conf @@ -282,6 +282,10 @@ macro _TS_LIBRARY_EPILOGUE() { _GLOB(_TS_LINT_SRCS_VALUE ${CURDIR}/**/*.(ts|tsx) EXCLUDE **/node_modules/**/*.(ts|tsx)) } +macro _TS_TEST_EPILOGUE() { + _TS_TEST_CONFIGURE() +} + # workspace_node_modules.tar has to be in outputs to become available for test_tool. # we cannot redeclare node_modules.tar (it's in $NOTS_TOOL_NODE_MODULES_BUNDLE) as output, # because this path is in outputs of create-node-modules command, and we can't have same path @@ -298,6 +302,7 @@ TS_TEST_CMD=$TOUCH_UNIT \ ### @see [TS_TEST_DATA()](#macro_TS_TEST_DATA) module TS_TEST: _TS_BASE_UNIT { .CMD=TS_TEST_CMD + .EPILOGUE=_TS_TEST_EPILOGUE # Disable `SRCS` macro in "parent" module (sources will be added by `TS_TEST_SRCS`). .ALIASES=SRCS=_NOOP_MACRO @@ -320,6 +325,4 @@ module TS_TEST: _TS_BASE_UNIT { TS_TEST_EXTENSION=$HERMIONE_TEST_EXTENSION TS_TEST_EXTRA_SRCS_MASK=$HERMIONE_EXTRA_SRCS_MASK } - - _TS_TEST_CONFIGURE() } diff --git a/build/plugins/nots.py b/build/plugins/nots.py index 9f60f6fb4c..7f2184a27c 100644 --- a/build/plugins/nots.py +++ b/build/plugins/nots.py @@ -270,7 +270,7 @@ def _add_test(unit, test_type, test_files, deps=None, test_record=None, test_cwd "BINARY-PATH": os.path.join(test_dir, unit.filename()), "SPLIT-FACTOR": unit.get("TEST_SPLIT_FACTOR") or "", "FORK-MODE": unit.get("TEST_FORK_MODE") or "", - "SIZE": "SMALL", + "SIZE": unit.get("TEST_SIZE_NAME") or "", "TEST-FILES": ytest.serialize_list(test_files), "TEST-CWD": test_cwd or "", "TAG": ytest.serialize_list(ytest.get_values_list(unit, "TEST_TAGS_VALUE")), |