Commit Graph

303 Commits

Author SHA1 Message Date
zhouzb c638e607cc chore(relup): download relup base version packages from s3 2022-07-20 18:16:28 +08:00
Zaiming (Stone) Shi b7053fa262 chore: add haproxy to cluster example script 2022-07-04 17:58:02 +02:00
Zaiming (Stone) Shi 14aa134ed0 ci: no need to download upgrade base packages for opensource edition 2022-07-02 12:13:36 +02:00
Zaiming (Stone) Shi 999eac5376 chore: bump emqx app version to 5.0.2 2022-07-02 11:44:19 +02:00
Zaiming (Stone) Shi 28535f27ed ci: no special handing for windows package name
windows packages for 5.0.0 and 5.0.1 were release using long package
name (with otp version).
but we have manually made a copy of the package to default (short) name
and uploaded to s3.
going forward, windows packages will only release on default (short)
names because we never support relup for windows
2022-07-02 11:44:19 +02:00
Zaiming (Stone) Shi 34ba414541 ci: ensure emqx runtime dependency 2022-07-01 14:57:48 +02:00
Zaiming (Stone) Shi 0f18381719 refactor: move scripts/relup-base-packages.sh to sub-dir 2022-07-01 07:43:03 +02:00
Zaiming (Stone) Shi 114d784d1a refactor: move scripts/relup-base-vsns.sh to sub-dir 2022-07-01 07:43:03 +02:00
Zaiming (Stone) Shi 73f49ca6e5 refactor: move inject-relup.escript to a sub-dir 2022-07-01 07:43:03 +02:00
Zhongwen Deng 92019e4d4c chore: don't copy i18n.conf 2022-07-01 09:33:35 +08:00
Zaiming (Stone) Shi 79be7f9420
Merge pull request #8308 from zmstone/0623-fix-relup
5.0: fix relup
2022-06-29 13:41:24 +01:00
Zaiming (Stone) Shi 01e29fb82d ci(relup): delete TODO, check both nodes for metrics data 2022-06-29 12:38:40 +02:00
Zaiming (Stone) Shi 888f637cdd docs(ci): add how to run in scripts/relup-test/README.md 2022-06-29 11:01:58 +02:00
Zaiming (Stone) Shi 4d4634335c ci: rename scripts/relup/ to scripts/relup-test 2022-06-29 08:07:19 +02:00
Zaiming (Stone) Shi 8b7fc490ae refactor: run relup test nodes in individual docker containers
When running EMQX in lux shell inside a docker container
the node won't boot due to load_failed for redbug modules
reason is still unknown
2022-06-29 07:10:45 +02:00
Zaiming (Stone) Shi b3f16ccb36 fix: Erlang distribution over TLS 2022-06-28 21:49:02 +02:00
Zaiming (Stone) Shi 184b337e84 chore: add a script to run relup lux test locally 2022-06-28 10:54:07 +02:00
Zaiming (Stone) Shi d3f8ebd10f ci: fix relup test workflow and upgrade builder to 5.0-17
builder 5.0-17 has emqtt-bench and lux included
so we do not need to rebuild the software for each ci job
2022-06-27 12:06:13 +02:00
ieQu1 a9ec193ef8 fix(prometheus): Disable authorization for metrics scraping endpoint 2022-06-23 00:31:53 +02:00
Zaiming (Stone) Shi e98cd47a16 ci: fix relup test for package build
the upgrade pacakage can only be .tar.gz package
2022-06-21 09:33:12 +02:00
Zaiming (Stone) Shi b467e11b2e fix(appup): fixed appup and version check scripts for 5.0 2022-06-20 22:20:31 +02:00
Zaiming (Stone) Shi 385566c1a0 docs: change descriptive info from 'community' to 'opensource' 2022-06-20 19:38:29 +02:00
Rory Z e986a6f2b4 ci: fix docker multi arch push error 2022-06-18 09:57:25 +08:00
Zaiming (Stone) Shi 9cd4587cfb
Merge pull request #8245 from DDDHuang/fix_mac
fix: mac build required pkg coreutils
2022-06-16 14:12:45 +01:00
Zaiming (Stone) Shi b3182609c3 ci: delete dpes cache from github work-flows 2022-06-16 13:07:27 +02:00
DDDHuang 7a875b3fec fix: mac build required pkg coreutils 2022-06-16 18:49:42 +08:00
Zaiming (Stone) Shi 92ea558ff3
Merge pull request #8238 from zmstone/0616-feat-add-dns-srv-record-resolution
feat: add dns.record_type config for cluster discovery
2022-06-16 10:53:28 +01:00
Zaiming (Stone) Shi 2e49ed74b9
Merge pull request #8235 from zmstone/0616-ci-ensure-sha256sum-for-macos-brew-install-coreutils
ci: ensure macos github runner installs coreutils
2022-06-16 10:02:01 +01:00
Zaiming (Stone) Shi 7d49d1ee5c feat: add dns.record_type config for cluster discovery 2022-06-16 08:59:09 +02:00
Zaiming (Stone) Shi 7715feb3e4 ci: ensure macos github runner installs coreutils 2022-06-16 07:53:20 +02:00
Zaiming (Stone) Shi 67b8e6c3bd test: add a script to test dns cluster node discovery 2022-06-16 01:34:16 +02:00
Zaiming (Stone) Shi b92708726a test: Dockerfile:s to build test images 2022-06-12 20:18:48 +02:00
Zaiming (Stone) Shi fc4d9e4dcd ci: use emqx-builder 5.0-16
Fixed openssl compatibility issue
2022-06-06 10:54:26 +02:00
ieQu1 83e5ec9b2d chore(ci): Bump emqx-schema-validate to 0.3.3 2022-05-31 18:00:33 +02:00
Zhongwen Deng 8aa60cc0a5 feat: generate a minimized emqx.conf 2022-05-31 19:20:27 +08:00
Zaiming (Stone) Shi 616f1ae302 ci: do not configure quic listener at all 2022-05-31 12:16:33 +02:00
Zaiming (Stone) Shi de6218dfa6 ci: do not configure quic listener for arm
quic listener is now not enabled by default
2022-05-31 12:11:23 +02:00
ieQu1 932384b7bd chore(ci): Bump schema validate to 0.3.2 2022-05-31 10:23:14 +02:00
Shawn 3385a8af75 chore: pin dashboard v0.34.0 2022-05-30 11:18:59 +08:00
Zaiming (Stone) Shi ebe4d7c3fb refactor: stop releasing edge edition
Prior to EMQX 5.0, the edge edition's main difference comaring
to standard edition are:
* Less number of plugins in the release (smaller package size)
* Smaller number is vm.args (for lower memory usage)

