]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/contributor/issues.itexi
CG: discuss patch handling.
[lilypond.git] / Documentation / contributor / issues.itexi
1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @node Issues
3 @chapter Issues
4
5 This chapter deals with defects, feature requests, and
6 miscellaneous development tasks.
7
8 @menu
9 * Introduction to issues::
10 * Bug Squad setup::
11 * Bug Squad checklists::
12 * Issue classification::
13 * Adding issues to the tracker::
14 * Patch handling::
15 * Summary of project status::
16 @end menu
17
18
19 @node Introduction to issues
20 @section Introduction to issues
21
22 @warning{Unless otherwise specified, all the tasks in this chapter
23 are @qq{simple} tasks: they can be done by a normal user with
24 nothing more than a web browser, email, and lilypond.}
25
26 @qq{Issues} isn't just a politically-correct term for @qq{bug}.
27 We use the same tracker for feature requests and code TODOs, so
28 the term @qq{bug} wouldn't be accurate.  Despite the difference
29 between @qq{issue} and @qq{bug}, we call our team of contributors
30 who organize issues the @emph{Bug Squad}.
31
32 The Bug Squad is mainly composed of non-programmers -- their job
33 is to @emph{organize} issues, not solve them.  Their duties
34 include removing false bug reports, ensuring that any real bug
35 report contains enough information for developers, and checking
36 that a developer's fix actually resolves the problem.
37
38 New volunteers for the Bug Squad should contact the
39 @ref{Meisters, Bug Meister}.
40
41
42 @node Bug Squad setup
43 @section Bug Squad setup
44
45 We highly recommend that you configure your email to use effective
46 sorting; this can reduce your workload @emph{immensely}.  The
47 email folders names were chosen specifically to make them work if
48 you sort your folders alphabetically.
49
50 @enumerate
51
52 @item
53 Read every section of this chapter, @ref{Issues}.
54
55 @item
56 If you do not have one already, create a gmail account and send
57 the email address to the @ref{Meisters, Bug Meister}.
58
59 @item
60 Subscribe your gmail account to @code{bug-lilypond}.
61
62 @item
63 Configure your google code account:
64
65 @enumerate
66
67 @item
68 Wait until your gmail account is listed in:
69
70 @example
71 @uref{http://code.google.com/p/lilypond/people/list}
72 @end example
73
74 @item
75 Sign in to google code by clicking in the top-right corner of:
76
77 @example
78 @uref{http://code.google.com/p/lilypond/issues/list}
79 @end example
80
81 You cannot log if you have Google Sharing
82 @uref{http://www.googlesharing.net/} enabled.
83
84 @item
85 Go to your @qq{Profile}, and select @qq{Settings}.
86
87 @item
88 Scroll down to @qq{Issue change notification}, and make sure that
89 you have @emph{selected} @qq{If I starred the issue}.
90
91 @end enumerate
92
93 @item
94 Configure your email client:
95
96 @enumerate
97
98 @item
99 Any email sent with your gmail address in the @code{To:} or
100 @code{CC:} fields should go to a @code{bug-answers} folder.
101
102 When setting up your filtering rules, be aware that Google Code
103 might use different versions of your email address, such as ones
104 ending in @code{@@googlemail.com} or @code{@@gmail.com}.
105
106 @item
107 Any other email either from, or CC'd to,
108
109 @example
110 lilypond@@googlecode.com
111 @end example
112
113 @noindent
114 should go into a separate @code{bug-ignore} folder.  Alternately,
115 you may automatically delete these emails.
116
117 You will @strong{not read} these emails as part of your Bug Squad
118 duties.  If you are curious, go ahead and read them later, but it
119 does @strong{not} count as Bug Squad work.
120
121 @item
122 Any other email sent to (or CC'd to):
123
124 @example
125 bug-lilypond
126 @end example
127
128 @noindent
129 should go into a separate @code{bug-current} folder.
130
131 @end enumerate
132
133 @end enumerate
134
135
136 @node Bug Squad checklists
137 @section Bug Squad checklists
138
139 When you do Bug Squad work, start at the top of this page and work
140 your way down.  Stop when you've done 15 minutes.
141
142 Please use the email sorting described in @ref{Bug Squad setup}.
143 This means that (as Bug Squad members) you will only ever respond
144 to emails sent or CC'd to the @code{bug-lilypond} mailing list.
145
146
147 @subsubheading Emails to you personally
148
149 You are not expected to work on Bug Squad matters outside of your
150 15 minutes, but sometimes a confused user will send a bug report
151 (or an update to a report) to you personally.  If that happens,
152 please forward such emails to the @code{bug-lilypond} list so that
153 the currently-active Bug Squad member(s) can handle the message.
154
155
156 @subsubheading Daily schedule
157
158 The Bug Meister is omitted from the daily schedule.
159
160 @example
161 Sunday: Colin
162 Monday: Dmytro
163 Tuesday: James Bailey
164 Wednesday: Ralph
165 Thursday: Patrick
166 Friday: Urs
167 Saturday: Kieren
168 @end example
169
170
171 @subsubheading Emails to @code{bug-answers}
172
173 Some of these emails will be comments on issues that you added to
174 the tracker.
175
176 @itemize
177 If they are asking for more information, give the additional
178 information.
179
180 @item
181 If the email says that the issue was classified in some other
182 manner, read the rationale given and take that into account for
183 the next issue you add.
184
185 @item
186 Otherwise, move them to your @code{bug-ignore} folder.
187
188 @end itemize
189
190 Some of these emails will be discussions about Bug Squad work;
191 read those.
192
193
194 @subsubheading Emails to @code{bug-current}
195
196 Dealing with these emails is your main task.  Your job is to get
197 rid of these emails in the first method which is applicable:
198
199 @enumerate
200 @item
201 If the email has already been handled by a Bug Squad member (i.e.
202 check to see who else has replied to it), delete it.
203
204 @item
205 If the email is a question about how to use LilyPond, reply with
206 this response:
207
208 @example
209 For questions about how to use LilyPond, please read our
210 documentation available from:
211   @uref{http://lilypond.org/website/manuals.html}
212 or ask the lilypond-user mailing list.
213 @end example
214
215 @item
216 If the email mentions @qq{the latest git}, or any version number
217 that has not yet been officially released, forward it to
218 @code{lilypond-devel}.
219
220 @item
221 If a bug report is not in the form of a Tiny example, direct the
222 user to resubmit the report with this response:
223
224 @example
225 I'm sorry, but due to our limited resources for handling bugs, we
226 can only accept reports in the form of Tiny examples.  Please see
227 step 2 in our bug reporting guidelines:
228   @uref{http://lilypond.org/website/bug-reports.html}
229 @end example
230
231 @item
232 If anything is unclear, ask the user for more information.
233
234 How does the graphical output differ from what the user expected?
235 What version of lilypond was used (if not given) and operating
236 system (if this is a suspected cause of the problem)?  In short,
237 if you cannot understand what the problem is, ask the user to
238 explain more.  It is the user's responsibility to explain the
239 problem, not your responsibility to understand it.
240
241 @item
242 If the behavior is expected, the user should be told to read the
243 documentation:
244
245 @example
246 I believe that this is the expected behaviour -- please read our
247 documentation about this topic.  If you think that it really is a
248 mistake, please explain in more detail.  If you think that the
249 docs are unclear, please suggest an improvement as described by
250 @qq{Simple tasks -- Documentation} on:
251   @uref{http://lilypond.org/website/help-us.html}
252 @end example
253
254 @item
255 If the issue already exists in the tracker, send an email to that
256 effect:
257
258 @example
259 This issue has already been reported; you can follow the
260 discussion and be notified about fixes here:
261 @end example
262
263 @noindent
264 (copy+paste the google code issue URL)
265
266 @item
267 Accept the report as described in
268 @ref{Adding issues to the tracker}.
269
270 @end enumerate
271
272 All emails should be CC'd to the @code{bug-lilypond} list so that
273 other Bug Squad members know that you have processed the email.
274
275 @warning{There is no option for @qq{ignore the bug report} -- if
276 you cannot find a reason to reject the report, you must accept
277 it.}
278
279
280 @ignore
281 @c Try omitting this from Bug Squad duties
282
283 @subheading Updates / discussion about issues
284
285 We try to keep discussions about issues on the tracker, but
286 sometimes it spills over onto email.  If discussion has ended with
287 no patch / resolution and at least @strong{3 days} have passed,
288 then either:
289
290 @itemize
291
292 @item
293 Summarize the recent discussion on the tracker, and add a link to
294 the original discussion.
295
296 @item
297 Add the comment @qq{there was some technical discussion which I
298 could not understand}, and include a link to the original
299 discussion.
300
301 We do not expect Bug Squad members to be programmers, or even to
302 be moderately-skilled users.  Your job is to keep track of issue
303 reports; it is @emph{perfectly acceptable} to not understand
304 discussions between advanced users and/or developers.
305
306 @end itemize
307 @end ignore
308
309
310 @subheading Regular maintenance
311
312 After @strong{every release} (both stable and unstable):
313
314 @itemize
315
316 @item
317 Regression test comparison: if anything has changed suspiciously,
318 ask if it was deliberate.  The official comparison is online, at:
319
320 @c NOTE: leave this here.  In this case, it's worth duplicating
321 @c       the link.  -gp
322 @example
323 @uref{http://lilypond.org/test/}
324 @end example
325
326 More information is available from in
327 @ref{Precompiled regression tests}.
328
329
330 @item
331 Issues to verify: try to reproduce the bug with the latest
332 official GUB version; if you cannot reproduce the bug, mark the
333 item @qq{Verified} (i.e. @qq{the fix has been verified to work}).
334
335 @example
336 @uref{http://code.google.com/p/lilypond/issues/list?can=7}
337 @end example
338
339 A few (approximately 10%) of these fixed issues relate to the
340 build system or fundamental architecture changes; there is no way
341 for you to verify these.  Leave those issues alone; somebody else
342 will handle them.
343
344 @item
345 Check for any incorrectly-classified items in the tracker.  This
346 generally just means looking at the grid to see any items without
347 a Type or Priority.
348
349 @end itemize
350
351
352 @ignore
353 @c try omitting from daily tasks for now. -gp
354
355 @subheading Irregular maintenance
356
357 @warning{These tasks are a lot of work; gathering more volunteers
358 to help is definitely recommended.  However, the Bug Squad should
359 handle the organization and training of new volunteers.}
360
361 Once every year or two:
362
363 @itemize
364
365 @item
366 Checking all regtests: although we have a system for checking the
367 regtests between two versions, occasionally a bug will slip
368 through the cracks.  It is therefore good to manually examine all
369 the regtests (compare the images to the text description).  More
370 information is available from in @ref{Regression tests}.
371
372
373 @item
374 Checking all issues: we try to mark each Issue @q{fixed} when we
375 fix it, but occasionally one or two issues will slip through the
376 cracks.  It is therefore good to check all Issues.  If you see the
377 same (broken) output as the initial report, then simply post a
378 @qq{Problem still exists in 2.x.y} message to the issue.
379
380 @end itemize
381
382 @end ignore
383
384
385 @node Issue classification
386 @section Issue classification
387
388 The Bug Squad should classify issues according to the guidelines
389 given by developers.  Every issue should have a Status, Type, and
390 Priority; the other fields are optional.
391
392 @subheading Status (mandatory)
393
394 Open issues:
395
396 @itemize
397
398 @item
399 New: the item was added by a non-member, despite numerous warnings
400 not to do this.  Should be reviewed by a member of the Bug Squad.
401
402 @item
403 Accepted: the Bug Squad added it, or reviewed the item.
404
405 @item
406 Started: a contributor is working on a fix.  Owner should change
407 to be this contributor.
408
409 @end itemize
410
411
412 Closed issues:
413
414 @itemize
415
416 @item
417 Invalid: issue should not have been added in the current state.
418
419 @item
420 Duplicate: issue already exists in the tracker.
421
422 @item
423 Fixed: a contributor claims to have fixed the bug.  The Bug
424 Squad should check the fix with the next official binary release
425 (not by compiling the source from git).  Owner should be set to
426 that contributor.
427
428 @item
429 Verified: Bug Squad has confirmed that the issue is closed.  This
430 means that nobody should ever need look at the report again -- if
431 there is any information in the issue that should be kept, open a
432 new issue for that info.
433
434 @end itemize
435
436
437 @subheading Owner (optional)
438
439 Newly-added issues should have @emph{no owner}.  When a
440 contributor indicates that he has Started or Fixed an item, he
441 should become the owner.
442
443
444 @subheading Type (mandatory)
445
446 The issue's Type should be the first relevant item in this list.
447
448 @itemize
449
450 @item
451 Type-Collision: overlapping notation.
452
453 @item
454 Type-Defect: a problem in the core program.  (the @code{lilypond}
455 binary, scm files, fonts, etc).
456
457 @item
458 Type-Documentation: inaccurate, missing, confusing, or desired
459 additional info.  Must be fixable by editing a texinfo, ly, or scm
460 file.
461
462 @item
463 Type-Build: problem or desired features in the build system.  This
464 includes the makefiles, stepmake, python scripts, and GUB.
465
466 @item
467 Type-Scripts: problem or desired feature in the non-build-system
468 scripts.  Mostly used for convert-ly, lilypond-book, etc.
469
470 @item
471 Type-Enhancement: a feature request for the core program.  The
472 distinction between enhancement and defect isn't extremely clear;
473 when in doubt, mark it as enhancement.
474
475 @item
476 Type-Other: anything else.
477
478 @end itemize
479
480
481 @subheading Priority (mandatory)
482
483 Currently, only Critical items will block a stable release.
484
485 @itemize
486
487 @item
488 Priority-Critical: LilyPond segfaults, a regression (see below)
489 against a previous stable version or a regression against a fix
490 developed for this version. This does not apply where the
491 @qq{regression} occurred because a feature was removed
492 deliberately - this is not a bug.
493
494 @item
495 Priority-High: An issue which produces output which does not
496 accurately reflect the input (e.g. where the user would expect
497 an accidental, but none is shown) or which produces aesthetically
498 poor output in a situation which could be expected to crop up
499 frequently in real-world music.  It should not be used where the
500 problem can be avoided with a simple workaround.  It can also
501 be used to flag where new code in a development version is not
502 functioning as it should.  This level is also used for issues
503 which produce no output and fail to give the user a clue about
504 what's wrong.
505
506 @item
507 Priority-Medium: Normal priority - use this as the default.
508
509 @item
510 Priority-Low: A minor problem which produces slightly undesirable
511 output, or which will only occur in contrived examples, or which
512 is very easily worked around.
513
514 @item
515 Priority-Postponed: no fix planned.  Generally used for things
516 which nobody wants to touch.
517
518 @end itemize
519
520 Note that these are initial classifications and can be subject
521 to change by others in the development team.  For example, a
522 regression against an old stable version which hasn't been
523 noticed for a long time and which is unlikely to get fixed could
524 be downgraded from Priority-Critical by one of the programmers.
525
526 @subheading Opsys (optional)
527
528 Issues that only affect specific operating systems.
529
530 @subheading Patch (optional)
531
532 Normal Bug Squad members should not add or modify Patch issues;
533 leave them to the Patch Meister.
534
535 @itemize
536
537 @item
538 Patch-new: the patch has not been checked for @qq{obvious}
539 mistakes.  When in doubt, use this tag.
540
541 @item
542 Patch-review: the patch has no @qq{obvious} mistakes (as checked
543 by the Patch Meister), and is ready for review from main
544 developers.
545
546 Developers with git push ability can use this category, skipping
547 over @code{patch-new}.
548
549 @item
550 Patch-needs_work: a developer has some concerns about the patch.
551 This does not necessarily mean that the patch must be changed; in
552 some cases, the developer's concerns can be resolved simply by
553 discussion the situation or providing notation examples.
554
555 If the patch is updated, the category should be changed to
556 @code{patch-new} (for normal contributors) or @code{patch-new}
557 (for developers who are very confident about their patch).
558
559 @item
560 Patch-abandoned: the author has not responded to review comments
561 for a few months.
562
563 @end itemize
564
565 @subheading Other items (optional)
566
567 Other labels:
568
569 @itemize
570
571 @item
572 Regression: it used to work intentionally in an earlier
573 stable release.  If the earlier output was accidental (i.e. we
574 didn't try to stop a collision, but it just so happened that two
575 grobs didn't collide), then breaking it does not count as a
576 regression.
577
578 To help decide whether the change is a regression, and therefore
579 should be Priority-Critical, please adopt the following process:
580
581 @enumerate
582
583 @item
584 Are you certain the change is OK?  If so, do nothing.
585
586 @item
587 Are you certain that the change is bad?  Add it to the tracker
588 as a Critical issue, regression.
589
590 @item
591 If you're not certain either way, add it to the tracker as a
592 Critical issue, regression but be aware that it may be
593 recategorised or marked invalid.
594
595 @end enumerate
596
597 In particular, anything that breaks a regression test is a
598 regression.
599
600 @item
601 Frog: the fix is believed to be suitable for a new contributor
602 (does not require a great deal of knowledge about LilyPond).  The
603 issue should also have an estimated time in a comment.
604
605 @item
606 Maintainability: hinders development of LilyPond.  For example,
607 improvements to the build system, or @qq{helper} python scripts.
608
609 @item
610 Bounty: somebody is willing to pay for the fix.  Only add this tag
611 if somebody has offered an exact figure in US dollars or euros.
612
613 @item
614 Warning: graphical output is fine, but lilypond prints a
615 false/misleading warning message.  Alternately, a warning should
616 be printed (such as a bar line error), but was not.  Also applies
617 to warnings when compiling the source code or generating
618 documentation.
619
620 @item
621 Security: might potentially be used.
622
623 @item
624 Performance: might potentially be used.
625
626 @end itemize
627
628 If you particularly want to add a label not in the list, go
629 ahead, but this is not recommended.
630
631
632 @node Adding issues to the tracker
633 @section Adding issues to the tracker
634
635 @warning{This should only be done by the Bug Squad or experienced
636 developers.  Normal users should not do this; instead, they should
637 follow the guidelines for @rweb{Bug reports}.}
638
639 In order to assign labels to issues, Bug Squad members should log
640 in to their google account before adding an item.
641
642 @enumerate
643
644 @item
645 Check if the issue falls into any previous category given on the
646 relevant checklists in @ref{Bug Squad checklists}.  If in doubt,
647 add a new issue for a report.  We would prefer to have some
648 incorrectly-added issues rather than lose information that should
649 have been added.
650
651 @item
652 Add the issue and classify it according to the guidelines in
653 @ref{Issue classification}.  In particular, the item should have
654 @code{Status}, @code{Type-}, and @code{Priority-} labels.
655
656 Include output with the first applicable method:
657
658 @itemize
659
660 @item
661 If the issue has a notation example which fits in one system,
662 generate a small @file{bug.preview.png} file with:
663
664 @example
665 lilypond -dpreview bug.ly
666 @end example
667
668 @item
669 If the issue has an example which requires more than one system
670 (i.e. a spacing bug), generate a @file{bug.png} file with:
671
672 @example
673 lilypond --png bug.ly
674 @end example
675
676 @item
677 If the issue requires one or two pages of output, then generate a
678 @file{bug.png} file with the normal:
679
680 @example
681 lilypond --png bug.ly
682 @end example
683
684 @item
685 If the issue cannot be shown with less than three pages, then
686 generate a @file{bug.pdf} file with:
687
688 @example
689 lilypond --pdf bug.ly
690 @end example
691
692 Note that this is likely to be extremely rare; most bugs should fit
693 into the first two categories above.
694
695
696 @end itemize
697
698 @item
699 After adding the issue, please send a response email to the same
700 group(s) that the initial patch was sent to.  If the initial email
701 was sent to multiple mailing lists (such as both @code{user} and
702 @code{bugs}), then reply to all those mailing lists as well.  The
703 email should contain a link to the issue you just added.
704
705 @end enumerate
706
707
708
709 @node Patch handling
710 @section Patch handling
711
712 @warning{This is not a Bug Squad responsibility; we have a
713 separate person handling this task.}
714
715 There is a single Patch Meister, and a number of Patch Helpers
716 (rename this?).  The list of known patches awaiting review is:
717
718 @example
719 @uref{http://code.google.com/p/lilypond/issues/list?can=2&q=label:patch&sort=patch}
720 @end example
721
722
723 @subheading Helpers: adding patches
724
725 The primary duty is to add patches to the google tracker; we have
726 a bad track record of losing patches in email.  Patches generally
727 come to the @code{lilypond-devel} mailing list, but are sometimes
728 sent to @code{bug-lilypond}, @code{lilypond-users}, or
729 @code{frogs} mailing list instead.
730
731 @itemize
732 @item
733 Unless a patch is clearly in response to an existing issue, add a
734 new issue with the @code{Patch-new} label and a link to the patch
735 (either on the mailing list archives or the codereview url).
736
737 Issue numbers are cheap; losing developers because they got fed up
738 with us losing their hard work is expensive.
739
740 @c if we enter patches immediately, I don't think this is relevant.
741 @ignore
742 @item
743 Before adding a patch-reminder issue, do a quick check to see if
744 it was pushed without sending any email.  This can be checked for
745 searching for relevant terms (from the patch subject or commit
746 message) on the webgit page:
747
748 @example
749 @uref{http://git.savannah.gnu.org/gitweb/?p=lilypond.git}
750 @end example
751 @end ignore
752
753 @item
754 If the patch is clearly in response to an existing issue, then
755 update that issue with the @code{Patch-new} label and a link to
756 the patch (either on the mailing list archives or the codereview
757 url).
758
759 @item
760 After adding the issue, please send a response email to the same
761 group(s) that the initial patch was sent to.
762
763 If the initial email was sent to multiple mailing lists (such as
764 both @code{bugs} and @code{devel}), then reply to all those
765 mailing lists as well.  The email should contain a link to the
766 issue you just added.
767
768 @end itemize
769
770 @subheading Helpers: @code{Patch-review} label
771
772 The secondary duty is to do make sure that every issue in the
773 tracker with a @code{Patch-review} label has passed these
774 @qq{obvious} tests:
775
776 @itemize
777 @item
778 Applies automatically to git master.
779
780 It's ok to have offsets, but not conflicts.
781
782 @item
783 Regtest comparison looks ok; no unexpected changes.
784
785 @item
786 Descriptive subject line.
787
788 Avoid subjects like @qq{fixes 123}; instead write @qq{Doc: discuss
789 stacking-dir for BassFigureAlignment (fix 123)}.
790
791 @item
792 Compiles docs from scratch.  Only check this if you have reason to
793 suspect it might not work.
794
795 @item
796 (maybe)
797
798 Check code indentation and style.  This should be easier post-GOP
799 when we have a better-defined code style.
800
801 @end itemize
802
803
804 @subheading Patch Meister
805
806 The Patch Meister will:
807
808 @itemize
809
810 @item
811 send @qq{countdown} emails to
812 @code{lilypond-devel} when patches appear to be ready.
813
814 @item
815 send general requests to review patches, or even nasty requests to
816 review patches.
817
818 @item
819 downgrade patches from @code{Patch-review} to
820 @code{Patch-needs_work} as appropriate.
821
822 @item
823 downgrade patches from @code{Patch-needs_work} to
824 @code{Patch-abandoned} if no actions have been taken in four
825 weeks.
826
827 @end itemize
828
829
830
831
832 @node Summary of project status
833 @section Summary of project status
834
835 @subsubheading Project overview
836
837 Grid view provides the best overview:
838
839 @example
840 @uref{http://code.google.com/p/lilypond/issues/list?mode=grid&y=Priority&x=Type&cells=ids}
841 @end example
842
843 @subsubheading Hindering development
844
845 These issues stop or slow development work:
846
847 @example
848 @uref{http://code.google.com/p/lilypond/issues/list?can=2&q=label:Maintainability&mode=grid&y=Priority&x=Type&cells=ids}
849 @end example
850
851 @subsubheading Easy tasks
852
853 Issues tagged with @code{Frog} indicates a task suitable for a
854 relatively new contributor.  The time given is a quick
855 (inaccurate) estimate of the time required for somebody who is
856 familiar with material in this manual, but does not know anything
857 else about LilyPond development.
858
859 @example
860 @uref{http://code.google.com/p/lilypond/issues/list?can=2&q=label:Frog&mode=grid&y=Priority&x=Type&cells=ids}
861 @end example
862
863 @subsubheading Patches to review
864
865 Patches which have no @qq{obvious} problems:
866
867 @example
868 @uref{http://code.google.com/p/lilypond/issues/list?can=2&q=label:patch-review}
869 @end example
870
871
872