Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = Making a Gerrit Release |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 2 | |
| 3 | [NOTE] |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 4 | This document is meant primarily for Gerrit maintainers |
| 5 | who have been given approval and submit status to the Gerrit |
| 6 | projects. Additionally, maintainers should be given owner |
| 7 | status to the Gerrit web site. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 8 | |
| 9 | To make a Gerrit release involves a great deal of complex |
| 10 | tasks and it is easy to miss a step so this document should |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 11 | hopefully serve as both a how to for those new to the process |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 12 | and as a checklist for those already familiar with these |
| 13 | tasks. |
| 14 | |
| 15 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 16 | == Gerrit Release Type |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 17 | |
| 18 | Here are some guidelines on release approaches depending on the |
Patrick Hiesel | 9d165c5 | 2017-04-13 10:08:53 +0200 | [diff] [blame] | 19 | type of release you want to make (`stable-fix`, `stable`, `rc0`, |
| 20 | `rc1`...). |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 21 | |
Edwin Kempin | 60ab853 | 2013-03-27 14:33:46 +0100 | [diff] [blame] | 22 | [[stable]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 23 | === Stable |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 24 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 25 | A `stable` release is generally built from the `master` branch and may |
| 26 | need to undergo some stabilization before releasing the final release. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 27 | |
| 28 | * Propose the release with any plans/objectives to the mailing list |
| 29 | |
Patrick Hiesel | 9d165c5 | 2017-04-13 10:08:53 +0200 | [diff] [blame] | 30 | * Create a Gerrit `rc0` |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 31 | |
Patrick Hiesel | 9d165c5 | 2017-04-13 10:08:53 +0200 | [diff] [blame] | 32 | * If needed create a Gerrit `rc1` |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 33 | |
| 34 | [NOTE] |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 35 | You may let in a few features to this release |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 36 | |
Patrick Hiesel | 9d165c5 | 2017-04-13 10:08:53 +0200 | [diff] [blame] | 37 | * If needed create a Gerrit `rc2` |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 38 | |
| 39 | [NOTE] |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 40 | There should be no new features in this release, only bug fixes |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 41 | |
Patrick Hiesel | 9d165c5 | 2017-04-13 10:08:53 +0200 | [diff] [blame] | 42 | * Finally create the `stable` release (no `rc`) |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 43 | |
| 44 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 45 | === Stable-Fix |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 46 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 47 | `stable-fix` releases should likely only contain bug fixes and doc |
| 48 | updates. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 49 | |
Edwin Kempin | a0272a5 | 2012-12-28 10:25:57 +0100 | [diff] [blame] | 50 | * Propose the release with any plans/objectives to the mailing list |
| 51 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 52 | * This type of release does not need any RCs, release when the |
| 53 | objectives are met |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 54 | |
| 55 | |
Edwin Kempin | 60ab853 | 2013-03-27 14:33:46 +0100 | [diff] [blame] | 56 | [[security]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 57 | === Security-Fix |
Edwin Kempin | d71591e | 2012-12-28 10:50:38 +0100 | [diff] [blame] | 58 | |
| 59 | `security-fix` releases should only contain bug fixes for security |
| 60 | issues. |
| 61 | |
| 62 | For security issues it is important that they are only announced |
| 63 | *after* fixed versions for all relevant releases have been published. |
David Pursehouse | 452ea4c | 2013-01-07 17:30:47 +0900 | [diff] [blame] | 64 | Because of this, `security-fix` releases can't be prepared in the public |
Edwin Kempin | d71591e | 2012-12-28 10:50:38 +0100 | [diff] [blame] | 65 | `gerrit` project. |
| 66 | |
| 67 | `security-fix` releases are prepared in the `gerrit-security-fixes` |
| 68 | project which is only readable by the Gerrit Maintainers. Only after |
David Pursehouse | 452ea4c | 2013-01-07 17:30:47 +0900 | [diff] [blame] | 69 | a `security-fix` release has been published will the commits/tags made in |
| 70 | the `gerrit-security-fixes` project be taken over into the public |
Edwin Kempin | d71591e | 2012-12-28 10:50:38 +0100 | [diff] [blame] | 71 | `gerrit` project. |
| 72 | |
| 73 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 74 | == Create the Actual Release |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 75 | |
Dave Borowitz | 9b87707 | 2017-10-01 16:17:42 -0400 | [diff] [blame] | 76 | [[update-versions]] |
| 77 | === Update Versions and Create Release Tag |
Edwin Kempin | 6ba2194 | 2014-06-03 09:16:20 +0200 | [diff] [blame] | 78 | |
Patrick Hiesel | 9d165c5 | 2017-04-13 10:08:53 +0200 | [diff] [blame] | 79 | Before doing the release build, the `GERRIT_VERSION` in the `version.bzl` |
Dave Borowitz | 2360765 | 2017-10-01 20:16:49 +0100 | [diff] [blame] | 80 | file must be updated, e.g. change it from `$version-SNAPSHOT` to `$version`. |
Edwin Kempin | 6ba2194 | 2014-06-03 09:16:20 +0200 | [diff] [blame] | 81 | |
Dave Borowitz | f4f1ca0 | 2017-10-10 09:26:17 -0400 | [diff] [blame] | 82 | In addition the version must be updated in a number of `*_pom.xml` files. |
Dave Borowitz | 9b87707 | 2017-10-01 16:17:42 -0400 | [diff] [blame] | 83 | |
| 84 | To do this run the `./tools/version.py` script and provide the new |
| 85 | version as parameter, e.g.: |
| 86 | |
| 87 | ---- |
David Pursehouse | 9cb3fc2 | 2017-10-12 09:43:02 +0900 | [diff] [blame] | 88 | version=2.15 |
| 89 | ./tools/version.py $version |
Dave Borowitz | 9b87707 | 2017-10-01 16:17:42 -0400 | [diff] [blame] | 90 | ---- |
| 91 | |
| 92 | Commit the changes and create a signed release tag on the new commit: |
Edwin Kempin | 6ba2194 | 2014-06-03 09:16:20 +0200 | [diff] [blame] | 93 | |
| 94 | ---- |
Dave Borowitz | 2360765 | 2017-10-01 20:16:49 +0100 | [diff] [blame] | 95 | git tag -s -m "v$version" "v$version" |
Edwin Kempin | 6ba2194 | 2014-06-03 09:16:20 +0200 | [diff] [blame] | 96 | ---- |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 97 | |
David Pursehouse | a1ab3e7 | 2015-01-30 14:57:11 +0900 | [diff] [blame] | 98 | Tag the plugins: |
| 99 | |
| 100 | ---- |
David Pursehouse | 89aeba9 | 2019-10-18 19:20:29 +0900 | [diff] [blame] | 101 | git submodule foreach '[ "$path" == "modules/jgit" ] || git tag -s -m "v$version" "v$version"' |
David Pursehouse | a1ab3e7 | 2015-01-30 14:57:11 +0900 | [diff] [blame] | 102 | ---- |
| 103 | |
Shawn Pearce | bf8ebbe | 2013-05-06 14:23:26 -0700 | [diff] [blame] | 104 | [[build-gerrit]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 105 | === Build Gerrit |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 106 | |
Yuxuan 'fishy' Wang | 6714b0d | 2016-05-03 12:58:04 -0700 | [diff] [blame] | 107 | * Build the Gerrit WAR, API JARs and documentation |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 108 | + |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 109 | ---- |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 110 | bazel build release Documentation:searchfree |
| 111 | ./tools/maven/api.sh install |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 112 | ---- |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 113 | |
Dave Borowitz | 4c04000 | 2017-10-02 12:51:34 +0100 | [diff] [blame] | 114 | * Verify the WAR version: |
| 115 | + |
| 116 | ---- |
| 117 | java -jar ~/dl/gerrit-$version.war --version |
| 118 | ---- |
| 119 | * Try upgrading a test site and launching the daemon |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 120 | |
David Pursehouse | 7eb16eb | 2016-03-11 12:01:56 +0900 | [diff] [blame] | 121 | * Verify plugin versions |
| 122 | + |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 123 | Verify the versions: |
David Pursehouse | 7eb16eb | 2016-03-11 12:01:56 +0900 | [diff] [blame] | 124 | + |
| 125 | ---- |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 126 | java -jar bazel-bin/release.war init --list-plugins |
David Pursehouse | 7eb16eb | 2016-03-11 12:01:56 +0900 | [diff] [blame] | 127 | ---- |
| 128 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 129 | [[publish-gerrit]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 130 | === Publish the Gerrit Release |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 131 | |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 132 | [[publish-to-maven-central]] |
| 133 | ==== Publish the Gerrit artifacts to Maven Central |
| 134 | |
| 135 | * Make sure you have done the |
| 136 | link:dev-release-deploy-config.html#deploy-configuration-setting-maven-central[ |
| 137 | configuration] for deploying to Maven Central |
| 138 | |
Dave Borowitz | 9b87707 | 2017-10-01 16:17:42 -0400 | [diff] [blame] | 139 | * Make sure that the version is updated in the `version.bzl` file and in |
Dave Borowitz | f4f1ca0 | 2017-10-10 09:26:17 -0400 | [diff] [blame] | 140 | the `*_pom.xml` files as described in the link:#update-versions[Update |
Dave Borowitz | 9b87707 | 2017-10-01 16:17:42 -0400 | [diff] [blame] | 141 | Versions and Create Release Tag] section. |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 142 | |
Edwin Kempin | e5b4943 | 2014-06-03 09:25:39 +0200 | [diff] [blame] | 143 | * Push the WAR to Maven Central: |
| 144 | + |
| 145 | ---- |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 146 | ./tools/maven/api.sh war_deploy |
Edwin Kempin | e5b4943 | 2014-06-03 09:25:39 +0200 | [diff] [blame] | 147 | ---- |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 148 | |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 149 | * Push the plugin artifacts to Maven Central: |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 150 | + |
| 151 | ---- |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 152 | ./tools/maven/api.sh deploy |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 153 | ---- |
| 154 | |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 155 | * To where the artifacts are uploaded depends on the `GERRIT_VERSION` in |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 156 | the `version.bzl` file: |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 157 | |
| 158 | ** SNAPSHOT versions are directly uploaded into the Sonatype snapshots |
| 159 | repository and no further action is needed: |
| 160 | + |
| 161 | https://oss.sonatype.org/content/repositories/snapshots/com/google/gerrit/ |
| 162 | |
| 163 | ** Release versions are uploaded into a staging repository in the |
| 164 | link:https://oss.sonatype.org/[Sonatype Nexus Server]. |
| 165 | |
| 166 | * Verify the staging repository |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 167 | |
| 168 | ** Go to the link:https://oss.sonatype.org/[Sonatype Nexus Server] and |
| 169 | sign in with your Sonatype credentials. |
| 170 | |
Edwin Kempin | 58bc313 | 2014-06-05 14:56:58 +0200 | [diff] [blame] | 171 | ** Click on 'Build Promotion' in the left navigation bar under |
| 172 | 'Staging Repositories' and find the `comgooglegerrit-XXXX` staging |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 173 | repository. |
| 174 | |
| 175 | ** Verify its content |
| 176 | + |
| 177 | While the staging repository is open you can upload further content and |
| 178 | also replace uploaded artifacts. If something is wrong with the staging |
| 179 | repository you can drop it by selecting it and clicking on `Drop`. |
| 180 | |
| 181 | ** Run Sonatype validations on the staging repository |
| 182 | + |
| 183 | Select the staging repository and click on `Close`. This runs the |
| 184 | Sonatype validations on the staging repository. The repository will |
| 185 | only be closed if everything is OK. A closed repository cannot be |
| 186 | modified anymore, but you may still drop it if you find any issues. |
| 187 | |
| 188 | ** Test closed staging repository |
| 189 | + |
| 190 | Once a repository is closed you can find the URL to it in the `Summary` |
| 191 | section, e.g. https://oss.sonatype.org/content/repositories/comgooglegerrit-1029 |
| 192 | + |
| 193 | Use this URL for further testing of the artifacts in this repository, |
| 194 | e.g. to try building a plugin against the plugin API in this repository |
Dave Borowitz | f4f1ca0 | 2017-10-10 09:26:17 -0400 | [diff] [blame] | 195 | update the version in the `*_pom.xml` and configure the repository: |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 196 | + |
| 197 | ---- |
| 198 | <repositories> |
| 199 | <repository> |
| 200 | <id>gerrit-staging-repository</id> |
| 201 | <url>https://oss.sonatype.org/content/repositories/comgooglegerrit-1029</url> |
| 202 | </repository> |
| 203 | </repositories> |
| 204 | ---- |
| 205 | |
| 206 | * Release the staging repository |
| 207 | + |
| 208 | How to release a staging repository is described in the |
| 209 | link:https://docs.sonatype.org/display/Repository/Sonatype+OSS+Maven+Repository+Usage+Guide#SonatypeOSSMavenRepositoryUsageGuide-8.a.2.ReleasingaStagingRepository[ |
| 210 | Sonatype OSS Maven Repository Usage Guide]. |
| 211 | + |
| 212 | [WARNING] |
| 213 | Releasing artifacts to Maven Central cannot be undone! |
| 214 | |
| 215 | ** Find the closed staging repository in the |
| 216 | link:https://oss.sonatype.org/[Sonatype Nexus Server], select it and |
| 217 | click on `Release`. |
| 218 | |
Edwin Kempin | 8e63cf4 | 2014-06-04 14:24:20 +0200 | [diff] [blame] | 219 | ** The released artifacts are available in |
| 220 | https://oss.sonatype.org/content/repositories/releases/com/google/gerrit/ |
| 221 | |
Edwin Kempin | 210b636 | 2014-06-03 13:33:16 +0200 | [diff] [blame] | 222 | ** It may take up to 2 hours until the artifacts appear on Maven |
| 223 | Central: |
| 224 | + |
Edwin Kempin | 8e63cf4 | 2014-06-04 14:24:20 +0200 | [diff] [blame] | 225 | http://central.maven.org/maven2/com/google/gerrit/ |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 226 | |
Edwin Kempin | 58bc313 | 2014-06-05 14:56:58 +0200 | [diff] [blame] | 227 | * [optional]: View download statistics |
| 228 | |
| 229 | ** Sign in to the |
| 230 | link:https://oss.sonatype.org/[Sonatype Nexus Server]. |
| 231 | |
| 232 | ** Click on 'Views/Repositories' in the left navigation bar under |
| 233 | 'Central Statistics'. |
| 234 | |
| 235 | ** Select `com.google.gerrit` as `Project`. |
| 236 | |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 237 | |
David Pursehouse | dd066e4 | 2015-04-17 17:53:57 +0900 | [diff] [blame] | 238 | [[publish-to-google-storage]] |
| 239 | ==== Publish the Gerrit WAR to the Google Cloud Storage |
| 240 | |
David Pursehouse | af652ab | 2016-08-29 16:37:22 +0900 | [diff] [blame] | 241 | * go to the link:https://console.cloud.google.com/storage/browser/gerrit-releases/?project=api-project-164060093628[ |
| 242 | gerrit-releases bucket in the Google cloud storage console] |
David Pursehouse | dd066e4 | 2015-04-17 17:53:57 +0900 | [diff] [blame] | 243 | * make sure you are signed in with your Gmail account |
| 244 | * manually upload the Gerrit WAR file by using the `Upload` button |
| 245 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 246 | [[push-stable]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 247 | ==== Push the Stable Branch |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 248 | |
Dave Borowitz | 2360765 | 2017-10-01 20:16:49 +0100 | [diff] [blame] | 249 | * Create the stable branch `stable-$version` in the `gerrit` project via the |
David Pursehouse | 122f078 | 2018-09-28 13:45:23 +0900 | [diff] [blame] | 250 | link:https://gerrit-review.googlesource.com/admin/repos/gerrit,branches[ |
David Pursehouse | a1d633b | 2014-05-02 17:21:02 +0900 | [diff] [blame] | 251 | Gerrit Web UI] or by push. |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 252 | |
Dave Borowitz | 2360765 | 2017-10-01 20:16:49 +0100 | [diff] [blame] | 253 | * Push the commits done on `stable-$version` to `refs/for/stable-$version` and |
David Pursehouse | faf30c5 | 2019-08-26 09:31:50 +0900 | [diff] [blame] | 254 | get them merged. |
| 255 | |
Monty Taylor | 78f5bf3 | 2019-08-25 16:12:02 +0200 | [diff] [blame] | 256 | * Create a change updating the `defaultbranch` field in the `.gitreview` |
| 257 | to match the branch name created. |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 258 | |
| 259 | |
| 260 | [[push-tag]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 261 | ==== Push the Release Tag |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 262 | |
David Pursehouse | a1ab3e7 | 2015-01-30 14:57:11 +0900 | [diff] [blame] | 263 | Push the new Release Tag: |
| 264 | |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 265 | ---- |
Dave Borowitz | 2360765 | 2017-10-01 20:16:49 +0100 | [diff] [blame] | 266 | git push gerrit-review tag v$version |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 267 | ---- |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 268 | |
David Pursehouse | a1ab3e7 | 2015-01-30 14:57:11 +0900 | [diff] [blame] | 269 | Push the new Release Tag on the plugins: |
| 270 | |
| 271 | ---- |
Dave Borowitz | 2360765 | 2017-10-01 20:16:49 +0100 | [diff] [blame] | 272 | git submodule foreach git push gerrit-review tag v$version |
David Pursehouse | a1ab3e7 | 2015-01-30 14:57:11 +0900 | [diff] [blame] | 273 | ---- |
| 274 | |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 275 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 276 | [[upload-documentation]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 277 | ==== Upload the Documentation |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 278 | |
Yuxuan 'fishy' Wang | 6714b0d | 2016-05-03 12:58:04 -0700 | [diff] [blame] | 279 | * Extract the documentation files from the zip file generated from |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 280 | `bazel build searchfree`: `bazel-bin/Documentation/searchfree.zip`. |
David Pursehouse | db62816 | 2014-12-09 19:33:01 +0900 | [diff] [blame] | 281 | |
David Pursehouse | 62106ac | 2016-03-11 14:19:48 +0900 | [diff] [blame] | 282 | * Upload the files manually via web browser to the appropriate folder |
| 283 | in the |
David Pursehouse | af652ab | 2016-08-29 16:37:22 +0900 | [diff] [blame] | 284 | link:https://console.cloud.google.com/storage/browser/gerrit-documentation/?project=api-project-164060093628[ |
David Pursehouse | a8dca2f | 2015-04-17 13:59:29 +0900 | [diff] [blame] | 285 | gerrit-documentation] storage bucket. |
Yuxuan 'fishy' Wang | f780397 | 2014-09-03 12:23:21 -0700 | [diff] [blame] | 286 | |
David Pursehouse | d228d6d | 2016-10-19 19:25:35 +0900 | [diff] [blame] | 287 | [[finalize-release-notes]] |
| 288 | === Finalize the Release Notes |
| 289 | |
| 290 | Upload a change on the homepage project to: |
| 291 | |
| 292 | * Remove 'In Development' caveat from the relevant section. |
| 293 | |
| 294 | * Add links to the released documentation and the .war file, and make the |
| 295 | latest version bold. |
| 296 | |
David Pursehouse | db62816 | 2014-12-09 19:33:01 +0900 | [diff] [blame] | 297 | [[update-links]] |
David Pursehouse | 08726a8 | 2015-07-14 11:46:20 +0900 | [diff] [blame] | 298 | ==== Update homepage links |
Yuxuan 'fishy' Wang | f780397 | 2014-09-03 12:23:21 -0700 | [diff] [blame] | 299 | |
David Pursehouse | 122f078 | 2018-09-28 13:45:23 +0900 | [diff] [blame] | 300 | Upload a change on the link:https://gerrit-review.googlesource.com/admin/repos/homepage[ |
David Pursehouse | 08726a8 | 2015-07-14 11:46:20 +0900 | [diff] [blame] | 301 | homepage project] to change the version numbers to the new version. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 302 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 303 | [[update-issues]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 304 | ==== Update the Issues |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 305 | |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 306 | Update the issues by hand. There is no script for this. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 307 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 308 | Our current process is an issue should be updated to say `Status = |
Dave Borowitz | 2360765 | 2017-10-01 20:16:49 +0100 | [diff] [blame] | 309 | Submitted, FixedIn-$version` once the change is submitted, but before the |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 310 | release. |
| 311 | |
| 312 | After the release is actually made, you can search in Google Code for |
Dave Borowitz | 2360765 | 2017-10-01 20:16:49 +0100 | [diff] [blame] | 313 | `Status=Submitted FixedIn=$version` and then batch update these changes |
Michael Ochmann | b99feab | 2016-07-06 14:10:22 +0200 | [diff] [blame] | 314 | to say `Status=Released`. Make sure the pulldown says `All Issues` |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 315 | because `Status=Submitted` is considered a closed issue. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 316 | |
| 317 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 318 | [[announce]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 319 | ==== Announce on Mailing List |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 320 | |
David Pursehouse | d15e436 | 2017-07-19 11:06:52 +0900 | [diff] [blame] | 321 | Send an email to the mailing list to announce the release. The content of the |
David Pursehouse | 731e265 | 2018-06-21 15:44:46 +0900 | [diff] [blame] | 322 | announcement email is generated with the `release-announcement.py` script from |
| 323 | the gerrit-release-tools repository, which automatically includes all the |
| 324 | necessary links, hash values, and wraps the text in a PGP signature. |
David Pursehouse | b3f1deb | 2017-06-30 13:37:11 +0900 | [diff] [blame] | 325 | |
David Pursehouse | d15e436 | 2017-07-19 11:06:52 +0900 | [diff] [blame] | 326 | For details refer to the documentation in the script's header, and/or the |
| 327 | help text: |
| 328 | |
| 329 | ---- |
David Pursehouse | 731e265 | 2018-06-21 15:44:46 +0900 | [diff] [blame] | 330 | ~/gerrit-release-tools/release-announcement.py --help |
David Pursehouse | d15e436 | 2017-07-19 11:06:52 +0900 | [diff] [blame] | 331 | ---- |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 332 | |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 333 | [[increase-version]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 334 | === Increase Gerrit Version for Current Development |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 335 | |
David Pursehouse | f7c9f2c | 2014-12-09 19:36:04 +0900 | [diff] [blame] | 336 | All new development that is done in the `master` branch will be included in the |
| 337 | next Gerrit release. The Gerrit version should be set to the snapshot version |
| 338 | for the next release. |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 339 | |
David Ostrovsky | fdbfcad | 2016-11-15 06:35:29 -0800 | [diff] [blame] | 340 | Use the `version` tool to set the version in the `version.bzl` file: |
David Pursehouse | f7c9f2c | 2014-12-09 19:36:04 +0900 | [diff] [blame] | 341 | |
| 342 | ---- |
Patrick Hiesel | 9d165c5 | 2017-04-13 10:08:53 +0200 | [diff] [blame] | 343 | ./tools/version.py 2.6-SNAPSHOT |
David Pursehouse | f7c9f2c | 2014-12-09 19:36:04 +0900 | [diff] [blame] | 344 | ---- |
| 345 | |
| 346 | Verify that the changes made by the tool are sane, then commit them, push |
| 347 | the change for review on the master branch, and get it merged. |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 348 | |
| 349 | [[merge-stable]] |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 350 | === Merge `stable` into `master` |
Edwin Kempin | bb8e625 | 2012-07-31 14:30:35 +0200 | [diff] [blame] | 351 | |
| 352 | After every release, stable should be merged to master to ensure that |
| 353 | none of the changes/fixes ever get lost. |
Martin Fick | 21e278e | 2012-02-23 13:45:54 -0700 | [diff] [blame] | 354 | |
David Pursehouse | 383a318 | 2013-12-06 13:06:57 +0900 | [diff] [blame] | 355 | ---- |
| 356 | git config merge.summary true |
| 357 | git checkout master |
| 358 | git reset --hard origin/master |
| 359 | git branch -f stable origin/stable |
| 360 | git merge stable |
| 361 | ---- |
Martin Fick | ec31ff4 | 2012-06-23 11:35:39 -0600 | [diff] [blame] | 362 | |
David Ostrovsky | 01a33d8 | 2017-08-31 19:49:12 +0200 | [diff] [blame] | 363 | [[update-api-version-in-bazlets-repository]] |
| 364 | |
| 365 | Bazlets is used by gerrit plugins to simplify build process. To allow the |
| 366 | new released version to be used by gerrit plugins, |
| 367 | link:https://gerrit.googlesource.com/bazlets/+/master/gerrit_api.bzl#8[gerrit_api.bzl] |
| 368 | must reference the new version. Upload a change to bazlets repository with |
| 369 | api version upgrade. |
Martin Fick | ec31ff4 | 2012-06-23 11:35:39 -0600 | [diff] [blame] | 370 | |
Patrick Hiesel | 14f5aec | 2018-09-04 14:33:11 +0200 | [diff] [blame] | 371 | [[clean-up-on-master]] |
| 372 | === Clean up on master |
| 373 | |
| 374 | Once you are done with the release, check if there are any code changes in the |
| 375 | master branch that were gated on the next release. Mostly, these are |
| 376 | feature-deprecations that we were holding off on to have a stable release where |
| 377 | the feature is still contained, but marked as deprecated. |
| 378 | |
Luca Milanesio | 38dd328 | 2019-08-22 13:49:58 +0100 | [diff] [blame] | 379 | See link:dev-processes.html#deprecating-features[Deprecating features] for |
Patrick Hiesel | 14f5aec | 2018-09-04 14:33:11 +0200 | [diff] [blame] | 380 | details. |
| 381 | |
Martin Fick | ec31ff4 | 2012-06-23 11:35:39 -0600 | [diff] [blame] | 382 | GERRIT |
| 383 | ------ |
| 384 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 385 | |
| 386 | SEARCHBOX |
| 387 | --------- |