Starting from 5.0 most of the plugins are included as features,
the tuned vm.args arguments does not justify a special release edition.

Also as nanomq is getting mature,
EMQ's recommendtation for MQTT broker in edge is https://nanomq.io/
2022-05-26 20:05:46 +02:00
Shawn 3d7cab4288 fix: porting emqx_relup.erl from 4.4 2022-05-25 12:37:03 +08:00
Shawn eea9bd90b4 fix: remove the extra level of 'emqx' dir from .tar.gz 2022-05-25 02:00:01 +08:00
Shawn 7bc2d9edbb fix: remove bison from the required tools when building emqx 2022-05-21 14:17:12 +08:00
Shawn 5d65bdaa47 chore: ping emqx-builder to 5.0-15 2022-05-16 18:10:42 +08:00
Zaiming (Stone) Shi 4664a9fc53 ci(jq): temp fix for ACLOCAL paths 2022-05-16 09:56:50 +02:00
Zaiming (Stone) Shi 1c95c417f7
Merge pull request #7951 from zmstone/0514-fix-flaky-authn-test-case
0514 fix flaky authn test case
2022-05-16 06:55:28 +01:00
Zhongwen Deng ec625363cf fix: emqx can't start with systemctl 2022-05-15 17:13:56 +08:00
Zaiming (Stone) Shi 00198abfd7 chore: hint how to fix fmt in pre-commit hook 2022-05-15 09:19:31 +02:00
Zaiming (Stone) Shi f50fcf9f4e chore: delete per-app format scripts
Now that all apps are formated, we no longer need per-app format script
2022-05-11 09:15:32 +02:00
Shawn fc645f8d3e fix: please the spell checker 2022-05-07 23:44:36 +08:00
Shawn 48db7ceb5f fix: set AUTO_INSTALL_BUILD_DEPS for CI 2022-05-07 22:47:20 +08:00
Shawn d80b7c720b chore: check dependenies before building on Mac OSX 2022-05-07 22:16:44 +08:00
Zaiming (Stone) Shi eb03e6ca9b build(macos): do not depend on gsed 2022-05-07 08:56:12 +02:00
Kjell Winblad 74c33cd4e5 feat(rule_engine): add jq function to the rule engine
This commit adds a function to the rule engine that alows users
to transform text or JSON objects using [jq filter programs][1].

