You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by al...@apache.org on 2016/11/03 21:49:02 UTC

[5/6] mesos git commit: Cleaned up formatting in release-guide.md according to our guidelines.

Cleaned up formatting in release-guide.md according to our guidelines.

This change includes:
* Automatic enumeration of lists.
* Title case capitalization.
* Correct spacing between sections.
* Correct indentation of text and code snippets.
* Correct decoration of notes and code snippets.
* Wrapped text for readability and diff-ability.

Review: https://reviews.apache.org/r/53384


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/612d9640
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/612d9640
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/612d9640

Branch: refs/heads/master
Commit: 612d9640305920135dd6b0e05a18be2202bfdfcf
Parents: d6fe063
Author: Alexander Rukletsov <al...@apache.org>
Authored: Wed Nov 2 15:23:44 2016 +0100
Committer: Alexander Rukletsov <al...@apache.org>
Committed: Thu Nov 3 22:29:32 2016 +0100

----------------------------------------------------------------------
 docs/release-guide.md | 256 +++++++++++++++++++++++++++------------------
 1 file changed, 157 insertions(+), 99 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/612d9640/docs/release-guide.md
----------------------------------------------------------------------
diff --git a/docs/release-guide.md b/docs/release-guide.md
index ee9b005..f86f2f8 100644
--- a/docs/release-guide.md
+++ b/docs/release-guide.md
@@ -7,7 +7,6 @@ layout: documentation
 
 This guide describes the process of doing an official release of Mesos.
 
------------------------------------------------------------------------
 
 ## Prerequisites
 
@@ -15,25 +14,27 @@ This guide describes the process of doing an official release of Mesos.
 
 2. Add your GPG public key to the Apache Mesos dist repository in the KEYS file.
 
-    - Fetch the svn repository:<br>
-      `svn co https://dist.apache.org/repos/dist/release/mesos`
+   * Fetch the svn repository:<br>
+     `svn co https://dist.apache.org/repos/dist/release/mesos`
 
-    - Append your public key using one of methods described in KEYS,
-      e.g.,<br>
-      `(gpg --list-sigs <your name> && gpg --armor --export <your name>) >> KEYS`.
+   * Append your public key using one of methods described in KEYS, e.g.:<br>
+     `(gpg --list-sigs <your name> && gpg --armor --export <your name>) >> KEYS`.
 
-    - Push the commit:<br>
-      `svn ci`
+   * Push the commit:<br>
+     `svn ci`
 
