Summary: | automatic bug assigning | ||
---|---|---|---|
Product: | Gentoo Infrastructure | Reporter: | Sebastian Luther (few) <SebastianLuther> |
Component: | Bugzilla | Assignee: | Bugzilla Admins <bugzilla> |
Status: | RESOLVED NEEDINFO | ||
Severity: | normal | CC: | djc, jer, jlec, pchrist, vapier |
Priority: | High | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: |
bw-script v1
bw-script v2 bw-script v3 |
Description
Sebastian Luther (few)
2009-10-06 15:00:10 UTC
Created attachment 206250 [details]
bw-script v1
(In reply to comment #0) > The script tries to create too much spam. As you might have guessed, the opposite is the case. :) The scripts gets all it's information from $PORTDIR (using equery meta and portage). So make sure you synced recently. er... Created attachment 206260 [details]
bw-script v2
support for --help added
Created attachment 206286 [details]
bw-script v3
* show packages found in the summary for bugs it would assign
* show word <-> package matches if --debug is enabled
(In reply to comment #6) > Created an attachment (id=206286) [details] > bw-script v3 > > * show packages found in the summary for bugs it would assign > * show word <-> package matches if --debug is enabled > $ bw-script.py bugs fetched: 113 ---------------- 281945 apache2 init.d script fails to start during normal boot but works afterwards not done: A @g.o person or myself commented on the bug. ---------------- 283108 mount invokes oom-killer while mount the dvd drive sometimes not done: A @g.o person or myself commented on the bug. ---------------- Traceback (most recent call last): File "/data/scripts/bw-script.py", line 439, in <module> main() File "/data/scripts/bw-script.py", line 288, in main cpv_list, pv_list = get_packages_from_summary(summary, options) File "/data/scripts/bw-script.py", line 137, in get_packages_from_summary new_pkg = get_pv_from_word(word) File "/data/scripts/bw-script.py", line 75, in get_pv_from_word return portage.pkgsplit(pkgs[0])[0] TypeError: 'NoneType' object is unsubscriptable Can't reproduce. Is this bug 285511? Test with ./bw-script -s "<bug-summary>". Works here with portage-{2.1.6.13, 2.2_rc42, 2.2_rc44}. jlec told me on irc that he can't reproduce the bug anymore. Here is an overview of the current features. bw-script as attached to bug 287911 as v3 Features: * Doesn't touch anything unless --do-it is given on the command line. * Detection and resolution of identical duplicates (mostly produced by refreshing the browser window). * Tries to detect and ignore overlay bugs (as they need to be assigned to the overlay maintainer and not the package maintainer). * Handles bug only if they are older than 30 minutes (to give the reporter and others time to add stuff). * Ignores bugs that have been touched by its own email address or by @gentoo.org emails. * Parses the summary line to get a list of packages. Uses only cat/pkg occurrences if present. Otherwise it tries to find package names. It uses a substitute and a filter list to get more correct matches and to prevent false positives (like "less"). * Uses gentoolkit.equery.meta facility to get the assignees for packages. Those it relies on an uptodate portage tree. * Uses a heuristic to decide if a bug contains enough information to get assigned. It assigns if it find either of: emerge --info, an attachment, guesses that it is a stable, keyword or version bump request * Adds a comment to every bug it assignees. See bug 287895. TODO: * Add a heuristic to detect if a bug might be a duplicate of some other bug and don't assign in this case. <personal opinion> I think people should write whatever scripts they want to make this better. Run it against bugs. If bugs falls over, we will block it and you can come chat with us about how to make bugs not fall over. This is nominally our policy today; and it seems to have worked well. </personal opinion> I'm not sure what the request is here. I think mgorny wrote some JS to do something like this (https://github.com/mgorny/bug-assign-user-js) which users can hoist into their browser to use. If developers want to author scripts against the bugzilla interface, please do so. If we eventually build a working script and we want infra to host such a script, or setup a service account for bugzilla, please open a new bug. -A |