Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nanomq: 0.20.8 → 0.21.8 #284345

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
Expand Up @@ -25,13 +25,13 @@ let
# bit absurd - repo doesn't even have a license.
idl-serial = stdenv.mkDerivation {
pname = "idl-serial";
version = "unstable-2023-03-29";
version = "unstable-2023-09-28";

src = fetchFromGitHub {
owner = "nanomq";
repo = "idl-serial";
rev = "908c364dab4c0dcdd77b8de698d29c8a0b6d3830";
hash = "sha256-3DS9DuzHN7BevfgiekUmKKH9ej9wKTrt6Fuh427NC4I=";
rev = "cf63cb2c4fbe2ecfba569979b89e20e1190b5ed4";
hash = "sha256-HM5TSMfEr4uv5BuNCQjyZganSQ/ZqT3xZQp0KLmjIEc=";
};

nativeBuildInputs = [ cmake ninja flex bison ];
Expand All @@ -42,13 +42,13 @@ let

in stdenv.mkDerivation (finalAttrs: {
pname = "nanomq";
version = "0.20.8";
version = "0.21.8";

src = fetchFromGitHub {
owner = "emqx";
repo = "nanomq";
rev = finalAttrs.version;
hash = "sha256-VCKlXQ7qvBab+wRDnJ6EUA5qaQ36gTFfuerN1GU6sW0=";
hash = "sha256-O9UrUkD61OicY1L4sL2PX/9aOpFkJpjm2SWoP2cKXyA=";
fetchSubmodules = true;
};

Expand All @@ -62,16 +62,16 @@ in stdenv.mkDerivation (finalAttrs: {
buildInputs = [ cyclonedds libmysqlclient mariadb mbedtls sqlite zeromq ];

cmakeFlags = [
"-DBUILD_BENCH=ON"
"-DBUILD_DDS_PROXY=ON"
"-DBUILD_NANOMQ_CLI=ON"
"-DBUILD_ZMQ_GATEWAY=ON"
"-DENABLE_RULE_ENGINE=ON"
"-DNNG_ENABLE_SQLITE=ON"
"-DNNG_ENABLE_TLS=ON"
(lib.cmakeBool "BUILD_BENCH" true)
(lib.cmakeBool "BUILD_DDS_PROXY" true)
(lib.cmakeBool "BUILD_NANOMQ_CLI" true)
(lib.cmakeBool "BUILD_ZMQ_GATEWAY" true)
(lib.cmakeBool "ENABLE_RULE_ENGINE" true)
(lib.cmakeBool "NNG_ENABLE_SQLITE" true)
(lib.cmakeBool "NNG_ENABLE_TLS" true)
];

env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-return-type -Wno-implicit-function-declaration -Wno-error=implicit-int";
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-error=int-conversion";

# disabled by default - not 100% reliable and making nanomq depend on
# mosquitto would annoy people
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nanaomq is not executing tests and they are failing for ofborg.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you mean ofborg tries to execute withInstallChecks?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure exactly what ofborg is doing. You can take a look at logs by clicking details below.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/p51fx920kwbhz1wfd82y3d716j16q186-nanomq-0.21.8
shrinking /nix/store/p51fx920kwbhz1wfd82y3d716j16q186-nanomq-0.21.8/bin/nanomq_cli
shrinking /nix/store/p51fx920kwbhz1wfd82y3d716j16q186-nanomq-0.21.8/bin/nanomq
shrinking /nix/store/p51fx920kwbhz1wfd82y3d716j16q186-nanomq-0.21.8/bin/nngcat
checking for references to /build/ in /nix/store/p51fx920kwbhz1wfd82y3d716j16q186-nanomq-0.21.8...
patching script interpreter paths in /nix/store/p51fx920kwbhz1wfd82y3d716j16q186-nanomq-0.21.8
stripping (with command strip and flags -S -p) in  /nix/store/p51fx920kwbhz1wfd82y3d716j16q186-nanomq-0.21.8/lib /nix/store/p51fx920kwbhz1wfd82y3d716j16q186-nanomq-0.21.8/bin
Running phase: installCheckPhase
mqtt v311 test start
V4/V5 test passed!
clean session test passed!
Retain test passed!
mqtt v311 test end
mqtt v5 test start
User property test passed!
Shared subscription test passed!
Sub client did not receive message * 10
mosquitto_sub -h 127.0.0.1 -p 1883 -t 'topic'
mosquitto_pub -h 127.0.0.1 -p 1883 -t topic -V 5 -m message -D Publish topic-alias 10 -d --repeat 10
Topic alias test failed!
mqtt v5 test failed
2024-05-01 09:20:13 [4593] DEBUG /build/source/nanomq/pub_handler.c:1645: payload: [message], len = 7
2024-05-01 09:20:13 [4593] DEBUG /build/source/nng/src/supplemental/nanolib/mqtt_db.c:734: Searching client: topic
2024-05-01 09:20:13 [4593] DEBUG /build/source/nng/src/supplemental/nanolib/mqtt_db.c:737: Searching client: topic
2024-05-01 09:20:13 [4598] DEBUG /build/source/nanomq/pub_handler.c:1190: pipe_info size: [2]
2024-05-01 09:20:13 [4602] DEBUG /build/source/nanomq/pub_handler.c:1610: property len: 3
2024-05-01 09:20:13 [4602] DEBUG /build/source/nanomq/pub_handler.c:1633: used pos: [6]
2024-05-01 09:20:13 [4602] DEBUG /build/source/nanomq/pub_handler.c:1645: payload: [message], len = 7
2024-05-01 09:20:13 [4602] DEBUG /build/source/nng/src/supplemental/nanolib/mqtt_db.c:734: Searching client: topic
2024-05-01 09:20:13 [4602] DEBUG /build/source/nng/src/supplemental/nanolib/mqtt_db.c:737: Searching client: topic
2024-05-01 09:20:13 [4602] DEBUG /build/source/nanomq/pub_handler.c:1190: pipe_info size: [2]
2024-05-01 09:20:13 [4602] DEBUG /build/source/nanomq/apps/broker.c:548: WAIT ^^^^ ctx83 ^^^^
2024-05-01 09:20:13 [4602] DEBUG /build/source/nanomq/pub_handler.c:1351: start encode message
2024-05-01 09:20:13 [4602] DEBUG /build/source/nanomq/pub_handler.c:1388: after topic and id len in msg already [7]
2024-05-01 09:20:13 [4602] DEBUG /build/source/nanomq/pub_handler.c:1448: after payload len in msg already [18]
2024-05-01 09:20:13 [4602] DEBUG /build/source/nanomq/pub_handler.c:1458: header len [2] remain len [18]
2024-05-01 09:20:13 [4602] DEBUG /build/source/nanomq/pub_handler.c:1510: end encode message
2024-05-01 09:20:13 [4598] DEBUG /build/source/nanomq/apps/broker.c:548: WAIT ^^^^ ctx78 ^^^^
2024-05-01 09:20:13 [4598] DEBUG /build/source/nanomq/pub_handler.c:1351: start encode message
2024-05-01 09:20:13 [4600] DEBUG /build/source/nanomq/pub_handler.c:1645: payload: [message], len = 7
2024-05-01 09:20:13 [4600] DEBUG /build/source/nng/src/supplemental/nanolib/mqtt_db.c:734: Searching client: topic
2024-05-01 09:20:13 [4600] DEBUG /build/source/nng/src/supplemental/nanolib/mqtt_db.c:737: Searching client: topic
2024-05-01 09:20:13 [4598] DEBUG /build/source/nanomq/pub_handler.c:1388: after topic and id len in msg already [7]
2024-05-01 09:20:13 [4598] DEBUG /build/source/nanomq/pub_handler.c:1448: after payload len in msg already [18]
2024-05-01 09:20:13 [4598] DEBUG /build/source/nanomq/pub_handler.c:1458: header len [2] remain len [18]
2024-05-01 09:20:13 [4598] DEBUG /build/source/nanomq/pub_handler.c:1510: end encode message
2024-05-01 09:20:13 [4591] DEBUG /build/source/nanomq/pub_handler.c:1510: end encode message
2024-05-01 09:20:13 [4600] DEBUG /build/source/nanomq/pub_handler.c:1190: pipe_info size: [2]
2024-05-01 09:20:13 [4591] DEBUG /build/source/nng/src/sp/protocol/mqtt/nmq_mqtt.c:452: pipe 539152686 occupied! resending in cb!
2024-05-01 09:20:13 [4606] DEBUG /build/source/nanomq/apps/broker.c:548: WAIT ^^^^ ctx80 ^^^^
2024-05-01 09:20:13 [4606] DEBUG /build/source/nanomq/pub_handler.c:1351: start encode message
2024-05-01 09:20:13 [4606] DEBUG /build/source/nanomq/pub_handler.c:1388: after topic and id len in msg already [7]
2024-05-01 09:20:13 [4606] DEBUG /build/source/nanomq/pub_handler.c:1448: after payload len in msg already [18]
2024-05-01 09:20:13 [4593] DEBUG /build/source/nanomq/pub_handler.c:1190: pipe_info size: [2]
2024-05-01 09:20:13 [4606] DEBUG /build/source/nanomq/pub_handler.c:1458: header len [2] remain len [18]
2024-05-01 09:20:13 [4606] DEBUG /build/source/nanomq/pub_handler.c:1510: end encode message
2024-05-01 09:20:13 [4601] DEBUG /build/source/nanomq/apps/broker.c:548: WAIT ^^^^ ctx84 ^^^^
2024-05-01 09:20:13 [4601] DEBUG /build/source/nanomq/pub_handler.c:1351: start encode message
2024-05-01 09:20:13 [4601] DEBUG /build/source/nanomq/pub_handler.c:1388: after topic and id len in msg already [7]
2024-05-01 09:20:13 [4601] DEBUG /build/source/nanomq/pub_handler.c:1448: after payload len in msg already [18]
2024-05-01 09:20:13 [4601] DEBUG /build/source/nanomq/pub_handler.c:1458: header len [2] remain len [18]
2024-05-01 09:20:13 [4601] DEBUG /build/source/nanomq/pub_handler.c:1510: end encode message
2024-05-01 09:20:13 [4602] DEBUG /build/source/nng/src/sp/protocol/mqtt/nmq_mqtt.c:430: Drop msg due to qos == 0
2024-05-01 09:20:13 [4602] DEBUG /build/source/nanomq/pub_handler.c:1286: free topic
2024-05-01 09:20:13 [4602] DEBUG /build/source/nanomq/pub_handler.c:1293: free properties
2024-05-01 09:20:13 [4602] DEBUG /build/source/nanomq/pub_handler.c:1302: free payload
2024-05-01 09:20:13 [4602] DEBUG /build/source/nanomq/pub_handler.c:1308: free pub_packet
2024-05-01 09:20:13 [4602] DEBUG /build/source/nanomq/pub_handler.c:88: pub_handler: init pipe_info
2024-05-01 09:20:13 [4598] DEBUG /build/source/nng/src/sp/protocol/mqtt/nmq_mqtt.c:430: Drop msg due to qos == 0
2024-05-01 09:20:13 [4598] DEBUG /build/source/nanomq/pub_handler.c:1286: free topic
2024-05-01 09:20:13 [4598] DEBUG /build/source/nanomq/pub_handler.c:1293: free properties
2024-05-01 09:20:13 [4598] DEBUG /build/source/nanomq/pub_handler.c:1302: free payload
2024-05-01 09:20:13 [4598] DEBUG /build/source/nanomq/pub_handler.c:1308: free pub_packet
2024-05-01 09:20:13 [4598] DEBUG /build/source/nanomq/pub_handler.c:88: pub_handler: init pipe_info
2024-05-01 09:20:13 [4591] DEBUG /build/source/nng/src/sp/protocol/mqtt/nmq_mqtt.c:430: Drop msg due to qos == 0
2024-05-01 09:20:13 [4591] DEBUG /build/source/nanomq/pub_handler.c:1286: free topic
2024-05-01 09:20:13 [4591] DEBUG /build/source/nanomq/pub_handler.c:1293: free properties
2024-05-01 09:20:13 [4591] DEBUG /build/source/nanomq/pub_handler.c:1302: free payload
2024-05-01 09:20:13 [4591] DEBUG /build/source/nanomq/pub_handler.c:1308: free pub_packet
2024-05-01 09:20:13 [4591] DEBUG /build/source/nanomq/pub_handler.c:88: pub_handler: init pipe_info
2024-05-01 09:20:13 [4601] DEBUG /build/source/nng/src/sp/protocol/mqtt/nmq_mqtt.c:452: pipe 539152686 occupied! resending in cb!
2024-05-01 09:20:13 [4606] DEBUG /build/source/nng/src/sp/protocol/mqtt/nmq_mqtt.c:430: Drop msg due to qos == 0
2024-05-01 09:20:13 [4606] DEBUG /build/source/nanomq/pub_handler.c:1286: free topic
2024-05-01 09:20:13 [4606] DEBUG /build/source/nanomq/pub_handler.c:1293: free properties
2024-05-01 09:20:13 [4606] DEBUG /build/source/nanomq/pub_handler.c:1302: free payload
2024-05-01 09:20:13 [4606] DEBUG /build/source/nanomq/pub_handler.c:1308: free pub_packet
2024-05-01 09:20:13 [4606] DEBUG /build/source/nanomq/pub_handler.c:88: pub_handler: init pipe_info
2024-05-01 09:20:13 [4601] DEBUG /build/source/nng/src/sp/protocol/mqtt/nmq_mqtt.c:430: Drop msg due to qos == 0
2024-05-01 09:20:13 [4601] DEBUG /build/source/nanomq/pub_handler.c:1286: free topic
2024-05-01 09:20:13 [4601] DEBUG /build/source/nanomq/pub_handler.c:1293: free properties
2024-05-01 09:20:13 [4601] DEBUG /build/source/nanomq/pub_handler.c:1302: free payload
2024-05-01 09:20:13 [4601] DEBUG /build/source/nanomq/pub_handler.c:1308: free pub_packet
2024-05-01 09:20:13 [4601] DEBUG /build/source/nanomq/pub_handler.c:88: pub_handler: init pipe_info
2024-05-01 09:20:13 [4604] DEBUG /build/source/nng/src/sp/protocol/mqtt/nmq_mqtt.c:235: check pipe keepalive interval 60 backoff -90000.000000, ka 0
2024-05-01 09:20:14 [4595] DEBUG /build/source/nng/src/sp/protocol/mqtt/nmq_mqtt.c:235: check pipe keepalive interval 60 backoff -89000.000000, ka 1
2024-05-01 09:20:15 [4596] DEBUG /build/source/nng/src/sp/protocol/mqtt/nmq_mqtt.c:235: check pipe keepalive interval 60 backoff -88000.000000, ka 2
2024-05-01 09:20:16 [4600] DEBUG /build/source/nng/src/sp/protocol/mqtt/nmq_mqtt.c:235: check pipe keepalive interval 60 backoff -87000.000000, ka 3
2024-05-01 09:20:17 [4592] DEBUG /build/source/nng/src/sp/protocol/mqtt/nmq_mqtt.c:235: check pipe keepalive interval 60 backoff -86000.000000, ka 4
2024-05-01 09:20:18 [4585] ERROR /build/source/nanomq/apps/broker.c:104: signal signumber: 15 received!
Traceback (most recent call last):
  File "/build/source/.github/scripts/test.py", line 55, in <module>
    raise AssertionError
AssertionError
error: builder for '/nix/store/ql2biqwv56k0cc78il7zn097axdni33f-nanomq-0.21.8.drv' failed with exit code 1;

Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -23467,8 +23467,6 @@ with pkgs;

mosquitto = callPackage ../servers/mqtt/mosquitto { };

nanomq = callPackage ../servers/mqtt/nanomq { };

mps = callPackage ../development/libraries/mps { };

libmpeg2 = callPackage ../development/libraries/libmpeg2 { };
Expand Down