~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to doc/developers/releasing.txt

  • Committer: Aaron Bentley
  • Date: 2006-06-21 14:30:57 UTC
  • mfrom: (1801.1.1 bzr.dev)
  • mto: This revision was merged to the branch mainline in revision 1803.
  • Revision ID: abentley@panoramicfeedback.com-20060621143057-776e4b8d707e430e
Install benchmarks. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
Releasing Bazaar
2
 
================
3
 
 
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 <cycle.html>`_, but it's the most complex part.
7
 
This document gives a checklist you can follow from start to end in one
8
 
go.
9
 
 
10
 
.. contents::
11
 
 
12
 
 
13
 
Preconditions
14
 
-------------
15
 
 
16
 
#. Download the pqm plugin and install it into your ``~/.bazaar/plugins``::
17
 
 
18
 
     bzr branch lp:bzr-pqm ~/.bazaar/plugins/pqm
19
 
 
20
 
 
21
 
Starting a cycle
22
 
----------------
23
 
 
24
 
To start a new release cycle:
25
 
 
26
 
#. Create a new series at <https://launchpad.net/bzr/+addseries>. There is one
27
 
   series for every *x.y* release.
28
 
 
29
 
#. Go to the series web page at <https://launchpad.net/bzr/2.0>
30
 
 
31
 
#. Create a new release at
32
 
   <https://launchpad.net/bzr/2.0/+addrelease> and add
33
 
   information about this release. We will not use it yet, but it
34
 
   will be available for targeting or nominating bugs.
35
 
 
36
 
#. We create a new pqm-controlled branch for this release series, by
37
 
   asking a Canonical sysadmin.  
38
 
   This branch means that from the first release beta or candidate onwards,
39
 
   general development continues on the trunk, and only
40
 
   specifically-targeted fixes go into the release branch.
41
 
 
42
 
#. Add milestones at <https://edge.launchpad.net/bzr/2.0/+addmilestone> to
43
 
   that series for the beta release, release candidate and the final release,
44
 
   and their expected dates.
45
 
 
46
 
#. Update the version number in the ``bzr`` script, and the
47
 
   ``bzrlib/__init__.py`` file.
48
 
 
49
 
#. Send mail to the list with the key dates, who will be the release
50
 
   manager, and the main themes or targeted bugs.  Ask people to nominate
51
 
   objectives, or point out any high-risk things that are best done early,
52
 
   or that interact with other changes. This is called the metronome mail
53
 
   and as RM you're supposed to send other metronome mails at your rythm.
54
 
 
55
 
 
56
 
Starting the release phase
57
 
--------------------------
58
 
 
59
 
When it's time to make the first beta release or release candidate:
60
 
 
61
 
#. Create a new milestone at <https://launchpad.net/bzr/2.0/+addmilestone>
62
 
   for the beta release or release candidate.
63
 
 
64
 
#. Make a beta release or release candidate.
65
 
 
66
 
Preparing the tree for release
67
 
------------------------------
68
 
 
69
 
#. Make a local branch for preparing this release.  (Only for the first 
70
 
   release in a series, otherwise you should already have a branch.) ::
71
 
 
72
 
     bzr branch trunk prepare-1.14
73
 
 
74
 
#. Configure pqm-submit for this branch, with a section like this in
75
 
   ``~/.bazaar/locations.conf``::
76
 
 
77
 
        [/home/mbp/bzr/prepare-1.14]
78
 
        pqm_email = Canonical PQM <pqm@bazaar-vcs.org>
79
 
        submit_branch = lp:bzr/2.0
80
 
        public_branch = http://bazaar.example.com/prepare-2.0
81
 
        submit_to = bazaar@lists.canonical.com
82
 
        smtp_server = mail.example.com:25
83
 
 
84
 
    Please see <http://doc.bazaar-vcs.org/latest/developers/HACKING.html#an-overview-of-pqm>
85
 
    for more details on PQM
86
 
 
87
 
#. In the release branch, update  ``version_info`` in ``./bzrlib/__init__.py``.
88
 
   Double check that ./bzr ``_script_version`` matches ``version_info``. Check
89
 
   the output of ``bzr --version``.
90
 
 
91
 
   For beta releases use::
92
 
 
93
 
       version_info = (2, 1, 0, 'beta', 1)
94
 
 
95
 
 
96
 
   For release candidates use::
97
 
 
98
 
       version_info = (2, 0, 1, 'candidate', 1)
99
 
 
100
 
 
101
 
#. Add the date and release number to ``./NEWS``
102
 
 
103
 
#. To check that all bugs mentioned in ``./NEWS`` are actually marked as
104
 
   closed in Launchpad, you can run ``tools/check-newsbugs.py``::
105
 
 
106
 
     ./tools/check-newsbugs.py NEWS
107
 
 
108
 
   (But note there can be some false positives, and this script may be
109
 
   flaky <https://bugs.edge.launchpad.net/bzr/+bug/354985>.  Don't let
110
 
   this slow you down too much.)
111
 
 
112
 
#. Summarize into one or two paragraphs what's new in this release.
113
 
 
114
 
#. Commit these changes to the release branch, using a command like::
115
 
    
116
 
     bzr commit -m "Release 1.14." 
117
 
   
118
 
   The diff before you commit will be something like::
119
 
 
120
 
     === modified file 'NEWS'
121
 
     --- NEWS        2008-09-17 23:09:18 +0000
122
 
     +++ NEWS        2008-09-23 16:14:54 +0000
123
 
     @@ -4,6 +4,23 @@
124
 
     
125
 
      .. contents::
126
 
     
127
 
     +bzr 1.7 2008-09-23
128
 
     +------------------
129
 
     +
130
 
     +This release includes many bug fixes and a few performance and feature
131
 
     +improvements.  ``bzr rm`` will now scan for missing files and remove them,
132
 
     +like how ``bzr add`` scans for unknown files and adds them. A bit more
133
 
     +polish has been applied to the stacking code. The b-tree indexing code has
134
 
     +been brought in, with an eye on using it in a future repository format.
135
 
     +There are only minor installer changes since bzr-1.7rc2.
136
 
     +
137
 
      bzr 1.7rc2 2008-09-17
138
 
      ---------------------
139
 
     
140
 
     
141
 
     === modified file 'bzrlib/__init__.py'
142
 
     --- bzrlib/__init__.py  2008-09-16 21:39:28 +0000
143
 
     +++ bzrlib/__init__.py  2008-09-23 16:14:54 +0000
144
 
     @@ -41,7 +41,7 @@
145
 
      # Python version 2.0 is (2, 0, 0, 'final', 0)."  Additionally we use a
146
 
      # releaselevel of 'dev' for unreleased under-development code.
147
 
     
148
 
     -version_info = (1, 7, 0, 'candidate', 2)
149
 
     +version_info = (1, 7, 0, 'final', 0)
150
 
     
151
 
     
152
 
      # API compatibility version: bzrlib is currently API compatible with 1.7.
153
 
      
154
 
#. Tag the new release::
155
 
 
156
 
     bzr tag bzr-1.14
157
 
 
158
 
#. Push those changes to a bzr reposistory that is public and accessible on
159
 
   the Internet. PQM will pull from this repository when it attempts to merge
160
 
   your changes. Then submit those changes to PQM for merge into the
161
 
   appropriate release branch::
162
 
 
163
 
     bzr push
164
 
     bzr pqm-submit -m "(mbp) prepare 1.14"
165
 
 
166
 
#. When PQM succeeds, pull down the master release branch.
167
 
 
168
 
 
169
 
Making the source tarball
170
 
-------------------------
171
 
 
172
 
#. Change into the source directory and run ::
173
 
  
174
 
     make dist
175
 
 
176
 
   This also makes a zip file, which is easier to access on Microsoft
177
 
   Windows.
178
 
 
179
 
#. Now we'll try expanding this tarball and running the test suite
180
 
   to check for packaging problems::
181
 
 
182
 
     make check-dist-tarball
183
 
 
184
 
   You may encounter failures while running the test suite caused
185
 
   by your locally installed plugins. Use your own judgment to
186
 
   decide if you can release with these failures. When in doubt,
187
 
   disable the faulty plugins one by one until you get no more
188
 
   failures.
189
 
 
190
 
 
191
 
Publishing the release
192
 
----------------------
193
 
 
194
 
Now you have the beta or releasable product.  The next step is making it
195
 
available to the world.
196
 
 
197
 
go to the release
198
 
 
199
 
#. Within that release, upload the source tarball and zipfile and the GPG
200
 
   signature.  Or, if you prefer, use the
201
 
   ``tools/packaging/lp-upload-release`` script to do this.
202
 
 
203
 
#. Link from http://bazaar-vcs.org/Download to the tarball and signature.
204
 
 
205
 
#. Announce on the `Bazaar home page <http://bazaar-vcs.org/>`_.
206
 
 
207
 
