Merge pull request #8399 from zmstone/0702-no-relup-for-opensource-edition
0702 no relup for opensource edition
This commit is contained in:
commit
4b383a42f3
|
@ -18,7 +18,6 @@ jobs:
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
container: "ghcr.io/emqx/emqx-builder/5.0-17:1.13.4-24.2.1-1-ubuntu20.04"
|
container: "ghcr.io/emqx/emqx-builder/5.0-17:1.13.4-24.2.1-1-ubuntu20.04"
|
||||||
outputs:
|
outputs:
|
||||||
CUR_CE_VSN: ${{ steps.find-versions.outputs.CUR_CE_VSN }}
|
|
||||||
CUR_EE_VSN: ${{ steps.find-versions.outputs.CUR_EE_VSN }}
|
CUR_EE_VSN: ${{ steps.find-versions.outputs.CUR_EE_VSN }}
|
||||||
OLD_VERSIONS: ${{ steps.find-versions.outputs.OLD_VERSIONS }}
|
OLD_VERSIONS: ${{ steps.find-versions.outputs.OLD_VERSIONS }}
|
||||||
defaults:
|
defaults:
|
||||||
|
@ -35,12 +34,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
set -x
|
set -x
|
||||||
cd emqx
|
cd emqx
|
||||||
ce_vsn="$(./pkg-vsn.sh opensource)"
|
|
||||||
ee_vsn="$(./pkg-vsn.sh enterprise)"
|
ee_vsn="$(./pkg-vsn.sh enterprise)"
|
||||||
old_ce_vsns="$(./scripts/relup-build/base-vsns.sh opensource | xargs)"
|
|
||||||
old_ee_vsns="$(./scripts/relup-build/base-vsns.sh enterprise | xargs)"
|
old_ee_vsns="$(./scripts/relup-build/base-vsns.sh enterprise | xargs)"
|
||||||
old_vsns=$(echo -n "${old_ce_vsns} ${old_ee_vsns}" | sed 's/ $//g' | jq -R -s -c 'split(" ")')
|
old_vsns=$(echo -n "${old_ee_vsns}" | sed 's/ $//g' | jq -R -s -c 'split(" ")')
|
||||||
echo "::set-output name=CUR_CE_VSN::$ce_vsn"
|
|
||||||
echo "::set-output name=CUR_EE_VSN::$ee_vsn"
|
echo "::set-output name=CUR_EE_VSN::$ee_vsn"
|
||||||
echo "::set-output name=OLD_VERSIONS::$old_vsns"
|
echo "::set-output name=OLD_VERSIONS::$old_vsns"
|
||||||
- name: build emqx
|
- name: build emqx
|
||||||
|
@ -69,7 +65,6 @@ jobs:
|
||||||
old_vsn: ${{ fromJson(needs.relup_test_plan.outputs.OLD_VERSIONS) }}
|
old_vsn: ${{ fromJson(needs.relup_test_plan.outputs.OLD_VERSIONS) }}
|
||||||
env:
|
env:
|
||||||
OLD_VSN: "${{ matrix.old_vsn }}"
|
OLD_VSN: "${{ matrix.old_vsn }}"
|
||||||
CUR_CE_VSN: "${{ needs.relup_test_plan.outputs.CUR_CE_VSN }}"
|
|
||||||
CUR_EE_VSN: "${{ needs.relup_test_plan.outputs.CUR_EE_VSN }}"
|
CUR_EE_VSN: "${{ needs.relup_test_plan.outputs.CUR_EE_VSN }}"
|
||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
|
@ -107,9 +102,6 @@ jobs:
|
||||||
e*)
|
e*)
|
||||||
export CUR_VSN="$CUR_EE_VSN"
|
export CUR_VSN="$CUR_EE_VSN"
|
||||||
;;
|
;;
|
||||||
v*)
|
|
||||||
export CUR_VSN="$CUR_CE_VSN"
|
|
||||||
;;
|
|
||||||
*)
|
*)
|
||||||
echo "unknown old version $OLD_VSN"
|
echo "unknown old version $OLD_VSN"
|
||||||
exit 1
|
exit 1
|
||||||
|
|
|
@ -1,5 +1,44 @@
|
||||||
|
# 5.0.2
|
||||||
|
|
||||||
|
Announcemnet: EMQX team has decided to stop supporting relup for opensouce edition.
|
||||||
|
Going forward, it will be an enterprise only feature.
|
||||||
|
|
||||||
|
Main reason: relup requires carefully crafted upgrade instructions from ALL previous versions.
|
||||||
|
|
||||||
|
For example, 4.3 is now at 4.3.16, we have `4.3.0->4.3.16`, `4.3.1->4.3.16`, ... 16 such upgrade paths in total to maintain.
|
||||||
|
This had been the biggest obstacle for EMQX team to act agile enought in deliverying enhancements and fixes.
|
||||||
|
|
||||||
|
## Enhancements
|
||||||
|
|
||||||
|
## Bug fixes
|
||||||
|
|
||||||
|
* Fixed a typo in `bin/emqx` which affects MacOs release when trying to enable Erlang distribution over TLS [8398](https://github.com/emqx/emqx/pull/8398)
|
||||||
|
|
||||||
# 5.0.1
|
# 5.0.1
|
||||||
|
|
||||||
|
5.0.1 is built on [Erlang/OTP 24.2.1-1](https://github.com/emqx/otp/tree/OTP-24.2.1-1). Same as 5.0.0.
|
||||||
|
|
||||||
|
5.0.0 (like 4.4.x) had Erlang/OTP version number in the package name.
|
||||||
|
This is because we wanted to release different flavor packages (on different Elixir/Erlang/OTP platforms).
|
||||||
|
|
||||||
|
However the long package names also causes confusion, as users may not know which to choose if there were more than
|
||||||
|
one presented at the same time.
|
||||||
|
|
||||||
|
Going forward, (starting from 5.0.1), packages will be released in both default (short) and flavored (long) package names.
|
||||||
|
|
||||||
|
For example: `emqx-5.0.1-otp24.2.1-1-ubuntu20.04-amd64.tar.gz`,
|
||||||
|
but only the default one is presented to the users: `emqx-5.0.1-ubuntu20.04-amd64.tar.gz`.
|
||||||
|
|
||||||
|
In case anyone wants to try a different flavor package, it can be downlowded from the public s3 bucket,
|
||||||
|
for example:
|
||||||
|
https://s3.us-west-2.amazonaws.com/packages.emqx/emqx-ce/v5.0.1/emqx-5.0.1-otp24.2.1-1-ubuntu20.04-arm64.tar.gz
|
||||||
|
|
||||||
|
Exceptions:
|
||||||
|
|
||||||
|
* Windows package is always presented with short name (currently on Erlang/OTP 24.2.1).
|
||||||
|
* Elixir package name is flavored with both Elixir and Erlang/OTP version numbers,
|
||||||
|
for example: `emqx-5.0.1-elixir1.13.4-otp24.2.1-1-ubuntu20.04-amd64.tar.gz`
|
||||||
|
|
||||||
## Enhancements
|
## Enhancements
|
||||||
|
|
||||||
* Removed management API auth for prometheus scraping endpoint /api/v5/prometheus/stats [8299](https://github.com/emqx/emqx/pull/8299)
|
* Removed management API auth for prometheus scraping endpoint /api/v5/prometheus/stats [8299](https://github.com/emqx/emqx/pull/8299)
|
||||||
|
|
|
@ -32,7 +32,7 @@
|
||||||
%% `apps/emqx/src/bpapi/README.md'
|
%% `apps/emqx/src/bpapi/README.md'
|
||||||
|
|
||||||
%% Community edition
|
%% Community edition
|
||||||
-define(EMQX_RELEASE_CE, "5.0.1").
|
-define(EMQX_RELEASE_CE, "5.0.2").
|
||||||
|
|
||||||
%% Enterprise edition
|
%% Enterprise edition
|
||||||
-define(EMQX_RELEASE_EE, "5.0.0-alpha.1").
|
-define(EMQX_RELEASE_EE, "5.0.0-alpha.1").
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
{id, "emqx"},
|
{id, "emqx"},
|
||||||
{description, "EMQX Core"},
|
{description, "EMQX Core"},
|
||||||
% strict semver, bump manually!
|
% strict semver, bump manually!
|
||||||
{vsn, "5.0.1"},
|
{vsn, "5.0.2"},
|
||||||
{modules, []},
|
{modules, []},
|
||||||
{registered, []},
|
{registered, []},
|
||||||
{applications, [
|
{applications, [
|
||||||
|
|
10
pkg-vsn.sh
10
pkg-vsn.sh
|
@ -120,22 +120,18 @@ fi
|
||||||
OTP_VSN="${OTP_VSN:-$(./scripts/get-otp-vsn.sh)}"
|
OTP_VSN="${OTP_VSN:-$(./scripts/get-otp-vsn.sh)}"
|
||||||
SYSTEM="$(./scripts/get-distro.sh)"
|
SYSTEM="$(./scripts/get-distro.sh)"
|
||||||
|
|
||||||
if [ "${PKG_VSN:-}" = 'v5.0.0' ]; then
|
|
||||||
# 5.0.0 is released only with a full name package
|
|
||||||
# e.g. 5.0.0-otp24.2.1-1-ubuntu20.04-amd64
|
|
||||||
case "$SYSTEM" in
|
case "$SYSTEM" in
|
||||||
windows*)
|
windows*)
|
||||||
## alway directly build the default package for windows
|
# directly build the default package for windows
|
||||||
IS_DEFAULT_RELEASE='yes'
|
IS_DEFAULT_RELEASE='yes'
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
true
|
true
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
|
||||||
|
|
||||||
UNAME="$(uname -m)"
|
UNAME_M="$(uname -m)"
|
||||||
case "$UNAME" in
|
case "$UNAME_M" in
|
||||||
x86_64)
|
x86_64)
|
||||||
ARCH='amd64'
|
ARCH='amd64'
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -24,6 +24,7 @@ while read -r app; do
|
||||||
if [ "$old_app_version" = "$now_app_version" ]; then
|
if [ "$old_app_version" = "$now_app_version" ]; then
|
||||||
changed_lines="$(git diff "$latest_release"...HEAD --ignore-blank-lines -G "$no_comment_re" \
|
changed_lines="$(git diff "$latest_release"...HEAD --ignore-blank-lines -G "$no_comment_re" \
|
||||||
-- "$app_path/src" \
|
-- "$app_path/src" \
|
||||||
|
-- "$app_path/include" \
|
||||||
-- ":(exclude)"$app_path/src/*.appup.src"" \
|
-- ":(exclude)"$app_path/src/*.appup.src"" \
|
||||||
-- "$app_path/priv" \
|
-- "$app_path/priv" \
|
||||||
-- "$app_path/c_src" | wc -l ) "
|
-- "$app_path/c_src" | wc -l ) "
|
||||||
|
|
|
@ -9,27 +9,31 @@ set -euo pipefail
|
||||||
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")/../.."
|
cd -P -- "$(dirname -- "${BASH_SOURCE[0]}")/../.."
|
||||||
ROOT_DIR="$(pwd)"
|
ROOT_DIR="$(pwd)"
|
||||||
|
|
||||||
PROFILE="${1:-emqx}"
|
PROFILE="${1:-emqx-enterprise}"
|
||||||
export PROFILE
|
export PROFILE
|
||||||
|
|
||||||
case $PROFILE in
|
case $PROFILE in
|
||||||
"emqx")
|
|
||||||
DIR='broker'
|
|
||||||
EDITION='opensource'
|
|
||||||
;;
|
|
||||||
"emqx-enterprise")
|
"emqx-enterprise")
|
||||||
DIR='enterprise'
|
DIR='enterprise'
|
||||||
EDITION='enterprise'
|
EDITION='enterprise'
|
||||||
;;
|
;;
|
||||||
|
"emqx")
|
||||||
|
echo "No relup for opensource edition"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown profile $PROFILE"
|
echo "Unknown profile $PROFILE"
|
||||||
exit 1
|
exit 1
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
UNAME="$(uname -s)"
|
SYSTEM="$(./scripts/get-distro.sh)"
|
||||||
case "$UNAME" in
|
case "$SYSTEM" in
|
||||||
Darwin)
|
windows*)
|
||||||
|
echo "NOTE: no_relup_for_windows"
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
macos*)
|
||||||
SHASUM="shasum -a 256"
|
SHASUM="shasum -a 256"
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Loading…
Reference in New Issue