aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorprettyboy <prettyboy@yandex-team.com>2025-01-17 20:01:01 +0300
committerprettyboy <prettyboy@yandex-team.com>2025-01-17 22:03:58 +0300
commitc89ef5ac36522b186f4372a6c3ec8b4e96a08666 (patch)
tree0021ff80b0987948707b835709920512e59993f5
parent6ddd7726ecd1e96930dd8fd50395e4bb7e7b91fc (diff)
downloadydb-c89ef5ac36522b186f4372a6c3ec8b4e96a08666.tar.gz
[devtools/ya] Added LANG_AGNOSTIC type to lang statistics
commit_hash:8dadcd633f444b7d9b0783f1ccc5395baa2a2e38
-rw-r--r--build/plugins/lib/test_const/__init__.py10
-rw-r--r--build/plugins/ytest.py3
2 files changed, 10 insertions, 3 deletions
diff --git a/build/plugins/lib/test_const/__init__.py b/build/plugins/lib/test_const/__init__.py
index 81803e044e..a5d280c571 100644
--- a/build/plugins/lib/test_const/__init__.py
+++ b/build/plugins/lib/test_const/__init__.py
@@ -369,16 +369,20 @@ class TestSize(Enum):
class ModuleLang(Enum):
- ABSENT = "absent"
- NUMEROUS = "numerous"
- UNKNOWN = "unknown"
CPP = "cpp"
DOCS = "docs"
GO = "go"
JAVA = "java"
KOTLIN = "kotlin"
+ LANG_AGNOSTIC = "agnostic" # This module (or node) is not language specific
PY = "py"
TS = "ts"
+ UNKNOWN = "unknown"
+
+
+class AggregateLang(Enum):
+ ABSENT = "absent"
+ NUMEROUS = "numerous"
class NodeType(Enum):
diff --git a/build/plugins/ytest.py b/build/plugins/ytest.py
index ef47c32835..7adb582a91 100644
--- a/build/plugins/ytest.py
+++ b/build/plugins/ytest.py
@@ -510,6 +510,8 @@ def check_data(fields, unit, *args):
if not dart_record[df.TestFiles.KEY]:
return
+ dart_record[df.ModuleLang.KEY] = consts.ModuleLang.LANG_AGNOSTIC
+
data = dump_test(unit, dart_record)
if data:
unit.set_property(["DART_DATA", data])
@@ -542,6 +544,7 @@ def check_resource(fields, unit, *args):
)
dart_record = create_dart_record(fields, unit, flat_args, spec_args)
+ dart_record[df.ModuleLang.KEY] = consts.ModuleLang.LANG_AGNOSTIC
data = dump_test(unit, dart_record)
if data: