/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
1
Releasing Bazaar
2
================
3
4
This document describes the processes for making and announcing a Bazaar
3778.2.1 by Martin Pool
Updated release process documentation.
5
release, and managing the release process.  This is just one phase of the 
4634.39.36 by Ian Clatworthy
Get plain-style documentation generation working again
6
`overall development cycle <http://doc.bazaar-vcs.org/developers/cycle.html>`_,
7
but it's the most complex part.
3778.2.1 by Martin Pool
Updated release process documentation.
8
This document gives a checklist you can follow from start to end in one
9
go.
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
10
4634.13.4 by Vincent Ladeuil
More tweaks.
11
If you're helping the Release Manager (RM) for one reason or another, you
12
may notice that he didn't follow that document scrupulously. He may have
4634.13.6 by Vincent Ladeuil
Fixed as per Ian's review.
13
good reasons to do that but he may also have missed some parts.
4634.13.4 by Vincent Ladeuil
More tweaks.
14
15
Follow the document yourself and don't hesitate to create the missing
16
milestones for example (we tend to forget these ones a lot).
17
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
18
.. contents::
19
4584.2.1 by Martin Pool
Update release cycle doc for 6m cycles
20
4632.2.1 by Martin Pool
Release docs: bzr-pqm is a precondition not part of the every-release process
21
Preconditions
22
-------------
23
24
#. Download the pqm plugin and install it into your ``~/.bazaar/plugins``::
25
26
     bzr branch lp:bzr-pqm ~/.bazaar/plugins/pqm
27
4634.13.1 by Vincent Ladeuil
Feedback on the 2.0rc1 release.
28
29
Starting a cycle
30
----------------
31
32
To start a new release cycle:
33
34
#. Create a new series at <https://launchpad.net/bzr/+addseries>. There is one
35
   series for every *x.y* release.
36
4675.2.1 by Robert Collins
Milestones language tightning, internal consistency.
37
#. Go to the series web page at <https://launchpad.net/bzr/x.y>
4634.13.1 by Vincent Ladeuil
Feedback on the 2.0rc1 release.
38
39
#. Create a new release at
4675.2.1 by Robert Collins
Milestones language tightning, internal consistency.
40
   <https://launchpad.net/bzr/x.y/+addrelease> and add
4634.13.1 by Vincent Ladeuil
Feedback on the 2.0rc1 release.
41
   information about this release. We will not use it yet, but it
42
   will be available for targeting or nominating bugs.
43
4634.13.2 by Vincent Ladeuil
Fixed as per Martin's review.
44
#. We create a new pqm-controlled branch for this release series, by
45
   asking a Canonical sysadmin.  
46
   This branch means that from the first release beta or candidate onwards,
47
   general development continues on the trunk, and only
48
   specifically-targeted fixes go into the release branch.
49
4675.2.1 by Robert Collins
Milestones language tightning, internal consistency.
50
#. Add milestones at <https://edge.launchpad.net/bzr/x.y/+addmilestone> to
4634.13.2 by Vincent Ladeuil
Fixed as per Martin's review.
51
   that series for the beta release, release candidate and the final release,
52
   and their expected dates.
4634.13.1 by Vincent Ladeuil
Feedback on the 2.0rc1 release.
53
54
#. Update the version number in the ``bzr`` script, and the
4634.13.4 by Vincent Ladeuil
More tweaks.
55
   ``bzrlib/__init__.py`` file. Make sure there is always a corresponding
56
   milestone when you change that version number.
4634.13.1 by Vincent Ladeuil
Feedback on the 2.0rc1 release.
57
58
#. Send mail to the list with the key dates, who will be the release
59
   manager, and the main themes or targeted bugs.  Ask people to nominate
60
   objectives, or point out any high-risk things that are best done early,
4634.13.2 by Vincent Ladeuil
Fixed as per Martin's review.
61
   or that interact with other changes. This is called the metronome mail
4634.13.4 by Vincent Ladeuil
More tweaks.
62
   and is described in `Development cycles <cycle.html>`_.
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
63
3464.3.6 by Martin Pool
Release process updates
64
#. Make a local branch for preparing this release.  (Only for the first 
65
   release in a series, otherwise you should already have a branch.) ::
66
4104.7.1 by Robert J. Tanner
Updated the releasing.html document, adding some documentation on things I had
67
     bzr branch trunk prepare-1.14
68
4675.2.2 by Robert Collins
Replace bazaar-vcs.org/bzr/ references with launchpad hosting urls in developer docs.
69
#. Configure pqm-submit for this branch, with a section like this (where
70
   x.y is the version to release).
