1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-05 19:55:47 +03:00

Remove mentions of Bistro

Summary: Since Bistro is slated to be deprecated, let us turn off OSS CI for it.

Reviewed By: AnonymousMonkey2021

Differential Revision: D35347845

fbshipit-source-id: be23bcfaa098f77162f27ecfed6469b8db7d3401
This commit is contained in:
Alexey Spiridonov
2022-04-03 20:54:31 -07:00
committed by Facebook GitHub Bot
parent 080c83ccbc
commit b4d4fe0e18
5 changed files with 2 additions and 94 deletions

View File

@@ -355,56 +355,6 @@ class Iproute2Builder(BuilderBase):
self._run_cmd(install_cmd, env=env)
class BistroBuilder(BuilderBase):
def _build(self, install_dirs, reconfigure) -> None:
p = os.path.join(self.src_dir, "bistro", "bistro")
env = self._compute_env(install_dirs)
env["PATH"] = env["PATH"] + ":" + os.path.join(p, "bin")
env["TEMPLATES_PATH"] = os.path.join(p, "include", "thrift", "templates")
self._run_cmd(
[
os.path.join(".", "cmake", "run-cmake.sh"),
"Release",
"-DCMAKE_INSTALL_PREFIX=" + self.inst_dir,
],
cwd=p,
env=env,
)
self._run_cmd(
[
"make",
"install",
"-j",
str(self.num_jobs),
],
cwd=os.path.join(p, "cmake", "Release"),
env=env,
)
def run_tests(
self, install_dirs, schedule_type, owner, test_filter, retry, no_testpilot
) -> None:
env = self._compute_env(install_dirs)
build_dir = os.path.join(self.src_dir, "bistro", "bistro", "cmake", "Release")
NUM_RETRIES = 5
for i in range(NUM_RETRIES):
cmd = ["ctest", "--output-on-failure"]
if i > 0:
cmd.append("--rerun-failed")
cmd.append(build_dir)
try:
self._run_cmd(
cmd,
cwd=build_dir,
env=env,
)
except Exception:
print(f"Tests failed... retrying ({i+1}/{NUM_RETRIES})")
else:
return
raise Exception(f"Tests failed even after {NUM_RETRIES} retries")
class CMakeBuilder(BuilderBase):
MANUAL_BUILD_SCRIPT = """\
#!{sys.executable}