mirror of
https://github.com/facebook/rocksdb.git
synced 2024-11-26 07:30:54 +00:00
917fd87513
Summary: - Right now in blackbox test we don't exit if there are std::error as we do in whitebox crash tests. As result those errors are swallowed. It only errors out if state is unexpected. One example that was noticed in blackbox crash test - ``` stderr has error message: ***Error restoring historical expected values: Corruption: DB is older than any restorable expected state*** Running db_stress with pid=30454: /packages/rocksdb_db_stress_internal_repo/rocks_db_stress .... ``` - This diff also provided support to export files - db_crashtest.py file to be used by different repo. Reviewed By: ajkr Differential Revision: D50564889 fbshipit-source-id: 7bafbbc6179dc79467ca2b680fe83afc7850616a
44 lines
1.5 KiB
Python
44 lines
1.5 KiB
Python
# Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved.
|
|
from __future__ import absolute_import, division, print_function, unicode_literals
|
|
|
|
rocksdb_target_header_template = """# This file \100generated by:
|
|
#$ python3 buckifier/buckify_rocksdb.py{extra_argv}
|
|
# --> DO NOT EDIT MANUALLY <--
|
|
# This file is a Facebook-specific integration for buck builds, so can
|
|
# only be validated by Facebook employees.
|
|
load("//rocks/buckifier:defs.bzl", "cpp_library_wrapper","rocks_cpp_library_wrapper","cpp_binary_wrapper","cpp_unittest_wrapper","fancy_bench_wrapper","add_c_test_wrapper")
|
|
|
|
"""
|
|
|
|
|
|
library_template = """
|
|
cpp_library_wrapper(name="{name}", srcs=[{srcs}], deps=[{deps}], headers={headers}, link_whole={link_whole}, extra_test_libs={extra_test_libs})
|
|
"""
|
|
|
|
rocksdb_library_template = """
|
|
rocks_cpp_library_wrapper(name="{name}", srcs=[{srcs}], headers={headers})
|
|
|
|
"""
|
|
|
|
|
|
binary_template = """
|
|
cpp_binary_wrapper(name="{name}", srcs=[{srcs}], deps=[{deps}], extra_preprocessor_flags=[{extra_preprocessor_flags}], extra_bench_libs={extra_bench_libs})
|
|
"""
|
|
|
|
unittests_template = """
|
|
cpp_unittest_wrapper(name="{test_name}",
|
|
srcs=["{test_cc}"],
|
|
deps={deps},
|
|
extra_compiler_flags={extra_compiler_flags})
|
|
|
|
"""
|
|
|
|
fancy_bench_template = """
|
|
fancy_bench_wrapper(suite_name="{name}", binary_to_bench_to_metric_list_map={bench_config}, slow={slow}, expected_runtime={expected_runtime}, sl_iterations={sl_iterations}, regression_threshold={regression_threshold})
|
|
|
|
"""
|
|
|
|
export_file_template = """
|
|
export_file(name = "{name}")
|
|
"""
|