3464.3.6 by Martin Pool
Release process updates
71
   ``~/.bazaar/locations.conf``::
72
4675.2.2 by Robert Collins
Replace bazaar-vcs.org/bzr/ references with launchpad hosting urls in developer docs.
73
	[/home/mbp/bzr/prepare-x.y]
3464.3.6 by Martin Pool
Release process updates
74
	pqm_email = Canonical PQM <pqm@bazaar-vcs.org>
4675.2.2 by Robert Collins
Replace bazaar-vcs.org/bzr/ references with launchpad hosting urls in developer docs.
75
	submit_branch = http://bazaar.launchpad.net/~bzr-pqm/bzr/x.y
4820.1.1 by Vincent Ladeuil
Further clarifications on building releases
76
	parent_branch = http://bazaar.launchpad.net/~bzr-pqm/bzr/x.y
4675.2.2 by Robert Collins
Replace bazaar-vcs.org/bzr/ references with launchpad hosting urls in developer docs.
77
	public_branch = http://bazaar.example.com/prepare-x.y
3464.3.6 by Martin Pool
Release process updates
78
	submit_to = bazaar@lists.canonical.com
4634.13.2 by Vincent Ladeuil
Fixed as per Martin's review.
79
	smtp_server = mail.example.com:25
4104.7.1 by Robert J. Tanner
Updated the releasing.html document, adding some documentation on things I had
80
4634.39.12 by Ian Clatworthy
pdf generation of the Developer Guide
81
    Please see <http://doc.bazaar-vcs.org/developers/HACKING.html#an-overview-of-pqm>
4070.10.13 by Martin Pool
Remove or correct broken links
82
    for more details on PQM
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
83
4152.2.7 by Robert J. Tanner
Added explicit instructions to check ./bzr _script_version ./bzrlib/__init__.py
84
#. In the release branch, update  ``version_info`` in ``./bzrlib/__init__.py``.
4634.13.4 by Vincent Ladeuil
More tweaks.
85
   Make sure the corresponding milestone exists.
4152.2.7 by Robert J. Tanner
Added explicit instructions to check ./bzr _script_version ./bzrlib/__init__.py
86
   Double check that ./bzr ``_script_version`` matches ``version_info``. Check
4634.13.1 by Vincent Ladeuil
Feedback on the 2.0rc1 release.
87
   the output of ``bzr --version``.
88
89
   For beta releases use::
90
91
       version_info = (2, 1, 0, 'beta', 1)
92
93
94
   For release candidates use::
95
96
       version_info = (2, 0, 1, 'candidate', 1)
97
3778.2.1 by Martin Pool
Updated release process documentation.
98
4634.13.4 by Vincent Ladeuil
More tweaks.
99
Starting the release phase
100
--------------------------
101
4820.1.1 by Vincent Ladeuil
Further clarifications on building releases
102
#. Create a new milestone at <https://launchpad.net/bzr/x.y/+addmilestone>
4634.13.4 by Vincent Ladeuil
More tweaks.
103
   for the beta release or release candidate if you haven't already.
104
3778.2.1 by Martin Pool
Updated release process documentation.
105
#. Add the date and release number to ``./NEWS``
106
4634.100.1 by Vincent Ladeuil
NEWS is sorted by date.
107
   Depending on whether you're doing a beta or a bugfix release, you'll
4634.100.2 by Vincent Ladeuil
Fix typos.
108
   have to create a NEWS section for your release in the right
4634.100.1 by Vincent Ladeuil
NEWS is sorted by date.
109
   place. Most of the time, the new section is at the top of the file
110
   (look what have been done for the various 2.0x and 2.1.0bx releases).
4634.100.2 by Vincent Ladeuil
Fix typos.
111
   The rule is to keep the sections sorted by date. You'll need to be
4634.100.1 by Vincent Ladeuil
NEWS is sorted by date.
112
   cautious when merging back to trunk to respect that.
4634.13.4 by Vincent Ladeuil
More tweaks.
113
3966.2.6 by Jelmer Vernooij
Mention check-newsbugs.py in the release document.
114
#. To check that all bugs mentioned in ``./NEWS`` are actually marked as
115
   closed in Launchpad, you can run ``tools/check-newsbugs.py``::
116
117
     ./tools/check-newsbugs.py NEWS
