Skip to content

Commit

Permalink
Merge pull request #5695 from rabbitmq/mergify/bp/v3.11.x/pr-5693
Browse files Browse the repository at this point in the history
Upgrade MQTT Erlang client (backport #5693)
  • Loading branch information
michaelklishin authored Aug 31, 2022
2 parents e92305c + e6d23fa commit 8ee6de7
Show file tree
Hide file tree
Showing 9 changed files with 299 additions and 305 deletions.
18 changes: 15 additions & 3 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,20 @@ erlang_app(
)

erlang_package.git_package(
repository = "rabbitmq/emqttc",
branch = "remove-logging",
name = "emqtt",
repository = "ansd/emqtt",
commit = "f6d7ddd391890f4db5f77c775e83cf0ffe3d2d76",
build_file_content = """load("@rules_erlang//:erlang_app.bzl", "erlang_app")
erlang_app(
app_name = "emqtt",
erlc_opts = [
"+deterministic",
"+debug_info",
"-DBUILD_WITHOUT_QUIC",
],
)
""",
)

erlang_package.hex_package(
Expand Down Expand Up @@ -277,7 +289,7 @@ use_repo(
"ct_helper",
"cuttlefish",
"eetcd",
"emqttc",
"emqtt",
"gen_batch_server",
"gun",
"inet_tcp_proxy_dist",
Expand Down
10 changes: 5 additions & 5 deletions deps/rabbitmq_mqtt/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ suites = [
],
flaky = True,
runtime_deps = [
"@emqttc//:erlang_app",
"@emqtt//:erlang_app",
],
),
rabbitmq_integration_suite(
Expand All @@ -114,14 +114,14 @@ suites = [
size = "large",
flaky = True,
runtime_deps = [
"@emqttc//:erlang_app",
"@emqtt//:erlang_app",
],
),
rabbitmq_integration_suite(
PACKAGE,
name = "command_SUITE",
runtime_deps = [
"@emqttc//:erlang_app",
"@emqtt//:erlang_app",
],
),
rabbitmq_integration_suite(
Expand Down Expand Up @@ -153,14 +153,14 @@ suites = [
PACKAGE,
name = "reader_SUITE",
runtime_deps = [
"@emqttc//:erlang_app",
"@emqtt//:erlang_app",
],
),
rabbitmq_integration_suite(
PACKAGE,
name = "retainer_SUITE",
runtime_deps = [
"@emqttc//:erlang_app",
"@emqtt//:erlang_app",
],
),
rabbitmq_suite(
Expand Down
8 changes: 6 additions & 2 deletions deps/rabbitmq_mqtt/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ define PROJECT_APP_EXTRA_KEYS
{broker_version_requirements, []}
endef

# We do not need QUIC as dependency of emqtt.
BUILD_WITHOUT_QUIC=1
export BUILD_WITHOUT_QUIC

DEPS = ranch rabbit_common rabbit amqp_client ra
TEST_DEPS = emqttc ct_helper rabbitmq_ct_helpers rabbitmq_ct_client_helpers
TEST_DEPS = emqtt ct_helper rabbitmq_ct_helpers rabbitmq_ct_client_helpers

dep_ct_helper = git https://github.com/extend/ct_helper.git master
dep_emqttc = git https://github.com/rabbitmq/emqttc.git remove-logging
dep_emqtt = git https://github.com/ansd/emqtt.git f6d7ddd391890f4db5f77c775e83cf0ffe3d2d76

DEP_EARLY_PLUGINS = rabbit_common/mk/rabbitmq-early-plugin.mk
DEP_PLUGINS = rabbit_common/mk/rabbitmq-plugin.mk
Expand Down
Loading

0 comments on commit 8ee6de7

Please sign in to comment.