Zaiming (Stone) Shi
cc1734490f
chore: trigger a version check before pushing a tag
2022-02-17 11:20:19 +01:00
Xinyu Liu
09c5114d42
Merge pull request #7042 from Rory-Z/ci/fix-cross-build-fail
...
ci(cross build): fix build raspbian failed on armhf
2022-02-17 16:52:17 +08:00
zhanghongtong
ee7acdfc33
ci(cross build): fix build raspbian failed on armhf
2022-02-17 15:52:36 +08:00
Xinyu Liu
1b5986a5e1
Merge pull request #7044 from terry-xiaoyu/fix_windows_build
...
fix(build): change header of shell script to "#!/usr/bin/env bash"
2022-02-17 15:33:34 +08:00
Shawn
037b9e440c
fix(build): change header of shell script to "#!/usr/bin/env bash"
2022-02-17 15:21:17 +08:00
JianBo He
4775ea353d
chore: update scripts/apps-version-check.sh
...
Co-authored-by: k32 <10274441+k32@users.noreply.github.com>
2022-02-16 19:41:17 +08:00
JianBo He
e7ce4ed215
chore: force check for version upgrade of emqx_dashboard
...
same with: https://github.com/emqx/emqx/pull/5879
2022-02-16 18:38:55 +08:00
Zaiming (Stone) Shi
22ae8985c6
chore: compare to rel-* versions for appup
2022-02-14 22:18:53 +01:00
Zaiming (Stone) Shi
9f897a650a
build: rename distro from 'rhel' to 'el'
2022-02-14 09:28:29 +01:00
Zaiming (Stone) Shi
fd75756d5c
ci: update to emqx-builder 4.4-5 (rockylinux)
2022-02-09 22:49:08 +01:00
Zaiming (Stone) Shi
d863609f43
build: use rockylinux and 'rhel' for package names
2022-02-09 22:13:00 +01:00
Shawn
791b22f151
Merge branch 'main-v4.4' into copy_of_main-v4.3
2022-01-27 18:46:49 +08:00
Zaiming (Stone) Shi
e5d196569c
ci: find relup base version using script scripts/relup-base-vsns.sh
2022-01-26 18:26:43 +01:00
Shawn
301d6bf794
fix(ci): add some debug print for downloading rebar3
2022-01-26 18:55:17 +08:00
Shawn
362147924d
fix(build): only use rebar3 3.18.0-emqx-1 for OTP 24
2022-01-25 11:02:39 +08:00
Shawn
d422e6e700
fix(build): relup for otp24 failed
...
The defination of `#application{}` record in systools.hrl is changed in OTP 24.
So we need a rebar3 binary compiled with OTP 24.
2022-01-24 18:04:40 +08:00
JianBo He
b297388c20
Merge branch 'main-v4.3' into merge-main-v4.3-into-v4.4
2022-01-11 10:03:28 +08:00
Zaiming (Stone) Shi
feecaa6c98
build: ci tests.sh test specific package
2021-12-31 15:35:31 +01:00
Zaiming (Stone) Shi
a21dade927
build: add scripts/buildx
2021-12-30 01:00:56 +01:00
Thales Macedo Garitezi
5a6225d397
Merge pull request #6480 from emqx/improve-update-appup-43
...
chore(update_appup): Improve `update_appup.escript`
2021-12-28 09:54:52 -03:00
Zaiming (Stone) Shi
967dc7d55e
fix: portable shebang
2021-12-27 15:40:25 +01:00
Thales Macedo Garitezi
62ff6a8b30
chore(update_appup): rm unused value
2021-12-20 13:41:14 -03:00
Thales Macedo Garitezi
b2396438a0
chore(update_appup): add expected versions check
...
For apps inside emqx umbrella, we try to bump only the patch part of
their version numbers, and use only 3-part version
numbers (`Major.Minor.Patch`). With those assumptions, we may infer
all versions that need to be covered in a given upgrade, and check if
those are covered in regexes.
2021-12-20 13:38:08 -03:00
Thales Macedo Garitezi
ce4a193cbb
chore(update_appup): rm unused fn
2021-12-20 13:21:01 -03:00
Thales Macedo Garitezi
af3a1326d1
chore(update_appup): bugfix: variable not pinned in lambda
2021-12-20 13:21:01 -03:00
Thales Macedo Garitezi
fef8a18bfb
chore(update_appup): insert `load_module`s after `application:stop`
...
If there is already any `application:stop(Application)` call in the
appup instructions, we prefer to add `load_module` instructions after
it, so we can be sure that the load is replaced safely.
2021-12-17 16:53:56 -03:00
Thales Macedo Garitezi
42ca5ab5a9
chore(update_appup): do not force appup render if contents are the same
...
To avoid losing comments and/or manual indentation in appup files that
are already up to date, we now check whether the contents have the
exact same terms as those we are about to write to an existint .appup
file.
2021-12-17 16:53:56 -03:00
Thales Macedo Garitezi
e1e72c144a
chore(update_appup): do not use load_module if restart_application
...
Since the appup instruction `restart_application` already loads all
modules of a given application, there is no need to introduce those
instructions if a restart is already present.
2021-12-17 16:53:56 -03:00
Thales Macedo Garitezi
3ff6661a58
chore(update_appup): take regexes into account when comparing vsns
...
This change makes the `update_appup.escript` check whether the new
version of an application (the _current_ one) is already contained in
entries in the _new_ .appup file for that application if such .appup
file contains regexes.
NOTE: this does not cover the case in which we calculate the
difference between _old_ and _new_ appup entries, and those consist of
regexes. In such case, we would need to check if one regex is
"contained" in the other, which is not currently supported by this
patch.
2021-12-17 16:53:55 -03:00
zhongwencool
2c2145dfe6
Merge branch 'main-v4.3' into sync-from-4.3
2021-12-07 23:20:01 +08:00
Thales Macedo Garitezi
93caddd448
refactor(review): factor out common functionality
2021-11-29 10:23:54 -03:00
Thales Macedo Garitezi
0932920d36
chore(appup): make update_appup.escript output only differences for
...
external dependencies
Currently, the update_appup.escript outputs as an error the full appup
file for external dependencies, even if all the changes are already
contained in the depency. Here, we make it only output the missing
actions to be inserted, to aid in seeing what are the differences.
2021-11-25 15:21:25 -03:00
Thales Macedo Garitezi
29f982385d
chore(appup): remove old file extension and preserve dirname for apps
2021-11-24 15:09:25 -03:00
Thales Macedo Garitezi
c950566294
chore(appup): minor fixes to update_appup.escript
...
- Fixes clause error on `create_stub/1`.
- Small optimization: do not download the same file multiple times
with `wget`.
2021-11-24 14:22:51 -03:00
Zaiming (Stone) Shi
2514f474b0
Sync v4.3 to v4.4 ( #6262 )
...
* fix(http): fix duplicate http headers
* chore(appup): add appup.src
* fix(appup): fix multiply defined module in appup
* chore(appup): fix wrong version
* chore(ekka): Bump version to 0.8.1.5
* fix(update_appup): Fix warnings, add support for external repos
* build: use find command's -delete option
* ci: do not sync master branch
* build: ensure openssl11
* build: copy only libcrypto and libtinfo
* fix(trace): handler_id now always return atom
Co-authored-by: zhouzb <zhouzb@emqx.io>
Co-authored-by: k32 <10274441+k32@users.noreply.github.com>
2021-11-23 09:33:20 +08:00
k32
113cfa6422
fix(update_appup): Fix warnings, add support for external repos
2021-11-18 12:31:02 +01:00
zhanghongtong
af5f93d81a
build: show macos version
2021-11-17 14:43:03 +08:00
Zaiming Shi
ced2429011
fix: bump new feature lib-ce apps to 4.4
2021-11-16 16:08:36 +01:00
Zaiming Shi
b68f01e7e7
build: do not print 'otp' prefix for otp version
2021-11-15 23:42:19 +01:00
zhanghongtong
454f609aa6
build: emqx package name scheme include otp version
2021-11-15 10:45:27 +08:00
Zaiming Shi
6222e1b0eb
Merge remote-tracking branch 'origin/main-v4.3' into sync-v4.3-to-v4.4
2021-11-08 21:01:14 +01:00
k32
7d07e8d948
chore(emqx): Update version and appup file
2021-11-08 14:24:37 +01:00
Zaiming Shi
37edb03866
build: fix elvis check and ensure newline at EOF
2021-11-04 21:07:45 +01:00
lafirest
f8acb31f89
feat: add slow topics statistics plugin
2021-11-03 17:20:07 +08:00
Zaiming Shi
9832a2ed00
build: show linux distro in BUILT_ON info
2021-10-31 17:21:47 +01:00
Spycsh
ec30fb346a
chore: add cluster script for local machine
2021-10-28 12:07:23 +08:00
Zaiming Shi
08c2907d44
chore: skip appup file in vsn check script
2021-10-15 12:10:37 +02:00
Zaiming Shi
51bc9c83c3
fix: ignore unused var
2021-10-15 15:49:26 +08:00
k32
14aaa4affe
fix(update_appup): Fix dependency check
2021-10-14 14:18:09 +02:00
k32
cb5db8059b
fix(update_appup): Use a different syntax for substitution
2021-10-14 13:47:04 +02:00