Skip to content

Commit 966762d

Browse files
committed
make & make CI: Small cleanups
1 parent 8ac7421 commit 966762d

File tree

7 files changed

+21
-55
lines changed

7 files changed

+21
-55
lines changed

.github/workflows/test-make-tests.yaml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,3 @@ jobs:
112112
metadata_store: ${{ inputs.metadata_store }}
113113
make_target: tests
114114
plugin: ${{ matrix.plugin }}
115-
116-
# @todo Test rabbitmq_cli
117-
# @todo Why this step?
118-
# - name: CLI COMPILE WARNINGS AS ERRORS
119-
# if: inputs.plugin == 'rabbitmq_cli'
120-
# run: |
121-
# bazel build //deps/rabbitmq_cli:compile_warnings_as_errors \
122-
# --verbose_failures

.github/workflows/test-make.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@ on:
33
push:
44
branches:
55
- main
6-
- bump-otp-for-oci
7-
- bump-rbe-*
86
paths:
97
- deps/**
108
- scripts/**

.github/workflows/test-mixed-versions.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Test Mixed Version Clusters
22
on:
33
push:
44
branches:
5-
# - main
5+
- main
66
- v4.0.x
77
- v3.13.x
88
- bump-otp-*
@@ -20,7 +20,7 @@ on:
2020
- BUILD.*
2121
- '*.bzl'
2222
- '*.bazel'
23-
# - .github/workflows/test-mixed-versions.yaml
23+
- .github/workflows/test-mixed-versions.yaml
2424
pull_request:
2525
concurrency:
2626
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}

.github/workflows/test.yaml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -143,17 +143,17 @@ jobs:
143143
plugin: trust_store_http
144144
secrets: inherit
145145
test-rabbit-make:
146-
# needs:
147-
# - check-workflow
148-
# - test-amqp10_client
149-
# - test-amqp10_common
150-
# - test-amqp_client
151-
# - test-oauth2_client
152-
# - test-rabbit_common
153-
# - test-rabbitmq_ct_client_helpers
154-
# - test-rabbitmq_ct_helpers
155-
# - test-rabbitmq_stream_common
156-
# - test-trust_store_http
146+
needs:
147+
- check-workflow
148+
- test-amqp10_client
149+
- test-amqp10_common
150+
- test-amqp_client
151+
- test-oauth2_client
152+
- test-rabbit_common
153+
- test-rabbitmq_ct_client_helpers
154+
- test-rabbitmq_ct_helpers
155+
- test-rabbitmq_stream_common
156+
- test-trust_store_http
157157
uses: ./.github/workflows/test-plugin-make.yaml
158158
with:
159159
repo_cache_key: ${{ needs.check-workflow.outputs.repo_cache_key }}

deps/rabbit/Makefile

Lines changed: 6 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,11 @@ ct-slow:
217217

218218
CT_OPTS += -ct_hooks rabbit_ct_hook []
219219

220+
# Parallel CT.
221+
#
222+
# @todo We must ensure that the CT_OPTS also apply to ct-master
223+
# @todo We should probably refactor ct_master.erl to have node init in a separate .erl
224+
220225
define ct_master.erl
221226
StartOpts = #{
222227
host => "localhost",
@@ -243,20 +248,6 @@ define ct_master.erl
243248
halt()
244249
endef
245250

246-
# @todo We must ensure that the CT_OPTS also apply to ct-master
247-
# @todo We should probably refactor ct_master.erl to have node init in a separate .erl
248-
# @todo We would benefit from having rabbit nodes started with peer (no leftovers)
249-
# @todo We need ct-master to be expanded to all components and not just rabbit
250-
# @todo Generate ct.test.spec from Makefile variables instead of hardcoded for ct-master
251-
252-
253-
#PARALLEL_CT_NUM_NODES ?= 4
254-
#PARALLEL_CT_NODE_NAME = rabbit_shard$1@localhost
255-
#PARALLEL_CT_NODE_INIT_FUN = fun(Pid, Num) -> peer:call(Pid, net_kernel, set_net_ticktime, [5]), peer:call(Pid, persistent_term, put, [rabbit_ct_tcp_port_base, 21000 + 2000 * Num]) end
256-
257-
#PARALLEL_CT_NUM_SETS = 8
258-
259-
260251
PARALLEL_CT_SET_1_A = amqp_client unit_cluster_formation_locking_mocks unit_cluster_formation_sort_nodes unit_collections unit_config_value_encryption unit_connection_tracking
261252
PARALLEL_CT_SET_1_B = amqp_address amqp_auth amqp_credit_api_v2 amqp_system signal_handling single_active_consumer unit_access_control_authn_authz_context_propagation unit_access_control_credential_validation unit_amqp091_content_framing unit_amqp091_server_properties unit_app_management
262253
PARALLEL_CT_SET_1_C = amqp_proxy_protocol amqpl_consumer_ack amqpl_direct_reply_to backing_queue bindings rabbit_db_maintenance rabbit_db_msup rabbit_db_policy rabbit_db_queue rabbit_db_topic_exchange rabbit_direct_reply_to_prop cluster_limit cluster_minority term_to_binary_compat_prop topic_permission transactions unicode unit_access_control
@@ -289,8 +280,6 @@ ifneq ($(filter-out $(SEQUENTIAL_CT_SUITES) $(PARALLEL_CT_SUITES),$(CT_SUITES)),
289280
$(error Some test suites in CT_SUITES but not configured for CI.)
290281
endif
291282

292-
293-
294283
define tpl_parallel_ct_test_spec
295284
{logdir, "$(CT_LOGS_DIR)"}.
296285
{logdir, master, "$(CT_LOGS_DIR)"}.
@@ -323,13 +312,7 @@ endef
323312

324313
$(foreach set,1 2 3 4,$(eval $(call parallel_ct_set_target,$(set))))
325314

326-
327-
328-
329-
330-
331-
332-
315+
# @todo Generate ct.test.spec from Makefile variables instead of hardcoded for ct-master
333316

334317
parallel-ct: test-build
335318
$(verbose) mkdir -p $(CT_LOGS_DIR)

deps/rabbitmq_mqtt/Makefile

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ include ../../erlang.mk
6060
clean::
6161
if test -d test/java_SUITE_data; then cd test/java_SUITE_data && $(MAKE) clean; fi
6262

63-
64-
65-
66-
63+
# Parallel CT.
64+
#
6765
# @todo Move most of this in common files.
6866

6967
define ct_master.erl
@@ -104,8 +102,6 @@ ifneq ($(filter-out $(PARALLEL_CT_SUITES),$(CT_SUITES)),)
104102
$(error Some test suites in CT_SUITES but not configured for CI.)
105103
endif
106104

107-
108-
109105
define tpl_parallel_ct_test_spec
110106
{logdir, "$(CT_LOGS_DIR)"}.
111107
{logdir, master, "$(CT_LOGS_DIR)"}.

rabbitmq-components.mk

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ dep_seshat = git https://github.com/rabbitmq/seshat v0.6.1
6161
dep_stdout_formatter = hex 0.2.4
6262
dep_sysmon_handler = hex 1.3.0
6363

64-
# @todo Move up in the list later.
65-
dep_osiris = git https://github.com/rabbitmq/osiris v1.8.3
66-
6764
# RabbitMQ applications found in the monorepo.
6865
#
6966
# Note that rabbitmq_server_release is not a real application

0 commit comments

Comments
 (0)