diff options
author | prettyboy <prettyboy@yandex-team.com> | 2025-01-17 20:01:01 +0300 |
---|---|---|
committer | prettyboy <prettyboy@yandex-team.com> | 2025-01-17 22:03:58 +0300 |
commit | c89ef5ac36522b186f4372a6c3ec8b4e96a08666 (patch) | |
tree | 0021ff80b0987948707b835709920512e59993f5 | |
parent | 6ddd7726ecd1e96930dd8fd50395e4bb7e7b91fc (diff) | |
download | ydb-c89ef5ac36522b186f4372a6c3ec8b4e96a08666.tar.gz |
[devtools/ya] Added LANG_AGNOSTIC type to lang statistics
commit_hash:8dadcd633f444b7d9b0783f1ccc5395baa2a2e38
-rw-r--r-- | build/plugins/lib/test_const/__init__.py | 10 | ||||
-rw-r--r-- | build/plugins/ytest.py | 3 |
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: |