Thales Macedo Garitezi
c608f4eaff
refactor(mix): undo the `bin/emqx` script split into helper files
2021-12-30 12:02:36 -03:00
Thales Macedo Garitezi
54a6674715
fix: undo tool-versions change
2021-12-28 17:35:54 -03:00
Thales Macedo Garitezi
8f4453fedb
fix(gateway): undo move headers to root `include`
...
Keeping headers in the src directory makes sense for the interfaces we
don't want to expose outside, but the `include_lib` directive fails to
compile under Mix. Changing `include_lib("emqx_gateway/src/...")` to
`-include("src/...")` pleases both Mix and Rebar.
2021-12-28 17:34:47 -03:00
Thales Macedo Garitezi
fe444bf134
chore(shellcheck): use `git grep` to search only tracked files
2021-12-28 16:49:24 -03:00
Thales Macedo Garitezi
0020cf592f
Merge remote-tracking branch 'origin/master' into build-with-mix-mkII
2021-12-28 11:28:40 -03:00
Thales Macedo Garitezi
ecbb28fedf
Merge pull request #6540 from emqx/fix-bin-vm-args
...
fix(bin_emqx): remove `vm_args` backup in `install`
The `install_upgrade.escript` depended on being able to retrieve the
`vm_args` argument from `init`, but that options has been removed
recently. Since this backup was unused, we also remove it here.
Also, the `cuttlefish` script reference is removed, since it is no longer
present in the release.
2021-12-28 11:27:02 -03:00
Thales Macedo Garitezi
cea54365dd
chore(mix): keep debug info and docs in beams
2021-12-28 10:27:17 -03:00
Ilya Averyanov
f8ffb9c021
Merge pull request #6506 from savonarola/test-authz-mnezia
...
Test HTTP, Mria, File authorization
2021-12-28 15:53:37 +03:00
Thales Macedo Garitezi
5c615e583f
fix(install_upgrade): remove `cuttlefish` reference
...
This file is not present in the current release anymore.
2021-12-28 09:09:21 -03:00
Thales Macedo Garitezi
dd36bef3bb
fix(install_upgrade): remove `vm_args` backup in `install`
...
The `install_upgrade.escript` depended on being able to retrieve the
`vm_args` argument from `init`, but that options has been removed
recently. Since this backup was unused, we also remove it here.
2021-12-28 09:07:40 -03:00
Thales Macedo Garitezi
32b7dc406f
docs: document the elixir release vars
2021-12-28 08:46:33 -03:00
Thales Macedo Garitezi
f93f90c9ea
fix: portable shebangs
2021-12-28 08:21:51 -03:00
Zaiming (Stone) Shi
0f14f73a50
Merge pull request #6552 from zmstone/fix-5.0-portable-shebang
...
fix: portable shebang
2021-12-28 10:51:15 +01:00
Ilya Averyanov
9363b6110e
chore(authz): make test http server more robust
2021-12-28 11:06:52 +03:00
lafirest
e48df910d8
Merge pull request #6493 from lafirest/refactor/exhook
...
refactor(emqx_exhook): refactore exhook and add api module
2021-12-28 14:00:19 +08:00
Thales Macedo Garitezi
1e567ac2b1
chore(mix): populate BUILT_ON file
2021-12-27 17:28:46 -03:00
Thales Macedo Garitezi
360a00622b
chore(mix): copy more files required by relup
2021-12-27 16:07:38 -03:00
Thales Macedo Garitezi
432faf7bd2
chore(mix): copy emqx_ctl to release as well
2021-12-27 14:09:48 -03:00
Thales Macedo Garitezi
a54e108296
ci(mix): add application mode check
...
This adds a CI check to ensure that applications and their modes are
in sync between Elixir and Rebar release builds.
2021-12-27 13:09:55 -03:00
Zaiming (Stone) Shi
68eb13d478
fix: portable shebang
2021-12-27 15:45:12 +01:00
Thales Macedo Garitezi
c14e8db869
style(format): format elixir files
2021-12-27 10:51:12 -03:00
Thales Macedo Garitezi
a4fd777d77
chore(mix): take into account different release/package/edition types
2021-12-27 09:57:56 -03:00
JianBo He
523b5761b7
Merge pull request #6527 from HJianBo/fix-receive-maximum-50
...
fix: disconnect the client due to exceed receive-maximum packets
2021-12-27 09:13:24 +08:00
Thales Macedo Garitezi
cc652c3343
ci(mix): add elixir deps check
...
Checks whether there are discrepancies between rebar3 and mix deps.
2021-12-24 14:44:49 -03:00
Thales Macedo Garitezi
0655572f64
chore(mix): fix: use Elixir's own rpc-eval call for "eval"
2021-12-24 11:40:30 -03:00
Ilya Averyanov
2bada0bab8
chore(authz): test Mria authz
2021-12-24 16:18:46 +03:00
Ilya Averyanov
d75e0104cc
chore(authz): test file authz with real files
2021-12-24 16:18:41 +03:00
Ilya Averyanov
e0f860d7d9
chore(authz): fix HTTP authz, cover with tests
2021-12-24 16:18:36 +03:00
Thales Macedo Garitezi
08571f0914
chore(mix): fix: vm.args is actually a template file
2021-12-24 09:59:53 -03:00
Thales Macedo Garitezi
4977921cdb
chore(mix): produce tar and copy more files to release
2021-12-24 09:59:30 -03:00
Thales Macedo Garitezi
4287a8f88d
chore(mix): auto-discover umbrella apps
2021-12-24 08:22:26 -03:00
Thales Macedo Garitezi
f3bbcd2c79
chore(nodetool): always print result
2021-12-24 08:21:21 -03:00
tigercl
41694b7b34
Merge pull request #6526 from emqx/release-5.0-beta.3
...
Sync 5.0-beta.3 fixes into master
2021-12-24 13:49:13 +08:00
lafirest
9c9f9886d1
Merge pull request #6534 from lafirest/fix/retain_api
...
fix(emqx_retainer): use base64 to encode payload in api's result
2021-12-24 10:49:21 +08:00
lafirest
d2d50443ce
fix(emqx_retainer): use base64 to encode payload in api's result
2021-12-24 10:48:12 +08:00
lafirest
8c42b623c6
Merge pull request #6529 from lafirest/fix/retain_payload
...
fix(emqx_retainer): use base64 to encode payload in api's result
2021-12-24 10:26:00 +08:00
lafirest
b6755d5953
fix(emqx_retainer): use base64 to encode payload in api's result
2021-12-24 10:22:10 +08:00
Thales Macedo Garitezi
67cca5d3a1
chore(mix): use the same script in mix release as in rebar release
...
Surprisingly enough, by doing small cirurgical changes in the existing
EMQX control scripts, we are able to get it running with Elixir and
with existing functionalities (`console`, `remote_console`, `start`,
`stop`, `ctl`, `foreground`, `eval`).
2021-12-23 17:20:04 -03:00
k32
28a69852dc
Merge pull request #6531 from k32/ekka-0-11-2
...
chore(ekka): Bump version to 0.11.2
2021-12-23 19:28:19 +01:00
Thales Macedo Garitezi
11c169501e
chore(mix): fix app dependencies and reboot apps (emqx_conf)
...
While declaring `emqx_conf` as an application dependency of
`emqx_resource` worked for releases, it messed up the startup
relationship during tests. Since only removing `emqx_conf` from the
`applications` key in `emqx_resource` breaks the list of apps that
need to be rebooted on config changes (since `emqx_conf` is not on any
apps dependencies list, it was not being added to the final
topologically sorted list), we now always add it as a vertex to ensure
its presence there. This (apparently) makes the rebar3 release, the
mix release and test runs behave normally.
2021-12-23 13:48:28 -03:00
k32
bd31b52e35
chore(ekka): Bump version to 0.11.2
2021-12-23 15:29:35 +01:00
Spycsh
41e373dbc4
Merge pull request #6478 from Spycsh/slog
...
chore: refactor ?SLOG
2021-12-23 22:21:33 +08:00
lafirest
7c9c7b6a60
refactor(emqx_exhook): refactore exhook and add api module
2021-12-23 17:51:13 +08:00
JianBo He
52502e29c3
fix: disconnect the client due to exceed receive-maximum packets
...
As described in the 5.0 specification, we should disconnect clients that
exceed the receive-maximum limit.
> If it receives more than Receive Maximum QoS 1 and QoS 2 PUBLISH packets
where it has not sent a PUBACK or PUBCOMP in response, **the Server uses a
DISCONNECT packet with Reason Code 0x9**
fix : #6447
2021-12-23 14:06:11 +08:00
JimMoen
4d7f001bfe
Merge pull request #6517 from JimMoen/update-dashboard
...
chore(dashboard): update dashboard version
2021-12-23 10:54:29 +08:00
JianBo He
967989075c
Merge pull request #6512 from terry-xiaoyu/fix_rule_api_swagger
...
Fix rule api swagger
2021-12-23 10:37:53 +08:00
JimMoen
e2804ab29d
chore(dashboard): update dashboard version, ignore v0.9.0
2021-12-23 09:25:58 +08:00
JimMoen
2130d5ca8e
chore(dashboard): update dashboard version
2021-12-23 09:25:58 +08:00
Thales Macedo Garitezi
238895a301
chore(mix): correctly define release version
...
With this, we no longer need the last hack in `mix_release.sh`.
A version schema with 3 parts (Major.Minor.Patch) is required by
Elixir:
https://hexdocs.pm/elixir/1.13.1/Version.html#module-versions
2021-12-22 15:43:43 -03:00
Thales Macedo Garitezi
014b6d3cfd
chore(shellcheck): fix shellcheck linting warnings
2021-12-22 15:43:43 -03:00