~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/releasing.txt

  • Committer: Vincent Ladeuil
  • Date: 2011-02-10 12:37:27 UTC
  • mto: This revision was merged to the branch mainline in revision 5661.
  • Revision ID: v.ladeuil+lp@free.fr-20110210123727-8e0pu4wtlt6fj7nf
thread is already a python module, avoid confusion and use cethread instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
################
3
3
 
4
4
This document describes the processes for making and announcing a Bazaar
5
 
release, and managing the release process.  This is just one phase of the
6
 
`overall development cycle
7
 
<http://doc.bazaar.canonical.com/developers/cycle.html>`_, (go re-read this
8
 
document to ensure it hasn't been updated since you last read it) but it's
9
 
the most complex part.
10
 
 
11
 
If you're doing your first release you can follow this document and read
12
 
each step explanation. It's also a good practice to read it for any release
13
 
to ensure you don't miss a step and to update it as the release process
14
 
evolves.
 
5
release, and managing the release process.  This is just one phase of
 
6
the `overall development cycle
 
7
<http://doc.bazaar.canonical.com/developers/cycle.html>`_, (go re-read
 
8
this document to ensure it hasn't been updated) but it's the most
 
9
complex part.  This document gives a checklist you can follow from start
 
10
to end in one go.
15
11
 
16
12
If you're helping the Release Manager (RM) for one reason or another, you
17
13
may notice that he didn't follow that document scrupulously. He may have
18
14
good reasons to do that but he may also have missed some parts.
19
15
 
 
16
Follow the document yourself and don't hesitate to create the missing
 
17
milestones for example (we tend to forget these ones a lot).
 
18
 
20
19
.. contents::
21
20
 
22
21
 
23
22
Preconditions
24
23
=============
25
24
 
26
 
#. PQM access rights (or you won't be able to land any change)
27
 
 
28
25
#. Download the pqm plugin and install it into your ``~/.bazaar/plugins``::
29
26
 
30
27
     bzr branch lp:bzr-pqm ~/.bazaar/plugins/pqm
31
28
 
32
 
#. Alternatively, you can download and install ``lp:hydrazine`` (the main
33
 
   difference is that hydrazine requires the branch to land to be hosted on
34
 
   launchpad).
35
 
 
36
 
What do we release
37
 
==================
38
 
 
39
 
In this document, we're talking about source releases only, packages and
40
 
installers are built from this but we won't talk about them here.
41
 
 
42
 
Every release is part of a series, ``bzr-2.4.1`` is part of series ``2.4``.
43
 
 
44
 
We do two different kind of releases: the betas releases and the stable
45
 
releases for a given series.
46
 
 
47
 
For a given series, releases will be done to deliver new versions of bzr to
48
 
different kinds of users:
49
 
 
50
 
#. beta releases: named ``x.ybn`` where ``x.y`` is the series and ``n``
51
 
   starts at 1 and is incremented. These releases are targeted to beta
52
 
   testers who don't want to run from source but are interested in features
53
 
   or improvements.
54
 
 
55
 
#. stable releases: name ``x.y.z`` where ``x.y.`` is the series and ``z``
56
 
   starts at 1 and is incremented. These releases are targeted at people
57
 
   that want bugfixes only and no new features.
58
 
 
59
 
 
60
 
Differences in the release process between beta and stable release will be
61
 
mentioned when needed.
62
29
 
63
30
When do we relase ?
64
31
===================
65
32
 
66
 
As of July 2011, we maintain four series (and one that is about to be EOLed).
67
 
Concurrently releasing them all at the same time makes it harder to shorten
68
 
the delay between the source availability and the package building longer
69
 
than necessary (we delay the official announcement until most of our users
70
 
can install the new release).
 
33
As of October 2010, we mantain four series.  Concurrently releasing them
 
34
all at the same time makes it harder to shorten the delay between the
 
35
source availability and the package building longer than necessary (we
 
36
delay the official announcement until most of our users can install the new
 
37
release).
71
38
 
72
39
In order to continue to do time-based releases, we need to plan the
73
40
releases by series to minimize the collisions. In the end, it's the Release
74
41
Manager call to decide whether he prefers to do all releases at once
75
42
though, so the rules presented here are a conservative approach.
76
43
 
77
 
We want to respect the following rules:
78
 
 
79
 
#. as much as possible releases should not disturb development, and
80
 
   ongoing development should not disturb releases,
81
 
 
82
 
#. the most recent development series should release once a month during
83
 
   the beta period (see `Development cycles <cycle.html>`_ for more
84
 
   details),
85
 
 
86
 
#. the most recent stable series should release every other month (based
87
 
   on the amount of bug fixes, this can be shorter or longer depending on
88
 
   the bugs importance),