[jq][1] is a command line tool that can be used to transform
and filter JSON text using jq's built-in language. The rule engine
function that is added with this commit uses the
[Erlang jq NIF library][2] that wraps the jq C library in an
Erlang NIF function.

[1]: https://stedolan.github.io/jq/
[2]: https://github.com/emqx/jq
2022-05-04 17:09:16 +02:00
Xinyu Liu f28559ef62
Merge pull request #7820 from zmstone/0428-fix-flaky-test
test: ensure emqx_metrics gen_server stopped after each test
2022-04-29 14:21:21 +08:00
Zaiming (Stone) Shi e5c7c37861 ci: quick fix before emqx-builder image is renamed to el7 and el8 2022-04-29 07:59:24 +02:00
Zaiming (Stone) Shi 1e170da9e8 test: ensure emqx_metrics gen_server stopped after each test 2022-04-29 12:41:36 +08:00
Shawn 50f1dcef97 fix: update elixir CI yamls for getting rebar3 2022-04-28 23:07:38 +08:00
Shawn b05b77bcbc chore: port ensure-rebar3.sh from 4.x 2022-04-28 19:28:29 +08:00
Zaiming (Stone) Shi ad7272b162 ci: get OS from builder image name
cross build is running in container
can not run docker in dokcer
2022-04-28 10:48:02 +02:00
Zaiming (Stone) Shi 1064d14fcf
Merge pull request #7788 from zmstone/0426-add-pre-commit-hook-to-ensure-code-style
chore: add a pre-commit hook to auto format erlang code
2022-04-28 09:01:22 +01:00
Zaiming (Stone) Shi 37be7a4977 chore: update check-format.sh to reformat all apps 2022-04-27 15:50:17 +02:00
Zaiming (Stone) Shi af69899619 chore: add a pre-commit hook to auto format erlang code 2022-04-27 08:01:55 +02:00
DDDHuang 07444e3da5 chore: dashboard format code 2022-04-26 17:18:30 +08:00
DDDHuang 2ea66ebcee
Merge pull request #7749 from DDDHuang/fix_some_api
fix: create banned & dashboard default user name
2022-04-26 16:43:44 +08:00
DDDHuang 69f1a2ac86 fix: build i18n conf with dashboard app 2022-04-26 11:57:07 +08:00
Zaiming (Stone) Shi a4feb3e6e9 style: reformat emqx_auto_subscribe and emqx_conf 2022-04-25 18:05:10 +02:00
zhongwencool cee4607472
Merge pull request #7738 from zhongwencool/obfuscate_sensitive_config
feat: obfuscate sensitive values default_password
2022-04-24 14:05:23 +08:00
Zhongwen Deng 5223c3ee61 feat: obfuscate sensitive values default_password 2022-04-24 09:41:29 +08:00
Zaiming (Stone) Shi b445182335 style: reformat emqx_machine, emqx_plugin_libs, and emqx_statsd 2022-04-23 09:55:50 +02:00
firest c1ba15f8f0 fix(psk): reformat codes 2022-04-22 13:58:02 +08:00
zhongwencool d45700865e
Merge pull request #7708 from zhongwencool/i18n-conf
feat: emqx_conf_schema/emqx_plugins/emqx_dashboard I18n conf
2022-04-22 09:50:10 +08:00
ieQu1 67a94732ac chore(spellcheck): Bump container version to 0.3.1 2022-04-21 23:48:47 +02:00
Zhongwen Deng 393fbd2bdb feat: add emqx_dashboard i18n 2022-04-21 23:43:12 +08:00
Zaiming (Stone) Shi a0145f4692 chore(buildx.sh): no need to parameterise otp version and system 2022-04-19 22:25:59 +02:00
JimMoen db29080cd5 chore: add erlfmt app name and update git blame ignore revs 2022-04-19 18:57:41 +08:00
firest 48a9b37916 chore: update git-blame-ignore-revs 2022-04-19 15:46:25 +08:00
firest 2254764d88 chore: update git-blame-ignore-revs 2022-04-19 10:44:25 +08:00
zhongwencool ce915f0bbd
Merge pull request #7590 from zhongwencool/doc-i18n
feat: desc/label support i18n
2022-04-15 17:43:16 +08:00
Zhongwen Deng 700c2cfb39 feat: move *i18n.conf from etc to i18n dir 2022-04-15 10:43:37 +08:00
Zhongwen Deng 630cc8ee34 feat: support i18n with desc struct. 2022-04-15 08:42:13 +08:00
firest 4db2761804 chore: update git-blame-ignore-revs 2022-04-14 15:06:01 +08:00
JianBo He 8500200e81 Merge remote-tracking branch 'ce/master' into fmt-gw 2022-04-01 09:52:12 +08:00
JimMoen c192bb51e3 style: add `authn` & `authz` erlfmt and git blame ignore 2022-04-01 02:21:52 +08:00
JianBo He 3f6d78dda0 style(gateway): format gateway application 2022-03-31 17:41:32 +08:00
JianBo He 4249d4345b chore: support fmt subdir source files 2022-03-31 17:40:51 +08:00
Zaiming (Stone) Shi a125bf9469 style: add emqx_enterprise_conf erlfmt commit to git blame ignore 2022-03-25 16:55:59 +01:00
Zaiming (Stone) Shi ce7e66d039
Merge pull request #7411 from zmstone/style-erlfmt-app-lib-ee-emqx_license
style: erlfmt app lib-ee/emqx_license
2022-03-25 15:11:22 +01:00
Zaiming (Stone) Shi b49df4599a build: use latest builder images (alpine 3.15.1)
OpenSSL-1.1.1n
2022-03-25 07:38:39 +01:00
Zaiming (Stone) Shi ee1b826d2a chore: less verbose debug info from elvis-check 2022-03-25 07:26:43 +01:00
Zaiming (Stone) Shi 24c55ab5cc style: Add lib-ee/emqx_license to reformatted list 2022-03-25 07:15:16 +01:00
Thales Macedo Garitezi 690843ba24
chore: add emqx_modules to the CI format check 2022-03-22 09:53:46 -03:00
Zaiming (Stone) Shi 8cd5c0c83a chore: add a simple bash to wrap format_app.py to be used in CI 2022-03-21 17:16:28 +01:00
Zaiming (Stone) Shi 817aa3051b chore: make format_app.py accept path to app
prior to this change, the script accepts the app name
and assumes the app is in 'apps' sub dir.

however, we have lib-ee for enterprise,
we may also technically have the same app reside in more than
two sub-dirs e.g. lib-ce and lib-ee
2022-03-21 17:11:12 +01:00
Zaiming (Stone) Shi 9d96d3d10a test: fix auto_subscribe test case 2022-03-15 20:40:28 +01:00
Zaiming (Stone) Shi f9aba61dbb ci: run ct in concurrent jobs 2022-03-15 20:40:22 +01:00
Zaiming (Stone) Shi 02598feffc chore: make find-apps.sh able to print json 2022-03-15 15:36:44 +01:00
ieQu1 b79ef3f0d9 docs: Add documentation for the cluster 2022-03-14 10:36:09 +01:00
Chris Hicks ee4673ee9c
Merge pull request #7256 from mononym/format_script
feat: add file to assist in formatting application
2022-03-14 09:25:56 +01:00
Zaiming (Stone) Shi 49ad66b4bd ci: no need for rocksdb cache anymore 2022-03-11 14:54:00 +01:00