/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to doc/developers/releasing.txt

  • Committer: Breezy landing bot
  • Author(s): Jelmer Vernooij
  • Date: 2018-09-15 00:32:05 UTC
  • mfrom: (7096.3.9 per-tree-git-revtree)
  • Revision ID: breezy.the.bot@gmail.com-20180915003205-dmcqqujf6z368wgf
Run per_tree tests against GitRevisionTree.

Merged from https://code.launchpad.net/~jelmer/brz/per-tree-git-revtree/+merge/354530

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Releasing Bazaar
2
 
================
 
1
Releasing Breezy
 
2
################
3
3
 
4
 
This document describes the processes for making and announcing a Bazaar
 
4
This document describes the processes for making and announcing a Breezy
5
5
release, and managing the release process.  This is just one phase of the
6
 
`overall development cycle <http://doc.bazaar-vcs.org/developers/cycle.html>`_,
7
 
but it's the most complex part.
8
 
This document gives a checklist you can follow from start to end in one
9
 
go.
 
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.
10
15
 
11
16
If you're helping the Release Manager (RM) for one reason or another, you
12
17
may notice that he didn't follow that document scrupulously. He may have
13
18
good reasons to do that but he may also have missed some parts.
14
19
 
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
 
 
18
20
.. contents::
19
21
 
20
22
 
21
23
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
 
 
28
 
 
29
 
Starting a cycle
30
 
----------------
 
24
=============
 
25
 
 
26
#. Be a member of https://launchpad.net/~brz (or you won't be able to land
 
27
   any change)
 
28
 
 
29
What do we release
 
30
==================
 
31
 
 
32
In this document, we're talking about source releases only, packages and
 
33
installers are built from this but we won't talk about them here.
 
34
 
 
35
Every release is part of a series, ``brz-3.0.0`` is part of series ``3.0``.
 
36
 
 
37
We do two different kind of releases: the betas releases and the stable
 
38
releases for a given series.
 
39
 
 
40
For a given series, releases will be done to deliver new versions of brz to
 
41
different kinds of users:
 
42
 
 
43
#. beta releases: named ``x.ybn`` where ``x.y`` is the series and ``n``
 
44
   starts at 1 and is incremented. These releases are targeted to beta
 
45
   testers who don't want to run from source but are interested in features
 
46
   or improvements.
 
47
 
 
48
#. stable releases: name ``x.y.z`` where ``x.y.`` is the series and ``z``
 
49
   starts at 0 and is incremented. These releases are targeted at people
 
50
   that want bugfixes only and no new features.
 
51
 
 
52
 
 
53
Differences in the release process between beta and stable release will be
 
54
mentioned when needed.
 
55
 
 
56
When do we relase ?
 
57
===================
 
58
 
 
59
As of September 2018, we maintain a single series: 3.0.
 
60
 
 
61
#. as much as possible releases should not disturb development, and
 
62
   ongoing development should not disturb releases,
 
63
 
 
64
#. the most recent development series should release once a month during
 
65
   the beta period (see `Development cycles <cycle.html>`_ for more
 
66
   details),
 
67
 
 
68
#. the most recent stable series should release every other month (based
 
69
   on the amount of bug fixes, this can be shorter or longer depending on
 
70
   the bugs importance),
 
71
 
 
72
#. previous series should release on a regular basis without interfering
 
73
   with the most recent series with a decreasing order of priority (again
 
74
   this should be based on bugs importance and user feedback),
 
75
 
 
76
#. the death of a series should be planned ahead of time. 6 months should
 
77
   give enough time to our users to migrate to a more recent series. This
 
78
   doesn't mean we will make a release at the end of the series, just that
 
79
   before the end date we *could* possibly put out another release if
 
80
   there was a sufficiently important fix.  Beyond that date, we won't
 
81
   even land changes on that branch (unless something causes a miraculous
 
82
   resurrection.)
 
83
 
 
84
#. there should not be more than 2 releases in the same week (but the
 
85
   Release Manager is free to ignore this (get in touch with packagers
 
86
   though),
 
87
 
 
88
At the start of a series cycle
 
89
==============================
 
90
 
 
91
To start a new series cycle:
 
92
 
 
93
#. Create a new series ``x.y`` at <https://launchpad.net/brz/+addseries>.
 
94
 
 
95
#. Add milestones at <https://launchpad.net/brz/x.y/+addmilestone> to that
 
96
   series for the beta releases and the stable series mentioning their
 
97
   expected dates. Only the milestone associated to the next release in
 
98
   this series should be left active to avoid clutter when targeting bugs.
 
99
 
 
100
#. If you made a new series, you will need to create a new branch for this
 
101
   release series. This branch will be used only from the first non-beta
 
102
   release onwards. It needs to be created by a https://launchpad.net/~brz
 
103
   member (ask the core devs for instructions or to do it for you).
 
104
 
 
105
#. Start a new release-notes file::
 
106
 
 
107
       cd doc/en/release-notes
 
108
       cp series-template.txt brz-x.y.txt  # e.g. brz-3.1.txt
 
109
       brz add brz-3.1.txt
 
110
 
 
111
#. Start a new whats-new file::
 
112
 
 
113
       cd doc/en/whats-new
 
114
       cp template.txt brz-x.y.txt  # e.g. brz-3.1.txt
 
115
       brz add brz-x.y.txt
 
116
 
 
117
#. Update ``doc/en/index.txt`` to point to the new whats-new file.
 