89
 
 
90
 
#. previous series should release on a regular basis without interfering
91
 
   with the most recent series with a decreasing order of priority (again
92
 
   this should be based on bugs importance and user feedback),
93
 
 
94
 
#. the death of a series should be planned ahead of time. 6 months should
95
 
   give enough time to our users to migrate to a more recent series. This
96
 
   doesn't mean we will make a release at the end of the series, just that
97
 
   before the end date we *could* possibly put out another release if
98
 
   there was a sufficiently important fix.  Beyond that date, we won't
99
 
   even land changes on that branch (unless something causes a miraculous
100
 
   resurrection.)
101
 
 
102
 
#. there should not be more than 2 releases in the same week (but the
103
 
   Release Manager is free to ignore this (get in touch with packagers
104
 
   though),
105
 
 
106
 
#. the series are aligned with Ubuntu releases for convenience since we
107
 
   create a new series every 6 months. This means that we support the
108
 
   stable series for 18 months. Note that we also propose the most recent
109
 
   stable series via the stable PPA but that the SRU processs allow us to
110
 
   reach a wider audience.
111
 
 
112
 
At the start of a series cycle
113
 
==============================
114
 
 
115
 
To start a new series cycle:
116
 
 
117
 
#. Create a new series ``x.y`` at <https://launchpad.net/bzr/+addseries>.
118
 
 
119
 
#. Add milestones at <https://launchpad.net/bzr/x.y/+addmilestone> to that
120
 
   series for the beta releases and the stable series mentioning their
121
 
   expected dates. Only the milestone associated to the next release in
122
 
   this series should be left active to avoid clutter when targeting bugs.
123
 
 
124
 
#. If you made a new series, you will need to create a new pqm-controlled
125
 
   branch for this release series. This branch will be used only from the
126
 
   first non-beta release onwards. It needs to be created by a Canonical
127
 
   sysadmin (ask the core devs for instructions or to do it for you).
128
 
 
129
 
#. Start a new release-notes file::
130
 
 
131
 
       cd doc/en/release-notes
132
 
       cp series-template.txt bzr-x.y.txt  # e.g. bzr-2.3.txt
133
 
       bzr add bzr-x.y.txt
134
 
 
135
 
#. Start a new whats-new file::
136
 
 
137
 
       cd doc/en/whats-new
138
 
       cp template.txt bzr-x.y.txt  # e.g. bzr-2.6.txt
139
 
       bzr add bzr-x.y.txt
 
44
We want to respect the following rules::
 
45
 
 
46
 #. as much as possible releases should not disturb development, and
 
47
    ongoing development should not disturb releases,
 
48
 
 
49
 #. the most recent development series should release once a month during
 
50
    the beta period (see `Development cycles <cycle.html>`_ for more
 
51
    details),
 
52
 
 
53
 #. the most recent stable series should release every other month (based
 
54
    on the amount of bug fixes, this can be shorter or longer depending on
 
55
    the bugs importance),
 
56
 
 
57
 #. previous series should relesase on a regular basis without interfering
 
58
    with the most recent series with a decreasing order of priority (again
 
59
    this should be based on bugs importance and user feedback),
 
60
 
 
61
 #. the death of a series should be planned ahead of time. 6 months should
 
62
    give enough time to our users to migrate to a more recent series. This
 
63
    doesn't mean we will make a release at the end of the series, just that
 
64
    before the end date we _could_ possibly put out another release if
 
65
    there was a sufficiently important fix.  Beyond that date, we won't
 
66
    even land changes on that branch (unless something causes a miraculous
 
67
    resurrection.)
 
68
 
 
69
 #. there should not be more than 2 releases in the same week (but the
 
70
    Release Manager is free to ignore this (get in touch with packagers
 
71
    though),
 
72
 
 
73
 #. the series are aligned with Ubuntu releases for convenience since we
 
74
    create a new series every 6 months. This means that we support the
 
75
    stable series for 18 months. Note that we also propose the most recent
 
76
    stable series via the ppa, so whether we keep supporting LTS directly
 
77
    or via the ppa is still an open question.
140
78
 
141
79
 
142
80
At the start of a release cycle
144
82
 
145
83
To start a new release cycle:
146
84
 
 
85
#. If this is the first release for a given *x.y* then create a new
 
86
   series at <https://launchpad.net/bzr/+addseries>. There is one series
 
87
   for every *x.y* release.
 
88
 
 
89
#. If you made a new series, create a new pqm-controlled branch for this
 
90
   release series, by asking a Canonical sysadmin.  This branch means that
 
91
   from the first release beta or candidate onwards, general development
 