118
4595.6.2 by Martin Pool
Guidance on using check-newsbugs when releasing
119
   (But note there can be some false positives, and this script may be
4632.2.2 by Martin Pool
Minor ReST tweak
120
   flaky <https://bugs.edge.launchpad.net/bzr/+bug/354985>.  Don't let
121
   this slow you down too much.)
4595.6.2 by Martin Pool
Guidance on using check-newsbugs when releasing
122
3778.2.1 by Martin Pool
Updated release process documentation.
123
#. Summarize into one or two paragraphs what's new in this release.
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
124
125
#. Commit these changes to the release branch, using a command like::
126
    
4104.7.1 by Robert J. Tanner
Updated the releasing.html document, adding some documentation on things I had
127
     bzr commit -m "Release 1.14." 
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
128
   
129
   The diff before you commit will be something like::
130
3778.2.2 by John Arbash Meinel
Rewrap some doc text, update the diff hunk to be accurate for current NEWS.
131
     === modified file 'NEWS'
132
     --- NEWS        2008-09-17 23:09:18 +0000
133
     +++ NEWS        2008-09-23 16:14:54 +0000
134
     @@ -4,6 +4,23 @@
135
     
136
      .. contents::
137
     
138
     +bzr 1.7 2008-09-23
139
     +------------------
140
     +
141
     +This release includes many bug fixes and a few performance and feature
142
     +improvements.  ``bzr rm`` will now scan for missing files and remove them,
143
     +like how ``bzr add`` scans for unknown files and adds them. A bit more
144
     +polish has been applied to the stacking code. The b-tree indexing code has
145
     +been brought in, with an eye on using it in a future repository format.
146
     +There are only minor installer changes since bzr-1.7rc2.
147
     +
148
      bzr 1.7rc2 2008-09-17
149
      ---------------------
150
     
151
     
152
     === modified file 'bzrlib/__init__.py'
153
     --- bzrlib/__init__.py  2008-09-16 21:39:28 +0000
154
     +++ bzrlib/__init__.py  2008-09-23 16:14:54 +0000
155
     @@ -41,7 +41,7 @@
156
      # Python version 2.0 is (2, 0, 0, 'final', 0)."  Additionally we use a
157
      # releaselevel of 'dev' for unreleased under-development code.
158
     
159
     -version_info = (1, 7, 0, 'candidate', 2)
160
     +version_info = (1, 7, 0, 'final', 0)
161
     
162
     
163
      # API compatibility version: bzrlib is currently API compatible with 1.7.
164
      
4634.13.3 by Vincent Ladeuil
Fix rst formatting issues.
165
#. Tag the new release::
3997.2.1 by Jelmer Vernooij
Add tagging to the release process.
166
4104.7.1 by Robert J. Tanner
Updated the releasing.html document, adding some documentation on things I had
167
     bzr tag bzr-1.14
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
168
4152.2.2 by Robert J. Tanner
Updated to releasing.txt based on my experiences as the release manager for
169
#. Push those changes to a bzr reposistory that is public and accessible on
170
   the Internet. PQM will pull from this repository when it attempts to merge
171
   your changes. Then submit those changes to PQM for merge into the
172
   appropriate release branch::
3464.3.6 by Martin Pool
Release process updates
173
 
174
     bzr push
4104.7.1 by Robert J. Tanner
Updated the releasing.html document, adding some documentation on things I had
175
     bzr pqm-submit -m "(mbp) prepare 1.14"
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
176
177
#. When PQM succeeds, pull down the master release branch.
178
3464.3.6 by Martin Pool
Release process updates
179
3383.2.4 by Martin Pool
Trim from the release instructions things that are now automated or unnecessary
180
Making the source tarball
181
-------------------------
182
3408.1.3 by Martin Pool
More release process updates
183
#. Change into the source directory and run ::
3383.2.4 by Martin Pool
Trim from the release instructions things that are now automated or unnecessary
184
  
185
     make dist
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
186
3408.1.3 by Martin Pool
More release process updates
187
#. Now we'll try expanding this tarball and running the test suite
188
   to check for packaging problems::
189
 
190
     make check-dist-tarball
3383.2.5 by Martin Pool
merge trunk
191
4634.13.1 by Vincent Ladeuil
Feedback on the 2.0rc1 release.
192
   You may encounter failures while running the test suite caused
4634.13.2 by Vincent Ladeuil
Fixed as per Martin's review.
193
   by your locally installed plugins. Use your own judgment to
4634.13.1 by Vincent Ladeuil
Feedback on the 2.0rc1 release.
194
   decide if you can release with these failures. When in doubt,
195
   disable the faulty plugins one by one until you get no more
