Zaiming (Stone) Shi
1bebbd6ee5
fix(emqx_os_mon): ensure alarm is deactivated on unsupported platforms
2022-05-25 16:21:53 +02:00
Zaiming (Stone) Shi
0400638f71
feat(update_appup.escript): allow skipped versions
...
Say app current version is 1.1.2, and the compare baes is
version 1.1.1, but there is a 1.1.2 in appup.
We may skip updating appup instructions for 1.1.2
as it's never used, (at least not in EMQX)
2022-05-25 15:36:12 +02:00
Shawn
41331c5c1a
chore: release 4.3.15-rc.1
2022-05-23 22:26:20 +08:00
Thales Macedo Garitezi
0cfeca9d90
fix(update_appup): clean untracked nested git directories
...
Since the script copies the current workdir into the temporary
directory for the previous build, when we latter try to clean the
directory, `git clean -fdx` refuses to clean the folders of some
dependencies:
```
+ git clean -fdx
Skipping repository _build/default/lib/lc
```
So, if the branch contains a dependency with changed version, it'll
not be picked up by the script, as both versions will be identical and
hence have no `.appup` difference.
2022-04-28 11:09:25 -03:00
JimMoen
8f13a96788
chore: ignore comments and blank lines when app version checking
2022-04-14 11:23:25 +08:00
Zaiming (Stone) Shi
d205cb6fc0
build: make centos6 happy
2022-04-08 14:26:03 +02:00
JimMoen
7f5abdfd5b
chore: update dashboard version
2022-04-08 14:22:53 +08:00
Zaiming (Stone) Shi
d6d232a7dd
chore: make get-distro.sh aware of windows
2022-04-04 14:35:11 +02:00
Zaiming (Stone) Shi
a54813dd69
fix(appup): re-generate appup from 4.3.13
2022-04-02 23:00:41 +02:00
Zaiming (Stone) Shi
38447ff187
chore(appup): fix update-appup.sh
...
git reset before clean
2022-03-31 10:10:12 +02:00
Zaiming (Stone) Shi
59fae1714b
chore: use shorter path
2022-03-28 14:10:33 +02:00
Zaiming (Stone) Shi
6ca0e63599
chore: fix appup update script
...
so it can handle switch between tags
2022-03-28 09:58:03 +02:00
Zaiming (Stone) Shi
d3bcc201d6
Merge pull request #7401 from zmstone/ci-add-build-base-option-to-appup-update-script
...
chore: update-appup.sh always rebuild baseline
2022-03-24 15:58:25 +01:00
Zaiming (Stone) Shi
b8afa16b53
chore: fix shellcheck
2022-03-24 12:28:34 +01:00
Zaiming (Stone) Shi
3944888a19
chore: update-appup.sh always rebuild baseline
...
Reasons
* OTP version might be different in developer's env and build env
* For some tags, we do not build release. e.g. rel-v4.4.X
2022-03-24 11:23:47 +01:00
JianBo He
5e42a67c8d
chore: update dashboard vsn
2022-03-24 14:22:19 +08:00
Zaiming Shi
13086e7259
chore: fix update-appup.sh for bash 3.2
2022-03-19 08:42:52 +01:00
JianBo He
af65310ce7
chore(script): update_appup.escript support the update cmd
...
We often use the advanced directive `update` when hot upgrading
gen_server, gen_statem, and other such processes, and it will be
parsed as:
```
{suspend,[Mod]},
{load,{Mod,brutal_purge,brutal_purge}},
{code_change,up,[{Mod,[Extra]}]},
{resume,[Mod]},
```
So, we should treat the update instruction as having completed the
upgrade of this module.
2022-03-15 10:51:30 +08:00
Zaiming (Stone) Shi
cedeff4dab
build(appup): fix module delete instructions
...
when there is a application_restart instruction, there is no
need to add module delete instructions
2022-03-09 11:18:02 +01:00
Zaiming (Stone) Shi
d8e29f19cb
refactor(appup): always generate appup from script
2022-03-08 13:24:54 +01:00
Zaiming (Stone) Shi
111b93b4ea
fix(update-appup): pass in --repo option even when download bin package
...
the repo url is NOT used to clone the source,
but used to determin the sub-dir name when extracting the zip package
2022-03-05 17:24:49 +01:00
Zaiming (Stone) Shi
1ae46cc22a
build(appup): exclude gpb from appup checks
2022-03-05 16:49:58 +01:00
Zaiming (Stone) Shi
0a6e2d596b
build: fix update-appup for ee
2022-03-05 11:49:44 +01:00
Zaiming (Stone) Shi
c6660084f8
build: one place for dashboard version
2022-03-05 09:44:12 +01:00
Zaiming (Stone) Shi
3b22efeb9c
build(update_appup): handle add_module instruction
2022-03-04 12:30:46 +01:00
Zaiming (Stone) Shi
558748dab2
build(update_appup): only download package if not exist
2022-03-02 19:38:25 +01:00
Zaiming (Stone) Shi
b0900fe25a
build(update-appup): fix ARCH resolution
2022-03-02 19:37:11 +01:00
Zaiming (Stone) Shi
ef382bf34c
chore: add --make-command to update_appup script args
2022-03-01 17:04:05 +01:00
Zaiming (Stone) Shi
0996b79d96
chore: add a script to simplify appup update
2022-03-01 17:02:29 +01:00
Zaiming (Stone) Shi
5e3543e282
Merge pull request #7073 from zmstone/fix-find-command-for-4.3-and-4.4
...
build: fix find command for windows
2022-02-21 12:23:42 +01:00
Zaiming (Stone) Shi
107e447de4
build: fix find command for windows
...
windows has its own find command
2022-02-21 09:17:45 +01:00
Ilya Averyanov
557c52dd8a
chore(codestyle): remove Elvis
2022-02-18 20:35:19 +03:00
Shawn
3bd961ca73
fix(CI): remove e|v from downloading urls of emqx packages
2022-02-18 23:05:35 +08:00
Shawn
3690d1951e
chore: add more debug info for relup-base-packages.sh
2022-02-18 22:41:03 +08:00
Zaiming (Stone) Shi
62dd815807
chore(scripts): make shellcheck happy
2022-02-16 16:16:35 +01:00
Zaiming (Stone) Shi
538f843f14
fix(relup-base-packages.sh): download per release edition
2022-02-16 16:16:10 +01:00
Zaiming (Stone) Shi
f7135433be
chore(relup-base-vsns.sh): rename PROFILE to EDITION
...
to avoid confusion with rebar profile
2022-02-16 14:10:43 +01:00
Rory Z
149fe7bcdf
Merge pull request #7010 from Rory-Z/build/add-new-script
...
build(relup): add new script for download relup base packages
2022-02-16 15:57:25 +08:00
zhanghongtong
2acdc64b9d
style(script): rename variable name
2022-02-16 14:52:31 +08:00
Zaiming (Stone) Shi
d2840a8aa1
docs: change EMQ X to EMQX in more descriptive info
2022-02-15 22:18:25 +01:00
zhanghongtong
091398d863
build(relup): add new script for download relup base packages
2022-02-15 17:57:31 +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
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