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
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
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
k32
113cfa6422
fix(update_appup): Fix warnings, add support for external repos
2021-11-18 12:31:02 +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