#. Check that the documentation for this release is available in
208
 
   <http://doc.bazaar-vcs.org>.  It should be automatically build when the
209
 
   branch is created, by a cron script ``update-bzr-docs`` on
210
 
   ``escudero``. As of today (2009-08-27) ``igc`` manually updates the
211
 
   pretty version of it.
212
 
 
213
 
 
214
 
Announcing the release
215
 
----------------------
216
 
 
217
 
Now that the release is publicly available, tell people about it.
218
 
 
219
 
#. Make an announcement mail.
220
 
 
221
 
   For release candidates or beta releases, this is sent to the ``bazaar``
222
 
   list only to inform plugin authors and package or installer managers.
223
 
 
224
 
   Once the installers are available, the mail can be sent to the
225
 
   ``bazaar-announce`` list too.
226
 
 
227
 
   For final releases, it should also be cc'd to ``info-gnu@gnu.org``,
228
 
   ``python-announce-list@python.org``, ``bug-directory@gnu.org``.  
229
 
 
230
 
   In all cases, it is good to set ``Reply-To: bazaar@lists.canonical.com``,
231
 
   so that people who reply to the announcement don't spam other lists.
232
 
 
233
 
   The announce mail will look something like this::
234
 
   
235
 
      Subject: bzr x.yy released!
