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