diff options
author | khlebnikov <khlebnikov@yandex-team.ru> | 2022-02-10 16:50:08 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:50:08 +0300 |
commit | df35d89845ad252e6db1c6adf84da9b15de0e3b3 (patch) | |
tree | 5d5cb817648f650d76cf1076100726fd9b8448e8 /build | |
parent | 6cffcf9a14a1dd07278bd534c7cca706ec2827b3 (diff) | |
download | ydb-df35d89845ad252e6db1c6adf84da9b15de0e3b3.tar.gz |
Restoring authorship annotation for <khlebnikov@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'build')
-rwxr-xr-x | build/scripts/fetch_from.py | 8 | ||||
-rw-r--r-- | build/scripts/fetch_from_mds.py | 20 | ||||
-rwxr-xr-x | build/scripts/fetch_from_sandbox.py | 16 | ||||
-rw-r--r-- | build/scripts/fetch_resource.py | 16 | ||||
-rw-r--r-- | build/ya.conf.json | 156 |
5 files changed, 108 insertions, 108 deletions
diff --git a/build/scripts/fetch_from.py b/build/scripts/fetch_from.py index a64b23daae..db4fea50bf 100755 --- a/build/scripts/fetch_from.py +++ b/build/scripts/fetch_from.py @@ -20,11 +20,11 @@ def make_user_agent(): return 'fetch_from: {host}'.format(host=socket.gethostname()) -def add_common_arguments(parser): +def add_common_arguments(parser): parser.add_argument('--copy-to') # used by jbuild in fetch_resource parser.add_argument('--rename-to') # used by test_node in inject_mds_resource_to_graph - parser.add_argument('--copy-to-dir') - parser.add_argument('--untar-to') + parser.add_argument('--copy-to-dir') + parser.add_argument('--untar-to') parser.add_argument('--rename', action='append', default=[], metavar='FILE', help='rename FILE to the corresponding output') parser.add_argument('--executable', action='store_true', help='make outputs executable') parser.add_argument('--log-path') @@ -330,7 +330,7 @@ def process(fetched_file, file_name, args, remove=True): if args.copy_to_dir: hardlink_or_copy(fetched_file, os.path.join(args.copy_to_dir, file_name)) - if args.untar_to: + if args.untar_to: ensure_dir(args.untar_to) # Extract only requested files try: diff --git a/build/scripts/fetch_from_mds.py b/build/scripts/fetch_from_mds.py index 18b680f0bb..5e4e656394 100644 --- a/build/scripts/fetch_from_mds.py +++ b/build/scripts/fetch_from_mds.py @@ -1,7 +1,7 @@ import os import sys import logging -import argparse +import argparse import fetch_from @@ -9,10 +9,10 @@ MDS_PREFIX = "https://storage.yandex-team.ru/get-devtools/" def parse_args(): - parser = argparse.ArgumentParser() - fetch_from.add_common_arguments(parser) + parser = argparse.ArgumentParser() + fetch_from.add_common_arguments(parser) - parser.add_argument('--key', required=True) + parser.add_argument('--key', required=True) return parser.parse_args() @@ -29,21 +29,21 @@ def fetch(key): return fetched_file, file_name -def main(args): - fetched_file, resource_file_name = fetch(args.key) +def main(args): + fetched_file, resource_file_name = fetch(args.key) - fetch_from.process(fetched_file, resource_file_name, args) + fetch_from.process(fetched_file, resource_file_name, args) if __name__ == '__main__': - args = parse_args() + args = parse_args() fetch_from.setup_logging(args, os.path.basename(__file__)) try: - main(args) + main(args) except Exception as e: logging.exception(e) - print >>sys.stderr, open(args.abs_log_path).read() + print >>sys.stderr, open(args.abs_log_path).read() sys.stderr.flush() import error diff --git a/build/scripts/fetch_from_sandbox.py b/build/scripts/fetch_from_sandbox.py index 070b491ec3..a99542e174 100755 --- a/build/scripts/fetch_from_sandbox.py +++ b/build/scripts/fetch_from_sandbox.py @@ -1,7 +1,7 @@ import itertools import json import logging -import argparse +import argparse import os import random import subprocess @@ -19,10 +19,10 @@ TEMPORARY_ERROR_CODES = (429, 500, 503, 504) def parse_args(): - parser = argparse.ArgumentParser() - fetch_from.add_common_arguments(parser) - parser.add_argument('--resource-id', type=int, required=True) - parser.add_argument('--custom-fetcher') + parser = argparse.ArgumentParser() + fetch_from.add_common_arguments(parser) + parser.add_argument('--resource-id', type=int, required=True) + parser.add_argument('--custom-fetcher') parser.add_argument('--resource-file') return parser.parse_args() @@ -240,7 +240,7 @@ def _get_resource_info_from_file(resource_file): return None -def main(args): +def main(args): custom_fetcher = os.environ.get('YA_CUSTOM_FETCHER') resource_info = _get_resource_info_from_file(args.resource_file) @@ -255,11 +255,11 @@ def main(args): if __name__ == '__main__': - args = parse_args() + args = parse_args() fetch_from.setup_logging(args, os.path.basename(__file__)) try: - main(args) + main(args) except Exception as e: logging.exception(e) print >>sys.stderr, open(args.abs_log_path).read() diff --git a/build/scripts/fetch_resource.py b/build/scripts/fetch_resource.py index e22d28d83a..d5af311e5d 100644 --- a/build/scripts/fetch_resource.py +++ b/build/scripts/fetch_resource.py @@ -1,13 +1,13 @@ import urllib2 -import argparse +import argparse import xmlrpclib def parse_args(): - parser = argparse.ArgumentParser() - parser.add_argument('-r', '--resource-id', type=int, required=True) - parser.add_argument('-o', '--output', required=True) - return parser.parse_args() + parser = argparse.ArgumentParser() + parser.add_argument('-r', '--resource-id', type=int, required=True) + parser.add_argument('-o', '--output', required=True) + return parser.parse_args() def fetch(url, retries=4, timeout=5): @@ -37,7 +37,7 @@ def fetch_resource(id_): if __name__ == '__main__': - args = parse_args() + args = parse_args() - with open(args.output, 'wb') as f: - f.write(fetch_resource(int(args.resource_id))) + with open(args.output, 'wb') as f: + f.write(fetch_resource(int(args.resource_id))) diff --git a/build/ya.conf.json b/build/ya.conf.json index 3d7a512ba1..5f7cc875d6 100644 --- a/build/ya.conf.json +++ b/build/ya.conf.json @@ -368,7 +368,7 @@ }, "fio": { "description": "flexible I/O tester" - }, + }, "amduprof-cli": { "description": "AMDuProfCLI is a command-line tool for AMD uProf Profiler" }, @@ -378,12 +378,12 @@ "foremost": { "description": "Foremost is a Linux program to recover files based on their headers" }, - "stress-ng": { - "description": "stress load tester" + "stress-ng": { + "description": "stress load tester" + }, + "atop": { + "description": "Advanced System & Process Monitor" }, - "atop": { - "description": "Advanced System & Process Monitor" - }, "bpftool": { "description": "tool for inspection and simple manipulation of eBPF programs and maps" }, @@ -4900,8 +4900,8 @@ } ] }, - "qemu": { - "tools": { + "qemu": { + "tools": { "qemu": { "bottle": "qemu", "executable": "qemu" @@ -4918,16 +4918,16 @@ "bottle": "qemu", "executable": "qemu-nbd" } - }, - "platforms": [ + }, + "platforms": [ { "host": { "os": "LINUX" }, "default": true } - ] - }, + ] + }, "qyp": { "tools": { "qyp": { @@ -5024,22 +5024,22 @@ } ] }, - "atop": { - "tools": { - "atop": { - "bottle": "atop", - "executable": "atop" - } - }, - "platforms": [ - { - "host": { - "os": "LINUX" - }, - "default": true - } - ] - }, + "atop": { + "tools": { + "atop": { + "bottle": "atop", + "executable": "atop" + } + }, + "platforms": [ + { + "host": { + "os": "LINUX" + }, + "default": true + } + ] + }, "bpftool": { "tools": { "bpftool": { @@ -5088,22 +5088,22 @@ } ] }, - "stress-ng": { - "tools": { - "stress-ng": { - "bottle": "stress-ng", - "executable": "stress-ng" - } - }, - "platforms": [ - { - "host": { - "os": "LINUX" - }, - "default": true - } - ] - }, + "stress-ng": { + "tools": { + "stress-ng": { + "bottle": "stress-ng", + "executable": "stress-ng" + } + }, + "platforms": [ + { + "host": { + "os": "LINUX" + }, + "default": true + } + ] + }, "iperf": { "tools": { "iperf": { @@ -7418,14 +7418,14 @@ ] } }, - "qemu": { - "formula": { + "qemu": { + "formula": { "sandbox_id": [ 504011268 ], - "match": "Build executable" - }, - "executable": { + "match": "Build executable" + }, + "executable": { "qemu": [ "qemu", "bin", @@ -7446,8 +7446,8 @@ "bin", "qemu-nbd" ] - } - }, + } + }, "qyp": { "formula": { "sandbox_id": [ @@ -7522,20 +7522,20 @@ ] } }, - "atop": { - "formula": { - "sandbox_id": [ - 576898586 - ], - "match": "infra/kernel/tools/atop/build/atop-static.tar.gz" - }, - "executable": { - "atop": [ - "atop", - "atop" - ] - } - }, + "atop": { + "formula": { + "sandbox_id": [ + 576898586 + ], + "match": "infra/kernel/tools/atop/build/atop-static.tar.gz" + }, + "executable": { + "atop": [ + "atop", + "atop" + ] + } + }, "bpftool": { "formula": { "sandbox_id": [ @@ -7578,20 +7578,20 @@ ] } }, - "stress-ng": { - "formula": { - "sandbox_id": [ + "stress-ng": { + "formula": { + "sandbox_id": [ 755257561 - ], - "match": "infra/kernel/tools/stress-ng/build/stress-ng-static.tar.gz" - }, - "executable": { - "stress-ng": [ - "stress-ng", - "stress-ng" - ] - } - }, + ], + "match": "infra/kernel/tools/stress-ng/build/stress-ng-static.tar.gz" + }, + "executable": { + "stress-ng": [ + "stress-ng", + "stress-ng" + ] + } + }, "iperf": { "formula": { "sandbox_id": [ |