1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116
|
load("@rules_erlang//:xref2.bzl", "xref")
load("@rules_erlang//:dialyze.bzl", "dialyze", "plt")
load(
"//:rabbitmq.bzl",
"BROKER_VERSION_REQUIREMENTS_ANY",
"RABBITMQ_DIALYZER_OPTS",
"assert_suites",
"broker_for_integration_suites",
"rabbitmq_app",
"rabbitmq_integration_suite",
"rabbitmq_suite",
)
APP_ENV = """[
{rates_mode, basic},
{sample_retention_policies,
%% List of {MaxAgeInSeconds, SampleEveryNSeconds}
[{global, [{605, 5}, {3660, 60}, {29400, 600}, {86400, 1800}]},
{basic, [{605, 5}, {3600, 60}]},
{detailed, [{605, 5}]}]}
]"""
APP_NAME = "rabbitmq_management_agent"
APP_DESCRIPTION = "RabbitMQ Management Agent"
APP_MODULE = "rabbit_mgmt_agent_app"
EXTRA_APPS = [
"xmerl",
"mnesia",
"ranch",
"ssl",
"crypto",
"public_key",
]
BUILD_DEPS = [
"//deps/rabbitmq_cli:rabbitmqctl",
]
DEPS = [
"//deps/rabbit_common:erlang_app",
"//deps/rabbit:erlang_app",
]
rabbitmq_app(
app_description = APP_DESCRIPTION,
app_env = APP_ENV,
app_extra_keys = BROKER_VERSION_REQUIREMENTS_ANY,
app_module = APP_MODULE,
app_name = APP_NAME,
build_deps = BUILD_DEPS,
extra_apps = EXTRA_APPS,
deps = DEPS,
)
xref(
additional_libs = BUILD_DEPS,
)
plt_apps = list(EXTRA_APPS)
plt_apps.remove("ranch")
plt(
name = "base_plt",
apps = plt_apps,
plt = "//:base_plt",
deps = DEPS,
)
dialyze(
dialyzer_opts = RABBITMQ_DIALYZER_OPTS + ["-Wno_undefined_callbacks"],
plt = ":base_plt",
warnings_as_errors = False,
)
broker_for_integration_suites()
PACKAGE = "deps/rabbitmq_management_agent"
suites = [
rabbitmq_suite(
name = "exometer_slide_SUITE",
size = "medium",
deps = [
"@proper//:erlang_app",
],
),
rabbitmq_integration_suite(
PACKAGE,
name = "metrics_SUITE",
size = "medium",
),
rabbitmq_integration_suite(
PACKAGE,
name = "rabbit_mgmt_gc_SUITE",
size = "medium",
),
rabbitmq_suite(
name = "rabbit_mgmt_slide_SUITE",
size = "small",
runtime_deps = [
"//deps/rabbitmq_ct_helpers:erlang_app",
],
deps = [
"@proper//:erlang_app",
],
),
]
assert_suites(
suites,
glob(["test/**/*_SUITE.erl"]),
)
|