196
   failures.
197
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
198
4676.6.1 by mbp at sourcefrog
Updates to release process docs.
199
Publishing the source tarball
200
-----------------------------
201
202
#. Go to the relevant milestone page in Launchpad.
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
203
4676.7.2 by Martin Pool
Remove mention of source zip from release process doc
204
#. Within that release, upload the source tarball and the GPG
3778.3.3 by Martin Pool
Build zip file from 'make dist' and document this; also tweak standard announcement mail
205
   signature.  Or, if you prefer, use the
206
   ``tools/packaging/lp-upload-release`` script to do this.
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
207
4676.6.1 by mbp at sourcefrog
Updates to release process docs.
208
209
Announcing the source freeze
210
----------------------------
211
212
#. Post to the ``bazaar`` list, saying that the source has been frozen.
213
   This is the cue for platform maintainers and plugin authors to update
214
   their code.  This is done before the general public announcement of the
215
   release.
216
217
218
Publishing the release
219
----------------------
220
221
There is normally a delay of a few days after the source freeze to allow
222
for binaries to be built on various platforms.  Once they have been built,
223
we have a releasable product.  The next step is to make it generally
224
available to the world.
225
4634.13.1 by Vincent Ladeuil
Feedback on the 2.0rc1 release.
226
go to the release
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
227
3778.3.3 by Martin Pool
Build zip file from 'make dist' and document this; also tweak standard announcement mail
228
#. Within that release, upload the source tarball and zipfile and the GPG
229
   signature.  Or, if you prefer, use the
230
   ``tools/packaging/lp-upload-release`` script to do this.
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
231
4634.67.1 by Ian Clatworthy
update release documentation to mention the new website
232
#. Link from http://bazaar-vcs.org/SourceDownloads to the tarball and
233
   signature.
234
235
#. Announce on the `Bazaar website <http://bazaar-vcs.org/>`_.
236
   This page is edited via the lp:bzr-website branch. (Changes
237
   pushed to this branch are refreshed by a cron job on escudero.)
238
239
#. Announce on the `Bazaar wiki <http://bazaar-vcs.org/Welcome>`_.
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
240
4634.13.1 by Vincent Ladeuil
Feedback on the 2.0rc1 release.
241
#. Check that the documentation for this release is available in
242
   <http://doc.bazaar-vcs.org>.  It should be automatically build when the
3778.2.1 by Martin Pool
Updated release process documentation.
243
   branch is created, by a cron script ``update-bzr-docs`` on
4634.13.2 by Vincent Ladeuil
Fixed as per Martin's review.
244
   ``escudero``. As of today (2009-08-27) ``igc`` manually updates the
245
   pretty version of it.
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
246
247
248
Announcing the release
249
----------------------
250
251
Now that the release is publicly available, tell people about it.
252
3778.2.1 by Martin Pool
Updated release process documentation.
253
#. Make an announcement mail.
254
4634.13.1 by Vincent Ladeuil
Feedback on the 2.0rc1 release.
255
   For release candidates or beta releases, this is sent to the ``bazaar``
256
   list only to inform plugin authors and package or installer managers.
257
258
   Once the installers are available, the mail can be sent to the
259
   ``bazaar-announce`` list too.
260
261
   For final releases, it should also be cc'd to ``info-gnu@gnu.org``,
262
   ``python-announce-list@python.org``, ``bug-directory@gnu.org``.  
263
264
   In all cases, it is good to set ``Reply-To: bazaar@lists.canonical.com``,
265
   so that people who reply to the announcement don't spam other lists.
3778.2.1 by Martin Pool
Updated release process documentation.
266
4439.1.2 by Martin Pool
Change release message template to a preformatted block so you can more easily copy and paste it into a mail.
267
   The announce mail will look something like this::
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
268
   
4439.1.2 by Martin Pool
Change release message template to a preformatted block so you can more easily copy and paste it into a mail.
269
      Subject: bzr x.yy released!
270
      
271
      <<Summary paragraph from news>>
272
     
273
      The Bazaar team is happy to announce availability of a new 
274
      release of the bzr adaptive version control system.
4439.1.6 by Martin Pool
Tweak text about GNU in release template
275
      Bazaar is part of the GNU system <http://gnu.org/>.
4439.1.2 by Martin Pool
Change release message template to a preformatted block so you can more easily copy and paste it into a mail.
276
     
277
      Thanks to everyone who contributed patches, suggestions, and
278
      feedback.
279
      
280
      Bazaar is now available for download from 