118
 
 
119
At the start of a release cycle
 
120
===============================
31
121
 
32
122
To start a new release cycle:
33
123
 
34
 
#. Create a new series at <https://launchpad.net/bzr/+addseries>. There is one
35
 
   series for every *x.y* release.
36
 
 
37
 
#. Go to the series web page at <https://launchpad.net/bzr/x.y>
38
 
 
39
 
#. Create a new release at
40
 
   <https://launchpad.net/bzr/x.y/+addrelease> and add
41
 
   information about this release. We will not use it yet, but it
42
 
   will be available for targeting or nominating bugs.
43
 
 
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
 
 
50
 
#. Add milestones at <https://edge.launchpad.net/bzr/x.y/+addmilestone> to
51
 
   that series for the beta release, release candidate and the final release,
52
 
   and their expected dates.
53
 
 
54
 
#. Update the version number in the ``bzr`` script, and the
55
 
   ``bzrlib/__init__.py`` file. Make sure there is always a corresponding
56
 
   milestone when you change that version number.
57
 
 
58
 
#. Add a new section at the top of ``NEWS`` about the new release,
59
 
   including its version number and the headings from
60
 
   ``NEWS-template.txt``.
61
 
 
62
124
#. Send mail to the list with the key dates, who will be the release
63
125
   manager, and the main themes or targeted bugs.  Ask people to nominate
64
126
   objectives, or point out any high-risk things that are best done early,
65
127
   or that interact with other changes. This is called the metronome mail
66
128
   and is described in `Development cycles <cycle.html>`_.
67
129
 
68
 
#. Make a local branch for preparing this release.  (Only for the first
69
 
   release in a series, otherwise you should already have a branch.) ::
70
 
 
71
 
     bzr branch trunk prepare-1.14
72
 
 
73
 
#. Configure pqm-submit for this branch, with a section like this (where
74
 
   x.y is the version to release).
75
 
   ``~/.bazaar/locations.conf``::
76
 
 
77
 
        [/home/mbp/bzr/prepare-x.y]
78
 
        pqm_email = Canonical PQM <pqm@bazaar-vcs.org>
79
 
        submit_branch = http://bazaar.launchpad.net/~bzr-pqm/bzr/x.y
80
 
        parent_branch = http://bazaar.launchpad.net/~bzr-pqm/bzr/x.y
81
 
        public_branch = http://bazaar.example.com/prepare-x.y
82
 
        submit_to = bazaar@lists.canonical.com
83
 
        smtp_server = mail.example.com:25
84
 
 
85
 
    Please see <http://doc.bazaar-vcs.org/developers/HACKING.html#an-overview-of-pqm>
86
 
    for more details on PQM
87
 
 
88
 
#. In the release branch, update  ``version_info`` in ``./bzrlib/__init__.py``.
 
130
#. Make a local branch to prepare the release::
 
131
 
 
132
        brz branch lp:brz/x.y x.y-dev
 
133
 
 
134
   If you're doing your first beta release, branch from trunk::
 
135
 
 
136
       brz branch lp:brz x.y-dev
 
137
 
 
138
   Note that you will generally reuse the same branch for all releases in a
 
139
   given series.
 
140
 
 
141
#. Add a landing job for the release branch at https://ci.breezy-vcs.org/
 
142
 
 
143
#. Update the version number in the ``brz`` script, and the
 
144
   ``breezy/__init__.py`` file::
 
145
   
 
146
       version_info = (x, y, z, 'dev', 0)
 
147
   
 
148
#. Add a new section at the top of the current release notes (in
 
149
   ``doc/en/release-notes``) about the new release, including its version
 
150
   number and the headings from ``release-template.txt``.
 
151
 
 
152
#. Update the "What's New" documents in ``doc/en/whats-new``.
 
153
 
 
154
#. Make sure a milestone exists for your release and that it is active,
 
155
   <https://launchpad.net/brz/x.y> lists the existing milestones,
 
156
   <https://launchpad.net/brz/x.y/x.y.z/+edit> allows you to toggle the
 
157
   active flag.
 
158
 
 
159
#. Commit this and make a proposal against the release branch. Self approve
 
160
   it (you're the release manager).
 
161
 
 
162
 
 
163
Doing a particular release
 
164
==========================
 
165
 
 
166
Update the source code
 
167
----------------------
 
168
 
 
169
#. Check that there is a milestone for the release you're doing. If there
 
170
   is no milestone it indicates a process problem - make the milestone but
 
171
   also mail the list to raise this issue in our process. Milestones are
 
172
   found at <https://launchpad.net/brz/+milestone/x.y.z>.
 
173
 
 
174
#. Merge into your branch all previous stable series fixes that haven't been
 
175
   merged yet. For example, if you're releasing 3.2.x, make sure the fixes
 
176
   on 3.1, 3.0 have already been merged up::
 
177
 
 
178
     brz merge lp:brz/3.1
 
179
 
 
180
   and commit that merge in its own commit. This should happen only if the
 
181
   devs landing changes in previous releases forgot to merge them up. Since
 
182
   this can slow down the freeze, feel free to gently remind them about
 
183
   their duties ;) If you feel unsafe resolving the conflicts or it's too
 
184
   time consuming, contact the related devs and skip this merge.
 
185
     
 
186
   Alternatively, think about automating these merges.
 
