Skip to content

Commit d8c4c0a

Browse files
committed
Adjustments for the way @bazel-erlang shards tests
1 parent 39c1957 commit d8c4c0a

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(
@@ -89,13 +89,13 @@ rabbitmq_integration_suite(
8989
erlc_opts = [
9090
"-I deps/amqp10_client",
9191
],
92-
groups = [
92+
matrix = ct_group_matrix([
9393
"rabbitmq",
9494
"rabbitmq_strict",
9595
"activemq",
9696
"activemq_no_anon",
9797
"mock",
98-
],
98+
]),
9999
test_env = {
100100
"ACTIVEMQ": "$TEST_SRCDIR/$TEST_WORKSPACE/external/activemq/bin/activemq",
101101
},

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")
@@ -357,13 +358,13 @@ rabbitmq_integration_suite(
357358
PACKAGE,
358359
name = "clustering_management_SUITE",
359360
size = "large",
360-
groups = [
361+
flaky = True,
362+
matrix = ct_group_matrix([
361363
"unclustered_2_nodes",
362364
"unclustered_3_nodes",
363365
"clustered_2_nodes",
364366
"clustered_4_nodes",
365-
],
366-
flaky = True,
367+
]),
367368
)
368369

369370
rabbitmq_integration_suite(
@@ -422,7 +423,7 @@ rabbitmq_integration_suite(
422423
PACKAGE,
423424
name = "dynamic_ha_SUITE",
424425
size = "large",
425-
groups = {
426+
matrix = ct_group_case_matrix({
426427
"cluster_size_5": [
427428
"change_cluster",
428429
],
@@ -449,7 +450,7 @@ rabbitmq_integration_suite(
449450
"rebalance_nodes",
450451
"rebalance_multiple_blocked",
451452
],
452-
},
453+
}),
453454
deps = [
454455
"@proper//:bazel_erlang_lib",
455456
],
@@ -474,18 +475,16 @@ rabbitmq_integration_suite(
474475
additional_beam = [
475476
":sync_detection_SUITE_beam_files",
476477
],
477-
groups = {
478+
flaky = True,
479+
matrix = ct_group_case_matrix({
478480
"non_parallel_tests": [
479-
{
480-
"case": "eager_sync",
481-
"flaky": True,
482-
},
481+
"eager_sync",
483482
"eager_sync_cancel",
484483
"eager_sync_auto",
485484
"eager_sync_auto_on_policy_change",
486485
"eager_sync_requeue",
487486
],
488-
},
487+
}),
489488
tags = ["classic-queue"],
490489
)
491490

@@ -631,19 +630,14 @@ rabbitmq_integration_suite(
631630
PACKAGE,
632631
name = "peer_discovery_classic_config_SUITE",
633632
size = "medium",
634-
groups = {
633+
flaky = True,
634+
matrix = ct_group_case_matrix({
635635
"non_parallel": [
636-
{
637-
"case": "successful_discovery",
638-
"flaky": True,
639-
},
640-
{
641-
"case": "successful_discovery_with_a_subset_of_nodes_coming_online",
642-
"flaky": True,
643-
},
636+
"successful_discovery",
637+
"successful_discovery_with_a_subset_of_nodes_coming_online",
644638
"no_nodes_configured",
645639
],
646-
},
640+
}),
647641
)
648642

649643
rabbitmq_integration_suite(
@@ -758,14 +752,14 @@ rabbitmq_integration_suite(
758752
additional_beam = [
759753
":quorum_queue_utils",
760754
],
761-
groups = [
755+
matrix = ct_group_matrix([
762756
"classic_queue",
763757
"mirrored_queue",
764758
"quorum_queue",
765759
"quorum_queue_in_memory_limit",
766760
"quorum_queue_in_memory_bytes",
767761
"stream_queue",
768-
],
762+
]),
769763
)
770764

771765
rabbitmq_integration_suite(
@@ -968,10 +962,10 @@ rabbitmq_integration_suite(
968962
":rabbit_ha_test_consumer",
969963
":rabbit_ha_test_producer",
970964
],
971-
groups = [
965+
matrix = ct_group_matrix([
972966
"cluster_size_2",
973967
"cluster_size_3",
974-
],
968+
]),
975969
)
976970

977971
rabbitmq_integration_suite(
@@ -981,10 +975,10 @@ rabbitmq_integration_suite(
981975
additional_beam = [
982976
":quorum_queue_utils",
983977
],
984-
groups = [
978+
matrix = ct_group_matrix([
985979
"classic_queue",
986980
"quorum_queue",
987-
],
981+
]),
988982
)
989983

990984
rabbitmq_integration_suite(
@@ -1208,10 +1202,10 @@ rabbitmq_integration_suite(
12081202
PACKAGE,
12091203
name = "vhost_SUITE",
12101204
size = "medium",
1211-
groups = [
1205+
matrix = ct_group_matrix([
12121206
"cluster_size_1_network",
12131207
"cluster_size_2_network",
12141208
"cluster_size_1_direct",
12151209
"cluster_size_2_direct",
1216-
],
1210+
]),
12171211
)

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(
@@ -86,10 +87,10 @@ rabbitmq_integration_suite(
8687
PACKAGE,
8788
name = "system_SUITE",
8889
flaky = True,
89-
groups = [
90+
matrix = ct_group_matrix([
9091
"dotnet",
9192
"java",
92-
],
93+
]),
9394
tags = [
9495
"dotnet",
9596
],

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(
@@ -78,12 +79,12 @@ rabbitmq_integration_suite(
7879
additional_beam = [
7980
":rabbit_federation_test_util",
8081
],
81-
groups = [
82+
matrix = ct_group_matrix([
8283
"without_automatic_setup",
8384
"channel_use_mode_single",
8485
"without_disambiguate",
8586
"with_disambiguate",
86-
],
87+
]),
8788
)
8889

8990
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(
@@ -132,11 +133,11 @@ rabbitmq_integration_suite(
132133
rabbitmq_integration_suite(
133134
PACKAGE,
134135
name = "python_SUITE",
135-
groups = [
136+
matrix = ct_group_matrix([
136137
"tls",
137138
"implicit_connect",
138139
"main",
139-
],
140+
]),
140141
)
141142

142143
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")
@@ -87,10 +88,10 @@ rabbitmq_integration_suite(
8788
PACKAGE,
8889
name = "system_SUITE",
8990
flaky = True,
90-
groups = [
91+
matrix = ct_group_matrix([
9192
"file_provider_tests",
9293
"http_provider_tests",
93-
],
94+
]),
9495
runtime_deps = [
9596
"@ct_helper//:bazel_erlang_lib",
9697
"@trust_store_http//:bazel_erlang_lib",

0 commit comments

Comments
 (0)