]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/contributor/release-work.itexi
baa68a85e468768c8defbf0d24412aaba1570134
[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.  This requires a clean index and work tree.  If the
79 checkout displays modified files, you might want to run @code{git reset
80 --hard} before continuing.
81
82 @example
83 git fetch
84 git checkout origin/release/unstable
85 git merge origin
86 vi Documentation/web/news-front.itexi Documentation/web/news.itexi
87 @end example
88
89 @item
90 Commit, push, switch back to master (or wherever else):
91
92 @example
93 git commit -m "Release: update news." Documentation/web/
94 git push origin HEAD:release/unstable
95 git checkout master
96 @end example
97
98 @item
99 If you do not have the previous release test-output tarball, download
100 it and put it in @code{regtests/}
101
102 @item Prepare GUB environment by running:
103
104 @example
105 ### my-gub.sh
106 # special terminal, and default PATH environment.
107 # import these special environment vars:
108 #   HOME, HTTP_PROXY, TERM
109 env -i \
110   HOME=$HOME \
111   HTTP_PROXY=$HTTP_PROXY \
112   bash --rcfile my-bashrc
113 @end example
114
115 @example
116 ### my-bashrc
117 export PS1="\[\e[1;33mGUB-ENV \w\]$ \[\e[0m\]"
118 export PATH=$PATH
119 export TERM=xterm
120 @end example
121
122
123 @item Build release on GUB by running:
124
125 @example
126 make LILYPOND_BRANCH=release/unstable lilypond
127 @end example
128
129 @noindent
130 or something like:
131
132 @example
133 make LILYPOND_BRANCH=stable/2.12 lilypond
134 @end example
135
136 @item Check the regtest comparison in @file{uploads/webtest/} for
137 any unintentional breakage.  More info in
138 @ref{Precompiled regression tests}.
139
140 @item If any work was done on GUB since the last release, upload
141 binaries to a temporary location, ask for feedback, and wait a day
142 or two in case there's any major problems.
143
144 @warning{Always do this for a stable release.}
145
146 @end enumerate
147
148
149 @subheading Actual release
150
151 @enumerate
152
153 @item If you're not the right user on the webserver, remove the
154 @code{t} from the rsync command in:
155
156 @example
157 test-lily/rsync-lily-doc.py
158 test-lily/rsync-test.py
159 @end example
160
161 @code{graham} owns v2.13; @code{han-wen} owns v2.12.
162
163 @item Upload GUB by running:
164
165 @example
166 make lilypond-upload \
167   LILYPOND_REPO_URL=git://git.sv.gnu.org/lilypond.git \
168   LILYPOND_BRANCH=release/unstable
169 @end example
170
171 @noindent
172 or something like:
173
174 @example
175 make lilypond-upload \
176   LILYPOND_REPO_URL=git://git.sv.gnu.org/lilypond.git \
177   LILYPOND_BRANCH=stable/2.12
178 @end example
179
180 @end enumerate
181
182
183 @subheading Post release
184
185 @enumerate
186
187 @item Switch back to master and get the updated news:
188
189 @example
190 git checkout origin/staging
191 git merge origin/release/unstable
192 @end example
193
194 @item Update @file{VERSION} in lilypond git and upload changes:
195
196 @example
197 vi VERSION
198 @end example
199
200 @itemize
201 @item
202 VERSION = what you just did +0.0.1
203
204 @item
205 DEVEL_VERSION = what you just did (i.e. is now online)
206
207 @item
208 STABLE_VERSION = what's online (probably no change here)
209
210 @end itemize
211
212 @example
213 git commit -m "Release: bump version." VERSION
214 git push origin HEAD:staging
215 @end example
216
217
218 @item (for now) do a @code{make doc} and manually upload:
219
220 @example
221 ### upload-lily-web-media.sh
222 #!/bin/sh
223 BUILD_DIR=$HOME/src/build-lilypond
224
225 PICS=$BUILD_DIR/Documentation/pictures/out-www/
226 EXAMPLES=$BUILD_DIR/Documentation/ly-examples/out-www/
227
228 cd $BUILD_DIR
229 rsync -a $PICS graham@@lilypond.org:media/pictures
230 rsync -a $EXAMPLES graham@@lilypond.org:media/ly-examples
231 @end example
232
233 @item Wait a few hours for the website to update.
234
235 @item Email release notice to @code{info-lilypond}
236
237 @end enumerate
238
239
240
241 @node Major release checklist
242 @section Major release checklist
243
244 A @qq{major release} means an update of @code{x} in @code{2.x.0}.
245
246 @subheading Main requirements
247
248 This is the current official guidelines.
249
250 @itemize
251 @item
252 0 Critical issues for two weeks (14 days) after the latest release
253 candidate.
254
255 @end itemize
256
257
258 @subheading Potential requirements
259
260 These might become official guidelines in the future.
261
262 @itemize
263 @item
264 Check reg test
265
266 @item
267 Check all 2ly scripts
268
269 @item
270 Check for emergencies the docs:
271
272 @example
273 grep FIXME --exclude "misc/*" --exclude "*GNUmakefile" \
274   --exclude "snippets/*" ????*/*
275 @end example
276
277 @item
278 Check for altered regtests, and document as necessary.  (update
279 numbers in the following command as appropriate)
280
281 @example
282 git diff -u -r release/2.12.0-1 -r release/2.13.13-1 input/regression/
283 @end example
284
285 @end itemize
286
287
288 @subheading Housekeeping requirements
289
290 Before the release:
291
292 @itemize
293 @item
294 write release notes.  note: stringent size requirements for
295 various websites, so be brief.
296
297 @item
298 Run convert-ly on all files, bump parser minimum version.
299
300 @item
301 Make directories on lilypond.org:
302
303 @example
304 ~/web/download/sources/v2.14
305 ~/web/download/sources/v2.15
306 @end example
307
308 @item
309 Shortly after the release, move all current contributors to
310 previous contributors in:
311
312 @example
313 Documentation/included/authors.itexi
314 @end example
315
316 Also, delete old material in:
317
318 @example
319 Documentation/changes.tely
320 @end example
321
322 but don't forget to check it still compiles!  also update the
323 version numbers.
324
325 @item
326 Website:
327
328 @itemize
329 @item
330 make a link from the old unstable to the next stable in
331 lilypond.org's /doc/ dir.  Keep all previous unstable->stable doc
332 symlinks.
333
334 Also, make the old docs self-contained -- if there's a redirect in
335 /doc/v2.12/Documentation/index.html , replace it with the
336 index.html.old-2.12 files.
337
338 The post-2.13 docs will need another way of handling the
339 self-containment.  It won't be hard to whip up a python script
340 that changes the link to ../../../../manuals.html to
341 ../website/manuals.html , but it's still a 30-minute task that
342 needs to be done before 2.16.
343
344 @item
345 doc auto redirects  to v2.LATEST-STABLE
346
347 @item
348 add these two lines to http://www.lilypond.org/robots.txt:
349
350 @example
351 Disallow: /doc/v2.PREVIOUS-STABLE/
352 Disallow: /doc/v2.CURRENT-DEVELOPMENT/
353 @end example
354
355 @end itemize
356
357 @end itemize
358
359 @subheading Unsorted
360
361 @itemize
362 @item
363 submit pots for translation: send url of tarball to
364 translation@@iro.umontreal.ca, mentioning lilypond-VERSION.pot
365
366 @item
367 update links to distros providing lilypond packages?  link in:
368 @file{Documentation/web/download.itexi}
369
370 This has nothing to do with the release, but it's a "periodic
371 maintenance" task that might make sense to include with releases.
372
373 @item
374 Send announcements to...
375
376 News:
377
378 @example
379 comp.music.research
380 comp.os.linux.announce
381
382 comp.text.tex
383 rec.music.compose
384 @end example
385
386 Mail:
387
388 @example
389 info-lilypond@@gnu.org
390
391 linux-audio-announce@@lists.linuxaudio.org
392 linux-audio-user@@lists.linuxaudio.org
393 linux-audio-dev@@lists.linuxaudio.org
394
395 tex-music@@icking-music-archive.org
396
397 --- non-existant?
398 abcusers@@blackmill.net
399
400 rosegarden-user@@lists.sourceforge.net
401 info-gnu@@gnu.org
402 noteedit-user@@berlios.de
403
404 gmane.comp.audio.fomus.devel
405 gmane.linux.audio.users
406 gmane.linux.audio.announce
407 gmane.comp.audio.rosegarden.devel
408 @end example
409
410 Web:
411
412 @example
413 lilypond.org
414 freshmeat.net
415 linuxfr.com
416 http://www.apple.com/downloads
417 harmony-central.com (news@@harmony-central.com)
418 versiontracker.com [auto]
419 hitsquad.com [auto]
420 http://www.svgx.org
421 https://savannah.gnu.org/news/submit.php?group_id=1673  @c => planet.gnu.org
422 @end example
423
424 @end itemize
425
426
427 @node Release extra notes
428 @section Release extra notes
429
430 @subsubheading Regenerating regression tests
431
432 Regenerating regtests (if the lilypond-book naming has changed):
433
434 @itemize
435
436 @item
437 git checkout release/lilypond-X.Y.Z-A
438
439 @item
440 take lilypond-book and any related makefile updates from the
441 latest git.
442
443 @item
444 configure; make; make test
445
446 @item
447 tar -cjf lilypond-X.Y.Z-A.test-output.tar.bz2 input/regression/out-test/
448
449 @item
450 mv lilypond-X.Y.Z-A.test-output.tar.bz2 ../gub/regtests/
451
452 @item
453 cd ../gub/regtests/
454
455 @item
456 make lilypond
457
458 @end itemize
459
460
461 @subsubheading stable/2.12
462
463 If releasing stable/2.12, then:
464
465 @itemize
466
467 @item
468 apply doc patch: patches/rsync-lily.patch  (or something like
469 that)
470
471 @item
472 change infodir in gub/specs/lilypond-doc.py from "lilypond.info"
473 to "lilypond-web.info"
474 @end itemize
475
476 @subsubheading Updating a release (changing a in x.y.z-a)
477
478 Really tentative instructions, almost certainly can be done
479 better.
480
481 @enumerate
482
483 @item
484 change the VERSION back to release you want.  push change.
485 (hopefully you'll have forgotten to update it when you made your
486 last release)
487
488 @item
489 make sure that there aren't any lilypond files floating around in
490 target/  (like usr/bin/lilypond).
491
492 @item
493 build the specific package(s) you want, i.e.
494
495 @example
496 bin/gub mingw::lilypond-installer
497 make LILYPOND_BRANCH=stable/2.12 -f lilypond.make doc
498 bin/gub --platform=darwin-x86 \
499   'git://git.sv.gnu.org/lilypond-doc.git?branch=stable/2.12'
500 @end example
501
502 or
503
504 build everything with the normal "make lilypond", then (maybe)
505 manually delete stuff you don't want to upload.
506
507 @item
508 manually upload them.  good luck figuring out the rsync
509 command(s).  Hints are in test-lily/
510
511 or
512
513 run the normal lilypond-upload command, and (maybe) manually
514 delete stuff you didn't want to upload from the server.
515
516 @end enumerate
517
518
519