187
    
 
188
#. In the release branch, update  ``version_info`` in ``./breezy/__init__.py``.
89
189
   Make sure the corresponding milestone exists.
90
 
   Double check that ./bzr ``_script_version`` matches ``version_info``. Check
91
 
   the output of ``bzr --version``.
 
190
   Double check that ./brz ``_script_version`` matches ``version_info``. Check
 
191
   the output of ``./brz --version``.
92
192
 
93
193
   For beta releases use::
94
194
 
95
 
       version_info = (2, 1, 0, 'beta', 1)
96
 
 
97
 
 
98
 
   For release candidates use::
99
 
 
100
 
       version_info = (2, 0, 1, 'candidate', 1)
101
 
 
102
 
 
103
 
Starting the release phase
104
 
--------------------------
105
 
 
106
 
#. Create a new milestone at <https://launchpad.net/bzr/x.y/+addmilestone>
107
 
   for the beta release or release candidate if you haven't already.
108
 
 
109
 
#. Add the date and release number to ``./NEWS``
110
 
 
111
 
   Depending on whether you're doing a beta or a bugfix release, you'll
112
 
   have to create a NEWS section for your release in the right
113
 
   place. Most of the time, the new section is at the top of the file
114
 
   (look what have been done for the various 2.0x and 2.1.0bx releases).
115
 
   The rule is to keep the sections sorted by date. You'll need to be
116
 
   cautious when merging back to trunk to respect that.
117
 
 
118
 
#. To check that all bugs mentioned in ``./NEWS`` are actually marked as
119
 
   closed in Launchpad, you can run ``tools/check-newsbugs.py``::
120
 
 
121
 
     ./tools/check-newsbugs.py NEWS
122
 
 
123
 
   (But note there can be some false positives, and this script may be
124
 
   flaky <https://bugs.edge.launchpad.net/bzr/+bug/354985>.  Don't let
125
 
   this slow you down too much.)
126
 
 
127
 
#. Summarize into one or two paragraphs what's new in this release.
 
195
       version_info = (3, 0, 0, 'beta', SERIAL)
 
196
 
 
197
   For instance 3.0b1::
 
198
 
 
199
       version_info = (3, 0, 0, 'beta', 1)
 
200
 
 
201
   For stable releases use::
 
202
 
 
203
       version_info = (3, 0, 0, 'final', 0)
 
204
 
 
205
#. Update the ``./doc/en/release-notes/`` section for this release.
 
206
 
 
207
   Check that all news entries related to this release have been added in
 
208
   the right section. For example, if you're releasing 3.0b3, the following
 
209
   command should display a a single chuk diff for the 3.0b3 release::
 
210
 
 
211
     brz diff -rbrz-3.0b2.. doc/en/release-notes/brz-3.0.txt
 
212
 
 
213
   Fill out the date and a description of the release under the existing
 
214
   header (the diff above will help you summarizing). If there isn't one,
 
215
   follow the instructions above for using the ``release-template.txt`` file
 
216
   and remind people that they should document their changes there ;)
 
217
 
 
218
   See *3.0b1* or similar for an example of what this looks like.
 
219
 
 
220
#. Add or check the summary of the release into the "What's New" document.
 
221
 
 
222
  If this is the first release in a new series make sure to update the
 
223
  introduction mentioning:
 
224
 
 
225
  * the date of this first release,
 
226
  * until when the series is expected to be supported.
 
227
 
 
228
  Looking at ``brz annotate`` for previous series should give you the right
 
229
  hints. The ``doc/en/_templates/index.html`` file should also be updated.
 
230
 
 
231
#. To check that all bugs mentioned in the release notes are actually
 
232
   marked as closed in Launchpad, you can run
 
233
   ``tools/check-newsbugs.py``::
 
234
 
 
235
     ./tools/check-newsbugs.py doc/en/release-notes/brz-x.y.txt
 
236
 
 
237
   As of 2011-07-18, all bugs mentioned in the output of the script requires
 
238
   some sort of intervention (either changing the status if it's not 'Fix
 
239
   Released' or setting a different milestone if the bug hasn't been
 
240
   fixed). A few false positives may remain in the older series, don't let
 
241
   this slow you down too much. This script accepts options you may find
 
242
   useful, use ``./tools/check-newsbugs.py`` to display its usage (``-w``
 
243
   will open each bug in your browser for example).
 
244
 
 
245
#. For beta releases update the translation template::
 
246
 
 
247
     BRZ_PLUGIN_PATH=-site make po/brz.pot
 
248
 
 
249
   This is especially important for the final beta release which is when
 
250
   translations are frozen and translators are requested (see `The final
 
251
   beta - branching and translations`_) to make the translations.
 
252
 
 
253
#. For stable releases update the translations::
 
254
 
 
255
     brz merge lp:~brz-core/brz/brz-translations-export-x.y
128
256
 
129
257
#. Commit these changes to the release branch, using a command like::
130
258
 
131
 
     bzr commit -m "Release 1.14."
 
259
     brz commit -m "Release 2.3.1"
132
260
 
133
261
   The diff before you commit will be something like::
134
262
 
135
 
     === modified file 'NEWS'
136
 
     --- NEWS        2008-09-17 23:09:18 +0000
137
 
     +++ NEWS        2008-09-23 16:14:54 +0000
138
 
     @@ -4,6 +4,23 @@
139
 
 
140
 
      .. contents::
141
 
 
142
 
     +bzr 1.7 2008-09-23
