Document and automate signature creation for the release archives.
[openocd.git] / doc / manual / release.txt
1 /** @page releases Release Processes
2
3 This page provides an introduction to the OpenOCD Release Processes:
4
5 - @ref releasewhy - Explain the motivations for producing
6 releases on a regular basis.
7 - @ref releasewho - Describes the responsibilities and
8 authority required to produce official OpenOCD releases.
9 - @ref releasewhen - Provides guidelines for scheduling
10 activities for each release cycle.
11 - @ref releasehow - Outlines all of the steps for the
12 processes used to produce and release the package source archives.
13 - @ref releasescript - Introduces the automated @c release.sh script.
14
15 @section releasewhy Why Produce Releases?
16
17 The OpenOCD maintainers should produce <i>releases</i> periodically. This
18 section gives several reasons to explain the reasons for making releases
19 on a regular basis. These reasons lead to motivation for developing and
20 following a set of <i>release processes</i>. The actual processes are
21 described in the remainder of the @ref releases sections.
22
23 At any time, a "source archives" can be produced by running 'make dist'
24 in the OpenOCD project tree. With the 0.2.0 release, this command will
25 produce openocd-\<version\>.{tar.gz,tar.bz2,zip} archives. These files
26 will be suitable for being released when produced properly.
27
28 When released for users, these archives present several important
29 advantages when contrasted to using the Subversion repository:
30
31 -# They allow others to package and distribute the code to users.
32 -# They build easier for developers, because they contain
33 a working configure script that was produced by the Release Manager.
34 -# They prevent users from trying a random HEAD revision of the trunk.
35 -# They free developers from answering questions about trunk breakage.
36
37 Hopefully, this shows several good reasons to produce regular releases,
38 but these release processes were developed with some additional design
39 goals in mind. Specifically, the releases processes should have the
40 following properties:
41
42 -# Produce successive sets of release archives cleanly and consistently.
43 -# Implementable as a script that automates the critical release steps.
44 -# Prevent human operators from producing bad releases, when possible.
45 -# Allow scheduling and automation of release process milestones.
46
47 The current release processes are documented in the following sections.
48 They attempt to meet these design goals, but there may improvements
49 remaining to be made toward automating the process.
50
51 @section releaseversions Release Versions
52
53 The OpenOCD version string is composed of three numeric components
54 separated by two decimal points: @c x.y.z, where @c x is the @a major
55 version number, @c y is the @a minor number, and @c z is the @a micro.
56
57 For a <i>bug-fix</i> release, the micro version number will be non-zero
58 (<code>z > 0</code>). For a <i>minor release</i>, the micro version
59 number will be zero (<code>z = 0</code>). For a <i>major releases</i>,
60 the minor version will @a also be zero (<code>y = 0, z = 0</code>).
61
62 The trunk and all branches should have the tag '-in-development' in
63 their version number. This tag helps developers identify reports
64 created from the Subversion repository, and it can be detected and
65 manipulated by the release script. Specifically, this tag will be
66 removed and re-added during the release process; it should never be
67 manipulated by developers in submitted patches.
68
69 @subsection releaseversionsdist Patched Versions
70
71 Distributors of patched versions of OpenOCD are encouraged to extend
72 the version string when producing external releases, as this helps to
73 identify your particular distribution series.
74
75 @subsection releaseversionsdist Version Processes
76
77 The release process includes version number manipulations to the tree
78 being released, ensuring that all numbers are incremented at the right
79 time and in the proper locations of the repository.
80
81 The version numbers for any branch should monotonically
82 increase to the next successive integer, except when reset to zero
83 during major or minor releases. The community should decide when
84 major and minor milestones will be released.
85
86 @section releasewho Release Manager
87
88 OpenOCD archive releases will be produced by an individual filling the
89 role of <i>Release Manager</i>, hereafter abbreviated as <i>RM</i>. This
90 individual determines the schedule and executes the release processes
91 for the community.
92
93 @subsection releasewhohow RM Authority
94
95 Each release requires one individual to fulfill the RM role; however,
96 graceful transitions of this authority may take place at any time. The
97 current RM may transfer their authority to another contributor in a post
98 to the OpenOCD development mailing list. Such delegation of authority
99 must be approved by the individual that will receive it and the
100 community of maintainers. Initial arrangements with the new RM should
101 be made off-list, as not every contributor wants these responsibilities.
102
103 @subsection releasewhowhat RM Responsibilities
104
105 In addition to the actual process of producing the releases, the RM is
106 responsible for keeping the community informed of all progress through
107 the release cycle(s) being managed. The RM is responsible for managing
108 the changes to the package version, though the release tools should
109 manage the tasks of adding or removing any required development branch
110 tags and incrementing the version.
111
112 @section releasewhen Release Schedule
113
114 The OpenOCD release process must be carried out on a periodic basis, so
115 the project can realize the benefits presented in answer to the question,
116 @ref releasewhy.
117
118 Starting with the 0.2.0 release, the OpenOCD project should produce a
119 new minor release every month or two, with a major release once a year.
120 Bug fix releases could be provided more frequently. These release
121 schedule goals may be adjusted in the future, after the project
122 maintainers and distributors receive feedback and experience.
123
124 More importantly, the statements made in this section do not create an
125 obligation by any member of the OpenOCD community to produce new
126 releases on regular schedule, now or in the future.
127
128 @subsection releasewhenexample Sample Schedule
129
130 The RM must pro-actively communicate with the community from the
131 beginning of the development cycle through the delivery of the new
132 release. This section presents guidelines for scheduling key points
133 where the community must be informed of changing conditions.
134
135 If T is the time of the next release, then the following schedule
136 might describe some of the key milestones of the new release cycle:
137
138 - T minus one month: start of new development cycle
139 - T minus two weeks: announce pending trunk closure to new work
140 - T minus one week: close trunk to new work, begin testing phase
141 - T minus two days: call for final bug fixes
142 - T minus one day: produce -rc packages and distribute to testers
143 - T minus one hour: produce final packages and post on-line
144 - T minus zero: Announce the release to our mailing list and the world.
145
146 Some additional supplemental communication will be desirable. The above
147 list omits the step-by-step instructions to daily release management.
148 Individuals performing release management need to have the ability to
149 interact proactively with the community as a whole, anticipating when
150 such interaction will be required and giving ample notification.
151
152 The next section explains why the OpenOCD project allows significant
153 flexibility in the part of the development that precedes the release
154 process.
155
156 @note The OpenOCD project does not presently produce -rc packages. As
157 such, the step suggested in the list above should be read as trying to
158 stimulate others to test the project build and packaging on as many
159 platforms as possible. This proposition will be palatable once release
160 management tools have been committed to the tree.
161
162 @subsection releasewhenflex Schedule Flexibility
163
164 The Release Manager should attempt to follow the guidelines in this
165 document, but the process of scheduling each release milestone should be
166 community driven at the start. By the end, missing features that were
167 scheduled for a release must be dropped by the Release Manager, rather
168 than allowing the release cycle to be delayed while waiting for them.
169
170 Despite any assurances this schedule may appear to give, the Release
171 Manager cannot schedule the work that will be done on the project,
172 when it will be submitted, review, and deemed suitable to be committed.
173 In this way, the RM cannot act as a priest in a cathedral; OpenOCD uses
174 the bazaar development model. The release schedule must adapt
175 continuously in response to changes in the rate of churn.
176
177 In particular, the suggested period of "one or two month" reflects some
178 expectation of a fairly high rate of development. Fewer releases may be
179 required if developers contribute less patches, and more releases may be
180 desirable if the project continues to grow and experience high rates of
181 community contribution. During each cycle, the RM should be tracking
182 the situation and gathering feedback from the community .
183
184 @section releasehow Release Process: Step-by-Step
185
186 The release process may require a few iterations to work out any bugs.
187 Even with the release script, some steps require clear user intervention
188 -- and not only by the Release Manager.
189
190 The following steps should be followed to produce each release:
191
192 -# Produce final patches to the trunk (or release branch):
193 -# Finalize @c NEWS file to describe the changes in the release
194 - This file is Used to automatically post "blurbs" about the project.
195 - This material should be produced during the development cycle.
196 - Add a new item for each @c NEWS-worthy contribution, when committed.
197 -# bump library version if our API changed (not yet required)
198 -# Remove -in-development tag from package version:
199 - For major/minor releases, remove version tag from trunk, @a or
200 - For bug-fix releases, remove version tag from release branch.
201 -# Branch or tag the required tree in the Subversion repository:
202 - Tags and branches for releases must be named consistently: @par
203 "${PACKAGE_TARNAME}-${PACKAGE_VERSION}"
204 - For a major/minor release from the main trunk, the code should be
205 branched and tagged in the repository:
206 @verbatim
207 svn cp .../trunk .../branches/${RELEASE_BRANCH}
208 svn cp .../branches/${RELEASE_BRANCH} .../tags/${RELEASE_TAG}
209 @endverbatim
210 - For bug-fix releases produced in their respective branch, a tag
211 should be created in the repository:
212 @verbatim
213 svn cp .../branches/${RELEASE_BRANCH} .../tags/${RELEASE_TAG}
214 @endverbatim
215 -# Prepare to resume normal development activities:
216 - Archive @c NEWS file as <code>doc/news/NEWS-${PACKAGE_VERSION}</code>.
217 - Create a new @c NEWS file for the next release
218 - For major/minor release from the trunk:
219 -# Bump major or minor package version in trunk.
220 -# Restore version tag to trunk and release branch.
221 - For bug-fix releases from a release branch:
222 -# Bump bug-fix version in release branch.
223 -# Restore version tag to release branch.
224 -# Produce the package source archives:
225 -# Start with a clean working copy, used for producing releases only.
226 -# Switch to release tag branch: svn switch .../${RELEASE_TAG}
227 -# Produce a ChangeLog for the release (using svn2cl).
228 -# @c bootstrap, @c configure, and @c make the package.
229 -# Run <code>make distcheck</code> to produce the distribution archives.
230 -# Run <code>make maintainer-clean</code> verify the repository is empty.
231 -# Create signature files using md5sum, sha1sum, etc.
232 -# Publish documentation for the release:
233 - Allow users to access the documentation for each of our releases.
234 - Place static copies of the following files on the project website:
235 - @c NEWS: to provide a blurb for each release
236 - @c ChangeLog: to show exactly what has been changed
237 - User Guide, Developer Manual: to allow easy on-line viewing
238 -# Upload packages and post announcements of their availability:
239 -# Release packages into files section of berliOS project site:
240 -# Create the new release for the new version.
241 -# Provide @c NEWS and ChangeLog files, as requested.
242 -# Upload files via FTP to ftp://ftp.berlios.de/incoming/
243 -# Edit descriptions for each file.
244 -# Send E-mail Release Notice
245 -# Post announcement e-mail to the openocd-development list.
246 -# Announce updates on freshmeat.net and other trackers.
247 -# Submit big updates to news feeds (e.g. Digg, Reddit, etc.).
248
249 @section releasescript The Release Script
250
251 Many of the processes described in the last section are no longer
252 entrusted to humans. Instead, the @c release.sh script provides
253 automation of the mechanical steps.
254
255 Presently, the @c release.sh script automates steps 1(c) through 4,
256 allowing the Release Manager from perform these tasks in easy steps.
257
258 The following task still need to be automated:
259
260 - Step 5: produce documentation for website using released source archive.
261 - Step 6(a): package archive upload process.
262 - Step 6(b): package announcement e-mail process.
263 - Step 6(c): post files and announce them using releaseforge.
264
265 In addition, support for '-rc' releases needs to be added.
266
267 @subsection releasescriptcmds Release Script Commands
268
269 The following output was taken from the release script:
270 @verbatim
271 usage: tools/release.sh [options] <command>
272
273 Main Commands:
274 info Show a summary of the next pending release.
275 release Release the current tree as an archive.
276 upload Upload archives to berliOS project site
277
278 Build Commands:
279 bootstrap Prepare the working copy for configuration and building.
280 configure Configures the package; runs bootstrap, if needed.
281 build Compiles the project; runs configure, if needed.
282
283 Packaging Commands:
284 changelog Generate a new ChangeLog using svn2cl.
285 package Produce new distributable source archives.
286 stage Move archives to staging area for upload.
287
288 Repository Commands:
289 commit Perform branch and tag, as appropriate for the version.
290 branch Create a release branch from the project trunk.
291 tag Create a tag for the current release branch.
292
293 Other Commands:
294 version ... Perform version number and tag manipulations.
295 clean Forces regeneration of results.
296 clean_all Removes all traces of the release process.
297 help Provides this list of commands.
298
299 For more information about this script, see the Release Processes page
300 in the OpenOCD Developer's Manual (doc/manual/release.txt).
301
302 WARNING: This script should be used by the Release Manager ONLY.
303 @endverbatim
304
305 Run <code>tools/release.sh help</code> for current command support.
306
307 @subsection releasescriptenv Release Script Options
308
309 The @c release.sh script recognizes some command-line options that
310 affect its behavior:
311
312 - @c --live : Use this option to perform a live release.
313 When this option has been given, the release commands will affect
314 the repository; otherwise, the script reports the actions to take,
315 and it produces archives that are unsuitable for public release.
316
317 @note Only the Release Manager should use the @c --live option, as
318 it will make permanent changes to the Subversion repository that
319 cannot be undone.
320
321 @subsection releasescriptenv Release Script Environment
322
323 The @c release.sh script recognizes some environment variables which
324 affect its behavior:
325
326 - @c CONFIG_OPTS : Passed as options to the configure script.
327 - @c MAKE_OPTS : Passed as options to the 'make' processes.
328
329 @section releasetutorial Release Tutorials
330
331 This section provides tutorials for using the Release Script to perform
332 common release tasks.
333
334 @subsection releasetutorialsetup Release Tutorial Setup
335
336 The tutorials in this section assume the following environment
337 variables have been set properly:
338 @verbatim
339 SVN_USER="maintainer"
340 SVN_URL="https://${SVN_USER}@svn.berlios.de/svnroot/repos/openocd"
341 @endverbatim
342
343 @subsection releasetutorialminor Minor Release Tutorial
344
345 This section provides a step-by-step tutorial for a Release Manager to
346 use to run the @c release.sh script to produce a minor release.
347
348 If the proper environment has been set, the following steps will produce
349 a new minor release:
350
351 -# Check out (or update) the project trunk from the berliOS repository:
352 @code
353 svn checkout "${SVN_URL}/trunk" openocd-trunk
354 @endcode
355 -# Change to the new working copy directory:
356 @code
357 cd openocd-trunk
358 @endcode
359 -# Run @c release.sh to produce the minor release:
360 @code
361 tools/release.sh all
362 @endcode
363
364 @subsection releasetutorialmicro Bug-Fix Release Tutorial
365
366 This section provides a step-by-step tutorial for a Release Manager to
367 use to run the @c release.sh script to produce a bug-fix release.
368
369 In addition to the environment variables described in the introduction
370 to these tutorials, the following variables are also used in the
371 instructions for this section:
372 @verbatim
373 PACKAGE_BRANCH_VERSION="x.y.z"
374 PACKAGE_BRANCH="openocd-${PACKAGE_BRANCH_VERSION}"
375 @endverbatim
376
377 If the proper environment has been set, the following steps will produce
378 a new bug-fix release:
379
380 -# Check out (or update) the release branch from the project repository:
381 @code
382 svn checkout "${SVN_URL}/branches/${PACKAGE_BRANCH}" "${PACKAGE_BRANCH}"
383 @endcode
384 @code
385 cd "${PACKAGE_BRANCH}"
386 @endcode
387 -# Run @c release.sh to produce the bug-fix release:
388 @code
389 tools/release.sh all
390 @endcode
391
392 @section releasetodo Release Script Shortcomings
393
394 Improved automated packaging and distribution of OpenOCD requires more
395 patching of the configure script. The final release script should be
396 able to manage most steps of the processes. The steps requiring user
397 input could be guided by an "assistant" that walks the Release Manager
398 through the process from beginning to end, performing basic sanity
399 checks on their various inputs (e.g. the @c NEWS blurb).
400
401 */
402 /** @file
403 This file contains the @ref releases page.
404 */

