1
0
mirror of https://github.com/facebook/proxygen.git synced 2025-08-07 07:02:53 +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}

View File

@@ -12,7 +12,6 @@ from .builder import (
AutoconfBuilder,
Boost,
CMakeBuilder,
BistroBuilder,
Iproute2Builder,
MakeBuilder,
NinjaBootstrap,
@@ -532,16 +531,6 @@ class ManifestParser(object):
args += extra_b2_args
return Boost(build_options, ctx, self, src_dir, build_dir, inst_dir, args)
if builder == "bistro":
return BistroBuilder(
build_options,
ctx,
self,
src_dir,
build_dir,
inst_dir,
)
if builder == "cmake":
defines = self.get_section_as_dict("cmake.defines", ctx)
return CMakeBuilder(

View File

@@ -1,28 +0,0 @@
[manifest]
name = bistro
fbsource_path = fbcode/bistro
shipit_project = bistro
shipit_fbcode_builder = true
[git]
repo_url = https://github.com/facebook/bistro.git
[build.os=linux]
builder = bistro
# Bistro is Linux-specific
[build.not(os=linux)]
builder = nop
[dependencies]
fmt
folly
proxygen
fbthrift
libsodium
googletest
sqlite3
[shipit.pathmap]
fbcode/bistro/public_tld = .
fbcode/bistro = bistro

View File

@@ -7,10 +7,7 @@ def fbcode_builder_spec(builder):
builder.add_option(
"fmtlib/fmt:cmake_defines",
{
# Avoids a bizarred failure to run tests in Bistro:
# test_crontab_selector: error while loading shared libraries:
# libfmt.so.6: cannot open shared object file:
# No such file or directory
# NB: May no longer be needed since Bistro is gone.
"BUILD_SHARED_LIBS": "OFF",
},
)

View File

@@ -20,7 +20,7 @@ def fbcode_builder_spec(builder):
# These 2 are set to ON in `proxygen_quic.py`
"BUILD_QUIC": "OFF",
"BUILD_TESTS": "OFF",
# For bistro
# NB May no longer be needed now that Bistro is gone.
"BUILD_SHARED_LIBS": "OFF",
},
)