143
 
     +------------------
144
 
     +
145
 
     +This release includes many bug fixes and a few performance and feature
146
 
     +improvements.  ``bzr rm`` will now scan for missing files and remove them,
147
 
     +like how ``bzr add`` scans for unknown files and adds them. A bit more
148
 
     +polish has been applied to the stacking code. The b-tree indexing code has
149
 
     +been brought in, with an eye on using it in a future repository format.
150
 
     +There are only minor installer changes since bzr-1.7rc2.
151
 
     +
152
 
      bzr 1.7rc2 2008-09-17
153
 
      ---------------------
154
 
 
155
 
 
156
 
     === modified file 'bzrlib/__init__.py'
157
 
     --- bzrlib/__init__.py  2008-09-16 21:39:28 +0000
158
 
     +++ bzrlib/__init__.py  2008-09-23 16:14:54 +0000
159
 
     @@ -41,7 +41,7 @@
160
 
      # Python version 2.0 is (2, 0, 0, 'final', 0)."  Additionally we use a
161
 
      # releaselevel of 'dev' for unreleased under-development code.
162
 
 
163
 
     -version_info = (1, 7, 0, 'candidate', 2)
164
 
     +version_info = (1, 7, 0, 'final', 0)
165
 
 
166
 
 
167
 
      # API compatibility version: bzrlib is currently API compatible with 1.7.
 
263
      === modified file 'breezy/__init__.py'
 
264
      --- breezy/__init__.py    2011-02-09 06:35:00 +0000
 
265
      +++ breezy/__init__.py    2011-03-10 10:24:47 +0000
 
266
      @@ -52,7 +52,7 @@
 
267
       # Python version 2.0 is (2, 0, 0, 'final', 0)."  Additionally we use a
 
268
       # releaselevel of 'dev' for unreleased under-development code.
 
269
       
 
270
      -version_info = (2, 3, 1, 'dev', 0)
 
271
      +version_info = (2, 3, 1, 'final', 0)
 
272
       
 
273
       # API compatibility version
 
274
       api_minimum_version = (2, 3, 0)
 
275
      
 
276
      === modified file 'doc/en/release-notes/brz-2.3.txt'
 
277
      --- doc/en/release-notes/brz-2.3.txt      2011-03-09 08:30:16 +0000
 
278
      +++ doc/en/release-notes/brz-2.3.txt      2011-03-10 10:40:47 +0000
 
279
      @@ -8,23 +8,10 @@
 
280
       brz 2.3.1
 
281
       #########
 
282
       
 
283
      -:2.3.1: NOT RELEASED YET
 
284
      -
 
285
      -External Compatibility Breaks
 
286
      -*****************************
 
287
      -
 
288
      -.. These may require users to change the way they use Breezy.
 
289
      -
 
290
      -New Features
 
291
      -************
 
292
      -
 
293
      -.. New commands, options, etc that users may wish to try out.
 
294
      -
 
295
      -Improvements
 
296
      -************
 
297
      -
 
298
      -.. Improvements to existing commands, especially improved performance 
 
299
      -   or memory usage, or better results.
 
300
      +:2.3.1: 2011-03-10
 
301
      +
 
302
      +This is a bugfix release. Upgrading is recommended for all users of earlier
 
303
      +2.3 releases.
 
304
       
 
305
       Bug Fixes
 
306
       *********
 
307
      
 
308
      === modified file 'doc/en/whats-new/whats-new-in-2.3.txt'
 
309
      --- doc/en/whats-new/whats-new-in-2.3.txt 2011-02-03 16:29:18 +0000
 
310
      +++ doc/en/whats-new/whats-new-in-2.3.txt 2011-03-10 11:10:36 +0000
 
311
      @@ -17,8 +17,13 @@
 
312
       improvements made to the core product, it highlights enhancements within the
 
313
       broader Breezy world of potential interest to those upgrading.
 
314
       
 
315
      -Breezy 2.3.0 is fully compatible both locally and on the network with 2.0 2.1,
 
316
      -and 2.2, and can read and write repositories generated by all previous
 
317
      +Breezy 2.3.1 includes all the fixes in the un-released 2.0.7, 2.1.4 and 2.2.5
 
318
      +versions that weren't included in 2.3.0 and fixes some bugs on its own.
 
319
      +
 
320
      +See the :doc:`../release-notes/index` for details.
 
321
      +
 
322
      +Breezy 2.3 is fully compatible both locally and on the network with 2.0, 2.1,
 
323
      +and 2.2. It can read and write repositories generated by all previous
 
324
       versions.
 
325
       
 
326
       Changed Behaviour
 
327
      
168
328
 
169
329
#. Tag the new release::
170
330
 
171
 
     bzr tag bzr-1.14
172
 
 
173
 
#. Push those changes to a bzr reposistory that is public and accessible on
174
 
   the Internet. PQM will pull from this repository when it attempts to merge
175
 
   your changes. Then submit those changes to PQM for merge into the
176
 
   appropriate release branch::
177
 
 
178
 
     bzr push
179
 
     bzr pqm-submit -m "(mbp) prepare 1.14"
180
 
 
181
 
#. When PQM succeeds, pull down the master release branch.
 
331
     brz tag brz-3.0.0
 
332
 
 
333
#. Push those changes to a brz branch and make a merge proposal::
 
334
 
 
335
     brz push
 
