After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 304127 - Halloween and bug-buddy-import crashed program magic
Halloween and bug-buddy-import crashed program magic
Status: RESOLVED FIXED
Product: bugzilla.gnome.org
Classification: Infrastructure
Component: [obsolete] bug-buddy parsing
unspecified
Other All
: Normal normal
: ---
Assigned To: Bugzilla Maintainers
Bugzilla Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-05-13 22:43 UTC by Olav Vitters
Modified: 2005-06-03 19:40 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for bug-buddy-import (1.34 KB, patch)
2005-05-13 22:44 UTC, Olav Vitters
committed Details | Review
Halloween: bugzilla.gnome.org/program-map.txt (1.28 KB, patch)
2005-05-13 23:09 UTC, Olav Vitters
committed Details | Review
Halloween: Sunrise.pm: Allow bugreports to be moved (4.21 KB, patch)
2005-05-13 23:17 UTC, Olav Vitters
committed Details | Review
Halloween: submit.pl (557 bytes, patch)
2005-05-14 07:29 UTC, Olav Vitters
committed Details | Review
Halloween: bugzilla.gnome.org/reject-program-list.txt (710 bytes, text/plain)
2005-05-17 19:37 UTC, Olav Vitters
  Details
Halloween: reject-openoffice.txt (294 bytes, text/plain)
2005-05-17 19:37 UTC, Olav Vitters
  Details
Halloween: Allow rejecting bugreports based upon crashed program (2.44 KB, patch)
2005-05-17 19:42 UTC, Olav Vitters
committed Details | Review
Halloween: Allow exit code to be 0 for reject-program-map.txt (2.58 KB, patch)
2005-05-18 18:51 UTC, Olav Vitters
committed Details | Review

Description Olav Vitters 2005-05-13 22:43:39 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.
Comment 1 Olav Vitters 2005-05-13 22:44:57 UTC
Created attachment 46416 [details] [review]
Patch for bug-buddy-import
Comment 2 Olav Vitters 2005-05-13 23:09:20 UTC
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.
Comment 3 Olav Vitters 2005-05-13 23:17:04 UTC
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.
Comment 4 Olav Vitters 2005-05-14 07:29:41 UTC
Created attachment 46422 [details] [review]
Halloween: submit.pl

submit.pl is started by procmail. It should read the program-map.txt.
Comment 5 Olav Vitters 2005-05-17 19:37:11 UTC
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.
Comment 6 Olav Vitters 2005-05-17 19:37:58 UTC
Created attachment 46563 [details]
Halloween: reject-openoffice.txt

Error message for OpenOffice bugs.
Comment 7 Olav Vitters 2005-05-17 19:42:20 UTC
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.
Comment 8 Olav Vitters 2005-05-18 15:31:59 UTC
Just one more patch needed to make the exitcode 0 (otherwise procmail forwards
the mail to bugmater).
Comment 9 Olav Vitters 2005-05-18 18:51:34 UTC
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'.
Comment 10 Olav Vitters 2005-06-03 19:40:24 UTC
This was fixed a while ago.