92
   continues on the trunk, and only specifically-targeted fixes go into
 
93
   the release branch.
 
94
 
 
95
#. If you made a new series, add milestones at
 
96
   <https://launchpad.net/bzr/x.y/+addmilestone> to that series for
 
97
   the beta release, release candidate and the final release, and their
 
98
   expected dates.
 
99
 
 
100
#. Create a new milestone <https://launchpad.net/bzr/x.y/+addmilestone>
 
101
   and add information about this release.  We will not use it yet, but it
 
102
   will be available for targeting or nominating bugs.
 
103
 
147
104
#. Send mail to the list with the key dates, who will be the release
148
105
   manager, and the main themes or targeted bugs.  Ask people to nominate
149
106
   objectives, or point out any high-risk things that are best done early,
150
107
   or that interact with other changes. This is called the metronome mail
151
108
   and is described in `Development cycles <cycle.html>`_.
152
109
 
153
 
#. Make a local branch to prepare the release::
154
 
 
155
 
        bzr branch lp:bzr/x.y x.y-dev
156
 
 
157
 
   If you're doing your first beta release, branch from trunk::
158
 
 
159
 
       bzr branch lp:bzr x.y-dev
160
 
 
161
 
   Note that you will generally reuse the same branch for all releases in a
162
 
   given series.
 
110
#. Make a local branch for preparing this release.  (Only for the first
 
111
   release in a series, otherwise you should already have a branch.) ::
 
112
 
 
113
     bzr branch trunk prepare-1.14
163
114
 
164
115
#. Configure pqm-submit for this branch, with a section like this (where
165
 
   ``x.y`` is the series for your release). **Or use hydrazine for easier
166
 
   setup** ``~/.bazaar/locations.conf``::
 
116
   x.y is the version to release). **Or use hydrazine for easy use**
 
117
   ``~/.bazaar/locations.conf``::
167
118
 
168
 
        [/home/mbp/bzr/x.y-dev]
 
119
        [/home/mbp/bzr/prepare-x.y]
169
120
        pqm_email = Canonical PQM <pqm@bazaar-vcs.org>
170
121
        submit_branch = http://bazaar.launchpad.net/~bzr-pqm/bzr/x.y
171
122
        parent_branch = http://bazaar.launchpad.net/~bzr-pqm/bzr/x.y
172
 
        public_branch = http://bazaar.example.com/x.y-dev
 
123
        public_branch = http://bazaar.example.com/prepare-x.y
173
124
        submit_to = bazaar@lists.canonical.com
174
125
        smtp_server = mail.example.com:25
175
126
 
181
132
   
182
133
       version_info = (x, y, z, 'dev', 0)
183
134
   
 
135
#. If you made a new series, then start a new release-notes file::
 
136
 
 
137
       cd doc/en/release-notes
 
138
       cp series-template.txt bzr-x.y.txt  # e.g. bzr-2.3.txt
 
139
       bzr add bzr-x.y.txt
 
140
 
184
141
#. Add a new section at the top of the current release notes (in
185
142
   ``doc/en/release-notes``) about the new release, including its version
186
143
   number and the headings from ``release-template.txt``.
187
144
 
188
145
#. Update the "What's New" documents in ``doc/en/whats-new``.
189
146
 
190
 
#. Make sure a milestone exists for your release and that it is active,
191
 
   <https://launchpad.net/bzr/x.y> lists the existing milestones,
192
 
   <https://launchpad.net/bzr/x.y/x.y.z/+edit> allows you to toggle the
193
 
   active flag.
194
 
 
195
147
#. Commit this and send it to PQM.
196
148
 
197
149
 
209
161
#. In the release branch, update  ``version_info`` in ``./bzrlib/__init__.py``.
210
162
   Make sure the corresponding milestone exists.
211
163
   Double check that ./bzr ``_script_version`` matches ``version_info``. Check
212
 
   the output of ``./bzr --version``.
 
164
   the output of ``bzr --version``.
213
165
 
214
166
   For beta releases use::
215
167
 
219
171
 
220
172
       version_info = (2, 1, 0, 'beta', 1)
221
173
 
 
174
   For release candidates use::
 
175
 
 
176
       version_info = (2, 0, 1, 'candidate', SERIAL)
 
177
 
222
178
   For stable releases use::
223
179
 
224
180
       version_info = (2, 1, 2, 'final', 0)
231
187
 
232
188
   See *2.1.1* or similar for an example of what this looks like.
233
189
 
234
 
#. Add or check the summary of the release into the "What's New" document.
 
190
#. Add a summary of the release into the "What's New" document.
235
191
 
