Commit Graph

8900 Commits

Author SHA1 Message Date
Zaiming (Stone) Shi 4352895e56
Merge pull request #9042 from zmstone/0925-chore-allow-non-strict-semver-for-external-deps
build(update_appup.escript): allow external app non-semver
2022-09-27 08:43:54 +02:00
Zaiming (Stone) Shi a770983882 fix(bin/emqx): allow space in root path
Prior to this fix, space was already allowed in root path
for 'start' 'console' etc. (the boot commands).
However the non-boot commands such as 'ping' still had trouble.
2022-09-27 08:36:25 +02:00
Thales Macedo Garitezi 2e0eae54f8 fix(acl): check ACL before publishing last will testament (lwt) message (4.3) 2022-09-26 15:22:29 -03:00
Ivan Dyachkov 77a45f86cc Merge remote-tracking branch 'origin/main-v4.3' into main-v4.4 2022-09-26 20:19:23 +02:00
Thales Macedo Garitezi a61c97ed9b test: attempt to reduce inter-testcase flakiness in CI
Ex:

```
=== ERROR! init_per_testcase crashed!
	Location: [{emqx_auth_mongo_SUITE,'-init_mongo_data/0-fun-0-',207},
              {emqx_auth_mongo_SUITE,init_mongo_data,207},
              {emqx_auth_mongo_SUITE,init_per_testcase,177},
              {test_server,do_init_per_testcase,1554},
              {test_server,run_test_case_eval1,1255},
              {test_server,run_test_case_eval,1225}]
	Reason: {{assertMatch,[{module,emqx_auth_mongo_SUITE},
               {line,207},
               {expression,"mongo_api : insert ( Connection , ? MONGO_CL_USER , ? INIT_AUTH )"},
               {pattern,"{ { true , _ } , _ }"},
               {value,{error,timeout}}]},
 [{emqx_auth_mongo_SUITE,'-init_mongo_data/0-fun-0-',1,
                         [{file,"/emqx/apps/emqx_auth_mongo/test/emqx_auth_mongo_SUITE.erl"},
                          {line,207}]},
  {emqx_auth_mongo_SUITE,init_mongo_data,0,
                         [{file,"/emqx/apps/emqx_auth_mongo/test/emqx_auth_mongo_SUITE.erl"},
                          {line,207}]},
  {emqx_auth_mongo_SUITE,init_per_testcase,2,
                         [{file,"/emqx/apps/emqx_auth_mongo/test/emqx_auth_mongo_SUITE.erl"},
                          {line,177}]},
  {test_server,do_init_per_testcase,2,[{file,"test_server.erl"},{line,1554}]},
  {test_server,run_test_case_eval1,6,[{file,"test_server.erl"},{line,1255}]},
  {test_server,run_test_case_eval,9,[{file,"test_server.erl"},{line,1225}]}]}
```
2022-09-26 09:13:07 -03:00
Thales Macedo Garitezi 7c4842e6e5 test: attempt to fix inter-suite flakiness
Ex:
https://github.com/emqx/emqx-enterprise/actions/runs/3124750818/jobs/5068407612#step:7:769

