GNOME Bugzilla – Bug 304127
Halloween and bug-buddy-import crashed program magic
Last modified: 2005-06-03 19:40:24 UTC
On the basis of the crashed program, Halloween should be able to: 1. Either reject the bugreport with a custom error message (email) 2. Move the bugreport to another product / component Halloween should to the bug moving, bug-buddy-import should complain if the product was moved.
Created attachment 46416 [details] [review] Patch for bug-buddy-import
Created attachment 46419 [details] [review] Halloween: bugzilla.gnome.org/program-map.txt New file bugzilla.gnome.org/program-map.txt This file defines two things: 1. The products that allow bugreports to be moved 2. How to move a bugreport based on the crashed program 1. The patch works on an opt-in basis. Products have to be specified before bugreports will be moved from those products to the correct one. This is done on purpose to avoid moving products filed against gtk+ / vte (eg a gnome-terminal crasher filed against vte should stay in vte). 2. File has a simple format (explained in the file itself). Format is like the other map files in Halloween. See the file for an explanation. Note: It has one special field: Whether to move a bugreport if only component differs. Example: program-map.txt could contain: (program, product, component) totem totem general But totem bugs can also be filed in the GStreamer backend or xine-lib backend. Those bugreports shouldn't be moved. Other products are different, in gnome-applets each applet has its own component. If an applet if filed in gnome-applets but in the wrong component, it should be moved (unlike totem). Example config for gnome-applets would be: cpufreq-selector gnome-applets cpufreq 1 The 1 specifies that the bugreport should be moved even if the product is the same.
Created attachment 46420 [details] [review] Halloween: Sunrise.pm: Allow bugreports to be moved This implements the bug moving. I haven't made the bug rejection yet. It requires the bugzilla.gnome.org/program-map.txt to be committed first. Has been tested locally.
Created attachment 46422 [details] [review] Halloween: submit.pl submit.pl is started by procmail. It should read the program-map.txt.
Created attachment 46562 [details] Halloween: bugzilla.gnome.org/reject-program-list.txt Lists the programs that are rejected and the errorfile. The contents of the error file will be mailed back to the reporter. Works almost like reject-list.txt (but that is for packages). These live in CVS under halloween/bugzilla.gnome.org.
Created attachment 46563 [details] Halloween: reject-openoffice.txt Error message for OpenOffice bugs.
Created attachment 46564 [details] [review] Halloween: Allow rejecting bugreports based upon crashed program This allows bugreports to be rejected based upon the program that crashed. Currently only works if the bugreport was filed against one of the products listed in program-map.txt (see comment 2). Not sure if this is right thing to do, but the check can always be removed later.
Just one more patch needed to make the exitcode 0 (otherwise procmail forwards the mail to bugmater).
Created attachment 46617 [details] [review] Halloween: Allow exit code to be 0 for reject-program-map.txt Also adds some warnings to reject-program-map.txt. If the exit code is zero the bugreport isn't forwarded to bugmaster. This can be controlled by the filename. If the filename starts with '-', the exit code will be 2 (forwarded), otherwise it is '0'.
This was fixed a while ago.