236
192
#. To check that all bugs mentioned in the release notes are actually
237
193
   marked as closed in Launchpad, you can run
239
195
 
240
196
     ./tools/check-newsbugs.py doc/en/release-notes/bzr-x.y.txt
241
197
 
242
 
   As of 2011-07-18, all bugs mentioned in the output of the script requires
243
 
   some sort of intervention (either changing the status if it's not 'Fix
244
 
   Released' or setting a different milestone if the bug hasn't been
245
 
   fixed). A few false positives may remain in the older series, don't let
246
 
   this slow you down too much. This script accepts options you may find
247
 
   useful, use ``./tools/check-newsbugs.py`` to display its usage (``-w``
248
 
   will open each bug in your browser for example).
249
 
 
250
 
#. For beta releases update the translation template::
251
 
 
252
 
     make -f po/bzr.pot
253
 
 
254
 
   This is especially important for the final beta release which is
255
 
   when translations are frozen and translators are requested to make
256
 
   the translations.
257
 
 
258
 
#. For stable releases update the translations::
259
 
 
260
 
     bzr merge lp:~bzr-core/bzr/bzr-translations-export-x.y
 
198
   (As of 2011-12-03, only a few false positives remain. Don't let this slow
 
199
   you down too much.)
261
200
 
262
201
#. Commit these changes to the release branch, using a command like::
263
202
 
264
 
     bzr commit -m "Release 2.3.1"
 
203
     bzr commit -m "Release 1.14."
265
204
 
266
205
   The diff before you commit will be something like::
267
206
 
268
 
      === modified file 'bzrlib/__init__.py'
269
 
      --- bzrlib/__init__.py    2011-02-09 06:35:00 +0000
270
 
      +++ bzrlib/__init__.py    2011-03-10 10:24:47 +0000
271
 
      @@ -52,7 +52,7 @@
272
 
       # Python version 2.0 is (2, 0, 0, 'final', 0)."  Additionally we use a
273
 
       # releaselevel of 'dev' for unreleased under-development code.
274
 
       
275
 
      -version_info = (2, 3, 1, 'dev', 0)
276
 
      +version_info = (2, 3, 1, 'final', 0)
277
 
       
278
 
       # API compatibility version
279
 
       api_minimum_version = (2, 3, 0)
280
 
      
281
 
      === modified file 'doc/en/release-notes/bzr-2.3.txt'
282
 
      --- doc/en/release-notes/bzr-2.3.txt      2011-03-09 08:30:16 +0000
283
 
      +++ doc/en/release-notes/bzr-2.3.txt      2011-03-10 10:40:47 +0000
284
 
      @@ -8,23 +8,10 @@
285
 
       bzr 2.3.1
286
 
       #########
287
 
       
288
 
      -:2.3.1: NOT RELEASED YET
289
 
      -
290
 
      -External Compatibility Breaks
291
 
      -*****************************
292
 
      -
293
 
      -.. These may require users to change the way they use Bazaar.
294
 
      -
295
 
      -New Features
296
 
      -************
297
 
      -
298
 
      -.. New commands, options, etc that users may wish to try out.
299
 
      -
300
 
      -Improvements
301
 
      -************
302
 
      -
303
 
      -.. Improvements to existing commands, especially improved performance 
304
 
      -   or memory usage, or better results.
305
 
      +:2.3.1: 2011-03-10
306
 
      +
307
 
      +This is a bugfix release. Upgrading is recommended for all users of earlier
308
 
      +2.3 releases.
309
 
       
310
 
       Bug Fixes
311
 
       *********
312
 
      
313
 
      === modified file 'doc/en/whats-new/whats-new-in-2.3.txt'
314
 
      --- doc/en/whats-new/whats-new-in-2.3.txt 2011-02-03 16:29:18 +0000
315
 
      +++ doc/en/whats-new/whats-new-in-2.3.txt 2011-03-10 11:10:36 +0000
316
 
      @@ -17,8 +17,13 @@
317
 
       improvements made to the core product, it highlights enhancements within the
318
 
       broader Bazaar world of potential interest to those upgrading.
319
 
       
320
 
      -Bazaar 2.3.0 is fully compatible both locally and on the network with 2.0 2.1,
321
 
      -and 2.2, and can read and write repositories generated by all previous
322
 
      +Bazaar 2.3.1 includes all the fixes in the un-released 2.0.7, 2.1.4 and 2.2.5
323
 
      +versions that weren't included in 2.3.0 and fixes some bugs on its own.
324
 
      +
325
 
      +See the :doc:`../release-notes/index` for details.
326
 
      +
327
 
      +Bazaar 2.3 is fully compatible both locally and on the network with 2.0, 2.1,