236
 
      
237
 
      <<Summary paragraph from news>>
238
 
     
239
 
      The Bazaar team is happy to announce availability of a new 
240
 
      release of the bzr adaptive version control system.
241
 
      Bazaar is part of the GNU system <http://gnu.org/>.
242
 
     
243
 
      Thanks to everyone who contributed patches, suggestions, and
244
 
      feedback.
245
 
      
246
 
      Bazaar is now available for download from 
247
 
      http://bazaar-vcs.org/Download as a source tarball; packages 
248
 
      for various systems will be available soon.
249
 
      
250
 
      <<NEWS section from this release back to the last major release>>
251
 
 
252
 
   Feel free to tweak this to your taste.
253
 
 
254
 
#. Make an announcement through <https://launchpad.net/bzr/+announce>
255
 
 
256
 
#. Update the IRC channel topic. Use the ``/topic`` command to do this,
257
 
   ensuring the new topic text keeps the project name, web site link, etc.
258
 
 
259
 
#. Announce on http://freshmeat.net/projects/bzr/
260
 
   
261
 
   This should be done for beta releases, release candidates and final
262
 
   releases. If you do not have a Freshmeat account yet, ask one of the
263
 
   existing admins.
264
 
 
265
 
#. Update `<http://en.wikipedia.org/wiki/Bazaar_(software)>`_ -- this should
266
 
   be done for final releases but not for beta releases or Release Candidates.
267
 
 
268
 
#. Update the python package index: <http://pypi.python.org/pypi/bzr> - best
269
 
   done by running ::
270
 
 
271
 
       python setup.py register
272
 
 
273
 
   Remember to check the results afterwards.
274
 
 
275
 
   To be able to register the release you must create an account on
276
 
   <http://pypi.python.org/pypi> and have one of the existing owners of
277
 
   the project add you to the group.
278
 
 
279
 
 
280
 
Merging the released code back to trunk
281
 
---------------------------------------
282
 
 
283
 
Merge the release branch back into the trunk.  Check that changes in NEWS
284
 
were merged into the right sections.  If it's not already done, advance
285
 
the version number in ``bzr`` and ``bzrlib/__init__.py``.  Submit this
286
 
back into pqm for bzr.dev.
287
 
 
288
 
You should also merge (not pull) the release branch into
289
 
``lp:~bzr/bzr/current``, so that branch contains the current released code
290
 
at any time.
291
 
 
292
 
 
293
 
See also
294
 
--------
295
 
 
296
 
* `Packaging into the bzr PPA <ppa.html>`_ to make and publish Ubuntu
297
 
  packages.
298
 
* `Bazaar Developer Document Catalog <index.html>`_
299
 
* `Development cycles <cycle.html>`_: things that happen during the cycle
300
 
  before the actual release.
301
 
 
302
 
..
303
 
   vim: filetype=rst textwidth=74 ai shiftwidth=4