~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/releasing.txt

  • Committer: Jelmer Vernooij
  • Date: 2012-01-27 21:28:56 UTC
  • mto: This revision was merged to the branch mainline in revision 6460.
  • Revision ID: jelmer@samba.org-20120127212856-ewnjgn7fyblphcqw
Migrate mail_client to config stacks.

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
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.
 
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.
11
15
 
12
16
If you're helping the Release Manager (RM) for one reason or another, you
13
17
may notice that he didn't follow that document scrupulously. He may have
14
18
good reasons to do that but he may also have missed some parts.
15
19
 
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
 
 
19
20
.. contents::
20
21
 
21
22
 
22
23
Preconditions
23
24
=============
24
25
 
 
26
#. PQM access rights (or you won't be able to land any change)
 
27
 
25
28
#. Download the pqm plugin and install it into your ``~/.bazaar/plugins``::
26
29
 
27
30
     bzr branch lp:bzr-pqm ~/.bazaar/plugins/pqm
28
31
 
 
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.
29
62
 
30
63
When do we relase ?
31
64
===================
32
65
 
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).
 
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).
38
71
 
39
72
In order to continue to do time-based releases, we need to plan the
40
73
releases by series to minimize the collisions. In the end, it's the Release
41
74
Manager call to decide whether he prefers to do all releases at once
42
75
though, so the rules presented here are a conservative approach.
43
76
 
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.
 
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
78
140
 
79
141
 
80
142
At the start of a release cycle
82
144
 
83
145
To start a new release cycle:
84
146
 
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
 
 
104
147
#. Send mail to the list with the key dates, who will be the release
105
148
   manager, and the main themes or targeted bugs.  Ask people to nominate
106
149
   objectives, or point out any high-risk things that are best done early,
107
150
   or that interact with other changes. This is called the metronome mail
108
151
   and is described in `Development cycles <cycle.html>`_.
109
152
 
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
 
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.
114
163
 
115
164
#. Configure pqm-submit for this branch, with a section like this (where
116
 
   x.y is the version to release). **Or use hydrazine for easy use**
117
 
   ``~/.bazaar/locations.conf``::
 
165
   ``x.y`` is the series for your release). **Or use hydrazine for easier
 
166
   setup** ``~/.bazaar/locations.conf``::
118
167
 
119
 
        [/home/mbp/bzr/prepare-x.y]
 
168
        [/home/mbp/bzr/x.y-dev]
120
169
        pqm_email = Canonical PQM <pqm@bazaar-vcs.org>
121
170
        submit_branch = http://bazaar.launchpad.net/~bzr-pqm/bzr/x.y
122
171
        parent_branch = http://bazaar.launchpad.net/~bzr-pqm/bzr/x.y
123
 
        public_branch = http://bazaar.example.com/prepare-x.y
 
172
        public_branch = http://bazaar.example.com/x.y-dev
124
173
        submit_to = bazaar@lists.canonical.com
125
174
        smtp_server = mail.example.com:25
126
175
 
132
181
   
133
182
       version_info = (x, y, z, 'dev', 0)
134
183
   
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
 
 
141
184
#. Add a new section at the top of the current release notes (in
142
185
   ``doc/en/release-notes``) about the new release, including its version
143
186
   number and the headings from ``release-template.txt``.
144
187
 
145
188
#. Update the "What's New" documents in ``doc/en/whats-new``.
146
189
 
 
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
 
147
195
#. Commit this and send it to PQM.
148
196
 
149
197
 
158
206
   also mail the list to raise this issue in our process. Milestones are
159
207
   found at <https://launchpad.net/bzr/+milestone/x.y.z>.
160
208
 
 
209
#. Merge into your branch all previous stable series fixes that haven't been
 
210
   merged yet. For example, if you're releasing 2.5.x, make sure the fixes
 
211
   on 2.4, 2.3, etc have already been merged up::
 
212
 
 
213
     bzr merge lp:bzr/2.4
 
214
 
 
215
   and commit that merge in its own commit. This should happen only if the
 
216
   devs landing changes in previous releases forgot to merge them up. Since
 
217
   this can slow down the freeze, feel free to gently remind them about
 
218
   their duties ;) If you feel unsafe resolving the conflicts or it's too
 