328
 
      +and 2.2. It can read and write repositories generated by all previous
329
 
       versions.
330
 
       
331
 
       Changed Behaviour
332
 
      
 
207
     === modified file 'NEWS'
 
208
     --- NEWS        2008-09-17 23:09:18 +0000
 
209
     +++ NEWS        2008-09-23 16:14:54 +0000
 
210
     @@ -4,6 +4,23 @@
 
211
 
 
212
      .. contents::
 
213
 
 
214
     +bzr 1.7 2008-09-23
 
215
     +------------------
 
216
     +
 
217
     +This release includes many bug fixes and a few performance and feature
 
218
     +improvements.  ``bzr rm`` will now scan for missing files and remove them,
 
219
     +like how ``bzr add`` scans for unknown files and adds them. A bit more
 
220
     +polish has been applied to the stacking code. The b-tree indexing code has
 
221
     +been brought in, with an eye on using it in a future repository format.
 
222
     +There are only minor installer changes since bzr-1.7rc2.
 
223
     +
 
224
      bzr 1.7rc2 2008-09-17
 
225
      ---------------------
 
226
 
 
227
 
 
228
     === modified file 'bzrlib/__init__.py'
 
229
     --- bzrlib/__init__.py  2008-09-16 21:39:28 +0000
 
230
     +++ bzrlib/__init__.py  2008-09-23 16:14:54 +0000
 
231
     @@ -41,7 +41,7 @@
 
232
      # Python version 2.0 is (2, 0, 0, 'final', 0)."  Additionally we use a
 
233
      # releaselevel of 'dev' for unreleased under-development code.
 
234
 
 
235
     -version_info = (1, 7, 0, 'candidate', 2)
 
236
     +version_info = (1, 7, 0, 'final', 0)
 
237
 
 
238
 
 
239
      # API compatibility version: bzrlib is currently API compatible with 1.7.
 
240
 
 
241
   Note that the NEWS file formatting has evolved, this example needs to
 
242
   be updated.
333
243
 
334
244
#. Tag the new release::
335
245
 
336
 
     bzr tag bzr-2.3.1
 
246
     bzr tag bzr-1.14
337
247
 
338
 
#. Push those changes to a bzr branch that is public and accessible on the
339
 
   Internet. PQM will pull from this branch when it attempts to merge your
340
 
   changes. Then submit those changes to PQM for merge into the appropriate
341
 
   release branch::
 
248
#. Push those changes to a bzr repository that is public and accessible on
 
249
   the Internet. PQM will pull from this repository when it attempts to merge
 
250
   your changes. Then submit those changes to PQM for merge into the
 
251
   appropriate release branch::
342
252
 
343
253
     bzr push
344
 
     bzr pqm-submit -m "(vila) Release 2.3.1 (Vincent Ladeuil)"
 
254
     bzr pqm-submit -m "(mbp) Release 1.14 (Martin Pool)"
345
255
 
346
256
   Or with hydrazine::
347
257
 
370
280
   ``BZR_DISABLE_PLUGINS`` or ``BZR_PLUGIN_PATH=-site`` to disable one or
371
281
   all plugins.
372
282
 
373
 
   Until <http://pad.lv/839461> is fixed, you may encounter issues if you
374
 
   cut a release for old stable branches (<= 2.2) and use a more recent
375
 
   OS/distro. If that's the case, check the bug status and use the following
376
 
   workaround if no fix is available::
377
 
 
378
 
     export TTPATH=<local branch of lp:testtools -r 0.9.2>
379
 
     export SUPATH=<local branch of lp:subunit -r 0.0.6>
380
 
     PYTHONPATH=$TTPATH:$SUPATH/python PATH=$SUPATH/filters:${PATH} BZR_PLUGIN_PATH=-site make check-dist-tarball PYTHON=python2.6 | subunit2pyunit
381
 
 
382
283
   Remember that PQM has just tested everything too, this step is
383
284
   particularly testing that the pyrex extensions, which are updated
384
285
   by your local pyrex version when you run make dist, are in good
388
289
Publishing the source tarball
389
290
-----------------------------
390
291
 
391
 
#. Go to the relevant <https://launchpad.net/bzr/x.y> series page in Launchpad.
 
292
#. Go to the relevant milestone page in Launchpad.
392
293
 
393
294
#. Create a release of the milestone, and upload the source tarball and
394
295
   the GPG signature.  Or, if you prefer, use the
399
300
   <https://bugs.launchpad.net/launchpad/+bug/586445>
400
301
 
401
302
 
 
303
Announcing the source freeze
 
304
----------------------------
 
305
 
 
306
#. Post to the ``bazaar`` list, saying that the source has been frozen
 
