Skip to content

Commit cf76e47

Browse files
committed
Adjustments for the way @bazel-erlang shards tests
(cherry picked from commit d8c4c0a)
1 parent cefef4c commit cf76e47

File tree

6 files changed

+38
-40
lines changed

6 files changed

+38
-40
lines changed

deps/amqp10_client/BUILD.bazel

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
load("@bazel-erlang//:xref.bzl", "xref")
22
load("@bazel-erlang//:dialyze.bzl", "dialyze", "plt")
3-
load("@bazel-erlang//:ct.bzl", "ct_suite")
3+
load("@bazel-erlang//:ct.bzl", "ct_group_matrix", "ct_suite")
44
load("//:rabbitmq_home.bzl", "rabbitmq_home")
55
load("//:rabbitmq_run.bzl", "rabbitmq_run")
66
load(
@@ -90,13 +90,13 @@ rabbitmq_integration_suite(
9090
erlc_opts = [
9191
"-I deps/amqp10_client",
9292
],
93-
groups = [
93+
matrix = ct_group_matrix([
9494
"rabbitmq",
9595
"rabbitmq_strict",
9696
"activemq",
9797
"activemq_no_anon",
9898
"mock",
99-
],
99+
]),
100100
test_env = {
101101
"ACTIVEMQ": "$TEST_SRCDIR/$TEST_WORKSPACE/external/activemq/bin/activemq",
102102
},

deps/rabbit/BUILD.bazel

Lines changed: 23 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@bazel-erlang//:bazel_erlang_lib.bzl", "erlc")
2+
load("@bazel-erlang//:ct.bzl", "ct_group_case_matrix", "ct_group_matrix")
23
load("@bazel-erlang//:xref.bzl", "xref")
34
load("@bazel-erlang//:dialyze.bzl", "dialyze", "plt")
45
load("//:rabbitmq_home.bzl", "rabbitmq_home")
@@ -361,13 +362,13 @@ rabbitmq_integration_suite(
361362
PACKAGE,
362363
name = "clustering_management_SUITE",
363364
size = "large",
364-
groups = [
365+
flaky = True,
366+
matrix = ct_group_matrix([
365367
"unclustered_2_nodes",
366368
"unclustered_3_nodes",
367369
"clustered_2_nodes",
368370
"clustered_4_nodes",
369-
],
370-
flaky = True,
371+
]),
371372
)
372373

373374
rabbitmq_integration_suite(
@@ -426,7 +427,7 @@ rabbitmq_integration_suite(
426427
PACKAGE,
427428
name = "dynamic_ha_SUITE",
428429
size = "large",
429-
groups = {
430+
matrix = ct_group_case_matrix({
430431
"cluster_size_5": [
431432
"change_cluster",
432433
],
@@ -453,7 +454,7 @@ rabbitmq_integration_suite(
453454
"rebalance_nodes",
454455
"rebalance_multiple_blocked",
455456
],
456-
},
457+
}),
457458
deps = [
458459
"@proper//:bazel_erlang_lib",
459460
],
@@ -478,18 +479,16 @@ rabbitmq_integration_suite(
478479
additional_beam = [
479480
":sync_detection_SUITE_beam_files",
480481
],
481-
groups = {
482+
flaky = True,
483+
matrix = ct_group_case_matrix({
482484
"non_parallel_tests": [
483-
{
484-
"case": "eager_sync",
485-
"flaky": True,
486-
},
485+
"eager_sync",
487486
"eager_sync_cancel",
488487
"eager_sync_auto",
489488
"eager_sync_auto_on_policy_change",
490489
"eager_sync_requeue",
491490
],
492-
},
491+
}),
493492
tags = ["classic-queue"],
494493
)
495494

@@ -627,19 +626,14 @@ rabbitmq_integration_suite(
627626
PACKAGE,
628627
name = "peer_discovery_classic_config_SUITE",
629628
size = "medium",
630-
groups = {
629+
flaky = True,
630+
matrix = ct_group_case_matrix({
631631
"non_parallel": [
632-
{
633-
"case": "successful_discovery",
634-
"flaky": True,
635-
},
636-
{
637-
"case": "successful_discovery_with_a_subset_of_nodes_coming_online",
638-
"flaky": True,
639-
},
632+
"successful_discovery",
633+
"successful_discovery_with_a_subset_of_nodes_coming_online",
640634
"no_nodes_configured",
641635
],
642-
},
636+
}),
643637
)
644638

645639
rabbitmq_integration_suite(
@@ -754,13 +748,13 @@ rabbitmq_integration_suite(
754748
additional_beam = [
755749
":quorum_queue_utils",
756750
],
757-
groups = [
751+
matrix = ct_group_matrix([
758752
"classic_queue",
759753
"mirrored_queue",
760754
"quorum_queue",
761755
"quorum_queue_in_memory_limit",
762756
"quorum_queue_in_memory_bytes",
763-
],
757+
]),
764758
)
765759

766760
rabbitmq_integration_suite(
@@ -909,10 +903,10 @@ rabbitmq_integration_suite(
909903
":rabbit_ha_test_consumer",
910904
":rabbit_ha_test_producer",
911905
],
912-
groups = [
906+
matrix = ct_group_matrix([
913907
"cluster_size_2",
914908
"cluster_size_3",
915-
],
909+
]),
916910
)
917911

918912
rabbitmq_integration_suite(
@@ -922,10 +916,10 @@ rabbitmq_integration_suite(
922916
additional_beam = [
923917
":quorum_queue_utils",
924918
],
925-
groups = [
919+
matrix = ct_group_matrix([
926920
"classic_queue",
927921
"quorum_queue",
928-
],
922+
]),
929923
)
930924

931925
rabbitmq_integration_suite(
@@ -1157,10 +1151,10 @@ rabbitmq_integration_suite(
11571151
PACKAGE,
11581152
name = "vhost_SUITE",
11591153
size = "medium",
1160-
groups = [
1154+
matrix = ct_group_matrix([
11611155
"cluster_size_1_network",
11621156
"cluster_size_2_network",
11631157
"cluster_size_1_direct",
11641158
"cluster_size_2_direct",
1165-
],
1159+
]),
11661160
)

deps/rabbitmq_amqp1_0/BUILD.bazel

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@bazel-erlang//:ct.bzl", "ct_group_matrix")
12
load("@bazel-erlang//:xref.bzl", "xref")
23
load("@bazel-erlang//:dialyze.bzl", "dialyze")
34
load(
@@ -87,10 +88,10 @@ rabbitmq_integration_suite(
8788
PACKAGE,
8889
name = "system_SUITE",
8990
flaky = True,
90-
groups = [
91+
matrix = ct_group_matrix([
9192
"dotnet",
9293
"java",
93-
],
94+
]),
9495
tags = [
9596
"dotnet",
9697
],

deps/rabbitmq_federation/BUILD.bazel

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@bazel-erlang//:bazel_erlang_lib.bzl", "erlc")
2+
load("@bazel-erlang//:ct.bzl", "ct_group_matrix")
23
load("@bazel-erlang//:xref.bzl", "xref")
34
load("@bazel-erlang//:dialyze.bzl", "dialyze")
45
load(
@@ -80,12 +81,12 @@ rabbitmq_integration_suite(
8081
additional_beam = [
8182
":rabbit_federation_test_util",
8283
],
83-
groups = [
84+
matrix = ct_group_matrix([
8485
"without_automatic_setup",
8586
"channel_use_mode_single",
8687
"without_disambiguate",
8788
"with_disambiguate",
88-
],
89+
]),
8990
)
9091

9192
rabbitmq_integration_suite(

deps/rabbitmq_stomp/BUILD.bazel

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
load("@bazel-erlang//:bazel_erlang_lib.bzl", "erlc")
2+
load("@bazel-erlang//:ct.bzl", "ct_group_matrix")
23
load("@bazel-erlang//:xref.bzl", "xref")
34
load("@bazel-erlang//:dialyze.bzl", "dialyze")
45
load(
@@ -134,11 +135,11 @@ rabbitmq_integration_suite(
134135
rabbitmq_integration_suite(
135136
PACKAGE,
136137
name = "python_SUITE",
137-
groups = [
138+
matrix = ct_group_matrix([
138139
"tls",
139140
"implicit_connect",
140141
"main",
141-
],
142+
]),
142143
)
143144

144145
rabbitmq_integration_suite(

deps/rabbitmq_trust_store/BUILD.bazel

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
load("@bazel-erlang//:ct.bzl", "ct_group_matrix")
12
load("@bazel-erlang//:xref.bzl", "xref")
23
load("@bazel-erlang//:dialyze.bzl", "dialyze", "plt")
34
load("//:rabbitmq_home.bzl", "rabbitmq_home")
@@ -88,10 +89,10 @@ rabbitmq_integration_suite(
8889
PACKAGE,
8990
name = "system_SUITE",
9091
flaky = True,
91-
groups = [
92+
matrix = ct_group_matrix([
9293
"file_provider_tests",
9394
"http_provider_tests",
94-
],
95+
]),
9596
runtime_deps = [
9697
"@ct_helper//:bazel_erlang_lib",
9798
"@trust_store_http//:bazel_erlang_lib",

0 commit comments

Comments
 (0)