update_bug should use review owner instead of latest commiter

Bug #1011705 reported by Monty Taylor on 2012-06-11
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
Confirmed
Low
Ricardo Carrillo Cruz

Bug Description

On 06/08/2012 06:23 PM, Brian Waldon wrote:
> I'm of the opinion that whatever is calling update_bug.py (I forget what repo its in) should be giving it the review owner rather than the last review committer as its argument. Agree?

Also:

James Blair wrote:
zuul/lib/gerrit.py wants to be an independent gerrit API library in
Python but I haven't split it out yet. Depending on when this gets
implemented for update_bug, you may want to use it or temporarily copy
it along with update_bug. It should handle some of the boilerplate
around querying gerrit for information about the change.

Monty Taylor (mordred) on 2012-06-11
Changed in openstack-ci:
status: New → Triaged
importance: Undecided → Medium
Bhuvan Arumugam (bhuvan) wrote :

The script is in openstack-ci-puppet.

barumuga@lexpad:~/projects/openstack-ci-puppet$ find . -name update_bug.py
./modules/gerrit/files/scripts/update_bug.py

This is called from a gerrit hook. The hook doesn't seem to be stored in git, yet. We should fix the hook to pass review-owner to this script.

Thierry Carrez (ttx) on 2012-08-06
tags: added: update-bug
removed: gerrit
Monty Taylor (mordred) on 2012-09-24
Changed in openstack-ci:
milestone: folsom → grizzly
Thierry Carrez (ttx) on 2012-10-12
tags: added: updatebug
removed: update-bug
Thierry Carrez (ttx) wrote :

The current hook doesn't get enough information to use the review owner.

Long-term plan is to rewrite updatebug into a gerrit streamevents daemon, which would apparently provide us enough information.

Changed in openstack-ci:
assignee: Thierry Carrez (ttx) → nobody
Monty Taylor (mordred) on 2013-02-16
Changed in openstack-ci:
milestone: grizzly → none
Clark Boylan (cboylan) on 2013-10-22
tags: added: low-hanging-fruit
Changed in openstack-ci:
importance: Medium → Low
Khai Do (zaro0508) on 2014-03-11
Changed in openstack-ci:
assignee: nobody → Khai Do (zaro0508)
Khai Do (zaro0508) wrote :

Currently the update_bug script is in jeepyb project. It gets called from the following config scripts:
 - http://git.openstack.org/cgit/openstack-infra/config/tree/modules/openstack_project/files/gerrit/change-merged
 - http://git.openstack.org/cgit/openstack-infra/config/tree/modules/openstack_project/templates/gerrit_patchset-created.erb

Thierry is correct, Gerrit does not provide info about the change owner in the hooks for us to pass to the update_bug script -> https://gerrit-review.googlesource.com/Documentation/config-hooks.html

An upstream bug has been created to add change owner info to the Gerri -> hooks: https://code.google.com/p/gerrit/issues/detail?id=2596

Changed in openstack-ci:
status: Triaged → Confirmed
Khai Do (zaro0508) wrote :

upstream change to add change owner to gerrit hooks: https://gerrit-review.googlesource.com/#/c/56252

Changed in openstack-ci:
assignee: Khai Do (zaro0508) → Ricardo Carrillo Cruz (rcarrillocruz)
Khai Do (zaro0508) wrote :

change 56252 has been merged and gerrit with that change has been updated on review-dev.o.o

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.