diff options
author | v-korovin <v-korovin@yandex-team.ru> | 2022-02-10 16:46:20 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:46:20 +0300 |
commit | c4e0c5d2f245076d63ccff1004c755ca0cc5d27b (patch) | |
tree | 0c6b0402dc17d5d1beffbe9350d2d6802207e123 /build/plugins | |
parent | b86334f8eb651237aceaa035bebb519893d6d077 (diff) | |
download | ydb-c4e0c5d2f245076d63ccff1004c755ca0cc5d27b.tar.gz |
Restoring authorship annotation for <v-korovin@yandex-team.ru>. Commit 1 of 2.
Diffstat (limited to 'build/plugins')
-rw-r--r-- | build/plugins/_test_const.py | 2 | ||||
-rw-r--r-- | build/plugins/large_files.py | 32 | ||||
-rw-r--r-- | build/plugins/pybuild.py | 2 | ||||
-rw-r--r-- | build/plugins/tests/ya.make | 2 | ||||
-rw-r--r-- | build/plugins/ya.make | 2 | ||||
-rw-r--r-- | build/plugins/ytest.py | 8 |
6 files changed, 24 insertions, 24 deletions
diff --git a/build/plugins/_test_const.py b/build/plugins/_test_const.py index 0d03cc3d17..0c127897cd 100644 --- a/build/plugins/_test_const.py +++ b/build/plugins/_test_const.py @@ -43,7 +43,7 @@ COVERAGE_RESOLVED_FILE_NAME_PATTERN = "coverage_resolved.{}.json" CPP_COVERAGE_RESOLVED_FILE_NAME = COVERAGE_RESOLVED_FILE_NAME_PATTERN.format("cpp") JAVA_COVERAGE_RESOLVED_FILE_NAME = COVERAGE_RESOLVED_FILE_NAME_PATTERN.format("java") PYTHON_COVERAGE_RESOLVED_FILE_NAME = COVERAGE_RESOLVED_FILE_NAME_PATTERN.format("python") -CLANG_COVERAGE_TEST_TYPES = ("unittest", "coverage_extractor", "pytest", "py3test", "gtest", "boost_test", "exectest") +CLANG_COVERAGE_TEST_TYPES = ("unittest", "coverage_extractor", "pytest", "py3test", "gtest", "boost_test", "exectest") COVERAGE_TABLE_CHUNKS = 20 COVERAGE_YT_PROXY = "hahn.yt.yandex.net" COVERAGE_YT_ROOT_PATH = "//home/codecoverage" diff --git a/build/plugins/large_files.py b/build/plugins/large_files.py index 33a78d7110..aa1a418a2f 100644 --- a/build/plugins/large_files.py +++ b/build/plugins/large_files.py @@ -7,22 +7,22 @@ PLACEHOLDER_EXT = "external" def onlarge_files(unit, *args): """ - @usage LARGE_FILES([AUTOUPDATED] Files...) + @usage LARGE_FILES([AUTOUPDATED] Files...) - Use large file ether from working copy or from remote storage via placeholder <File>.external - If <File> is present locally (and not a symlink!) it will be copied to build directory. - Otherwise macro will try to locate <File>.external, parse it retrieve ot during build phase. + Use large file ether from working copy or from remote storage via placeholder <File>.external + If <File> is present locally (and not a symlink!) it will be copied to build directory. + Otherwise macro will try to locate <File>.external, parse it retrieve ot during build phase. """ args = list(args) - - if args and args[0] == 'AUTOUPDATED': - args = args[1:] - + + if args and args[0] == 'AUTOUPDATED': + args = args[1:] + for arg in args: - if arg == 'AUTOUPDATED': - unit.message(["warn", "Please set AUTOUPDATED argument before other file names"]) - continue - + if arg == 'AUTOUPDATED': + unit.message(["warn", "Please set AUTOUPDATED argument before other file names"]) + continue + src = unit.resolve_arc_path(arg) if src.startswith("$S"): msg = "Used local large file {}. Don't forget to run 'ya upload --update-external' and commit {}.{}".format(src, src, PLACEHOLDER_EXT) @@ -31,9 +31,9 @@ def onlarge_files(unit, *args): else: out_file = strip_roots(os.path.join(unit.path(), arg)) external = "{}.{}".format(arg, PLACEHOLDER_EXT) - from_external_cmd = [external, out_file, 'OUT_NOAUTO', arg] - if os.path.dirname(arg): - from_external_cmd.extend(("RENAME", os.path.basename(arg))) - unit.on_from_external(from_external_cmd) + from_external_cmd = [external, out_file, 'OUT_NOAUTO', arg] + if os.path.dirname(arg): + from_external_cmd.extend(("RENAME", os.path.basename(arg))) + unit.on_from_external(from_external_cmd) unit.onadd_check(['check.external', external]) diff --git a/build/plugins/pybuild.py b/build/plugins/pybuild.py index f32a2d39a0..b21bbc6f02 100644 --- a/build/plugins/pybuild.py +++ b/build/plugins/pybuild.py @@ -181,7 +181,7 @@ def onpy_srcs(unit, *args): __init__.py never required, but if present (and specified in PY_SRCS), it will be imported when you import package modules with __init__.py Oh. Example of library declaration with PY_SRCS(): - PY2_LIBRARY(mymodule) + PY2_LIBRARY(mymodule) PY_SRCS(a.py sub/dir/b.py e.proto sub/dir/f.proto c.pyx sub/dir/d.pyx g.swg sub/dir/h.swg) END() diff --git a/build/plugins/tests/ya.make b/build/plugins/tests/ya.make index 87228b98df..095c081682 100644 --- a/build/plugins/tests/ya.make +++ b/build/plugins/tests/ya.make @@ -1,4 +1,4 @@ -PY2TEST() +PY2TEST() OWNER(g:yatool) diff --git a/build/plugins/ya.make b/build/plugins/ya.make index 4ad5f5988e..51b16709b6 100644 --- a/build/plugins/ya.make +++ b/build/plugins/ya.make @@ -1,6 +1,6 @@ OWNER(g:ymake) -PY2_LIBRARY() +PY2_LIBRARY() PY_SRCS( code_generator.py diff --git a/build/plugins/ytest.py b/build/plugins/ytest.py index 8970837f0f..7ebf5c8672 100644 --- a/build/plugins/ytest.py +++ b/build/plugins/ytest.py @@ -736,11 +736,11 @@ def onadd_pytest_bin(unit, *args): ) runner_bin = kws.get('RUNNER_BIN', [None])[0] - test_type = 'py3test.bin' if (unit.get("PYTHON3") == 'yes') else "pytest.bin" - - add_test_to_dart(unit, test_type, runner_bin=runner_bin) + test_type = 'py3test.bin' if (unit.get("PYTHON3") == 'yes') else "pytest.bin" + add_test_to_dart(unit, test_type, runner_bin=runner_bin) + def add_test_to_dart(unit, test_type, binary_path=None, runner_bin=None): if unit.get("TIDY") == "yes": # graph changed for clang_tidy tests @@ -1047,7 +1047,7 @@ def onsetup_run_python(unit): def get_canonical_test_resources(unit): unit_path = unit.path() - canon_data_dir = os.path.join(unit.resolve(unit_path), CANON_DATA_DIR_NAME, unit.get('CANONIZE_SUB_PATH') or '') + canon_data_dir = os.path.join(unit.resolve(unit_path), CANON_DATA_DIR_NAME, unit.get('CANONIZE_SUB_PATH') or '') try: _, dirs, files = next(os.walk(canon_data_dir)) |