307
   (gone gold). Be extra clear that this is only a *source* release
 
308
   targeted at packagers and installer builders (see
 
309
   <https://bugs.launchpad.net/launchpad/+bug/645084>).  This is the cue
 
310
   for platform maintainers and plugin authors to update their code.  This
 
311
   is done before the general public announcement of the release.
 
312
 
 
313
 
402
314
Kick off the next cycle
403
315
-----------------------
404
316
 
405
 
From that point, there is no possible return, the tarball has been uploaded
406
 
so you can relax a bit.
407
 
 
408
 
You're still holding a "social" lock on the launchpad branch though. Until
409
 
your start the next cycle, nobody should land anything on this branch. If
410
 
they do, they either targeted the wrong branch or didn't update the news
411
 
file correctly, so the sooner the branch is opened again, the better.
412
 
 
413
 
This matters more for ``lp:bzr`` than for ``lp:bzr/x.y``, ``lp:bzr`` should
414
 
always be open for landing, so you should do `At the start of a release
415
 
cycle`_ as soon as possible (i.e. update the version number in ``bzr`` and
416
 
``bzrlib/__init__``, create/update the news files and create/update the
417
 
milestone for the next relase).
418
 
 
419
 
You may also need to do `At the start of a series cycle`_ if you're starting
420
 
a new series.
421
 
 
422
 
The final beta - branching and translations
423
 
-------------------------------------------
424
 
 
425
 
A word of caution: the instructions above works well for all releases but
426
 
there is one special case that requires a bit more care: when you release
427
 
the *last* beta for a given ``x.y`` series (from trunk aka lp:bzr), you need
428
 
to setup *two* branches for the next cycle:
429
 
 
430
 
#. ``lp:bzr`` needs to be opened for the next *series* ``x.(y+1)``
431
 
 
432
 
#. ``lp:bzr/x.y`` needs to be opened for the next *release* ``x.y.0`` in the
433
 
   series. Since this is first real use of ``lp:bzr/x.y``, this is also the
434
 
   deadline for the PQM branch to be created.
435
 
 
436
 
Both are important as ``lp:bzr`` should remain open so any change can be
437
 
landed, ``lp:bzr/x.y`` on the other hand should be ready to receive bug
438
 
fixes.
439
 
 
440
 
``lp:bzr`` is generally more important as the bug fixes on ``lp:bzr/x.y``
441
 
won't be released sooner than a month from now whereas people may already
442
 
been waiting to land on ``lp:bzr``.
443
 
 
444
 
In a nutshell:
445
 
 
446
 
#. Create or update the ``x.y`` PQM branch based on whatever
447
 
   revision you want to release
448
 
 
449
 
#. Open ``lp:bzr`` for ``x.(y+1)``
450
 
 
451
 
#. Release ``x.y.0`` from ``lp:bzr/x.y``
452
 
 
453
 
#. Open ``lp:bzr/x.y`` for bug fixes
454
 
 
455
 
You also need to ensure Launchpad is set up to import/export
456
 
translations for the new branch and inform translators.
457
 
 
458
 
#. Push a branch::
459
 
 
460
 
     bzr push lp:~bzr-core/bzr/bzr-translations-export-x.y
461
 
 
462
 
#. On the translations series synchronization settings page
463
 
   <https://translations.launchpad.net/bzr/x.y/+translations-settings>
464
 
   turn on ``Import template files`` then for exports click ``Choose a
465
 
   target branch`` and point it at the branch you just pushed.
466
 
 
467
 
#. E-mail translators to announce that the forthcoming stable release
468
 
   of bzr is ready for translations.  Send to
469
 
   ``translators@lists.launchpad.net`` and
470
 
   ``ubuntu-translators@lists.ubuntu.com``.
471
 
 
472
 
#. The series is now frozen for strings and API, see below for adding
473
 
   that to the announcement.
474
 
 
475
 
Announcing the source freeze
476
 
----------------------------
477
 
 
478
 
#. Post to the ``bazaar@lists.canonical.com`` list, saying that the source
479
 
   has been frozen (gone gold). Be extra clear that this is only a *source*
480
 
   release targeted at packagers and installer builders (see
481
 
   <https://bugs.launchpad.net/launchpad/+bug/645084>).  This is the cue for
482
 
   platform maintainers and plugin authors to update their code.  This is
483
 
   done before the general public announcement of the release.
484
 
 
485
 
   The freeze announcement generally guess the date of the official public
486
 
   announcement, for the most recent stable series (the one supported by the
487
 
   installers and most of the distributions) it's generally a few days after
488
 
   the freeze. For older series supported only via SRUs for Ubuntu, we don't
489
 
   control the process as tightly so guessing the date is not appropriate.
490
 
 
491
 
   For the final beta release include in your announcement a notice of
492
 
   API and translation freezes nothing that public methods should not
493
 
   be removed or changed and strings should not be added or changed.
494
 
 
495
 
#. Pause for a few days. 
 
317
#. To let developers work on the next release, do
 
318
   `At the start of a release cycle` now.
 
319
 
 
320
#. Pause for a few days.
496
321
 
497
322
 
498
323
Publishing the release
512
337
#. Check that the documentation for this release is available in
513
338
   <http://doc.bazaar.canonical.com>.  It should be automatically build when the
514
339
   branch is created, by a cron script ``update-bzr-docs`` on
515
 
   ``escudero``.
 
340
   ``escudero``. As of today (2009-08-27) ``igc`` manually updates the
 
341
   pretty version of it.
516
342
 
517
343
 
518
344
Announcing the release
522
348
 
523
349
#. Make an announcement mail.
524
350
 
525
 
   For beta releases, this is sent to the ``bazaar@lists.canonical.com`` and
526
 
   ``bazaar-announce@lists.canonical.com`` lists.
527
 
 
528
 
   For stable releases (excluding SRUs which are for older stable releases),
529
 
   it should also be cc'd to ``info-gnu@gnu.org``,
 
351
   For release candidates or beta releases, this is sent to the ``bazaar``
 
352
   list only to inform plugin authors and package or installer managers.
 
353
 
 
354
   Once the installers are available, the mail can be sent to the
 
355
   ``bazaar-announce`` list too.
 
356
 
 
357
   For final releases, it should also be cc'd to ``info-gnu@gnu.org``,
530
358
   ``python-announce-list@python.org``, ``bug-directory@gnu.org``.
531
359
 
532
360
   In all cases, it is good to set ``Reply-To: bazaar@lists.canonical.com``,
538
366
 
539
367
      The Bazaar team is happy to announce availability of a new
540
368
      release of the bzr adaptive version control system.
541
 
 
542
 
      Bazaar <http://bazaar.canonical.com/> is a Canonical project and part
543
 
      of the GNU project <http://gnu.org/> to produce a free operating
544
 
      system.
 
369
      Bazaar is part of the GNU system <http://gnu.org/>.
545
370
 
546
371
      <<Summary paragraph from news>>
547
372
 
558
383
 
559
384
#. Make an announcement through <https://launchpad.net/bzr/+announce>
560
385
 
 
386
#. Update the IRC channel topic. Use the ``/topic`` command to do this,
 
387
   ensuring the new topic text keeps the project name, web site link, etc.
 
388
 
561
389
#. Announce on http://freshmeat.net/projects/bzr/
562
390
 
563
 
   This should be done for beta releases and stable releases. If you do not
564
 
   have a Freshmeat account yet, ask one of the existing admins.
 
391
   This should be done for beta releases, release candidates and final
 
392
   releases. If you do not have a Freshmeat account yet, ask one of the
 
393
   existing admins.
565
394
 
566
 
   The purpose here is to point users to the latest stable release
567
 
   (i.e. SRUs are excluded) while still publishing announcements for beta
568
 
   releases.
 
395
   The purpose here is to point users to the latest stable release while still
 
396
   publishing announcements for development releases.
569
397
 
570
398
   There are several kinds of modifications that could be done there via the
571
399
   ``Administration`` box in the lower right area of the page:
574
402
     ``Links`` box are edited. This should rarely change except for the URLs
575
403
     related to the latest stable release.
576
404
 
577
 
   * New announcement: When doing a release, put the summary of the release
578
 
     (you can't embed URLs there, the moderation staff remove them). Users
579
 
     can still access the releases notes via the ``Release Notes`` URL in
580
 
     the ``Links`` box in the upper right area of the page. When doing the
581
 
     first stable release in a series, delete the ``Unstable installers``
582
 
     <https://launchpad.net/bzr/x.y/x.ybn> and ``Unstable source tarball``
583
 
     <http://launchpad.net/bzr/x.y/x.ybn/+download/bzr-x.ybn.tar.gz>
584
 
     links. Conversely, when creating the first beta in a development
585
 
     series, create these links again. Check all links when doing other
586
 
     kinds of release.
 
405
   * New announcement: When doing a release (beta, candidates, final), put the
 
406
     summary of the release (you can't embed URLs there, the moderation staff
 
407
     remove them). Users can still access the releases notes via the ``Release
 
408
     Notes`` URL in the ``Links`` box in the upper right area of the page.
587
409
 
588
410
   * Set direct download: When releasing a new stable release, this should
589
411
     point to the corresponding launchpad page:
590
412
     <https://launchpad.net/bzr/x.y/x.y.z/>
591
413
 
592
414
#. Update `<http://en.wikipedia.org/wiki/Bazaar_(software)>`_ -- this should
593
 
   be done for the stable and beta releases.
 
415
   be done for final releases but not for beta releases or Release Candidates.
594
416
 
595
417
#. Update the python package index: <http://pypi.python.org/pypi/bzr> - best
596
418
   done by running ::
597
419
 
598
420
       python setup.py register
599
421
 
600
 
   Remember to check the results afterward -- this should be done for
601
 
   stable releases but not for beta releases nor SRUs.
 
422
   Remember to check the results afterwards -- this should be done for
 
423
   final releases but not for beta releases or Release Candidates.
602
424
 
603
425
   To be able to register the release you must create an account on
604
426
   <http://pypi.python.org/pypi> and have one of the existing owners of
608
430
Merging the released code back to trunk
609
431
---------------------------------------
610
432
 
611
 
Merge the release branch back into the trunk.  The ``doc/en/release-notes``
612
 
changes should be merged into the right place because each release series
613
 
has its own release-notes file, but double-check.
 
433
Merge the release branch back into the trunk.  The
 
434
``doc/en/release-notes`` changes should be merged into the right place
 
435
because each release series has its own release-notes file, but
 
436
double-check.
614
437
 
615
438
If it's not already done, advance the version number in ``bzr`` and
616
439
``bzrlib/__init__.py``.  Submit this back into pqm for bzr.dev.
619
442
created the corresponding milestone to ensure the continuity in bug
620
443
targeting or nominating. Depending on the change, you may even have to
621
444
create a new series (if your change the major or minor release number), in
622
 
that case go to `At the start of a series cycle`_ and follow the
623
 
instructions from there.
 
445
that case go to `At the start of a release cycle` and follow the instructions from there.
624
446
 
 
447
You should also merge (not pull) the release branch into
 
448
``lp:~bzr/bzr/current``, so that branch contains the current released code
 
449
at any time.
625
450
 
626
451
Releases until the final one
627
452
----------------------------
628
453
 
629
 
Congratulations - you have made your first release.  Have a beer or fruit
630
 
juice - it's on the house! If it was a beta, you're not finished
631
 
yet. Another beta or hopefully a stable release is still to come.
 
454
Congratulations - you have made your first release.  Have a beer
 
455
or fruit juice - it's on the house! If it was a beta, or
 
456
candidate, you're not finished yet. Another beta or candidate or
 
457
hopefully a final release is still to come.
632
458
 
633
 
The process is the same as for the first release. Goto `Doing a particular
634
 
release`_ and follow the instructions again. Some details change between
635
 
beta and stable releases, but they should be documented. If the instructions
636
 
aren't clear enough, please fix them.
 
459
The process is the same as for the first release. Goto `Doing a
 
460
particular release`_ and follow the instructions again. Some details change
 
461
between beta, candidate and final releases, but they should be
 
462
documented. If the instructions aren't clear enough, please fix them.
637
463
 
638
464
 
639
465
Getting the release into Ubuntu
652
478
the `SRU (Stable Release Updates)
653
479
<https://wiki.ubuntu.com/StableReleaseUpdates>`__ process.   
654
480
 
655
 
Since September 2010, bzr has received approval by the technical
656
 
board for the `MicroReleaseExceptions
 
481
As of September 2010, bzr has applied to the technical board to be added
 
482
to the `MicroReleaseExceptions
657
483
<https://wiki.ubuntu.com/StableReleaseUpdates/MicroReleaseExceptions>`__
658
 
category so that whole bugfix releases can more easily be
659
 
approved.
660
 
 
661
 
Progress on these realeases is tracked on the `SRU wiki
662
 
<http://wiki.bazaar.canonical.com/UbuntuStableReleaseUpdates>`_
663
 
page.
 
484
category so that whole bugfix releases can more easily be approved.
664
485
 
665
486
**After making a bzr stable-release release, nominate the most serious bug
666
487
for the appropriate Ubuntu release and subscribe the `ubuntu-sru` team.**
677
498
   button and select the right Ubuntu release. As of September 2010, this
678
499
   means:
679
500
 
680
 
  * ``oneiric`` for the 2.4 series,
681
 
  * ``natty`` for the 2.3 series,
682
501
  * ``maverick`` for the 2.2 series,
683
502
  * ``lucid`` for the 2.1 series,
 
503
  * ``karmic`` for the 2.0 series.
684
504
 
685
505
 * Subscribe the ``~ubuntu-sru`` team to the bug.
686
506