Skip to content

Commit 9a21fe8

Browse files
Merge pull request #9730 from rabbitmq/mergify/bp/v3.11.x/pr-9728
Use rules_erlang 3.13.1 (backport #9707) (backport #9728)
2 parents a01b6a7 + a9841a5 commit 9a21fe8

File tree

5 files changed

+13
-1
lines changed

5 files changed

+13
-1
lines changed

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ build --flag_alias=erlang_version=@rules_erlang//:erlang_version
1111
build --flag_alias=elixir_home=//:elixir_home
1212
build --flag_alias=test_build=//:enable_test_build
1313

14+
build --combined_report=lcov
15+
1416
build:buildbuddy --bes_results_url=https://app.buildbuddy.io/invocation/
1517
build:buildbuddy --bes_backend=grpcs://remote.buildbuddy.io
1618
build:buildbuddy --remote_cache=grpcs://remote.buildbuddy.io

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ rebar3.crashdump
7272
*.lock
7373

7474
/logs/
75+
/genhtml/
7576

7677
/topic-branch-scratch/
7778

MODULE.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ bazel_dep(
3131

3232
bazel_dep(
3333
name = "rules_erlang",
34-
version = "3.12.0",
34+
version = "3.13.1",
3535
)
3636

3737
bazel_dep(

deps/rabbit/BUILD.bazel

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,4 +1168,7 @@ eunit(
11681168
":test_test_rabbit_event_handler_beam",
11691169
],
11701170
target = ":test_erlang_app",
1171+
test_env = {
1172+
"COVERDATA_TO_LCOV_APPS_DIRS": "deps:deps/rabbit/apps",
1173+
},
11711174
)

rabbitmq.bzl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,17 +173,20 @@ def rabbitmq_suite(
173173
deps = [],
174174
runtime_deps = [],
175175
**kwargs):
176+
app_name = native.package_name().rpartition("/")[-1]
176177
# suite_name exists in the underying ct_test macro, but we don't
177178
# want to use the arg in rabbitmq-server, for the sake of clarity
178179
if suite_name != None:
179180
fail("rabbitmq_suite cannot be called with a suite_name attr")
180181
ct_test(
181182
name = name,
183+
app_name = app_name,
182184
compiled_suites = [":{}_beam_files".format(name)] + additional_beam,
183185
data = native.glob(["test/{}_data/**/*".format(name)]) + data,
184186
test_env = dict({
185187
"RABBITMQ_CT_SKIP_AS_ERROR": "true",
186188
"LANG": "C.UTF-8",
189+
"COVERDATA_TO_LCOV_APPS_DIRS": "deps:deps/rabbit/apps",
187190
}.items() + test_env.items()),
188191
deps = [":test_erlang_app"] + deps + runtime_deps,
189192
**kwargs
@@ -218,6 +221,7 @@ def rabbitmq_integration_suite(
218221
deps = [],
219222
runtime_deps = [],
220223
**kwargs):
224+
app_name = native.package_name().rpartition("/")[-1]
221225
# suite_name exists in the underying ct_test macro, but we don't
222226
# want to use the arg in rabbitmq-server, for the sake of clarity
223227
if suite_name != None:
@@ -236,6 +240,7 @@ def rabbitmq_integration_suite(
236240

237241
ct_test(
238242
name = name,
243+
app_name = app_name,
239244
suite_name = name,
240245
compiled_suites = [":{}_beam_files".format(name)] + additional_beam,
241246
tags = tags + [STARTS_BACKGROUND_BROKER_TAG],
@@ -248,6 +253,7 @@ def rabbitmq_integration_suite(
248253
"RABBITMQ_PLUGINS": "$TEST_SRCDIR/$TEST_WORKSPACE/{}/broker-for-tests-home/sbin/rabbitmq-plugins".format(package),
249254
"RABBITMQ_QUEUES": "$TEST_SRCDIR/$TEST_WORKSPACE/{}/broker-for-tests-home/sbin/rabbitmq-queues".format(package),
250255
"LANG": "C.UTF-8",
256+
"COVERDATA_TO_LCOV_APPS_DIRS": "deps:deps/rabbit/apps",
251257
}.items() + test_env.items()),
252258
tools = [
253259
":rabbitmq-for-tests-run",

0 commit comments

Comments
 (0)