336
 
 
337
   Use a commit message formatted like::
 
338
  
 
339
     (vila) Release 3.0.0 (Vincent Ladeuil)
 
340
 
 
341
   Note that ``brz push`` should mention updating one tag (which you just
 
342
   created). If it doesn't, double-check that you created (and pushed) this
 
343
   tag.
 
344
 
 
345
#. Once the merge proposal has landed, pull down the master release branch.
182
346
 
183
347
 
184
348
Making the source tarball
191
355
#. Now we'll try expanding this tarball and running the test suite
192
356
   to check for packaging problems::
193
357
 
194
 
     make check-dist-tarball
195
 
 
196
 
   You may encounter failures while running the test suite caused
197
 
   by your locally installed plugins. Use your own judgment to
198
 
   decide if you can release with these failures. When in doubt,
199
 
   disable the faulty plugins one by one until you get no more
200
 
   failures.
 
358
     make check-dist-tarball | subunit2pyunit
 
359
 
 
360
   You may encounter failures while running the test suite caused by your
 
361
   locally installed plugins. Use your own judgment to decide if you can
 
362
   release with these failures. When in doubt, disable the faulty plugins
 
363
   one by one until you get no more failures. Alternatively, you can use
 
364
   ``BRZ_DISABLE_PLUGINS`` or ``BRZ_PLUGIN_PATH=-site`` to disable one or
 
365
   all plugins.
 
366
 
 
367
   Remember that this branch has already been tested on
 
368
   https://ci.breezy-vcs.org, this step is particularly testing that the
 
369
   cython extensions, which are updated by your local cython version when
 
370
   you run make dist, are in good shape.
201
371
 
202
372
 
203
373
Publishing the source tarball
204
374
-----------------------------
205
375
 
206
 
#. Go to the relevant milestone page in Launchpad.
207
 
 
208
 
#. Within that release, upload the source tarball and the GPG
209
 
   signature.  Or, if you prefer, use the
210
 
   ``tools/packaging/lp-upload-release`` script to do this.
211
 
 
 
376
#. Go to the relevant <https://launchpad.net/brz/x.y> series page in Launchpad.
 
377
 
 
378
#. Create a release of the milestone, and upload the source tarball and
 
379
   the GPG signature.  Or, if you prefer, use the
 
380
   ``tools/packaging/lp-upload-release`` script to do this. Note that
 
381
   this changes what the download widget on the Launchpad brz home
 
382
   page shows, so don't stop the release process yet, or platform binary
 
383
   installers won't be made and the download list will stay very small!
 
384
   <https://bugs.launchpad.net/launchpad/+bug/586445>
 
385
 
 
386
 
 
387
Kick off the next cycle
 
388
-----------------------
 
389
 
 
390
From that point, there is no possible return, the tarball has been uploaded
 
391
so you can relax a bit.
 
392
 
 
393
You're still holding a "social" lock on the launchpad branch though. Until
 
394
your start the next cycle, nobody should land anything on this branch. If
 
395
they do, they either targeted the wrong branch or didn't update the news
 
396
file correctly, so the sooner the branch is opened again, the better.
 
397
 
 
398
This matters more for ``lp:brz`` than for ``lp:brz/x.y``, ``lp:brz`` should
 
399
always be open for landing, so you should do `At the start of a release
 
400
cycle`_ as soon as possible (i.e. update the version number in ``brz`` and
 
401
``breezy/__init__``, create/update the news files and create/update the
 
402
milestone for the next relase).
 
403
 
 
404
You may also need to do `At the start of a series cycle`_ if you're starting
 
405
a new series.
 
406
 
 
407
The final beta - branching and translations
 
408
-------------------------------------------
 
409
 
 
410
A word of caution: the instructions above works well for all releases but
 
411
there is one special case that requires a bit more care: when you release
 
412
the *last* beta for a given ``x.y`` series (from trunk aka lp:brz), you need
 
413
to setup *two* branches for the next cycle:
 
414
 
 
415
#. ``lp:brz`` needs to be opened for the next *series* ``x.(y+1)``.
 
416
 
 
417
#. ``lp:brz/x.y`` needs to be opened for the next *release* ``x.y.0`` in the
 
418
   series. Since this is first real use of ``lp:brz/x.y``, this is also the
 
419
   deadline for the https://ci.breezy-vcs.org/ landing job to be created.
 
420
 
 
421
Both are important as ``lp:brz`` should remain open so any change can be
 
422
landed, ``lp:brz/x.y`` on the other hand should be ready to receive bug
 
423
fixes.
 
424
 
 
425
``lp:brz`` is generally more important as the bug fixes on ``lp:brz/x.y``
 
426
won't be released sooner than a month from now whereas people may already
 
427
been waiting to land on ``lp:brz``.
 
428
 
 
429
In a nutshell:
 
430
 
 
431
#. Open ``lp:brz`` for ``x.(y+1)``
 
432
 
 
433
#. Create https://ci.breezy-vcs.org/ landing job and/or update the
 
434
   ``lp:brz/x.y`` branch based on whatever revision you want to release.
 
435
 
 
436
#. Release ``x.y.0`` from ``lp:brz/x.y``
 
437
 
 
438
#. Open ``lp:brz/x.y`` for bug fixes
 
439
 
 
440
You also need to ensure Launchpad is set up to import/export translations
 
441
for the new branch and inform translators.
 
442
 
 
443
#. Push the last beta release to a new branch::
 
