Skip to content

Commit 4c4b2d1

Browse files
authored
Merge pull request #9707 from rabbitmq/rin/use-rules_erlang-3.13.0
Use rules_erlang 3.13.1
2 parents f4e6423 + d5386e0 commit 4c4b2d1

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
@@ -13,6 +13,8 @@ build --flag_alias=test_build=//:enable_test_build
1313

1414
build --test_timeout=7200
1515

16+
build --combined_report=lcov
17+
1618
build:buildbuddy --bes_results_url=https://app.buildbuddy.io/invocation/
1719
build:buildbuddy --bes_backend=grpcs://remote.buildbuddy.io
1820
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
@@ -1324,4 +1324,7 @@ eunit(
13241324
],
13251325
erl_extra_args = [ENABLE_FEATURE_MAYBE_EXPR],
13261326
target = ":test_erlang_app",
1327+
test_env = {
1328+
"COVERDATA_TO_LCOV_APPS_DIRS": "deps:deps/rabbit/apps",
1329+
},
13271330
)

rabbitmq.bzl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,18 +175,21 @@ def rabbitmq_suite(
175175
deps = [],
176176
runtime_deps = [],
177177
**kwargs):
178+
app_name = native.package_name().rpartition("/")[-1]
178179
# suite_name exists in the underying ct_test macro, but we don't
179180
# want to use the arg in rabbitmq-server, for the sake of clarity
180181
if suite_name != None:
181182
fail("rabbitmq_suite cannot be called with a suite_name attr")
182183
ct_test(
183184
name = name,
185+
app_name = app_name,
184186
compiled_suites = [":{}_beam_files".format(name)] + additional_beam,
185187
ct_run_extra_args = [ENABLE_FEATURE_MAYBE_EXPR],
186188
data = native.glob(["test/{}_data/**/*".format(name)]) + data,
187189
test_env = dict({
188190
"RABBITMQ_CT_SKIP_AS_ERROR": "true",
189191
"LANG": "C.UTF-8",
192+
"COVERDATA_TO_LCOV_APPS_DIRS": "deps:deps/rabbit/apps",
190193
}.items() + test_env.items()),
191194
deps = [":test_erlang_app"] + deps + runtime_deps,
192195
**kwargs
@@ -221,6 +224,7 @@ def rabbitmq_integration_suite(
221224
deps = [],
222225
runtime_deps = [],
223226
**kwargs):
227+
app_name = native.package_name().rpartition("/")[-1]
224228
# suite_name exists in the underying ct_test macro, but we don't
225229
# want to use the arg in rabbitmq-server, for the sake of clarity
226230
if suite_name != None:
@@ -239,6 +243,7 @@ def rabbitmq_integration_suite(
239243

240244
ct_test(
241245
name = name,
246+
app_name = app_name,
242247
suite_name = name,
243248
compiled_suites = [":{}_beam_files".format(name)] + additional_beam,
244249
tags = tags + [STARTS_BACKGROUND_BROKER_TAG],
@@ -252,6 +257,7 @@ def rabbitmq_integration_suite(
252257
"RABBITMQ_PLUGINS": "$TEST_SRCDIR/$TEST_WORKSPACE/{}/broker-for-tests-home/sbin/rabbitmq-plugins".format(package),
253258
"RABBITMQ_QUEUES": "$TEST_SRCDIR/$TEST_WORKSPACE/{}/broker-for-tests-home/sbin/rabbitmq-queues".format(package),
254259
"LANG": "C.UTF-8",
260+
"COVERDATA_TO_LCOV_APPS_DIRS": "deps:deps/rabbit/apps",
255261
}.items() + test_env.items()),
256262
tools = [
257263
":rabbitmq-for-tests-run",

0 commit comments

Comments
 (0)