Linking to existing account procedure

If you already have an account and want to add another login method you MUST first sign in with your existing account and then change URL to read https://review.openocd.org/login/?link to get to this page again but this time it'll work for linking. Thank you.

SSH host keys fingerprints

1024 SHA256:YKx8b7u5ZWdcbp7/4AeXNaqElP49m6QrwfXaqQGJAOk gerrit-code-review@openocd.zylin.com (DSA)
384 SHA256:jHIbSQa4REvwCFG4cq5LBlBLxmxSqelQPem/EXIrxjk gerrit-code-review@openocd.org (ECDSA)
521 SHA256:UAOPYkU9Fjtcao0Ul/Rrlnj/OsQvt+pgdYSZ4jOYdgs gerrit-code-review@openocd.org (ECDSA)
256 SHA256:A13M5QlnozFOvTllybRZH6vm7iSt0XLxbA48yfc2yfY gerrit-code-review@openocd.org (ECDSA)
256 SHA256:spYMBqEYoAOtK7yZBrcwE8ZpYt6b68Cfh9yEVetvbXg gerrit-code-review@openocd.org (ED25519)
+--[ED25519 256]--+
|=..              |
|+o..   .         |
|*.o   . .        |
|+B . . .         |
|Bo. = o S        |
|Oo.+ + =         |
|oB=.* = . o      |
| =+=.+   + E     |
|. .=o   . o      |
+----[SHA256]-----+
2048 SHA256:0Onrb7/PHjpo6iVZ7xQX2riKN83FJ3KGU0TvI0TaFG4 gerrit-code-review@openocd.zylin.com (RSA)