444
 
 
445
     brz push lp:~brz-core/brz/brz-translations-export-x.y
 
446
 
 
447
#. On the translations series synchronization settings page
 
448
   <https://translations.launchpad.net/brz/x.y/+translations-settings>
 
449
   turn on ``Import template files`` then for exports click ``Choose a
 
450
   target branch`` and point it at the branch you just pushed.
 
451
 
 
452
#. E-mail translators to announce that the forthcoming stable release of brz
 
453
   is ready for translations.  Send to
 
454
   ``launchpad-translators@lists.launchpad.net`` and
 
455
   ``ubuntu-translators@lists.ubuntu.com``.
 
456
 
 
457
#. The series is now frozen for strings and API, see below for adding
 
458
   that to the announcement.
212
459
 
213
460
Announcing the source freeze
214
461
----------------------------
215
462
 
216
 
#. Post to the ``bazaar`` list, saying that the source has been frozen.
217
 
   This is the cue for platform maintainers and plugin authors to update
218
 
   their code.  This is done before the general public announcement of the
219
 
   release.
 
463
#. Post to the ``bazaar@lists.canonical.com`` and
 
464
   ``brz-packagers@lists.launchpad.net`` lists, saying that the source has
 
465
   been frozen. Be extra clear that this is only a *source* release targeted
 
