this repo has no description
1load("@fbcode_macros//build_defs:python_binary.bzl", "python_binary")
2load("@fbcode_macros//build_defs:python_library.bzl", "python_library")
3load("@fbcode_macros//build_defs:python_unittest.bzl", "python_unittest")
4load("@fbcode_macros//build_defs:thrift_library.bzl", "thrift_library")
5
6thrift_library(
7 name = "rpc",
8 languages = ["py3"],
9 py3_namespace = "pyro.benchmarks",
10 py_base_module = "pyro.benchmarks",
11 thrift_srcs = {"rpc.thrift": ["PyroBenchmarks"]},
12 deps = ["//common/fb303/if:fb303"],
13)
14
15python_library(
16 name = "fbpkg_handler",
17 srcs = [
18 "fbpkg_handler.py",
19 ],
20 py_version = ">=3",
21)
22
23python_library(
24 name = "server_handler",
25 srcs = [
26 "server_handler.py",
27 ],
28 py_version = ">=3",
29 deps = [
30 ":fbpkg_handler",
31 ":rpc-py3-services",
32 "//common/fb303/py3:fb303",
33 ],
34)
35
36python_library(
37 name = "run",
38 srcs = [
39 "_compile_tool.py",
40 "_display_results.py",
41 "_time_tool.py",
42 "_tools.py",
43 "run.py",
44 ],
45 py_version = ">=3",
46)
47
48python_binary(
49 name = "server",
50 srcs = [
51 "server.py",
52 ],
53 main_module = "pyro.benchmarks.server",
54 par_style = "xar",
55 deps = [
56 ":run",
57 ":server_handler",
58 "//common/services/py3:tls",
59 "//common/services/py3/servers:servers",
60 ],
61)
62
63python_binary(
64 name = "client",
65 srcs = [
66 "client.py",
67 ],
68 main_module = "pyro.benchmarks.client",
69 par_style = "xar",
70 deps = [
71 ":fbpkg_handler",
72 ":rpc-py3-clients",
73 ":run",
74 "//libfb/py/pyinit:pyinit",
75 "//servicerouter/client/py3:get_client",
76 ],
77)
78
79python_binary(
80 name = "format_results",
81 srcs = [
82 "format_results.py",
83 ],
84 main_module = "pyro.benchmarks.format_results",
85)
86
87python_binary(
88 name = "upload_to_phab",
89 srcs = [
90 "upload_to_phab.py",
91 ],
92 main_module = "pyro.benchmarks.upload_to_phab",
93 deps = [
94 "//ci_experiences/signalhub/if:signal_hub_thrift-py3-types",
95 "//ci_experiences/signalhub/utils:signal_hub_service_util",
96 "//everstore/client/py:everstore_client",
97 "//libfb/py/pyinit:pyinit",
98 "//phabricator:new_phabricator_graphql_helpers",
99 "//phabricator:phabricator_authentication",
100 "//phabricator:phabricator_graphql_client",
101 ],
102)
103
104python_unittest(
105 name = "test_server",
106 srcs = [
107 "test_server.py",
108 ],
109 py_version = ">=3",
110 deps = [
111 ":server_handler",
112 "//ame/py3:base_server",
113 "//libfb/py:testutil",
114 "//libfb/py/asyncio:unittest",
115 ],
116)