|
21 | 21 | set -e
|
22 | 22 |
|
23 | 23 | : ${SOURCE_DEFAULT:=1}
|
24 |
| -: ${SOURCE_UPLOAD:=${SOURCE_DEFAULT}} |
25 | 24 | : ${SOURCE_GLIB:=${SOURCE_DEFAULT}}
|
26 | 25 | : ${SOURCE_RAT:=${SOURCE_DEFAULT}}
|
| 26 | +: ${SOURCE_UPLOAD:=${SOURCE_DEFAULT}} |
| 27 | +: ${SOURCE_VOTE:=${SOURCE_DEFAULT}} |
27 | 28 |
|
28 | 29 | SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
29 | 30 | SOURCE_TOP_DIR="$(cd "${SOURCE_DIR}/../../" && pwd)"
|
|
38 | 39 |
|
39 | 40 | tag=apache-arrow-${version}
|
40 | 41 | tagrc=${tag}-rc${rc}
|
| 42 | +rc_url="https://dist.apache.org/repos/dist/dev/arrow/${tagrc}" |
41 | 43 |
|
42 | 44 | echo "Preparing source for tag ${tag}"
|
43 | 45 |
|
@@ -124,54 +126,56 @@ if [ ${SOURCE_UPLOAD} -gt 0 ]; then
|
124 | 126 | # clean up
|
125 | 127 | rm -rf tmp
|
126 | 128 |
|
127 |
| - rc_url="https://dist.apache.org/repos/dist/dev/arrow/${tagrc}" |
128 | 129 | echo "Success! The release candidate is available here:"
|
129 | 130 | echo " ${rc_url}"
|
130 | 131 | echo ""
|
131 | 132 | echo "Commit SHA1: ${release_hash}"
|
132 | 133 | echo ""
|
| 134 | +fi |
| 135 | + |
| 136 | +if [ ${SOURCE_VOTE} -gt 0 ]; then |
133 | 137 | echo "The following draft email has been created to send to the"
|
134 | 138 | echo "[email protected] mailing list"
|
135 | 139 | echo ""
|
136 | 140 | echo "---------------------------------------------------------"
|
137 |
| - # jira_url="https://issues.apache.org/jira" |
| 141 | + jira_url="https://issues.apache.org/jira" |
138 | 142 | jql="project%20%3D%20ARROW%20AND%20status%20in%20%28Resolved%2C%20Closed%29%20AND%20fixVersion%20%3D%20${version}"
|
139 | 143 | n_resolved_issues=$(curl "${jira_url}/rest/api/2/search/?jql=${jql}" | jq ".total")
|
140 | 144 | cat <<MAIL
|
141 |
| - |
142 |
| - Subject: [VOTE] Release Apache Arrow ${version} - RC${rc} |
| 145 | + |
| 146 | +Subject: [VOTE] Release Apache Arrow ${version} - RC${rc} |
143 | 147 |
|
144 |
| - Hi, |
| 148 | +Hi, |
145 | 149 |
|
146 |
| - I would like to propose the following release candidate (RC${rc}) of Apache |
147 |
| - Arrow version ${version}. This is a release consiting of ${n_resolved_issues} |
148 |
| - resolved JIRA issues[1]. |
| 150 | +I would like to propose the following release candidate (RC${rc}) of Apache |
| 151 | +Arrow version ${version}. This is a release consiting of ${n_resolved_issues} |
| 152 | +resolved JIRA issues[1]. |
149 | 153 |
|
150 |
| - This release candidate is based on commit: |
151 |
| - ${release_hash} [2] |
| 154 | +This release candidate is based on commit: |
| 155 | +${release_hash} [2] |
152 | 156 |
|
153 |
| - The source release rc${rc} is hosted at [3]. |
154 |
| - The binary artifacts are hosted at [4][5][6][7]. |
155 |
| - The changelog is located at [8]. |
| 157 | +The source release rc${rc} is hosted at [3]. |
| 158 | +The binary artifacts are hosted at [4][5][6][7]. |
| 159 | +The changelog is located at [8]. |
156 | 160 |
|
157 |
| - Please download, verify checksums and signatures, run the unit tests, |
158 |
| - and vote on the release. See [9] for how to validate a release candidate. |
| 161 | +Please download, verify checksums and signatures, run the unit tests, |
| 162 | +and vote on the release. See [9] for how to validate a release candidate. |
159 | 163 |
|
160 |
| - The vote will be open for at least 72 hours. |
| 164 | +The vote will be open for at least 72 hours. |
161 | 165 |
|
162 |
| - [ ] +1 Release this as Apache Arrow ${version} |
163 |
| - [ ] +0 |
164 |
| - [ ] -1 Do not release this as Apache Arrow ${version} because... |
| 166 | +[ ] +1 Release this as Apache Arrow ${version} |
| 167 | +[ ] +0 |
| 168 | +[ ] -1 Do not release this as Apache Arrow ${version} because... |
165 | 169 |
|
166 |
| - [1]: ${jira_url}/issues/?jql=${jql} |
167 |
| - [2]: https://github.com/apache/arrow/tree/${release_hash} |
168 |
| - [3]: ${rc_url} |
169 |
| - [4]: https://bintray.com/apache/arrow/centos-rc/${version}-rc${rc} |
170 |
| - [5]: https://bintray.com/apache/arrow/debian-rc/${version}-rc${rc} |
171 |
| - [6]: https://bintray.com/apache/arrow/python-rc/${version}-rc${rc} |
172 |
| - [7]: https://bintray.com/apache/arrow/ubuntu-rc/${version}-rc${rc} |
173 |
| - [8]: https://github.com/apache/arrow/blob/${release_hash}/CHANGELOG.md |
174 |
| - [9]: https://cwiki.apache.org/confluence/display/ARROW/How+to+Verify+Release+Candidates |
| 170 | +[1]: ${jira_url}/issues/?jql=${jql} |
| 171 | +[2]: https://github.com/apache/arrow/tree/${release_hash} |
| 172 | +[3]: ${rc_url} |
| 173 | +[4]: https://bintray.com/apache/arrow/centos-rc/${version}-rc${rc} |
| 174 | +[5]: https://bintray.com/apache/arrow/debian-rc/${version}-rc${rc} |
| 175 | +[6]: https://bintray.com/apache/arrow/python-rc/${version}-rc${rc} |
| 176 | +[7]: https://bintray.com/apache/arrow/ubuntu-rc/${version}-rc${rc} |
| 177 | +[8]: https://github.com/apache/arrow/blob/${release_hash}/CHANGELOG.md |
| 178 | +[9]: https://cwiki.apache.org/confluence/display/ARROW/How+to+Verify+Release+Candidates |
175 | 179 | MAIL
|
176 | 180 | echo "---------------------------------------------------------"
|
177 | 181 | fi
|
0 commit comments