Excuse the top posting.

You don't need to strip the HTML. Change the extension to whatever.log and
it's already there in unmangled text.
On 2 Nov 2014 01:10, "Ian Stakenvicius" <a...@gentoo.org> wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> On 01/11/14 03:53 PM, Pacho Ramos wrote:
> > El sáb, 01-11-2014 a las 14:54 -0400, Ian Stakenvicius escribió:
> >> On 31/10/14 10:37 PM, Ian Stakenvicius wrote:
> >>> Sorry for top posting.  I volunteer to write something to get
> >>> the logs attached to bugs.  I'll do it next week. Whether it
> >>> be something the tinderbox can run or something separate that
> >>> will use pybugz to find bugs and then attach whatever logs are
> >>> pointed to by URLs, etc, I'll figure it out.
> >>>
> >>
> >> OK, i've cobbled something together that looks like it'll work.
> >> I'll be putting this thing on a cronjob on one of my systems, and
> >> hopefully it'll be able to keep up with Diego's tinderbox runs
> >> and bug filing with as little delay as possible.  I've already
> >> started running it on all bugs filed by Diego after October
> >> 20th.
> >>
> >> If anybody sees any issues with the attached build.log's, please
> >> let me know by adding the bug with the issue to a tracker I made
> >> for this purpose, bug 527870
> >>
> >> Thanks, Ian
> >>
> >
> > At least for the bugs I have read, it looks to work nice. Thanks a
> > lot :D
> >
> > Is the script placed somewhere? (for learning purposes :))
> >
> > Thanks
> >
> >
>
>
> Not at the moment ; I'm going to want to do a fair bit of cleanup
> before i let anyone else's eyes on it.. :)
>
> It's just a bash script, though -- i use 'pybugz search' to get a list
> of the bugs Diego's filed (using --offset and --limit to restrict the
> list returned), get the content of each one, and if it has no
> attachments but has a URL with 'https://tinderboxlogs' in the comment,
> then i wget the URL to a temp file, strip the HTML out, and attach it
> (compressing if necessary to save space) to the bug with 'pybugz attach'.
>
> Add in a couple of files that lets me keep track of the current search
> offset i should be using as well as the bug#'s the script has
> processed and skipped, and that's about it.
>
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2
>
> iF4EAREIAAYFAlRVhG8ACgkQ2ugaI38ACPBRIAD+J0eZvjhRBcQ2KfxWKs3AozBL
> dhCZQ+sUCwtIb5dpemgA/RiwAabfqsG41o8CsitjIbzz/Q2MBZC4r/3q/3rkgP4H
> =LHOX
> -----END PGP SIGNATURE-----
>
>

Reply via email to