466
   at packagers and installer builders (see
 
467
   <https://bugs.launchpad.net/launchpad/+bug/645084>).  This is the cue for
 
468
   platform maintainers and plugin authors to update their code.  This is
 
469
   done before the general public announcement of the release.
 
470
 
 
471
   The freeze announcement generally guess the date of the official public
 
472
   announcement, for the most recent stable series (the one supported by the
 
473
   installers and most of the distributions) it's generally a few days after
 
474
   the freeze. For older series supported only via SRUs for Ubuntu, we don't
 
475
   control the process as tightly so guessing the date is not appropriate.
 
476
 
 
477
   For the final beta release include in your announcement a notice of
 
478
   API and translation freezes noting that public methods should not
 
479
   be removed or changed and strings should not be added or changed.
 
480
 
 
481
#. Pause for a few days. 
220
482
 
221
483
 
222
484
Publishing the release
223
485
----------------------
224
486
 
225
487
There is normally a delay of a few days after the source freeze to allow
226
 
for binaries to be built on various platforms.  Once they have been built,
 
488
for binaries to be built for various platforms. Once they have been built,
227
489
we have a releasable product.  The next step is to make it generally
228
490
available to the world.
229
491
 
230
 
go to the release
231
 
 
232
 
#. Within that release, upload the source tarball and zipfile and the GPG
233
 
   signature.  Or, if you prefer, use the
234
 
   ``tools/packaging/lp-upload-release`` script to do this.
235
 
 
236
 
#. Link from http://bazaar-vcs.org/SourceDownloads to the tarball and
237
 
   signature.
238
 
 
239
 
#. Announce on the `Bazaar website <http://bazaar-vcs.org/>`_.
240
 
   This page is edited via the lp:bzr-website branch. (Changes
241
 
   pushed to this branch are refreshed by a cron job on escudero.)
242
 
 
243
 
#. Announce on the `Bazaar wiki <http://bazaar-vcs.org/Welcome>`_.
 
492
#. Go to the release web page at <https://launchpad.net/brz/x.y/x.y.z>
 
493
 
 
494
#. Announce on the Breezy website.
244
495
 
245
496
#. Check that the documentation for this release is available in
246
 
   <http://doc.bazaar-vcs.org>.  It should be automatically build when the
247
 
   branch is created, by a cron script ``update-bzr-docs`` on
248
 
   ``escudero``. As of today (2009-08-27) ``igc`` manually updates the
249
 
   pretty version of it.
250
 
 
 
497
   <http://doc.bazaar.canonical.com>.  It should be automatically build when
 
498
   the branch is created, by a cron script ``update-brz-docs`` on
 
499
   ``escudero``. When the first release is created in a new series, a branch
 
500
   needs to be created on ``escudero``::
 
501
 
 
502
     ssh escudero.canonical.com
 
503
     sudo -u brz-web -s
 
504
     cd /srv/doc.bazaar.canonical.com/
 
505
     brz branch lp:brz/2.7 brz/brz.2.7
 
506
 
 
507
   And the ``brz/bin/update-brz-docs`` script needs to refer to it.
 
508
 
 
509
   The ``lp:brz-alldocs`` branch also needs to be updated when a new series
 
510
   is introduced, see the ``README`` file there for more instructions
 
511
   (looking at the branch history is also a good way to understand what
 
512
   needs to be done and to document any policy changes).
251
513
 
252
514
Announcing the release
253
515
----------------------
256
518
 
257
519
#. Make an announcement mail.
258
520
 
259
 
   For release candidates or beta releases, this is sent to the ``bazaar``
260
 
   list only to inform plugin authors and package or installer managers.
261
 
 
262
 
   Once the installers are available, the mail can be sent to the
263
 
   ``bazaar-announce`` list too.
264
 
 
265
 
   For final releases, it should also be cc'd to ``info-gnu@gnu.org``,
 
521
   For beta releases, this is sent to the ``bazaar@lists.canonical.com`` and
 
522
   ``bazaar-announce@lists.canonical.com`` lists.
 
523
 
 
524
   For stable releases (excluding SRUs which are for older stable releases),
 
525
   it should also be cc'd to ``info-gnu@gnu.org``,
266
526
   ``python-announce-list@python.org``, ``bug-directory@gnu.org``.
267
527
 
268
528
   In all cases, it is good to set ``Reply-To: bazaar@lists.canonical.com``,
270
530
 
271
531
   The announce mail will look something like this::
272
532
 
273
 
      Subject: bzr x.yy released!
 
533
      Subject: brz x.y.z released!
 
534
 
 
535
      The Breezy team is happy to announce availability of a new
 
536
      release of the brz adaptive version control system.
 
537
 
 
538
      Breezy is a fork of the Bazaar version control system.
274
539
 
275
540
      <<Summary paragraph from news>>
276
541
 
277
 
      The Bazaar team is happy to announce availability of a new
278
 
      release of the bzr adaptive version control system.
279
 
      Bazaar is part of the GNU system <http://gnu.org/>.
280
 
 
281
542
      Thanks to everyone who contributed patches, suggestions, and
282
543
      feedback.
283
544
 
284
 
      Bazaar is now available for download from
285
 
      http://bazaar-vcs.org/Download as a source tarball; packages
 
545
      Breezy is now available for download from
 
546
      https://launchpad.net/brz/x.y/x.y.z/ as a source tarball; packages
286
547
      for various systems will be available soon.
287
548
 
288
 
      <<NEWS section from this release back to the last major release>>
 
549
      <<release notes from this release back to the last major release>>
289
550
 
290
551
   Feel free to tweak this to your taste.
291
552
 
292
 
#. Make an announcement through <https://launchpad.net/bzr/+announce>
293
 
 
294
 
#. Update the IRC channel topic. Use the ``/topic`` command to do this,
295
 
   ensuring the new topic text keeps the project name, web site link, etc.
296
 
 
297
 
#. Announce on http://freshmeat.net/projects/bzr/
298
 
 
299
 
   This should be done for beta releases, release candidates and final
300
 
   releases. If you do not have a Freshmeat account yet, ask one of the
301
 
   existing admins.
302
 
 
303
 
#. Update `<http://en.wikipedia.org/wiki/Bazaar_(software)>`_ -- this should
304
 
   be done for final releases but not for beta releases or Release Candidates.
305
 
 
306
 
#. Update the python package index: <http://pypi.python.org/pypi/bzr> - best
307
 
   done by running ::
308
 
 
309
 
       python setup.py register
310
 
 
311
 
   Remember to check the results afterwards.
312
 
 
313
 
   To be able to register the release you must create an account on
314
 
   <http://pypi.python.org/pypi> and have one of the existing owners of
315
 
   the project add you to the group.
 
553
#. Make an announcement through <https://launchpad.net/brz/+announce>
 
554
   mentioning the milestone URL <https://launchpad.net/brz/+milestone/x.y.z>
 
555
   so people get an easy access to details.
 
556
 
 
557
#. Update `<http://en.wikipedia.org/wiki/Breezy_(software)>`_ -- this should
 
558
   be done for the stable and beta releases.
 
559
 
 
560
#. Update the python package index: <http://pypi.python.org/pypi/breezy>
 
561
 
 
562
   From the tarball created and tested earlier ::
 
563
 
 
564
     twine upload -s ../breezy-3.0.0.tar.gz
 
565
 
 
566
   Remember to check the results afterward -- this should be done for
 
567
   stable releases but not for beta releases nor SRUs.
 
568
 
 
569
   The ``twine`` command is provided by the ``twine`` package on Debian and
 
570
   Ubuntu.
 
571
 
 
572
   If in doubt, you can test with <https://testpypi.python.org/pypi> where
 
573
   you can register yourself, register the brz project and upload (and then
 
574
   remove the upload and delete the project so a new release manager can
 
575
   enjoy the same facilities). If the project already exists, have one of
 
576
   the existing owners of the project add you to the group.
 
577
 
 
578
   To use the pypi test site, you need to record your credentials for an
 
579
   existing user (the registration process is manual and starts at
 
580
   <https://testpypi.python.org/pypi?%3Aaction=register_form>.
 
581
 
 
582
   Once registered, you can record your crdentials in your ``~/pypirc`` file
 
583
   with ::
 
584
 
 
585
     [testpypi]
 
586
     username:<login on testpypi>
 
587
     password:<password on testpypi>
 
588
     repository = https://testpypi.python.org/pypi
 
589
 
 
590
   Registering the breezy project if doesn't exist is achieved with::
 
591
 
 
592
     python setup.py -r https://testpypi.python.org/pypi register
 
593
 
 
594
  Uploading is done with::
 
595
 
 
596
    twine upload -r testpypi -s ../breezy-3.0.0.tar.gz
 
597
 
 
598
   To be able to upload the release you must create an account on
 
599
   <http://pypi.python.org/pypi> and have one of the existing owners of the
 
600
   project add you to the group and update your ``[pypi]`` section in your
 
601
   ``~/pypirc`` file.
316
602
 
317
603
 
318
604
Merging the released code back to trunk
319
605
---------------------------------------
320
606
 
321
 
Merge the release branch back into the trunk.  Check that changes in NEWS
322
 
were merged into the right sections.  If it's not already done, advance
323
 
the version number in ``bzr`` and ``bzrlib/__init__.py``.  Submit this
324
 
back into pqm for bzr.dev.
 
607
Merge the release branch back into the trunk.  The ``doc/en/release-notes``
 
608
changes should be merged into the right place because each release series
 
609
has its own release-notes file, but double-check.
 
610
 
 
611
If it's not already done, advance the version number in ``brz`` and
 
612
``breezy/__init__.py``. File a merge proposal against ``lp:brz``.
325
613
 
326
614
As soon as you change the version number in trunk, make sure you have
327
615
created the corresponding milestone to ensure the continuity in bug
328
616
targeting or nominating. Depending on the change, you may even have to
329
617
create a new series (if your change the major or minor release number), in
330
 
that case go to `Starting a cycle` and follow the instructions from there.
 
618
that case go to `At the start of a series cycle`_ and follow the
 
619
instructions from there.
331
620
 
332
 
You should also merge (not pull) the release branch into
333
 
``lp:~bzr/bzr/current``, so that branch contains the current released code
334
 
at any time.
335
621
 
336
622
Releases until the final one
337
623
----------------------------
338
624
 
339
 
Congratulations - you have made your first release.  Have a beer
340
 
or fruit juice - it's on the house! If it was a beta, or
341
 
candidate, you're not finished yet. Another beta or candidate or
342
 
hopefully a final release is still to come.
343
 
 
344
 
The process is the same as for the first release. Goto `Starting the
345
 
release phase`_ and follow the instructions again. Some details change
346
 
between beta, candidate and final releases, but they should be
347
 
documented. If the instructions aren't clear enough, please fix them.
 
625
Congratulations - you have made your first release.  Have a beer or fruit
 
626
juice - it's on the house! If it was a beta, you're not finished
 
627
yet. Another beta or hopefully a stable release is still to come.
 
628
 
 
629
The process is the same as for the first release. Goto `Doing a particular
 
630
release`_ and follow the instructions again. Some details change between
 
631
beta and stable releases, but they should be documented. If the instructions
 
632
aren't clear enough, please fix them.
 
633
 
 
634
 
 
635
Getting the release into Ubuntu
 
636
-------------------------------
 
637
 
 
638
/!\ Nothing in this section has been validated for breezy yet.
 
639
 
 
640
(Feel free to propose or add new sections here about what we should do to
 
641
get brz into other places.)
 
642
 
 
643
For the currently-under-development release of Ubuntu, no special action
 
644
is needed: the release should be picked by Debian and synced from there into
 
645
Ubuntu.
 
646
 
 
647
Releases off stable brz branches should go in to the ``-updates`` of the
 
648
Ubuntu release that originally contained that branch.  (Ubuntu Lucid had
 
649
brz 2.2.0, so should get every 2.2.x update.)  This means going through
 
650
the `SRU (Stable Release Updates)
 
651
<https://wiki.ubuntu.com/StableReleaseUpdates>`__ process.   
 
652
 
 
653
Since September 2010, brz has received approval by the technical
 
654
board for the `MicroReleaseExceptions
 
655
<https://wiki.ubuntu.com/StableReleaseUpdates/MicroReleaseExceptions>`__
 
656
category so that whole bugfix releases can more easily be
 
657
approved.
 
658
 
 
659
Progress on these realeases is tracked on the `SRU wiki
 
660
<http://wiki.bazaar.canonical.com/UbuntuStableReleaseUpdates>`_
 
661
page.
 
662
 
 
663
**After making a brz stable-release release, nominate the most serious bug
 
664
for the appropriate Ubuntu release and subscribe the `ubuntu-sru` team.**
 
665
 
 
666
This requires a couple of tricks (please reconsider and tweak as things
 
667
evolves from one release to the other):
 
668
 
 
669
 * create a distro task with the ``Also affects distribution`` button and
 
670
   select ``brz (Ubuntu)``.
 
671
 
 
672
 * change the *URL* to point to ``ubuntu/+source/brz`` instead of ``brz``
 
673
   (this is needed if you create the distro task but not if it exists
 
674
   already). You should now be able to click the ``Nominate for release``
 
675
   button and select the right Ubuntu release. As of September 2010, this
 
676
   means:
 
677
 
 
678
  * ``quantal`` for the 2.6 series,
 
679
  * ``precise`` for the 2.5 series,
 
680
  * ``oneiric`` for the 2.4 series,
 
681
  * ``natty`` for the 2.3 series,
 
682
  * ``maverick`` for the 2.2 series,
 
683
  * ``lucid`` for the 2.1 series,
 
684
 
 
685
 * Subscribe the ``~ubuntu-sru`` team to the bug.
 
686
 
 
687
 * Add a comment targeted to ``~ubuntu-sru`` explaining the expectations
 
688
   (we are targeting running the test suite during the build which, as of
 
689
   September 2010, fails for known reasons that are currently addressed).
 
690
   Search for bugs tagged with ``sru`` for examples and don't forget to tag
 
691
   the bug you selected.
348
692
 
349
693
 
350
694
See also
351
695
--------
352
696
 
353
 
* `Packaging into the bzr PPA <ppa.html>`_ to make and publish Ubuntu
 
697
* `Packaging into the brz PPA <ppa.html>`_ to make and publish Ubuntu
354
698
  packages.
355
 
* `Bazaar Developer Document Catalog <index.html>`_
 
699
* `Breezy Developer Document Catalog <index.html>`_
356
700
* `Development cycles <cycle.html>`_: things that happen during the cycle
357
701
  before the actual release.
358
702