Gerrit does not emit events on draft publication

Bug #1255166 reported by Pablo Andres Fuente
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
Fix Released
Medium
Khai Do

Bug Description

If a review is submitted using the -D option, after you click on the Publish button, Jenkins don't start automatically the check process.

As an example: https://review.openstack.org/#/c/58021/

Tags: gerrit
Jeremy Stanley (fungi)
Changed in openstack-ci:
status: New → Fix Committed
importance: Undecided → Medium
tags: added: gerrit
summary: - Jenkins check don't run automatically when the review is published
+ Gerrit does not emit events on draft publication
Revision history for this message
Jeremy Stanley (fungi) wrote :

Gerrit 2.4, running on review.openstack.org, does not emit events for draft publication, so there is nothing for Zuul to act on. Later Gerrit releases (which we eventually hope to run) have added an event to the stream for this, thus the "fix committed" status... we won't be backporting this fix but we do eventually hope to upgrade once we can reach upstream feature parity with our current fork. There are two workarounds:

1. (preferred) Do not use drafts. On a public code review system for free software, there is little benefit to Gerrit's "draft" feature. Drafts are not actually private, so if something is not ready for review mark it "work in progress" instead.

2. (you used the draft feature anyway) Either push a new patchset such as a trivial rebase, or leave a review comment which says only "recheck no bug" and nothing else. Either of these actions should cause Zuul to see an event which will trigger check tests.

Khai Do (zaro0508)
Changed in openstack-ci:
assignee: nobody → Khai Do (zaro0508)
Revision history for this message
Khai Do (zaro0508) wrote :
Khai Do (zaro0508)
Changed in openstack-ci:
status: Fix Committed → In Progress
Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to config (master)

Fix proposed to branch: master
Review: https://review.openstack.org/92158

Revision history for this message
Openstack Gerrit (openstack-gerrit) wrote : Fix proposed to zuul (master)

Fix proposed to branch: master
Review: https://review.openstack.org/92268

Revision history for this message
Khai Do (zaro0508) wrote :

Will not fix this issue. Openstack has decided to disable drafts in gerrit.. http://lists.openstack.org/pipermail/openstack-dev/2014-May/035563.html

Changed in openstack-ci:
status: In Progress → Invalid
assignee: Khai Do (zaro0508) → nobody
Changed in openstack-ci:
assignee: nobody → Khai Do (zaro0508)
status: Invalid → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to zuul (master)

Reviewed: https://review.openstack.org/92268
Committed: https://git.openstack.org/cgit/openstack-infra/zuul/commit/?id=dcc53b156025525c1d371400d037db4a62b5cde4
Submitter: Jenkins
Branch: master

commit dcc53b156025525c1d371400d037db4a62b5cde4
Author: Khai Do <email address hidden>
Date: Mon May 5 18:08:22 2014 -0700

    add support for draft-published event

    Gerrit 2.4 did not provide a stream event for draft patchsets therefore it was not
    supported in zuul either. We've just upgraded to Gerrit 2.8 which does provide a
    new draft-published stream event. This change will make zuul aware of the draft-published
    event.

    Change-Id: Ica363b4672cfce375d64463636d84e92c2949fd6
    Partial-Bug: #1255166

Revision history for this message
Khai Do (zaro0508) wrote :

zuul now supports detection of draft changes with change https://review.openstack.org/#/c/92268

Changed in openstack-ci:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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