```
%%% undefined ==> end_per_suite: FAILED
%%% undefined ==> {{badmatch,{error,enoent}},
 [{emqx_auth_mongo_SUITE,end_per_suite,1,
                         [{file,"/emqx/apps/emqx_auth_mongo/test/emqx_auth_mongo_SUITE.erl"},
                          {line,62}]},
  {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1784}]},
  {test_server,run_test_case_eval1,6,[{file,"test_server.erl"},{line,1381}]},
  {test_server,run_test_case_eval,9,[{file,"test_server.erl"},{line,1225}]}]}
Testing lib.emqx_auth_mongo: TEST COMPLETE, 3 ok, 0 failed of 3 test cases
```
2022-09-26 08:57:53 -03:00
lafirest d3f020912e
Merge pull request #8981 from lafirest/v4.4
fix(slow_subs): Fix the unit error of the `deliver_begin_at` timestamp
2022-09-26 18:05:54 +08:00
firest 04c52aa5f4 chore: update CHANGES-4.3.md 2022-09-26 18:00:04 +08:00
firest 1e00345777 chore(emqx_sn): bump version && update appup 2022-09-26 18:00:04 +08:00
firest 0a3c8d035c fix(mqtt_sn): after receiving publish in `idle mode` the gateway may panic
the `emqx_sn_gateway` will return `{keep_state, Timeout}` when received publish in `idle mode`, this is an incorrect format of `gen_statem` state return result, this return will replace the `state data` by the `Timeout`, the fix is to change it to `{keep_state_and_data, Timeout}`
2022-09-26 17:59:35 +08:00
firest 6fd0261915 chore: update emqx appup && CHANGES-4.4.md 2022-09-26 17:32:01 +08:00
firest 9f400eb11d fix(slow_subs): Fix the unit error of the `deliver_begin_at` timestamp
The unit of `deliver_begin_at` is incorrectly used the seconds,
this will cause the `internal` stat type to never working and the `response` type time span error
2022-09-26 17:32:01 +08:00
firest 5b14d7f709 test(mqtt_sn): improve test coverage of `emqx_sn_gateway` 2022-09-26 16:37:33 +08:00
Ivan Dyachkov 63817418d1
Merge pull request #9037 from emqx/build-refactor-reusable-steps-into-actions
build: refactor reusable steps into actions
2022-09-26 08:40:57 +02:00
Zaiming (Stone) Shi 9ca2004333
Merge pull request #9028 from emqx/sync-e43-psk-file
refactor(psk): create the ets table in supervisor process
2022-09-25 16:37:40 +02:00
Zaiming (Stone) Shi 0ac78734bd build(update_appup.escript): allow external app non-semver 2022-09-25 14:19:53 +02:00
Thales Macedo Garitezi dbf3a3cee7
Merge pull request #8994 from thalesmg/mongo-coverage-43
test: increase mongo integration test coverage (4.3)
2022-09-23 13:23:22 -03:00
Ivan Dyachkov b74632b5ba build: refactor reusable steps into actions 2022-09-23 15:46:22 +02:00
JianBo He c05ce82933 refactor(psk): create the ets table in supervisor process 2022-09-23 11:16:31 +08:00
zhongwencool 92356b85f3
Merge pull request #9026 from zhongwencool/sync-back-from-e4.3-to-v4.3
chore: sync from release-e4.3
2022-09-23 07:41:02 +08:00
Thales Macedo Garitezi f94c5ee40a feat(auth_mongo): use `with_timeout` for `query` 2022-09-22 11:28:59 -03:00
Zaiming (Stone) Shi 6246fe3ff4
Merge pull request #9023 from savonarola/release-v43-retainer-sync-e43
chore(retainer): sync retainer from release-e43
2022-09-22 12:30:59 +02:00
zhongwencool 1379f39f26 chore: sync from release-e4.3 2022-09-22 18:02:39 +08:00
zhongwencool 8ad152de4b
Merge pull request #8875 from zhongwencool/invite-hooks
chore: add reboot_hook/shutdown_hook for enterprise
2022-09-22 17:55:42 +08:00
Ilya Averyanov 7a26aae27b chore(retainer): sync retainer from release-e43 2022-09-22 12:42:21 +03:00
firest 502f3e8d5c test(mqtt_sn): improve test coverage to 90% 2022-09-22 17:31:08 +08:00
zhongwencool deca9cc395 chore: update changelog for delayed publish 2022-09-22 16:09:42 +08:00
zhongwencool 9642f25ea0 chore: update changelog 2022-09-22 15:12:31 +08:00
zhongwencool 27983e7df4 chore: update emqx.appup.src 2022-09-22 14:24:59 +08:00
zhongwencool 61d745a230 feat: add emqx_misc:ipv6_probe/2 function 2022-09-22 11:00:16 +08:00
zhongwencool c2f1f1aab8 chore: rename on_xxx_hooks to on_xxx 2022-09-22 10:04:52 +08:00
zhongwencool 362c176d24 chore: update appup.src 2022-09-22 10:02:48 +08:00
zhongwencool 4635d52273 chore: add reboot_hook/shutdown_hook for enterprise 2022-09-22 10:02:00 +08:00
Thales Macedo Garitezi 90995069c6 chore(auth_mongo): bump appup 2022-09-21 14:46:17 -03:00
Thales Macedo Garitezi a60763dfcf test(mongo): attempt to improve test stability 2022-09-21 14:03:44 -03:00
Thales Macedo Garitezi ea8f444bda test(mongo): add more acl tests
With this commit, we reach 100 % coverage over `emqx_acl_mongo`.
2022-09-21 14:03:44 -03:00
Thales Macedo Garitezi 69659caaf8 test(mongo): add more coverage tests
reaching 100% coverage of `emqx_auth_mongo` with this.
2022-09-21 14:03:44 -03:00
Thales Macedo Garitezi 3f02c6b574 feat(mongo): add timeouts and more tests 2022-09-21 14:03:44 -03:00
Thales Macedo Garitezi 83fb479311 chore: port `pmap/nolink_apply` features from master 2022-09-21 14:03:44 -03:00
Zaiming (Stone) Shi 514519da33 docs: Add v4.3.22 in CHANGES-4.3.md 2022-09-21 13:23:26 +02:00
Zaiming (Stone) Shi 0fec2b874e Merge remote-tracking branch 'origin/release-v43' into release-v44 2022-09-21 12:59:44 +02:00
Zaiming (Stone) Shi f0f50b3d3f chore: fix CHANGES-4.3.md 2022-09-21 12:50:49 +02:00
Zaiming (Stone) Shi 66197f26d4 docs: update release note for v4.3.21 2022-09-21 12:35:12 +02:00
Zaiming (Stone) Shi 7c7d204da3
Merge pull request #9003 from zmstone/0917-add-release-script
build: add release cut script
2022-09-21 12:16:20 +02:00
Zaiming (Stone) Shi af504af8b3
Merge pull request #9004 from emqx/chore-port-signing-macos-binaries-from-4.3
chore: port signing of macos binaries functionality from main-v4.3
2022-09-20 21:06:33 +02:00
Zaiming (Stone) Shi 9d00b5b0d6 build(update_appup): red color for error logs 2022-09-20 20:30:38 +02:00
Zaiming (Stone) Shi 097c9cbfa3
Merge pull request #9011 from zmstone/0919-docs-update-changelog
docs: update 4.3 changelog
2022-09-20 20:29:59 +02:00
Zaiming (Stone) Shi 9d99bf8b91 build: add release cut script 2022-09-20 20:20:35 +02:00
Thales Macedo Garitezi 1933954508
Merge pull request #9015 from thalesmg/ci-fix-coveralls-glob-pat
ci(coveralls): fix glob pattern to run coveralls after merge
2022-09-20 15:03:34 -03:00
Zaiming (Stone) Shi bdf78aa1f3 build: fix git diff exclude pattern in app version check script 2022-09-20 19:58:14 +02:00