-3. Submit your GPG public key to a keyserver, e.g., [MIT PGP Public Key Server](https://pgp.mit.edu).
+3. Submit your GPG public key to a keyserver, e.g.,
+   [MIT PGP Public Key Server](https://pgp.mit.edu).
 
-4. Add your GPG fingerprint (`gpg --fingerprint <your name>`) to your [Apache account](https://id.apache.org/).
+4. Add your GPG fingerprint (`gpg --fingerprint <your name>`) to your
+   [Apache account](https://id.apache.org/).
 
 5. Create a Maven settings file (`~/.m2/settings.xml`) for the Apache
    servers where you must copy your encrypted Apache password which
-   you can get from running `mvn --encrypt-password` (NOTE: you may
-   need to first generate a [master
-   password](http://maven.apache.org/guides/mini/guide-encryption.html).
+   you can get from running `mvn --encrypt-password`.
+
+   **NOTE:** You may need to first generate a
+   [master password](http://maven.apache.org/guides/mini/guide-encryption.html).
 
         <settings>
           <servers>
@@ -55,22 +56,25 @@ This guide describes the process of doing an official release of Mesos.
 
 ## Preparation
 
-1. Go to [Apache Jira](https://issues.apache.org/jira/browse/MESOS) and make sure that
-   the CHANGELOG for the release version is up to date.
+1. Go to [Apache JIRA](https://issues.apache.org/jira/browse/MESOS) and make
+   sure that the `CHANGELOG` for the release version is up to date.
 
-    > NOTE: You should move all **Unresolved** tickets marked with `Fix Version`
-      or `Target Version` as the release version to the next release version.
+   **NOTE:** You should move all **Unresolved** tickets marked with `Fix Version`
+   or `Target Version` as the release version to the next release version.
 
-    > PROTIP: Use a JIRA dashboard [(example)](https://issues.apache.org/jira/secure/Dashboard.jspa?selectPageId=12329720)
-      to track the progress of targeted issues as the release date approaches. This
-      JIRA filter may be useful (`<X.Y.Z>` is the release version):
-      `project = MESOS AND "Target Version/s" = <X.Y.Z> AND (fixVersion != <X.Y.Z> OR fixVersion = EMPTY)`
+   **PROTIP:** Use a JIRA dashboard
+   [(example)](https://issues.apache.org/jira/secure/Dashboard.jspa?selectPageId=12329720)
+   to track the progress of targeted issues as the release date approaches. This
+   JIRA filter may be useful (`<X.Y.Z>` is the release version):
+   `project = MESOS AND "Target Version/s" = <X.Y.Z> AND (fixVersion != <X.Y.Z> OR fixVersion = EMPTY)`
 
-    > PROTIP: Use `bulk edit` option in JIRA to move the tickets and make sure to
-      **uncheck** the option that emails everyone about the move to avoid spamming.
+   **PROTIP:** Use `bulk edit` option in JIRA to move the tickets and make sure
+   to **uncheck** the option that emails everyone about the move to avoid
+   spamming.
 
-2. Checkout the correct branch for the release. For regular releases this is the "master" branch. For
-   patch releases this would be the corresponding release branch (e.g., 1.0.x).
+2. Checkout the correct branch for the release. For regular releases this is the
+   "master" branch. For patch releases this would be the corresponding release
+   branch (e.g., 1.0.x).
 
 3. Update and commit the `CHANGELOG` for the release.
 
@@ -92,41 +96,53 @@ This guide describes the process of doing an official release of Mesos.
      current release. Do not forget to mention features transitioning from
      experimental to stable in this release at the top of the `CHANGELOG`.
 
-    > NOTE: You should use JIRA to generate the CHANGELOG for you. Click on the release
-      version in [JIRA](https://issues.apache.org/jira/browse/MESOS#selectedTab=com.atlassian.jira.plugin.system.project%3Aversions-panel) and click
-      on the `Release Notes`. Make sure to configure the release notes in text format.
+   **NOTE:** You should use JIRA to generate the major portion of the
+   `CHANGELOG` for you. Click on the release version in
+   [JIRA](https://issues.apache.org/jira/browse/MESOS#selectedTab=com.atlassian.jira.plugin.system.project%3Aversions-panel)
+   and click on the `Release Notes`. Make sure to configure the release notes
+   in text format.
 
-    > NOTE: The JIRA Release Notes will list only tickets with `Fix Version` set
-      to that version. You should check for any Resolved tickets that have
-      `Target Version` set but not `Fix Version`. Also check for any Unresolved
-      or `Duplicate`/`Invalid` tickets that incorrectly set the `Fix Version`.
+   **NOTE:** The JIRA Release Notes will list only tickets with `Fix Version`
+   set to that version. You should check for any Resolved tickets that have
+   `Target Version` set but not `Fix Version`. Also check for any Unresolved
+   or `Duplicate`/`Invalid` tickets that incorrectly set the `Fix Version`.
 
    For patch releases update the `CHANGELOG` on master branch and then cherry
    pick onto the release branch.
 
-4. Ensure version in `configure.ac` and `CMakeLists.txt` is correctly set for the release.
+4. Ensure version in `configure.ac` and `CMakeLists.txt` is correctly set for
+   the release.
 
-5. Run `make && support/generate-endpoint-help.py` and commit any resulting changes.
+5. Run `make && support/generate-endpoint-help.py` and commit any resulting
+   changes.
 
 6. Update and commit `docs/configuration.md` to reflect the current state of
-   the master, agent, and configure flags. If this is a patch release, update it on master branch
-   and then cherry pick onto the release branch.
+   the master, agent, and configure flags. If this is a patch release, update
+   it on master branch and then cherry pick onto the release branch.
 
-7. If this is a regular release, update and commit `docs/upgrades.md` with instructions about
-   how to upgrade a live cluster from the previous release version to this release version.
+7. If this is a regular release, update and commit `docs/upgrades.md` with
+   instructions about how to upgrade a live cluster from the previous release
+   version to this release version.
 
 8. If this is a regular release, please ensure that user documentation has been
    added for any new features.
 
-9. Make sure that for any updates of the API, specifically the scheduler API, the public mesos protobuf definitions are part of both, `include/mesos` as well as `include/mesos/v1`. NOTE: This might actually demand code updates if any omissions were identified.
+9. Make sure that for any updates of the API, specifically the scheduler API,
+   the public mesos protobuf definitions are part of both, `include/mesos` as
+   well as `include/mesos/v1`.
+
+   **NOTE:** This might actually demand code updates if any omissions were
+   identified.
 
-## Tagging the release candidate
+
+## Tagging the Release Candidate
 
 1. Ensure that you can build and pass all the tests.
 
         $ sudo make -j<cores> distcheck
 
-2. Run the benchmarks and compare with the previous release for any performance regressions:
+2. Run the benchmarks and compare with the previous release for any performance
+   regressions:
 
         $ make bench -j<cores> GTEST_FILTER="*BENCHMARK*"
 
@@ -134,118 +150,160 @@ This guide describes the process of doing an official release of Mesos.
 
         $ git tag <X.Y.Z-rcR>
 
-    > NOTE: `X.Y.Z` is based on [semantic versioning](http://semver.org/) scheme. `R` is release
-            candidate version that starts with 1.
+   **NOTE:** `X.Y.Z` is based on [semantic versioning](http://semver.org/)
+   scheme. `R` is release candidate version that starts with 1.
 
-4. Tag the release externally and deploy the corresponding JAR to the [Apache maven repository](https://repository.apache.org).
-   It is recommended to use the `support/tag.sh` script to accomplish this.
+4. Tag the release externally and deploy the corresponding JAR to the
+   [Apache maven repository](https://repository.apache.org). It is recommended
+   to use the `support/tag.sh` script to accomplish this.
 
         $ ./support/tag.sh X.Y.Z R
 
-    > NOTE: This script assumes that you have the requisite permissions to deploy the JAR. For
-      instructions on how to set it up, please refer to `src/java/MESOS-MAVEN-README`.
+   **NOTE:** This script assumes that you have the requisite permissions to
+   deploy the JAR. For instructions on how to set it up, please refer to
+   `src/java/MESOS-MAVEN-README`.
 
-    > NOTE: gnu-sed (Linux) requires `-i''` instead of the `-i ''` (space-separated) that default OSX uses.
-      You may need to modify your local copy of tag.sh for it to complete successfully.
+   **NOTE:** gnu-sed (Linux) requires `-i''` instead of the `-i ''`
+   (space-separated) that default OSX uses. You may need to modify your local
+   copy of `tag.sh` for it to complete successfully.
 
-5. If this is a regular release, create a new release branch (<major>.<minor>.x) from this tag.
+5. If this is a regular release, create a new release branch (<major>.<minor>.x)
+   from this tag.
 
-		$ git checkout -b X.Y.x
+        $ git checkout -b X.Y.x
 
-	Now, update master branch to the *next*  minor version in `configure.ac`: change `AC_INIT([mesos], [X.Y.Z]))`,
-	as well as in `CMakeLists.txt`: change `set(MESOS_MAJOR_VERSION X)`, `set(MESOS_MINOR_VERSION Y)`, `set(MESOS_PATCH_VERSION Z)` and then commit.
+   Now, update master branch to the *next*  minor version in `configure.ac`:
+   change `AC_INIT([mesos], [X.Y.Z]))`, as well as in `CMakeLists.txt`:
+   change `set(MESOS_MAJOR_VERSION X)`, `set(MESOS_MINOR_VERSION Y)`,
+   `set(MESOS_PATCH_VERSION Z)` and then commit.
 
 
-## Voting the release candidate
+## Voting the Release Candidate
 
-1. Once a release candidate is deemed worthy to be officially released you should call a vote on
-   the `dev@mesos.apache.org` (and optionally `user@mesos.apache.org`) mailing list.
+1. Once a release candidate is deemed worthy to be officially released you
+   should call a vote on the `dev@mesos.apache.org` (and optionally
+   `user@mesos.apache.org`) mailing list.
 
-2. It is recommended to use the `support/vote.sh` script to vote the release candidate.
+2. It is recommended to use the `support/vote.sh` script to vote the release
+   candidate.
 
         $ ./support/vote.sh X.Y.Z R
 
-3. The release script also spits out an email template that you could use to send the vote email.
+3. The release script also spits out an email template that you could use to
+   send the vote email.
+
+   **NOTE:** The `date -v+3d` command does not work on some platforms (e.g.
+   Ubuntu), so you may need to fill in the vote end date manually. The vote
+   should last for 3 business days instead of 3 calendar days anyway. Sometimes
+   we allow a longer vote, to allow more time for integration testing.
 
-    > NOTE: The `date -v+3d` command does not work on some platforms (e.g. Ubuntu),
-      so you may need to fill in the vote end date manually. The vote should last
-      for 3 business days instead of 3 calendar days anyway. Sometimes we prefer a
-      weeklong vote, to allow more time for integration testing.
 
-## Preparing a new release candidate
+## Preparing a New Release Candidate
 
-1. If the vote does not pass (any -1s or showstopper bugs), track the issues as new JIRAs for the release.
+1. If the vote does not pass (any -1s or showstopper bugs), track the issues
+   as new JIRAs for the release.
 
-2. When all known issues are resolved, update the CHANGELOG with the newly fixed JIRAs.
+2. When all known issues are resolved, update the `CHANGELOG` with the newly
+   fixed JIRAs.
 
-3. Once all patches are committed to master, cherry-pick them on to the corresponding release branch.
-   This is the same process used for patch releases (e.g., 1.0.2) as well.
+3. Once all patches are committed to master, cherry-pick them on to the
+   corresponding release branch. This is the same process used for patch
+   releases (e.g., 1.0.2) as well.
 
         $ git checkout X.Y.x
         $ git cherry-pick abcdefgh...
 
-4. Now go back up to the "Tagging the release candidate" section and repeat.
+4. Now go back up to the "Tagging the Release Candidate" section and repeat.
 
-## Releasing the release candidate
 
-1. You should only release an official version if the vote passes with at least **3 +1 binding votes
-   and no -1 votes**. For more information, please refer to [Apache release guidelines](http://www.apache.org/dev/release.html).
+## Releasing the Release Candidate
+
+1. You should only release an official version if the vote passes with at
+   least **3 +1 binding votes and no -1 votes**. For more information, please
+   refer to [Apache release guidelines](http://www.apache.org/dev/release.html).
 
 2. It is recommended to use `support/release.sh` script to release the candidate.
 
         $ ./support/release.sh X.Y.Z R
 
-3. The release script also spits out an email template that you could use to notify the mailing lists about
-   the result of the vote and the release.
-
-    > NOTE: Make sure you fill the email template with the names of binding voters.
+3. The release script also spits out an email template that you could use to
+   notify the mailing lists about the result of the vote and the release.
 
-4. Update the version in configure.ac and CMakeLists.txt in the **release** branch to the **next** patch version.
+   **NOTE:** Make sure you fill the email template with the names of binding
+   and non-binding voters.
 
+4. Update the version in `configure.ac` and `CMakeLists.txt` in the **release**
+   branch to the **next** patch version.
 
 
-## Updating the website
+## Updating the Website
 
-1. After a successful release, add the information associated with the release in `site/data/releases.yml`. It is used to generate the release information on the website.
+1. After a successful release, add the information associated with the release
+   in `site/data/releases.yml`. It is used to generate the release information
+   on the website.
 
-2. Update the [Getting Started](getting-started.md) guide to use the latest release link.
+2. Update the [Getting Started](getting-started.md) guide to use the latest
+   release link.
 
 3. Check out the website from svn.
 
         $ svn co https://svn.apache.org/repos/asf/mesos/site mesos-site
 
-   See our [website README](https://github.com/apache/mesos/blob/master/site/README.md/) for details on how to build the website.
-   See the general [Apache project website guide](https://www.apache.org/dev/project-site.html) for details on how to publish the website.
+   See our [website README](https://github.com/apache/mesos/blob/master/site/README.md/)
+   for details on how to build the website. See the general
+   [Apache project website guide](https://www.apache.org/dev/project-site.html)
+   for details on how to publish the website.
+
+4. Write a blog post announcing the new release and its features and major bug
+   fixes. Include a link to the updated website.
+
 
-4. Write a blog post announcing the new release and its features and major bug fixes. Include a link to the updated website.
+## Removing Old Releases from svn
 
-## Remove old releases from svn
+Per the guidelines [when to archive](http://www.apache.org/dev/release.html#when-to-archive),
+we should only keep the latest release in each version under development.
 
-Per the guidelines [when to archive](http://www.apache.org/dev/release.html#when-to-archive), we should only keep the latest release in each version under development.
+1. Checkout the mesos distribution folder:
 
-1. Checkout the mesos distribution folder: `svn co https://dist.apache.org/repos/dist/release/mesos`
+        $ svn co https://dist.apache.org/repos/dist/release/mesos
 
-2. Remove all minor versions that are no longer under development and commit the change.
+2. Remove all minor versions that are no longer under development and commit
+   the change.
 
-## Release the version on JIRA
 
-1. Find the released Mesos version on https://issues.apache.org/jira/plugins/servlet/project-config/MESOS/versions, and "release" it (click on "settings" --> "Release") with the correct release date. Also, make sure to add the names of
-the release managers in "Description" section.
+## Releasing the Version on JIRA
 
+Find the released Mesos version
+[here](https://issues.apache.org/jira/plugins/servlet/project-config/MESOS/versions),
+and "release" it with the correct release date by clicking on
+"settings"&nbsp;&rarr;&nbsp;"Release". Also, make sure to add the names of the
+release managers in "Description" section.
 
-## Update external tooling
+
+## Updating External Tooling
 
 Upload the mesos.interface package to PyPi.
 
-  1. Create/use a PyPi account with access to the [mesos.interface submit form](https://pypi.python.org/pypi?name=mesos.interface&:action=submit_form).
-     You may need to ask a current package owner to add you as an owner/maintainer.
-  1. Setup your [`~/.pypirc`](https://docs.python.org/2/distutils/packageindex.html#pypirc) with your PyPi username and password.
-  1. After a successful Mesos `make` (any architecture), cd to `build/src/python/interface`.
-  1. Run `python setup.py register` to register this package.
-  1. Run `python setup.py sdist bdist_egg upload` to upload the source distribution and egg for this package.
+1. Create/use a PyPi account with access to the
+   [mesos.interface submit form](https://pypi.python.org/pypi?name=mesos.interface&:action=submit_form).
+   You may need to ask a current package owner to add you as an owner/maintainer.
+
+2. Setup your [`~/.pypirc`](https://docs.python.org/2/distutils/packageindex.html#pypirc)
+   with your PyPi username and password.
+
+3. After a successful Mesos `make` (any architecture), cd to
+   `build/src/python/interface`.
+
+4. Run `python setup.py register` to register this package.
+
+5. Run `python setup.py sdist bdist_egg upload` to upload the source
+   distribution and egg for this package.
 
 Update the Mesos Homebrew package.
 
-  1. Update the [Homebrew formula for Mesos](https://github.com/Homebrew/homebrew-core/blob/master/Formula/mesos.rb) and test.
-  1. Submit a PR to the [Homebrew repo](https://github.com/Homebrew/homebrew-core).
-  1. Once accepted, verify that `brew install mesos` works.
+1. Update the [Homebrew formula for Mesos](https://github.com/Homebrew/homebrew-core/blob/master/Formula/mesos.rb)
+   and test.
+
+2. Submit a PR to the [Homebrew repo](https://github.com/Homebrew/homebrew-core).
+
+3. Once accepted, verify that `brew install mesos` works.