Project

General

Profile

HOWTO write the release notes » History » Version 41

Yuri Weinstein, 06/16/2021 08:10 PM

1 22 David Galloway
h1. ceph.git Release Notes
2
3 33 David Galloway
*NOTE:* This will not work for hotfix releases because hotfixes usually don't have a PR.  We backup the original branch, reset the branch to the previous point release, then manually commit the hotfix.  You'll need to do the following process manually in these cases.  grep the release notes files for 'hotfix'
4
5 13 Loïc Dachary
* git clone http://github.com/ceph/ceph (or git fetch to get the latest stable branch updates). Do *not* checkout the release branch as it does not have the *ceph-release-notes* script
6
* run the following:
7 5 Loïc Dachary
<pre>
8 38 David Galloway
# IF NEEDED
9
git fetch origin nautilus:nautilus
10
git fetch origin octopus:octopus
11
git fetch origin pacific:pacific
12 31 David Galloway
cd src/script
13 20 Nathan Cutler
virtualenv v
14 1 Loïc Dachary
source v/bin/activate
15 33 David Galloway
pip3 install githubpy GitPython review requests
16 22 David Galloway
# Replace 15.2.8 with whatever the previous stable release was
17 1 Loïc Dachary
# Replace 'octopus' with whatever release you're working on
18 22 David Galloway
# Replace XXXXX with your GitHub API token
19 33 David Galloway
python3 ./ceph-release-notes  -r tags/v15.2.8..origin/octopus $(git rev-parse --show-toplevel) --token XXXXX
20 9 Loïc Dachary
deactivate
21 1 Loïc Dachary
</pre>
22 29 David Galloway
* Create a new branch either in your own fork of ceph.git or the actual ceph.git (but be careful and tidy!)
23 22 David Galloway
* Edit <code>doc/releases/RELEASE.rst</code>
24 1 Loïc Dachary
<pre>
25 22 David Galloway
vXX.X.X Branch
26
==============
27
28
This is the Xth backport release in the RELEASE series.  !! If there is a major change, it should be mentioned here.  Ask sage, josh, and neha !!
29
We recommend all users update to this release.
30
31
Notable Changes
32 1 Loïc Dachary
---------------
33 22 David Galloway
34
* Copy them from here: https://github.com/ceph/ceph/blob/octopus/PendingReleaseNotes
35 1 Loïc Dachary
36
Changelog
37
---------
38 22 David Galloway
39 29 David Galloway
* The bullet points output by <code>ceph-release-notes</code> should go here
40 1 Loïc Dachary
</pre>
41
* create a pull request with this change and request reviews from: neha-ojha, batrick, jdurgin, liewegas, cbodley, sebastian-philipp, gregsfortytwo
42 40 David Galloway
* In another PR targeting master, add the release to <code>doc/releases/index.rst</code> *AND* <code>doc/releases/releases.yml</code>.
43 29 David Galloway
44
h3. Release Notes gotchas
45
46
* The *ceph-release-notes* script requires that each pull request is prefixed with the component it relates to (mon, osd etc.). If that's not the case, it will display an error message such as
47 22 David Galloway
<pre>
48 29 David Galloway
ERROR: http://github.com/ceph/ceph/pull/4884 title Keystone PKI token expiration is not enforced does not match ^(?:hammer|infernalis|jewel|kraken): (cli|common|mon|osd|fs|librbd|rbd|fs|mds|objecter|rgw|build/ops|tests|tools|cmake|doc|crush|librados)(:.*)
49 26 David Galloway
</pre>
50 29 David Galloway
the pull request title must be edited to add the required prefix.
51 41 Yuri Weinstein
* To run the script with githib token in ~/.github_token use *_--token $(cat ~/.github_token)_*
52 22 David Galloway
53
h1. E-mail Release Notes
54
55
<pre>
56
To: ceph-announce@ceph.io, ceph-users@ceph.io, dev@ceph.io, ceph-maintainers@ceph.io
57
58
Title: vXX.X.X RELEASE released
59
60
Body:
61
We're happy to announce the Xth backport release in the RELEASE series. !! If there is a major change, it should be mentioned here.  Ask sage, josh, and neha !! We recommend users to update to this release. For a detailed release notes with links & changelog please refer to the official blog entry at https://ceph.io/releases/vXX-X-X-RELEASE-released
62
63
Notable Changes
64
---------------
65
66
* Copy bullet points from doc/releases/RELEASE.rst
67
68
Getting Ceph
69
------------
70
* Git at git://github.com/ceph/ceph.git
71 39 David Galloway
* Tarball at https://download.ceph.com/tarballs/ceph-XX.X.X.tar.gz
72 37 David Galloway
* For packages, see https://docs.ceph.com/docs/master/install/get-packages/
73 22 David Galloway
* Release git sha1: $SHA1
74
</pre>
75
76
h1. Website Release Notes
77
78
These instructions are for the Wordpress site.  These will change when the new site is launched in 2021 (?).
79
80
* Log in to the Wordpress Admin panel
81
* Go to https://ceph.io/wp-admin/edit.php
82
* Mouse over a recent "released" blog post and click *Clone*
83
* Click *Edit* on the new cloned draft
84
* Using the same script,
85
<pre>
86 24 David Galloway
./ceph-release-notes --html -r tags/v15.2.8..origin/octopus $(git rev-parse --show-toplevel) --token XXXXX
87
</pre>
88 22 David Galloway
* Update the backport release # and RELEASE name if needed
89
* Copy the notable changes from your e-mail
90 28 David Galloway
* Copy the output of <code>ceph-release-notes --html</code> under *Changelog* between the <code><u></u></code> tags.  You may need to click *Edit as HTML*
91
* Be sure to update the URL slug on the right toolbar