Merge remote-tracking branch 'origin/main-v4.3' into main-v4.4
This commit is contained in:
commit
76b2e698ec
|
@ -10,13 +10,13 @@ usage() {
|
||||||
cat <<EOF
|
cat <<EOF
|
||||||
$0 RELEASE_GIT_TAG [option]
|
$0 RELEASE_GIT_TAG [option]
|
||||||
RELEASE_GIT_TAG is a 'v*' or 'e*' tag for example:
|
RELEASE_GIT_TAG is a 'v*' or 'e*' tag for example:
|
||||||
v4.3.21
|
v4.4.10
|
||||||
e4.4.10-alpha.2
|
e4.4.10-alpha.2
|
||||||
|
|
||||||
options:
|
options:
|
||||||
-h|--help: Print this usage.
|
-h|--help: Print this usage.
|
||||||
-b|--base: Specify the current release base branch, can be one of
|
-b|--base: Specify the current release base branch, can be one of
|
||||||
release-v43, release-v44, release-e43, or release-e44.
|
release-v44, release-e43, or release-e44.
|
||||||
NOTE: this option should be used when --dryrun.
|
NOTE: this option should be used when --dryrun.
|
||||||
--dryrun: Do not actually create the git tag.
|
--dryrun: Do not actually create the git tag.
|
||||||
--skip-appup: Skip checking appup
|
--skip-appup: Skip checking appup
|
||||||
|
@ -25,17 +25,20 @@ options:
|
||||||
NOTE: When cutting a 'e*' tag release, both the opensource and enterprise
|
NOTE: When cutting a 'e*' tag release, both the opensource and enterprise
|
||||||
repos should be found as a fetch-remote in the current git repo.
|
repos should be found as a fetch-remote in the current git repo.
|
||||||
|
|
||||||
NOTE: For 4.3 series the current working branch must be 'release-v43' for opensource edition
|
NOTE: For 4.4 series the current working branch must be 'release-v44' for opensource edition
|
||||||
and 'release-e43' for enterprise edition.
|
and 'release-e44' for enterprise edition.
|
||||||
--.--[main-v4.3]------------------.-----------.---
|
--.--[main-v4.4]------------------.-----------.---
|
||||||
\\ / \\
|
\\ / \\
|
||||||
\`---[release-v43]----(v4.3.X) \\
|
\`---[release-v44]----(v4.4.X) \\
|
||||||
\\ \\
|
\\ \\
|
||||||
.---[release-e43]-------------'--(e4.3.Y) \\
|
.---[release-e44]-------------'--(e4.4.Y) \\
|
||||||
/ \\ V
|
/ \\ V
|
||||||
--'------[main-v4.3-enterprise]---------------'----'---
|
--'------[main-v4.4-enterprise]---------------'----'---
|
||||||
The same applies to 4.4 series, however, a 4.3 branch is also the upstream branch
|
|
||||||
for the corresponding 4.4 branch. e.g. release-e44 has two upstreams: release-v44 and release-e43
|
NOTE: For 4.3 opensource edition, it reached its 18-month EOL in November 2022.
|
||||||
|
only enterprise edition will be continue supported.
|
||||||
|
For issues affecting both 4.3 and 4.4, two separate PRs should be created
|
||||||
|
one for main-v4.3-enterprise and another for main-v4.4 or main-v4.4-enterprise
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,9 +49,6 @@ logmsg() {
|
||||||
echo "INFO: $1"
|
echo "INFO: $1"
|
||||||
}
|
}
|
||||||
|
|
||||||
REL_BRANCH_CE="${REL_BRANCH_CE:-release-v43}"
|
|
||||||
REL_BRANCH_EE="${REL_BRANCH_EE:-release-e43}"
|
|
||||||
|
|
||||||
TAG="${1:-}"
|
TAG="${1:-}"
|
||||||
|
|
||||||
case "$TAG" in
|
case "$TAG" in
|
||||||
|
@ -115,9 +115,6 @@ done
|
||||||
rel_branch() {
|
rel_branch() {
|
||||||
local tag="$1"
|
local tag="$1"
|
||||||
case "$tag" in
|
case "$tag" in
|
||||||
v4.3.*)
|
|
||||||
echo 'release-v43'
|
|
||||||
;;
|
|
||||||
e4.3.*)
|
e4.3.*)
|
||||||
echo 'release-e43'
|
echo 'release-e43'
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -19,14 +19,10 @@ options:
|
||||||
It tries to merge (by default with --ff-only option)
|
It tries to merge (by default with --ff-only option)
|
||||||
upstreams branches for the current working branch.
|
upstreams branches for the current working branch.
|
||||||
The uppstream branch of the current branch are as below:
|
The uppstream branch of the current branch are as below:
|
||||||
* v43: [] # no upstream for 4.3 opensource edition
|
* v43: [] # no upstream for 4.3 opensource edition
|
||||||
* e43: [v43] # 4.3 enterprise has 4.3 opensource as upstream
|
* e43: [v43] # 4.3 enterprise has 4.3 opensource as upstream
|
||||||
* v44: [v43] # 4.4 opensource has 4.3 opensource as upstream
|
* v44: [] # no upstream for 4.4 opensource edition (since November 2022)
|
||||||
* e44: [e43, v44, v43] # 4.4 enterprise has all the above 3 as upstream
|
* e44: [v44] # 4.4 enterprise has all the above 3 as upstream
|
||||||
For e44:
|
|
||||||
v43 is an indirect upstream.
|
|
||||||
Ideally the merge of v43 should be done through v44 or e43,
|
|
||||||
but it does not hurt to apply a direct merge.
|
|
||||||
|
|
||||||
-b|--base:
|
-b|--base:
|
||||||
The base branch of current working branch if currently is not
|
The base branch of current working branch if currently is not
|
||||||
|
@ -173,25 +169,25 @@ upstream_branches() {
|
||||||
remote_ref "$base"
|
remote_ref "$base"
|
||||||
;;
|
;;
|
||||||
release-v44)
|
release-v44)
|
||||||
remote_refs "$base" 'release-v43'
|
remote_refs "$base"
|
||||||
;;
|
;;
|
||||||
release-e43)
|
release-e43)
|
||||||
remote_refs "$base" 'release-v43'
|
remote_refs "$base" 'release-v43'
|
||||||
;;
|
;;
|
||||||
release-e44)
|
release-e44)
|
||||||
remote_refs "$base" 'release-v44' 'release-e43' 'release-v43'
|
remote_refs "$base" 'release-v44'
|
||||||
;;
|
;;
|
||||||
main-v4.3)
|
main-v4.3)
|
||||||
remote_refs "$base" 'release-v43'
|
remote_refs "$base" 'release-v43'
|
||||||
;;
|
;;
|
||||||
main-v4.4)
|
main-v4.4)
|
||||||
remote_refs "$base" 'release-v44' 'main-v4.3'
|
remote_refs "$base" 'release-v44'
|
||||||
;;
|
;;
|
||||||
main-v4.3-enterprise)
|
main-v4.3-enterprise)
|
||||||
remote_refs "$base" 'release-e43' 'main-v4.3'
|
remote_refs "$base" 'release-e43' 'main-v4.3'
|
||||||
;;
|
;;
|
||||||
main-v4.4-enterprise)
|
main-v4.4-enterprise)
|
||||||
remote_refs "$base" 'release-e44' 'main-v4.4' 'main-v4.3-enterprise' 'main-v4.3'
|
remote_refs "$base" 'release-e44' 'main-v4.4'
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue