]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/contributor/release-work.itexi
fcaa95d2ad4c5b8c24b6ecc4362c8709814f696b
[lilypond.git] / Documentation / contributor / release-work.itexi
1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @node Release work
3 @chapter Release work
4
5 @menu
6 * Development phases::
7 * Minor release checklist::
8 * Major release checklist::
9 * Release extra notes::
10 @end menu
11
12
13 @node Development phases
14 @section Development phases
15
16 There are 2 states of development on @code{master}:
17
18 @enumerate
19
20 @item @strong{Normal development}:
21 Any commits are fine.
22
23 @item @strong{Build-frozen}:
24 Do not require any additional or updated libraries or make
25 non-trivial changes to the build process.  Any such patch (or
26 branch) may not be merged with master during this period.
27
28 This should occur approximately 1 month before any alpha version
29 of the next stable release, and ends when the next unstable branch
30 begins.
31
32 @end enumerate
33
34
35 After announcing a beta release, branch @code{stable/2.x}.  There
36 are 2 states of development for this branch:
37
38 @enumerate
39 @item @strong{Normal maintenance}:
40 The following patches @strong{MAY NOT} be merged with this branch:
41
42 @itemize
43 @item Any change to the input syntax.  If a file compiled with a
44 previous @code{2.x} (beta) version, then it must compile in the
45 new version.
46
47 Exception: any bugfix to a Critical issue.
48
49 @item New features with new syntax @emph{may be committed},
50 although once committed that syntax cannot change during the
51 remainder of the stable phase.
52
53 @item Any change to the build dependencies (including programming
54 libraries, documentation process programs, or python modules used
55 in the buildscripts).  If a contributor could compile a previous
56 lilypond @code{2.x}, then he must be able to compile the new
57 version.
58
59 @end itemize
60
61 @item @strong{Release prep}:
62 Only translation updates and important bugfixes are allowed.
63
64 @end enumerate
65
66
67 @node Minor release checklist
68 @section Minor release checklist
69
70 A @qq{minor release} means an update of @code{y} in @code{2.x.y}.
71
72 @subheading Pre-release
73
74 @enumerate
75
76 @item
77 Switch to the release branch, get changes, prep release
78 announcement:
79
80 @example
81 git checkout release/unstable
82 git merge origin
83 vi Documentation/web/news-front.itexi Documentation/web/news.itexi
84 @end example
85
86 @item
87 Commit, push, switch back to master:
88
89 @example
90 git commit -m "Release: update news." Documentation/web/
91 git push origin
92 @end example
93
94 @item
95 If you do not have the previous release test-output tarball, download
96 it and put it in @code{regtests/}
97
98 @item Build release on GUB by running:
99
100 @example
101 make LILYPOND_BRANCH=release/unstable lilypond
102 @end example
103
104 @noindent
105 or something like:
106
107 @example
108 make LILYPOND_BRANCH=stable/2.12 lilypond
109 @end example
110
111 @item Check the regtest comparison in @file{uploads/@/webtest/} for
112 any unintentional breakage.  More info in
113 @ref{Precompiled regression tests}.
114
115 @item If any work was done on GUB since the last release, upload
116 binaries to a temporary location, ask for feedback, and wait a day
117 or two in case there's any major problems.
118
119 @warning{Always do this for a stable release.}
120
121 @end enumerate
122
123
124 @subheading Actual release
125
126 @enumerate
127
128 @item If you're not the right user on the webserver, remove the
129 @code{t} from the rsync command in:
130
131 @example
132 test-lily/rsync-lily-doc.py
133 test-lily/rsync-test.py
134 @end example
135
136 @code{graham} owns v2.13; @code{han-wen} owns v2.12.
137
138 @item Upload GUB by running:
139
140 @example
141 make lilypond-upload \
142   LILYPOND_REPO_URL=git://git.sv.gnu.org/lilypond.git \
143   LILYPOND_BRANCH=release/unstable
144 @end example
145
146 @noindent
147 or something like:
148
149 @example
150 make lilypond-upload \
151   LILYPOND_REPO_URL=git://git.sv.gnu.org/lilypond.git \
152   LILYPOND_BRANCH=stable/2.12
153 @end example
154
155 @end enumerate
156
157
158 @subheading Post release
159
160 @enumerate
161
162 @item Switch back to master and get the updated news:
163
164 @example
165 git checkout master
166 git merge release/unstable
167 @end example
168
169 @item Update @file{VERSION} in lilypond git and upload changes:
170
171 @example
172 vi VERSION
173 @end example
174
175 @itemize
176 @item
177 VERSION = what you just did +0.0.1
178
179 @item
180 DEVEL_VERSION = what you just did (i.e. is now online)
181
182 @item
183 STABLE_VERSION = what's online (probably no change here)
184
185 @end itemize
186
187 @example
188 git commit -m "Release: bump version." VERSION
189 git push origin
190 @end example
191
192
193 @item (for now) do a @code{make doc} and manually upload:
194
195 @example
196 ### upload-lily-web-media.sh
197 #!/bin/sh
198 BUILD_DIR=$HOME/src/build-lilypond
199
200 PICS=$BUILD_DIR/Documentation/pictures/out-www/
201 EXAMPLES=$BUILD_DIR/Documentation/web/ly-examples/out-www/
202
203 cd $BUILD_DIR
204 rsync -a $PICS graham@@lilypond.org:media/pictures
205 rsync -a $EXAMPLES graham@@lilypond.org:media/ly-examples
206 @end example
207
208 @item Wait a few hours for the website to update.
209
210 @item Email release notice to @code{info-lilypond}
211
212 @end enumerate
213
214
215
216 @node Major release checklist
217 @section Major release checklist
218
219 A @qq{major release} means an update of @code{x} in @code{2.x.0}.
220
221 @subheading Main requirements
222
223 This is the current official guidelines.
224
225 @itemize
226 @item
227 0 Critical issues for two weeks (14 days) after the latest release
228 candidate.
229
230 @end itemize
231
232
233 @subheading Potential requirements
234
235 These might become official guidelines in the future.
236
237 @itemize
238 @item
239 Check reg test
240
241 @item
242 Check all 2ly scripts
243
244 @item
245 Check for emergencies the docs:
246
247 @example
248 grep FIXME --exclude "misc/*" --exclude "*GNUmakefile" \
249   --exclude "snippets/*" ????*/*
250 @end example
251
252 @item
253 Check for altered regtests, and document as necessary.  (update
254 numbers in the following command as appropriate)
255
256 @example
257 git diff -u -r release/2.12.0-1 -r release/2.13.13-1 input/regression/
258 @end example
259
260 @end itemize
261
262
263 @subheading Housekeeping requirements
264
265 Before the release:
266
267 @itemize
268 @item
269 write release notes.  note: stringent size requirements for
270 various websites, so be brief.
271
272 @item
273 Run convert-ly on all files, bump parser minimum version.
274
275 @item
276 Make FTP directories on lilypond.org
277
278 @item
279 Website:
280
281 @itemize
282 @item
283 make a link from the old unstable to the next stable in
284 lilypond.org's /doc/ dir.  Keep all previous unstable->stable doc
285 symlinks.
286
287 Also, make the old docs self-contained -- if there's a redirect in
288 /doc/v2.12/Documentation/index.html , replace it with the
289 index.html.old-2.12 files.
290
291 The post-2.13 docs will need another way of handling the
292 self-containment.  It won't be hard to whip up a python script
293 that changes the link to ../../../../manuals.html to
294 ../website/manuals.html , but it's still a 30-minute task that
295 needs to be done before 2.16.
296
297 @item
298 doc auto redirects  to v2.LATEST-STABLE
299
300 @item
301 add these two lines to http://www.lilypond.org/robots.txt:
302
303 @example
304 Disallow: /doc/v2.PREVIOUS-STABLE/
305 Disallow: /doc/v2.CURRENT-DEVELOPMENT/
306 @end example
307
308 @end itemize
309
310 @end itemize
311
312 @subheading Unsorted
313
314 @itemize
315 @item
316 submit pots for translation: send url of tarball to
317 translation@@iro.umontreal.ca, mentioning lilypond-VERSION.pot
318
319 @item
320 update links to distros providing lilypond packages?  link in:
321 @file{Documentation@/web@/download.itexi}
322
323 This has nothing to do with the release, but it's a "periodic
324 maintenance" task that might make sense to include with releases.
325
326 @item
327 Send announcements to...
328
329 News:
330
331 @example
332 comp.music.research
333 comp.os.linux.announce
334
335 comp.text.tex
336 rec.music.compose
337 @end example
338
339 Mail:
340
341 @example
342 info-lilypond@@gnu.org
343
344 linux-audio-announce@@lists.linuxaudio.org
345 linux-audio-user@@lists.linuxaudio.org
346 linux-audio-dev@@lists.linuxaudio.org
347
348 tex-music@@icking-music-archive.org
349
350 --- non-existant?
351 abcusers@@blackmill.net
352
353 rosegarden-user@@lists.sourceforge.net
354 info-gnu@@gnu.org
355 noteedit-user@@berlios.de
356
357 gmane.comp.audio.fomus.devel
358 gmane.linux.audio.users
359 gmane.linux.audio.announce
360 gmane.comp.audio.rosegarden.devel
361 @end example
362
363 Web:
364
365 @example
366 lilypond.org
367 freshmeat.net
368 linuxfr.com
369 http://www.apple.com/downloads
370 harmony-central.com (news@@harmony-central.com)
371 versiontracker.com [auto]
372 hitsquad.com [auto]
373 http://www.svgx.org
374 https://savannah.gnu.org/news/submit.php?group_id=1673  @c => planet.gnu.org
375 @end example
376
377 @end itemize
378
379
380 @node Release extra notes
381 @section Release extra notes
382
383 @subsubheading Regenerating regression tests
384
385 Regenerating regtests (if the lilypond-book naming has changed):
386
387 @itemize
388
389 @item
390 git checkout release/lilypond-X.Y.Z-A
391
392 @item
393 take lilypond-book and any related makefile updates from the
394 latest git.
395
396 @item
397 configure; make; make test
398
399 @item
400 tar -cjf lilypond-X.Y.Z-A.test-output.tar.bz2 input/regression/out-test/
401
402 @item
403 mv lilypond-X.Y.Z-A.test-output.tar.bz2 ../gub/regtests/
404
405 @item
406 cd ../gub/regtests/
407
408 @item
409 make lilypond
410
411 @end itemize
412
413
414 @subsubheading stable/2.12
415
416 If releasing stable/2.12, then:
417
418 @itemize
419
420 @item
421 apply doc patch: patches/rsync-lily.patch  (or something like
422 that)
423
424 @item
425 change infodir in gub/specs/lilypond-doc.py from "lilypond.info"
426 to "lilypond-web.info"
427 @end itemize
428
429 @subsubheading Updating a release (changing a in x.y.z-a)
430
431 Really tentative instructions, almost certainly can be done
432 better.
433
434 @enumerate
435
436 @item
437 change the VERSION back to release you want.  push change.
438 (hopefully you'll have forgotten to update it when you made your
439 last release)
440
441 @item
442 make sure that there aren't any lilypond files floating around in
443 target/  (like usr/bin/lilypond).
444
445 @item
446 build the specific package(s) you want, i.e.
447
448 @example
449 bin/gub mingw::lilypond-installer
450 make LILYPOND_BRANCH=stable/2.12 -f lilypond.make doc
451 bin/gub --platform=darwin-x86 'git://git.sv.gnu.org/lilypond-doc.git?branch=stable/2.12'
452 @end example
453
454 or
455
456 build everything with the normal "make lilypond", then (maybe)
457 manually delete stuff you don't want to upload.
458
459 @item
460 manually upload them.  good luck figuring out the rsync
461 command(s).  Hints are in test-lily/
462
463 or
464
465 run the normal lilypond-upload command, and (maybe) manually
466 delete stuff you didn't want to upload from the server.
467
468 @end enumerate
469
470
471