219
   time consuming, contact the related devs and skip this merge.
 
220
 
161
221
#. In the release branch, update  ``version_info`` in ``./bzrlib/__init__.py``.
162
222
   Make sure the corresponding milestone exists.
163
223
   Double check that ./bzr ``_script_version`` matches ``version_info``. Check
164
 
   the output of ``bzr --version``.
 
224
   the output of ``./bzr --version``.
165
225
 
166
226
   For beta releases use::
167
227
 
168
 
       version_info = (2, 1, 0, 'beta', SERIAL)
169
 
 
170
 
   For instance 2.1b1::
171
 
 
172
 
       version_info = (2, 1, 0, 'beta', 1)
173
 
 
174
 
   For release candidates use::
175
 
 
176
 
       version_info = (2, 0, 1, 'candidate', SERIAL)
 
228
       version_info = (2, 5, 0, 'beta', SERIAL)
 
229
 
 
230
   For instance 2.5b5::
 
231
 
 
232
       version_info = (2, 5, 0, 'beta', 5)
177
233
 
178
234
   For stable releases use::
179
235
 
180
 
       version_info = (2, 1, 2, 'final', 0)
 
236
       version_info = (2, 5, 0, 'final', 0)
181
237
 
182
238
#. Update the ``./doc/en/release-notes/`` section for this release.
183
239
 
 
240
   Check that all news entries related to this release have been added in
 
241
   the right section. For example, if you're releasing 2.5b5, the following
 
242
   command should display a a single chuk diff for the 2.5b5 release::
 
243
 
 
244
     bzr diff -rbzr-2.5b4.. doc/en/release-notes/bzr-2.5.txt
 
245
 
184
246
   Fill out the date and a description of the release under the existing
185
 
   header. If there isn't one, follow the instructions above for using the
186
 
   ``release-template.txt`` file.
187
 
 
188
 
   See *2.1.1* or similar for an example of what this looks like.
189
 
 
190
 
#. Add a summary of the release into the "What's New" document.
 
247
   header (the diff above will help you summarizing). If there isn't one,
 
248
   follow the instructions above for using the ``release-template.txt`` file
 
249
   and remind people that they should document their changes there ;)
 
250
 
 
251
   See *2.5b5* or similar for an example of what this looks like.
 
252
 
 
253
#. Add or check the summary of the release into the "What's New" document.
191
254
 
192
255
#. To check that all bugs mentioned in the release notes are actually
193
256
   marked as closed in Launchpad, you can run
195
258
 
196
259
     ./tools/check-newsbugs.py doc/en/release-notes/bzr-x.y.txt
197
260
 
198
 
   As of 2011-05-26, only a few false positives remain in the older
199
 
   series. Don't let this slow you down too much. This script accepts
200
 
   options you may find useful, use ``./tools/check-newsbugs.py`` to display
201
 
   its usage.
 
261
   As of 2011-07-18, all bugs mentioned in the output of the script requires
 
262
   some sort of intervention (either changing the status if it's not 'Fix
 
263
   Released' or setting a different milestone if the bug hasn't been
 
264
   fixed). A few false positives may remain in the older series, don't let
 
265
   this slow you down too much. This script accepts options you may find
 
266
   useful, use ``./tools/check-newsbugs.py`` to display its usage (``-w``
 
267
   will open each bug in your browser for example).
 
268
 
 
269
#. For beta releases update the translation template::
 
270
 
 
271
     BZR_PLUGIN_PATH=-site make po/bzr.pot
 
272
 
 
273
   This is especially important for the final beta release which is when
 
274
   translations are frozen and translators are requested (see `The final
 
275
   beta - branching and translations`_) to make the translations.
 
276
 
 
277
#. For stable releases update the translations::
 
278
 
 
279
     bzr merge lp:~bzr-core/bzr/bzr-translations-export-x.y
202
280
 
203
281
#. Commit these changes to the release branch, using a command like::
204
282
 
276
354
 
277
355
     bzr tag bzr-2.3.1
278
356
 
279
 
#. Push those changes to a bzr repository that is public and accessible on
280
 
   the Internet. PQM will pull from this repository when it attempts to merge
281
 
   your changes. Then submit those changes to PQM for merge into the
282
 
   appropriate release branch::
 
