1 |
Excuse the top posting. |
2 |
|
3 |
You don't need to strip the HTML. Change the extension to whatever.log and |
4 |
it's already there in unmangled text. |
5 |
On 2 Nov 2014 01:10, "Ian Stakenvicius" <axs@g.o> wrote: |
6 |
|
7 |
> -----BEGIN PGP SIGNED MESSAGE----- |
8 |
> Hash: SHA256 |
9 |
> |
10 |
> On 01/11/14 03:53 PM, Pacho Ramos wrote: |
11 |
> > El sáb, 01-11-2014 a las 14:54 -0400, Ian Stakenvicius escribió: |
12 |
> >> On 31/10/14 10:37 PM, Ian Stakenvicius wrote: |
13 |
> >>> Sorry for top posting. I volunteer to write something to get |
14 |
> >>> the logs attached to bugs. I'll do it next week. Whether it |
15 |
> >>> be something the tinderbox can run or something separate that |
16 |
> >>> will use pybugz to find bugs and then attach whatever logs are |
17 |
> >>> pointed to by URLs, etc, I'll figure it out. |
18 |
> >>> |
19 |
> >> |
20 |
> >> OK, i've cobbled something together that looks like it'll work. |
21 |
> >> I'll be putting this thing on a cronjob on one of my systems, and |
22 |
> >> hopefully it'll be able to keep up with Diego's tinderbox runs |
23 |
> >> and bug filing with as little delay as possible. I've already |
24 |
> >> started running it on all bugs filed by Diego after October |
25 |
> >> 20th. |
26 |
> >> |
27 |
> >> If anybody sees any issues with the attached build.log's, please |
28 |
> >> let me know by adding the bug with the issue to a tracker I made |
29 |
> >> for this purpose, bug 527870 |
30 |
> >> |
31 |
> >> Thanks, Ian |
32 |
> >> |
33 |
> > |
34 |
> > At least for the bugs I have read, it looks to work nice. Thanks a |
35 |
> > lot :D |
36 |
> > |
37 |
> > Is the script placed somewhere? (for learning purposes :)) |
38 |
> > |
39 |
> > Thanks |
40 |
> > |
41 |
> > |
42 |
> |
43 |
> |
44 |
> Not at the moment ; I'm going to want to do a fair bit of cleanup |
45 |
> before i let anyone else's eyes on it.. :) |
46 |
> |
47 |
> It's just a bash script, though -- i use 'pybugz search' to get a list |
48 |
> of the bugs Diego's filed (using --offset and --limit to restrict the |
49 |
> list returned), get the content of each one, and if it has no |
50 |
> attachments but has a URL with 'https://tinderboxlogs' in the comment, |
51 |
> then i wget the URL to a temp file, strip the HTML out, and attach it |
52 |
> (compressing if necessary to save space) to the bug with 'pybugz attach'. |
53 |
> |
54 |
> Add in a couple of files that lets me keep track of the current search |
55 |
> offset i should be using as well as the bug#'s the script has |
56 |
> processed and skipped, and that's about it. |
57 |
> |
58 |
> |
59 |
> -----BEGIN PGP SIGNATURE----- |
60 |
> Version: GnuPG v2 |
61 |
> |
62 |
> iF4EAREIAAYFAlRVhG8ACgkQ2ugaI38ACPBRIAD+J0eZvjhRBcQ2KfxWKs3AozBL |
63 |
> dhCZQ+sUCwtIb5dpemgA/RiwAabfqsG41o8CsitjIbzz/Q2MBZC4r/3q/3rkgP4H |
64 |
> =LHOX |
65 |
> -----END PGP SIGNATURE----- |
66 |
> |
67 |
> |