Skip to content

Commit 940c6c1

Browse files
turboFeiulysses-you
authored andcommitted
[KYUUBI #1487] Correct the KEYS link and add script to generate vote and announcement
<!-- Thanks for sending a pull request! Here are some tips for you: 1. If this is your first time, please read our contributor guidelines: https://kyuubi.readthedocs.io/en/latest/community/contributions.html 2. If the PR is related to an issue in https://github.com/apache/incubator-kyuubi/issues, add '[KYUUBI #XXXX]' in your PR title, e.g., '[KYUUBI #XXXX] Your PR title ...'. 3. If the PR is unfinished, add '[WIP]' in your PR title, e.g., '[WIP][KYUUBI #XXXX] Your PR title ...'. --> ### _Why are the changes needed?_ <!-- Please clarify why the changes are needed. For instance, 1. If you add a feature, you can talk about the use case of it. 2. If you fix a bug, you can clarify why it is a bug. --> Correct the KEYS link in release template. ### _How was this patch tested?_ - [ ] Add some test cases that check the changes thoroughly including negative and positive cases if possible - [ ] Add screenshots for manual tests if appropriate - [x] [Run test](https://kyuubi.readthedocs.io/en/latest/develop_tools/testing.html#running-tests) locally before make a pull request Closes #1487 from turboFei/release_template. Closes #1487 93e5fc6 [Fei Wang] fix e06104b [Fei Wang] refactor feaab6e [Fei Wang] address comments 7675f0c [Fei Wang] add shell scripts 8360175 [Fei Wang] Correct the KEYS link in release template Authored-by: Fei Wang <fwang12@ebay.com> Signed-off-by: ulysses-you <ulyssesyou@apache.org>
1 parent 37a4e5c commit 940c6c1

File tree

6 files changed

+274
-126
lines changed

6 files changed

+274
-126
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
.scala_dependencies
4444
.settings
4545
build/apache-maven*
46+
build/release/tmp
4647
build/scala*
4748
build/test
4849
target/

build/release/tmpl/announce.tmpl renamed to build/release/script/announce.sh

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env bash
2+
13
#
24
# Licensed to the Apache Software Foundation (ASF) under one or more
35
# contributor license agreements. See the NOTICE file distributed with
@@ -15,17 +17,35 @@
1517
# limitations under the License.
1618
#
1719

18-
Title: [ANNOUNCE] Apache Kyuubi (Incubating) released {release_version}
20+
set -o pipefail
21+
set -e
1922

20-
Content:
21-
Hi all,
23+
RELEASE_DIR="$(cd "$(dirname "$0")"/..; pwd)"
24+
25+
######### Please modify the variables ##########
26+
# release version, e.g. 1.4.0-incubating
27+
release_version=${release_version:-""}
28+
################################################
29+
30+
if [[ -z $release_version ]]; then
31+
echo "Please input release version"
32+
exit 1
33+
fi
34+
35+
echo "Release version: ${release_version}"
2236

23-
# (To user@spark.apache.org)
24-
# Hello Spark Community,
25-
##
37+
RELEASE_TEMP_DIR=${RELEASE_DIR}/tmp
38+
mkdir -p ${RELEASE_TEMP_DIR}
39+
ANNOUNCE=${RELEASE_TEMP_DIR}/${release_version}_announce.temp
40+
41+
cat >$ANNOUNCE<<EOF
42+
Title: [ANNOUNCE] Apache Kyuubi (Incubating) released ${release_version}
43+
44+
Content:
45+
Hello Kyuubi Community,
2646
2747
The Apache Kyuubi (Incubating) community is pleased to announce that
28-
Apache Kyuubi (Incubating) {release_version} has been released!
48+
Apache Kyuubi (Incubating) ${release_version} has been released!
2949
3050
Apache Kyuubi (Incubating) is a distributed multi-tenant JDBC server for
3151
large-scale data processing and analytics, built on top of Apache Spark
@@ -46,7 +66,7 @@ provides the administrators a way to achieve computing resource isolation,
4666
data security, high availability, high client concurrency, etc.
4767
4868
The full release notes and download links are available at:
49-
Release Notes: https://kyuubi.apache.org/release/{release_version}.html
69+
Release Notes: https://kyuubi.apache.org/release/${release_version}.html
5070
5171
To learn more about Apache Kyuubi (Incubating), please see
5272
https://kyuubi.apache.org/
@@ -60,3 +80,7 @@ community who made this release possible!
6080
6181
Thanks,
6282
On behalf of Apache Kyuubi (Incubating) community
83+
EOF
84+
85+
echo "please Use dev@kyuubi.apache.com
86+
see announce content in $ANNOUNCE"
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
#!/usr/bin/env bash
2+
3+
#
4+
# Licensed to the Apache Software Foundation (ASF) under one or more
5+
# contributor license agreements. See the NOTICE file distributed with
6+
# this work for additional information regarding copyright ownership.
7+
# The ASF licenses this file to You under the Apache License, Version 2.0
8+
# (the "License"); you may not use this file except in compliance with
9+
# the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
#
19+
20+
set -o pipefail
21+
set -e
22+
23+
RELEASE_DIR="$(cd "$(dirname "$0")"/..; pwd)"
24+
25+
######### Please modify the variables ##########
26+
# release version, e.g. 1.4.0-incubating
27+
release_version=${release_version:-""}
28+
# release candidate number, e.g. 2
29+
release_rc_no=${release_rc_no:-""}
30+
# previous release candidate number, e.g. 1, could be empty if it is the first vote
31+
prev_release_rc_no=${prev_release_rc_no:-""}
32+
# staging repository number, check it under https://repository.apache.org/content/repositories
33+
repo_no=${repo_no:-""}
34+
################################################
35+
36+
if [[ -z $release_version ]]; then
37+
echo "Please input release version"
38+
exit 1
39+
fi
40+
if [[ -z $release_rc_no ]]; then
41+
echo "Please input release rc number"
42+
exit 1
43+
fi
44+
if [[ -z $repo_no ]]; then
45+
echo "Please input staging repository number, check it under https://repository.apache.org/content/repositories "
46+
exit 1
47+
fi
48+
49+
release_rc_tag=${release_version}-${release_rc_no}
50+
git_commit_hash=$(git rev-list -n 1 $release_rc_tag)
51+
52+
echo "Release version: ${release_version}"
53+
echo "Release candidate number: ${release_rc_no}"
54+
echo "Previous release candidate number: ${prev_release_rc_no}"
55+
echo "Staging repository number: ${repo_no}"
56+
echo "Release candidate tag: ${release_rc_tag}"
57+
echo "Release candidate tag commit hash: ${git_commit_hash}"
58+
59+
if [[ ! -z "$prev_release_rc_no" ]]; then
60+
prev_release_rc_tag=${release_version}-${prev_release_rc_no}
61+
change_from_pre_commit="
62+
The commit list since the ${prev_release_rc_no}:
63+
https://github.com/apache/incubator-kyuubi/compare/${prev_release_rc_tag}...${release_rc_tag}
64+
"
65+
fi
66+
67+
RELEASE_TEMP_DIR=${RELEASE_DIR}/tmp
68+
mkdir -p ${RELEASE_TEMP_DIR}
69+
DEV_VOTE=${RELEASE_TEMP_DIR}/${release_rc_tag}_dev_vote.temp
70+
71+
cat >${DEV_VOTE}<<EOF
72+
Title: [VOTE] Release Apache Kyuubi ${release_version} ${release_rc_no}
73+
74+
Content:
75+
Hello Apache Kyuubi PPMC and Community,
76+
77+
Please vote on releasing the following candidate as
78+
Apache Kyuubi (Incubating) version ${release_version}.
79+
80+
The VOTE will remain open for at least 72 hours.
81+
82+
[ ] +1 Release this package as Apache Kyuubi ${release_version}
83+
[ ] +0
84+
[ ] -1 Do not release this package because ...
85+
86+
To learn more about Apache Kyuubi (Incubating), please see
87+
https://kyuubi.apache.org/
88+
89+
The tag to be voted on is ${release_rc_tag} (commit ${git_commit_hash}):
90+
https://github.com/apache/incubator-kyuubi/tree/${release_rc_tag}
91+
92+
The release files, including signatures, digests, etc. can be found at:
93+
https://dist.apache.org/repos/dist/dev/incubator/kyuubi/${release_rc_tag}/
94+
95+
Signatures used for Kyuubi RCs can be found in this file:
96+
https://downloads.apache.org/incubator/kyuubi/KEYS
97+
98+
The staging repository for this release can be found at:
99+
https://repository.apache.org/content/repositories/orgapachekyuubi-${repo_no}/
100+
${change_from_pre_commit}
101+
The release note is available in:
102+
https://github.com/apache/incubator-kyuubi/releases/tag/${release_rc_tag}
103+
104+
Thanks,
105+
On behalf of Apache Kyuubi(Incubating) community
106+
EOF
107+
108+
echo "please use dev@kyuubi.apache.com
109+
see vote content in $DEV_VOTE
110+
please check all the links and ensure they are available"
Lines changed: 131 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,131 @@
1+
#!/usr/bin/env bash
2+
3+
#
4+
# Licensed to the Apache Software Foundation (ASF) under one or more
5+
# contributor license agreements. See the NOTICE file distributed with
6+
# this work for additional information regarding copyright ownership.
7+
# The ASF licenses this file to You under the Apache License, Version 2.0
8+
# (the "License"); you may not use this file except in compliance with
9+
# the License. You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
#
19+
20+
set -o pipefail
21+
set -e
22+
23+
RELEASE_DIR="$(cd "$(dirname "$0")"/..; pwd)"
24+
######### Please modify the variables ##########
25+
# release version, e.g. 1.4.0-incubating
26+
release_version=${release_version:-""}
27+
# release candidate number, e.g. 2
28+
release_rc_no=${release_rc_no:-""}
29+
# previous release candidate number, e.g. 1, could be empty if it is the first vote
30+
prev_release_rc_no=${prev_release_rc_no:-""}
31+
# staging repository number, check it under https://repository.apache.org/content/repositories
32+
repo_no=${repo_no:-""}
33+
# vote email address in dev@kyuubi.apache.org, e.g. https://www.mail-archive.com/dev@kyuubi.apache.org/msg01458.html
34+
dev_kyuubi_vote_mail_address=${dev_kyuubi_vote_mail_address:-""}
35+
# vote result email address in dev@kyuubi.apache.org, e.g. https://www.mail-archive.com/dev@kyuubi.apache.org/msg01492.html
36+
dev_kyuubi_vote_result_mail_address=${dev_kyuubi_vote_result_mail_address:-""}
37+
################################################
38+
39+
if [[ -z $release_version ]]; then
40+
echo "Please input release version"
41+
exit 1
42+
fi
43+
if [[ -z $release_rc_no ]]; then
44+
echo "Please input release rc number"
45+
exit 1
46+
fi
47+
if [[ -z $repo_no ]]; then
48+
echo "Please input staging repository number, check it under https://repository.apache.org/content/repositories"
49+
exit 1
50+
fi
51+
if [[ -z $dev_kyuubi_vote_mail_address ]]; then
52+
echo "Please input vote email address in dev@kyuubi.apache.org"
53+
exit 1
54+
fi
55+
if [[ -z $dev_kyuubi_vote_result_mail_address ]]; then
56+
echo "vote result email address in dev@kyuubi.apache.org"
57+
exit 1
58+
fi
59+
60+
release_rc_tag=${release_version}-${release_rc_no}
61+
git_commit_hash=$(git rev-list -n 1 $release_rc_tag)
62+
63+
echo "Release version: ${release_version}"
64+
echo "Release candidate number: ${release_rc_no}"
65+
echo "Previous release candidate number: ${prev_release_rc_no}"
66+
echo "Staging repository number: ${repo_no}"
67+
echo "Vote email address in dev@kyuubi.apache.org: ${dev_kyuubi_vote_mail_address}"
68+
echo "Vote result email address in dev@kyuubi.apache.org: ${dev_kyuubi_vote_result_mail_address}"
69+
echo "Release candidate tag: ${release_rc_tag}"
70+
echo "Release candidate tag commit hash: ${git_commit_hash}"
71+
72+
if [[ ! -z "$prev_release_rc_no" ]]; then
73+
prev_release_rc_tag=${release_version}-${prev_release_rc_no}
74+
change_from_pre_commit="
75+
The commit list since the ${prev_release_rc_no}:
76+
https://github.com/apache/incubator-kyuubi/compare/${prev_release_rc_tag}...${release_rc_tag}
77+
"
78+
fi
79+
80+
RELEASE_TEMP_DIR=${RELEASE_DIR}/tmp
81+
mkdir -p ${RELEASE_TEMP_DIR}
82+
GENERAL_VOTE=${RELEASE_TEMP_DIR}/${release_rc_tag}_general_vote.temp
83+
84+
cat >$GENERAL_VOTE<<EOF
85+
Title: [VOTE] Release Apache Kyuubi(Incubating) ${release_version} ${release_rc_no}
86+
87+
Content:
88+
Hello Incubator Community,
89+
90+
The Apache Kyuubi community has voted on and approved a proposal to release
91+
Apache Kyuubi(Incubating) version ${release_version} ${release_rc_no}.
92+
93+
We now kindly request the Incubator PMC members review and vote on this
94+
incubator release.
95+
96+
Kyuubi community vote thread:
97+
${dev_kyuubi_vote_mail_address}
98+
99+
Vote result thread:
100+
${dev_kyuubi_vote_result_mail_address}
101+
102+
[ ] +1 Release this package as Apache Kyuubi ${release_version}
103+
[ ] +0
104+
[ ] -1 Do not release this package because ...
105+
106+
To learn more about Apache Kyuubi (Incubating), please see
107+
https://kyuubi.apache.org/
108+
109+
The tag to be voted on is ${release_rc_tag} (commit ${git_commit_hash}):
110+
https://github.com/apache/incubator-kyuubi/tree/${release_rc_tag}
111+
112+
The release files, including signatures, digests, etc. can be found at:
113+
https://dist.apache.org/repos/dist/dev/incubator/kyuubi/${release_rc_tag}/
114+
115+
Signatures used for Kyuubi RCs can be found in this file:
116+
https://downloads.apache.org/incubator/kyuubi/KEYS
117+
118+
The staging repository for this release can be found at:
119+
https://repository.apache.org/content/repositories/orgapachekyuubi-${repo_no}/
120+
$change_from_pre_commit
121+
The release note is available in:
122+
https://github.com/apache/incubator-kyuubi/releases/tag/${release_rc_tag}
123+
124+
125+
Thanks,
126+
On behalf of Apache Kyuubi(Incubating) community
127+
EOF
128+
129+
echo "please use general@incubator.apache.com
130+
see vote content in $GENERAL_VOTE
131+
please check all the links and ensure they are available"

build/release/tmpl/dev_kyuubi_vote.tmpl

Lines changed: 0 additions & 58 deletions
This file was deleted.

0 commit comments

Comments
 (0)