357
#. Push those changes to a bzr branch that is public and accessible on the
 
358
   Internet. PQM will pull from this branch when it attempts to merge your
 
359
   changes. Then submit those changes to PQM for merge into the appropriate
 
360
   release branch::
283
361
 
284
362
     bzr push
285
363
     bzr pqm-submit -m "(vila) Release 2.3.1 (Vincent Ladeuil)"
286
364
 
 
365
   Note that ``bzr push`` should mention updating one tag (which you just
 
366
   created). If it doesn't, double-check that you created (and pushed) this
 
367
   tag.
 
368
 
287
369
   Or with hydrazine::
288
370
 
289
371
     bzr lp-propose -m "Release 1.14" --approve lp:bzr/1.14
311
393
   ``BZR_DISABLE_PLUGINS`` or ``BZR_PLUGIN_PATH=-site`` to disable one or
312
394
   all plugins.
313
395
 
 
396
   Until <http://pad.lv/839461> is fixed, you may encounter issues if you
 
397
   cut a release for old stable branches (<= 2.2) and use a more recent
 
398
   OS/distro. If that's the case, check the bug status and use the following
 
399
   workaround if no fix is available::
 
400
 
 
401
     export TTPATH=<local branch of lp:testtools -r 0.9.2>
 
402
     export SUPATH=<local branch of lp:subunit -r 0.0.6>
 
403
     PYTHONPATH=$TTPATH:$SUPATH/python PATH=$SUPATH/filters:${PATH} BZR_PLUGIN_PATH=-site make check-dist-tarball PYTHON=python2.6 | subunit2pyunit
 
404
 
314
405
   Remember that PQM has just tested everything too, this step is
315
406
   particularly testing that the pyrex extensions, which are updated
316
407
   by your local pyrex version when you run make dist, are in good
320
411
Publishing the source tarball
321
412
-----------------------------
322
413
 
323
 
#. Go to the relevant series page in Launchpad.
 
414
#. Go to the relevant <https://launchpad.net/bzr/x.y> series page in Launchpad.
324
415
 
325
416
#. Create a release of the milestone, and upload the source tarball and
326
417
   the GPG signature.  Or, if you prefer, use the
331
422
   <https://bugs.launchpad.net/launchpad/+bug/586445>
332
423
 
333
424
 
334
 
Announcing the source freeze
335
 
----------------------------
336
 
 
337
 
#. Post to the ``bazaar`` list, saying that the source has been frozen
338
 
   (gone gold). Be extra clear that this is only a *source* release
