aboutsummaryrefslogtreecommitdiffstats
path: root/build/plugins/nots.py
diff options
context:
space:
mode:
authorvturov <vturov@yandex-team.com>2024-09-17 10:55:28 +0300
committervturov <vturov@yandex-team.com>2024-09-17 11:07:18 +0300
commit7f4c79dc8e6133a0f26e69c9085b4f897b5cbefa (patch)
tree5868c36095a80837daa757449cde4a19a89961f6 /build/plugins/nots.py
parent43ceb108fd23a21d6a9bb0e7533a9f31e3af06c0 (diff)
downloadydb-7f4c79dc8e6133a0f26e69c9085b4f897b5cbefa.tar.gz
add playwright-large test runner
Добавляем тест-раннер для playwright-large commit_hash:6e409a792b3ea208d086602118f0f70ec6646726
Diffstat (limited to 'build/plugins/nots.py')
-rw-r--r--build/plugins/nots.py15
1 files changed, 13 insertions, 2 deletions
diff --git a/build/plugins/nots.py b/build/plugins/nots.py
index 8e3735671e..625b1af5bf 100644
--- a/build/plugins/nots.py
+++ b/build/plugins/nots.py
@@ -43,6 +43,7 @@ class TsTestType(StrEnum):
HERMIONE = auto()
JEST = auto()
PLAYWRIGHT = auto()
+ PLAYWRIGHT_LARGE = auto()
TSC_TYPECHECK = auto()
TS_STYLELINT = auto()
@@ -100,6 +101,16 @@ TS_TEST_SPECIFIC_FIELDS = {
df.TsResources.value,
df.TsTestForPath.value,
),
+ TsTestType.PLAYWRIGHT_LARGE: (
+ df.ConfigPath.value,
+ df.Size.from_unit,
+ df.Tag.from_unit_fat_external_no_retries,
+ df.Requirements.from_unit_with_full_network,
+ df.TsResources.value,
+ df.TsTestDataDirs.value,
+ df.TsTestDataDirsRename.value,
+ df.TsTestForPath.value,
+ ),
TsTestType.TSC_TYPECHECK: (
df.Size.from_unit,
df.TestCwd.moddir,
@@ -797,7 +808,7 @@ def on_ts_test_for_configure(unit, test_runner, default_config, node_modules_fil
unit.on_setup_extract_node_modules_recipe([for_mod_path])
unit.on_setup_extract_output_tars_recipe([for_mod_path])
- build_root = "$B" if test_runner == TsTestType.HERMIONE else "$(BUILD_ROOT)"
+ build_root = "$B" if test_runner in [TsTestType.HERMIONE, TsTestType.PLAYWRIGHT_LARGE] else "$(BUILD_ROOT)"
unit.set(["TS_TEST_NM", os.path.join(build_root, for_mod_path, node_modules_filename)])
config_path = unit.get("TS_TEST_CONFIG_PATH")
@@ -834,7 +845,7 @@ def on_ts_test_for_configure(unit, test_runner, default_config, node_modules_fil
extra_deps = df.CustomDependencies.test_depends_only(unit, (), {})[df.CustomDependencies.KEY].split()
dart_record[df.CustomDependencies.KEY] = " ".join(sort_uniq(deps + extra_deps))
- if test_runner == TsTestType.HERMIONE:
+ if test_runner in [TsTestType.HERMIONE, TsTestType.PLAYWRIGHT_LARGE]:
dart_record[df.Size.KEY] = "LARGE"
data = ytest.dump_test(unit, dart_record)