14 Commits

Author SHA1 Message Date
Christian Berendt
e3e93c7f90 except ImportError when importing cPickle on Python3
cPickle is not available with Python3. With Python3 the standard
version should be imported.

Change-Id: I0c17aaeeebceff1c25950bbe59cedc62f31b13e7
2014-06-06 12:52:16 +02:00
Joe Gordon
1686cbb009 Make "Won't Fix" a closed status in recheckwatch
When checking if a bug is closed we go through all of its affecting
project statuses, and if a status is Won't Fix the bug will stay on the
recheckwatch list.  But if a bug is marked as won't fix its safe to
assume the root cause of the issue is fixed.  Otherwise the bug will
happen again and someone will set the status back to open.

For example: https://bugs.launchpad.net/nova/+bug/1186867

Change-Id: Iaddc4990062d5a80e188f10c14e91625b7605165
2013-09-20 14:22:09 -07:00
Joe Gordon
1ee0025c0b Delete closed bugs after 5 days in recheckwatch
Instead of leaving closed bugs around for 30 days, remove them after 5
days.  If a closed bug hasn't reoccurred in 5 days there is a good chance
it has been fixed correctly.  The number of days to keep around a closed
bug is set in by closed_age in the config file.

Change-Id: I5d136173ca14a8f9e77a44e29e9499c94a417cd3
2013-09-11 18:05:48 -07:00
Joe Gordon
151ade5298 Update old bug format in recheckwatch
When importing a pickled version of the old bug objects, they first need
to be converted to contain the duplicate_of attribute.

Change-Id: I59dbc27996d579aa7adc644c88c934236edd8623
2013-09-11 17:14:25 -07:00
Joe Gordon
b563b4a514 if duplicate bug not in recheckwatch, add it in
I19b25bb9595330393e664e9499204083b18ab5c9 added support delete duplicate
bugs, but it didn't make sure the duplicate bug was already tracked in
recheckwatch.

Change-Id: I46bd034990e4470fcaf072da45ca55886ad3ba7d
2013-09-11 10:57:52 -07:00
Joe Gordon
608e64e8b8 Merge duplicate bugs in recheckwatch
When a bug is marked as a duplicate move all the hits to the
duplicate_of bug and delete the duplicate bug.

This change should make it easier to keep recheckwatch easier to read
by removing duplicate bugs.  The fewer bugs on recheck the easier it is
for a patch author to figure out which one fits his issue.

Note: unmarking a bug as a duplicate will not undo this

Change-Id: I19b25bb9595330393e664e9499204083b18ab5c9
2013-09-09 21:06:06 -07:00
Sean Dague
8d8834ae7a increase granularity of time to be < 1 day.
we were only sorting the list based on the integer day when things
were happening, which just caused confusion. Make this a more strict
time sort.

Change-Id: Iccd228069707368c7da8d060486567d4b389e9b1
Reviewed-on: https://review.openstack.org/23587
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-03-07 03:41:55 +00:00
James E. Blair
84310776ae Restart recheckwatch on update.
Change-Id: Ic872e215abcd33256e64b8dd8baaf83555f07172
Reviewed-on: https://review.openstack.org/23593
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2013-03-06 19:18:26 +00:00
Sean Dague
30a62df56f change recheck to be age weighted
the number of rechecks against an item was artificially keeping things
at the top of the list well after the bug wasn't seen any more.
Change weighting to focus on age.

Also update the lp information on each bug deemed new enough so that
closed bugs are pushed further down the stack. In the future it would
be interesting to also weight based on importance.

Change-Id: Iaf76901725ddd89d3cea704c85da0d708c4b59b1
Reviewed-on: https://review.openstack.org/23324
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: James E. Blair <corvus@inaugust.com>
Reviewed-by: James E. Blair <corvus@inaugust.com>
Tested-by: Jenkins
2013-03-04 20:10:41 +00:00
Sean Dague
18fd3f8d27 add non-daemon mode for development
I found in trying to add features, I really needed a non daemon
mode to do this efficiently. It shouldn't hurt to have it in the
main program.

Change-Id: Ie8c02a7b6f834436aa5749097e3d9f6dbb33107b
Reviewed-on: https://review.openstack.org/23340
Reviewed-by: James E. Blair <corvus@inaugust.com>
Reviewed-by: Monty Taylor <mordred@inaugust.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2013-03-04 20:10:13 +00:00
James E. Blair
d74e96877c Fix recheckwatch bug expiration.
Typo.

Change-Id: Ife995e4b3cb4c89b16df6dc7367abbd4057b3f45
Reviewed-on: https://review.openstack.org/20169
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2013-01-21 21:20:06 +00:00
James E. Blair
6e54fb05ab Fix recheckwatch sorting.
It was reversed.

And subject to a theroretical zero-div bug, but unlikely due to
timing.

Change-Id: I1e9653889033cc77075a4c806535a71e2ef456d6
Reviewed-on: https://review.openstack.org/19959
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Approved: Clark Boylan <clark.boylan@gmail.com>
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Tested-by: Jenkins
2013-01-18 19:35:31 +00:00
James E. Blair
08b0cb94dc Fix recheckwatch conf file.
Apparently we have two standards for [gerrit] sections.

Change-Id: Id6c3e2afa0bd294a60c64d0f23768d748ccf9491
Reviewed-on: https://review.openstack.org/18452
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2012-12-20 01:05:36 +00:00
James E. Blair
6bf249ee4b Add recheckwatch.
* New puppet class to install the script, init script, and set up
  user and directories.
* Add class to zuul server.
* Install openstack themed scoreboard template.
* Add URL to zuul.openstack.org/rechecks.html.

Change-Id: I9046cd21923aae40107f0d558080c44f65481fd7
Reviewed-on: https://review.openstack.org/18442
Reviewed-by: Clark Boylan <clark.boylan@gmail.com>
Approved: Jeremy Stanley <fungi@yuggoth.org>
Reviewed-by: Jeremy Stanley <fungi@yuggoth.org>
Tested-by: Jenkins
2012-12-20 00:27:37 +00:00