339
 
   targeted at packagers and installer builders (see
340
 
   <https://bugs.launchpad.net/launchpad/+bug/645084>).  This is the cue
341
 
   for platform maintainers and plugin authors to update their code.  This
342
 
   is done before the general public announcement of the release.
343
 
 
344
 
 
345
425
Kick off the next cycle
346
426
-----------------------
347
427
 
348
 
#. To let developers work on the next release, do
349
 
   `At the start of a release cycle` now.
350
 
 
351
 
#. Pause for a few days.
 
428
From that point, there is no possible return, the tarball has been uploaded
 
429
so you can relax a bit.
 
430
 
 
431
You're still holding a "social" lock on the launchpad branch though. Until
 
432
your start the next cycle, nobody should land anything on this branch. If
 
433
they do, they either targeted the wrong branch or didn't update the news
 
434
file correctly, so the sooner the branch is opened again, the better.
 
435
 
 
436
This matters more for ``lp:bzr`` than for ``lp:bzr/x.y``, ``lp:bzr`` should
 
437
always be open for landing, so you should do `At the start of a release
 
438
cycle`_ as soon as possible (i.e. update the version number in ``bzr`` and
 
439
``bzrlib/__init__``, create/update the news files and create/update the
 
440
milestone for the next relase).
 
441
 
 
442
You may also need to do `At the start of a series cycle`_ if you're starting
 
443
a new series.
 
444
 
 
445
The final beta - branching and translations
 
446
-------------------------------------------
 
447
 
 
448
A word of caution: the instructions above works well for all releases but
 
449
there is one special case that requires a bit more care: when you release
 
450
the *last* beta for a given ``x.y`` series (from trunk aka lp:bzr), you need
 
451
to setup *two* branches for the next cycle:
 
452
 
 
453
#. ``lp:bzr`` needs to be opened for the next *series* ``x.(y+1)``.
 
454
 
 
455
#. ``lp:bzr/x.y`` needs to be opened for the next *release* ``x.y.0`` in the
 
456
   series. Since this is first real use of ``lp:bzr/x.y``, this is also the
 
457
   deadline for the PQM branch to be created.
 
458
 
 
459
Both are important as ``lp:bzr`` should remain open so any change can be
 
460
landed, ``lp:bzr/x.y`` on the other hand should be ready to receive bug
 
461
fixes.
 
462
 
 
463
``lp:bzr`` is generally more important as the bug fixes on ``lp:bzr/x.y``
 
464
won't be released sooner than a month from now whereas people may already
 
465
been waiting to land on ``lp:bzr``.
 
466
 
 
467
In a nutshell:
 
468
 
 
469
#. Open ``lp:bzr`` for ``x.(y+1)``
 
470
 
 
471
#. Create or update the ``x.y`` PQM branch based on whatever revision you
 
472
   want to release. Since it takes time to create the PQM branch for the new
 
473
   series you should plan to get it created a few days before you need it
 
474
   and seed it with the revision from trunk you want to base your release of
 
475
   (ask a LOSA for pulling this revision from trunk and pushing it to the
 
476
   series branch (``lp:bzr/x.y``) when you're ready).
 
477
 
 
478
#. Release ``x.y.0`` from ``lp:bzr/x.y``
 
479
 
 
480
#. Open ``lp:bzr/x.y`` for bug fixes
 
481
 
 
482
You also need to ensure Launchpad is set up to import/export translations
 
483
for the new branch and inform translators.
 
484
 
 
485
#. Push the last beta release to a new branch::
 
486
 
 
487
     bzr push lp:~bzr-core/bzr/bzr-translations-export-x.y
 
488
 
 
489
#. On the translations series synchronization settings page
 
490
   <https://translations.launchpad.net/bzr/x.y/+translations-settings>
 
491
   turn on ``Import template files`` then for exports click ``Choose a
 
492
   target branch`` and point it at the branch you just pushed.
 
493
 
 
494
#. E-mail translators to announce that the forthcoming stable release of bzr
 
495
   is ready for translations.  Send to
 
496
   ``launchpad-translators@lists.launchpad.net`` and
 
497
   ``ubuntu-translators@lists.ubuntu.com``.
 
498
 
 
499
#. The series is now frozen for strings and API, see below for adding
 
500
   that to the announcement.
 
501
 
 
502
Announcing the source freeze
 
503
----------------------------
 
504
 
 
505
#. Post to the ``bazaar@lists.canonical.com`` and
 
506
   ``bzr-packagers@list.launchpad.net`` lists, saying that the source has
 
507
   been frozen. Be extra clear that this is only a *source* release targeted
 
508
   at packagers and installer builders (see
 
509
   <https://bugs.launchpad.net/launchpad/+bug/645084>).  This is the cue for
 
510
   platform maintainers and plugin authors to update their code.  This is
 
511
   done before the general public announcement of the release.
 
512
 
 
513
   The freeze announcement generally guess the date of the official public
 
514
   announcement, for the most recent stable series (the one supported by the
 
515
   installers and most of the distributions) it's generally a few days after
 
516
   the freeze. For older series supported only via SRUs for Ubuntu, we don't
 
517
   control the process as tightly so guessing the date is not appropriate.
 
518
 
 
519
   For the final beta release include in your announcement a notice of
 
520
   API and translation freezes nothing that public methods should not
 
521
   be removed or changed and strings should not be added or changed.
 
522
 
 
523
#. Pause for a few days. 
352
524
 
353
525
 
354
526
Publishing the release
378
550
 
379
551
#. Make an announcement mail.
380
552
 
381
 
   For release candidates or beta releases, this is sent to the ``bazaar``
382
 
   list only to inform plugin authors and package or installer managers.
383
 
 
384
 
   Once the installers are available, the mail can be sent to the
385
 
   ``bazaar-announce`` list too.
386
 
 
387
 
   For final releases, it should also be cc'd to ``info-gnu@gnu.org``,
 
553
   For beta releases, this is sent to the ``bazaar@lists.canonical.com`` and
 
554
   ``bazaar-announce@lists.canonical.com`` lists.
 
555
 
 
556
   For stable releases (excluding SRUs which are for older stable releases),
 
557
   it should also be cc'd to ``info-gnu@gnu.org``,
388
558
   ``python-announce-list@python.org``, ``bug-directory@gnu.org``.
389
559
 
390
560
   In all cases, it is good to set ``Reply-To: bazaar@lists.canonical.com``,
396
566
 
397
567
      The Bazaar team is happy to announce availability of a new
398
568
      release of the bzr adaptive version control system.
399
 
      Bazaar is part of the GNU system <http://gnu.org/>.
 
569
 
 
570
      Bazaar <http://bazaar.canonical.com/> is a Canonical project and part
 
571
      of the GNU project <http://gnu.org/> to produce a free operating
 
572
      system.
400
573
 
401
574
      <<Summary paragraph from news>>
402
575
 
412
585
   Feel free to tweak this to your taste.
413
586
 
414
587
#. Make an announcement through <https://launchpad.net/bzr/+announce>
415
 
 
416
 
#. Update the IRC channel topic. Use the ``/topic`` command to do this,
417
 
   ensuring the new topic text keeps the project name, web site link, etc.
418
 
 
419
 
#. Announce on http://freshmeat.net/projects/bzr/
420
 
 
421
 
   This should be done for beta releases, release candidates and final
422
 
   releases. If you do not have a Freshmeat account yet, ask one of the
423
 
   existing admins.
424
 
 
425
 
   The purpose here is to point users to the latest stable release while still
426
 
   publishing announcements for development releases.
 
588
   mentioning the milestone URL <https://launchpad.net/bzr/+milestone/x.y.z>
 
589
   so people get an easy access to details.
 
590
 
 
591
#. Announce on http://freecode.com/projects/bazaar-vcs
 
592
 
 
593
   This should be done for beta releases and stable releases. If you do not
 
594
   have a Freecode account yet, ask one of the existing admins.
 
595
 
 
596
   The purpose here is to point users to the latest stable release
 
597
   (i.e. SRUs are excluded) while still publishing announcements for beta
 
598
   releases.
427
599
 
428
600
   There are several kinds of modifications that could be done there via the
429
601
   ``Administration`` box in the lower right area of the page:
432
604
     ``Links`` box are edited. This should rarely change except for the URLs
433
605
     related to the latest stable release.
434
606
 
435
 
   * New announcement: When doing a release (beta, candidates, final), put the
436
 
     summary of the release (you can't embed URLs there, the moderation staff
437
 
     remove them). Users can still access the releases notes via the ``Release
438
 
     Notes`` URL in the ``Links`` box in the upper right area of the
439
 
     page. When doing the first stable release in a series, delete the
440
 
     ``Unstable installers`` <https://launchpad.net/bzr/x.y/x.ybn> and
441
 
     ``Unstable source tarball``
 
607
   * New announcement: When doing a release, put the summary of the release
 
608
     (you can't embed URLs there, the moderation staff remove them). Users
 
609
     can still access the releases notes via the ``Release Notes`` URL in
 
610
     the ``Links`` box in the upper right area of the page. When doing the
 
611
     first stable release in a series, delete the ``Unstable installers``
 
612
     <https://launchpad.net/bzr/x.y/x.ybn> and ``Unstable source tarball``
442
613
     <http://launchpad.net/bzr/x.y/x.ybn/+download/bzr-x.ybn.tar.gz>
443
 
     links. Conversely, when creating the first beta in a development series,
444
 
     create these links again. Check all links when doing other kinds of
445
 
     release.
 
614
     links. Conversely, when creating the first beta in a development
 
615
     series, create these links again. Check all links when doing other
 
616
     kinds of release.
446
617
 
447
618
   * Set direct download: When releasing a new stable release, this should
448
619
     point to the corresponding launchpad page:
449
620
     <https://launchpad.net/bzr/x.y/x.y.z/>
450
621
 
451
622
#. Update `<http://en.wikipedia.org/wiki/Bazaar_(software)>`_ -- this should
452
 
   be done for final releases but not for beta releases or Release Candidates.
 
623
   be done for the stable and beta releases.
453
624
 
454
625
#. Update the python package index: <http://pypi.python.org/pypi/bzr> - best
455
626
   done by running ::
456
627
 
457
628
       python setup.py register
458
629
 
459
 
   Remember to check the results afterwards -- this should be done for
460
 
   final releases but not for beta releases or Release Candidates.
 
630
   Remember to check the results afterward -- this should be done for
 
631
   stable releases but not for beta releases nor SRUs.
461
632
 
462
633
   To be able to register the release you must create an account on
463
634
   <http://pypi.python.org/pypi> and have one of the existing owners of
467
638
Merging the released code back to trunk
468
639
---------------------------------------
469
640
 
470
 
Merge the release branch back into the trunk.  The
471
 
``doc/en/release-notes`` changes should be merged into the right place
472
 
because each release series has its own release-notes file, but
473
 
double-check.
 
641
Merge the release branch back into the trunk.  The ``doc/en/release-notes``
 
642
changes should be merged into the right place because each release series
 
643
has its own release-notes file, but double-check.
474
644
 
475
645
If it's not already done, advance the version number in ``bzr`` and
476
646
``bzrlib/__init__.py``.  Submit this back into pqm for bzr.dev.
479
649
created the corresponding milestone to ensure the continuity in bug
480
650
targeting or nominating. Depending on the change, you may even have to
481
651
create a new series (if your change the major or minor release number), in
482
 
that case go to `At the start of a release cycle` and follow the instructions from there.
 
652
that case go to `At the start of a series cycle`_ and follow the
 
653
instructions from there.
483
654
 
484
 
You should also merge (not pull) the release branch into
485
 
``lp:~bzr/bzr/current``, so that branch contains the current released code
486
 
at any time.
487
655
 
488
656
Releases until the final one
489
657
----------------------------
490
658
 
491
 
Congratulations - you have made your first release.  Have a beer
492
 
or fruit juice - it's on the house! If it was a beta, or
493
 
candidate, you're not finished yet. Another beta or candidate or
494
 
hopefully a final release is still to come.
 
659
Congratulations - you have made your first release.  Have a beer or fruit
 
660
juice - it's on the house! If it was a beta, you're not finished
 
661
yet. Another beta or hopefully a stable release is still to come.
495
662
 
496
 
The process is the same as for the first release. Goto `Doing a
497
 
particular release`_ and follow the instructions again. Some details change
498
 
between beta, candidate and final releases, but they should be
499
 
documented. If the instructions aren't clear enough, please fix them.
 
663
The process is the same as for the first release. Goto `Doing a particular
 
664
release`_ and follow the instructions again. Some details change between
 
665
beta and stable releases, but they should be documented. If the instructions
 
666
aren't clear enough, please fix them.
500
667
 
501
668
 
502
669
Getting the release into Ubuntu
515
682
the `SRU (Stable Release Updates)
516
683
<https://wiki.ubuntu.com/StableReleaseUpdates>`__ process.   
517
684
 
518
 
As of September 2010, bzr has applied to the technical board to be added
519
 
to the `MicroReleaseExceptions
 
685
Since September 2010, bzr has received approval by the technical
 
686
board for the `MicroReleaseExceptions
520
687
<https://wiki.ubuntu.com/StableReleaseUpdates/MicroReleaseExceptions>`__
521
 
category so that whole bugfix releases can more easily be approved.
 
688
category so that whole bugfix releases can more easily be
 
689
approved.
 
690
 
 
691
Progress on these realeases is tracked on the `SRU wiki
 
692
<http://wiki.bazaar.canonical.com/UbuntuStableReleaseUpdates>`_
 
693
page.
522
694
 
523
695
**After making a bzr stable-release release, nominate the most serious bug
524
696
for the appropriate Ubuntu release and subscribe the `ubuntu-sru` team.**
535
707
   button and select the right Ubuntu release. As of September 2010, this
536
708
   means:
537
709
 
 
710
  * ``oneiric`` for the 2.4 series,
 
711
  * ``natty`` for the 2.3 series,
538
712
  * ``maverick`` for the 2.2 series,
539
713
  * ``lucid`` for the 2.1 series,
540
 
  * ``karmic`` for the 2.0 series.
541
714
 
542
715
 * Subscribe the ``~ubuntu-sru`` team to the bug.
543
716