281
      http://bazaar-vcs.org/Download as a source tarball; packages 
282
      for various systems will be available soon.
283
      
284
      <<NEWS section from this release back to the last major release>>
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
285
4439.1.1 by Martin Pool
Release mails should mention bzr's a GNU project
286
   Feel free to tweak this to your taste.
287
3815.1.1 by Martin Pool
Add Launchpad announcement to the release process
288
#. Make an announcement through <https://launchpad.net/bzr/+announce>
289
3778.2.2 by John Arbash Meinel
Rewrap some doc text, update the diff hunk to be accurate for current NEWS.
290
#. Update the IRC channel topic. Use the ``/topic`` command to do this,
291
   ensuring the new topic text keeps the project name, web site link, etc.
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
292
293
#. Announce on http://freshmeat.net/projects/bzr/
294
   
4634.13.1 by Vincent Ladeuil
Feedback on the 2.0rc1 release.
295
   This should be done for beta releases, release candidates and final
296
   releases. If you do not have a Freshmeat account yet, ask one of the
297
   existing admins.
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
298
4634.13.1 by Vincent Ladeuil
Feedback on the 2.0rc1 release.
299
#. Update `<http://en.wikipedia.org/wiki/Bazaar_(software)>`_ -- this should
300
   be done for final releases but not for beta releases or Release Candidates.
3497.3.1 by Martin Pool
Add note to update GNU directory
301
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
302
#. Update the python package index: <http://pypi.python.org/pypi/bzr> - best
303
   done by running ::
304
305
       python setup.py register
306
307
   Remember to check the results afterwards.
308
3408.1.3 by Martin Pool
More release process updates
309
   To be able to register the release you must create an account on
310
   <http://pypi.python.org/pypi> and have one of the existing owners of
311
   the project add you to the group.
312
3383.2.3 by Martin Pool
Separate out and update the release manager instructions
313
3383.2.5 by Martin Pool
merge trunk
314
Merging the released code back to trunk
315
---------------------------------------
316
317
Merge the release branch back into the trunk.  Check that changes in NEWS
318
were merged into the right sections.  If it's not already done, advance
319
the version number in ``bzr`` and ``bzrlib/__init__.py``.  Submit this
320
back into pqm for bzr.dev.
321
4634.13.4 by Vincent Ladeuil
More tweaks.
322
As soon as you change the version number in trunk, make sure you have
323
created the corresponding milestone to ensure the continuity in bug
4634.13.5 by Vincent Ladeuil
Mention creating the news series when changing the major or minor part of
324
targeting or nominating. Depending on the change, you may even have to
325
create a new series (if your change the major or minor release number), in
326
that case go to `Starting a cycle` and follow the instructions from there.
4634.13.4 by Vincent Ladeuil
More tweaks.
327
4070.10.2 by Martin Pool
doc to maintain bzr/current branch
328
You should also merge (not pull) the release branch into
329
``lp:~bzr/bzr/current``, so that branch contains the current released code
330
at any time.
331
4634.13.4 by Vincent Ladeuil
More tweaks.
332
Releases until the final one
333
----------------------------
334
4634.13.6 by Vincent Ladeuil
Fixed as per Ian's review.
335
Congratulations - you have made your first release.  Have a beer
336
or fruit juice - it's on the house! If it was a beta, or
337
candidate, you're not finished yet. Another beta or candidate or
338
hopefully a final release is still to come.
339
340
The process is the same as for the first release. Goto `Starting the
341
release phase`_ and follow the instructions again. Some details change
4634.13.4 by Vincent Ladeuil
More tweaks.
342
between beta, candidate and final releases, but they should be
4634.13.6 by Vincent Ladeuil
Fixed as per Ian's review.
343
documented. If the instructions aren't clear enough, please fix them.
4634.13.4 by Vincent Ladeuil
More tweaks.
344
3383.2.5 by Martin Pool
merge trunk
345
3549.3.1 by Martin Pool
Updated instructions in packaging into the PPA
346
See also
347
--------
348
4070.10.3 by Martin Pool
Small ReST syntax fix
349
* `Packaging into the bzr PPA <ppa.html>`_ to make and publish Ubuntu
350
  packages.
351
* `Bazaar Developer Document Catalog <index.html>`_
352
* `Development cycles <cycle.html>`_: things that happen during the cycle
353
  before the actual release.
3464.3.6 by Martin Pool
Release process updates
354
355
..
3464.3.8 by Martin Pool
Doc updates re PPAs
356
   vim: filetype=rst textwidth=74 ai shiftwidth=4