Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 193651 - Generate bugs for failed distfile downloads
Summary: Generate bugs for failed distfile downloads
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Infrastructure
Classification: Unclassified
Component: Other (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Bugzilla Admins
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-09-24 15:59 UTC by Robert Buchholz (RETIRED)
Modified: 2013-01-07 16:05 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
gen-bug.py (gen-bug.py,3.69 KB, text/plain)
2007-09-24 16:01 UTC, Robert Buchholz (RETIRED)
Details
bugcache (bugcache,496 bytes, text/plain)
2007-09-24 16:02 UTC, Robert Buchholz (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Buchholz (RETIRED) gentoo-dev 2007-09-24 15:59:58 UTC
Based on Zac Medico's script that generates the report at [1], I created a script to file bugs for these failures.

Given the failure.log and a filename for the bug cache, it will create a bug for each new entry (if one ebuild fails with several files, it will only be one bug). If a bug already exists, but is closed it will reopen the bug, mentioning the files missing in the latest run. It will not touch open bugs.

To set this baby up, we need to
 1) Review the script, as I'm not the Python guru Zac is.
 2) Install PyBugz on the machine generating the failure.log
 3) Set up an alias @gentoo.org (add me to it :-)
 4) Set up a BugZilla account for that alias
    (or rename the account from the example bugs)
 5) Enter the email / password in the script
 6) Cron the script to run after an update of the failure.log

Examples? Look at bug 193639, bug 193638, bug 193635.

This would work great with the auto-assigning code robbat2 was creating.

[1] http://dev.gentoo.org/~zmedico/infra/distfiles/failure.xml
Comment 1 Robert Buchholz (RETIRED) gentoo-dev 2007-09-24 16:01:39 UTC
Created attachment 131783 [details]
gen-bug.py
Comment 2 Robert Buchholz (RETIRED) gentoo-dev 2007-09-24 16:02:35 UTC
Created attachment 131784 [details]
bugcache

Current bug cache (in case you set this up, to avoid dupes)
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2010-08-03 23:00:22 UTC
This is more of a project for the bugzilla team, or a random user with EDITBUGS privs, IMO.
Comment 4 Christian Ruppert (idl0r) gentoo-dev 2011-05-04 23:56:08 UTC
@QA: If you're interested please take this bug, *might* be a good idea for qa-scripts/qa-reports. Otherwise I'll close it as WONT/CANTFIX because it has nothing to do with Bugzilla itself although I think it may be useful.
Comment 5 Alec Warner (RETIRED) archtester gentoo-dev Security 2012-12-29 23:55:45 UTC
Feel free to do this yourself, if you need an account to open bugs with, file a bug request for one and we will make you a role account for failed distfiles fetches.

-A
Comment 6 Dane Smith (RETIRED) gentoo-dev 2013-01-07 16:05:58 UTC
(In reply to comment #4)
> @QA: If you're interested please take this bug, *might* be a good idea for
> qa-scripts/qa-reports. Otherwise I'll close it as WONT/CANTFIX because it
> has nothing to do with Bugzilla itself although I think it may be useful.

I think this is a solid candidate for the qa-scripts/qa-reports setup. I can look into setting it up if no one else wants to.