RFE: Preference to enable include of full commit diff in gerrit email notifications

Bug #955846 reported by Daniel Berrange
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
OpenStack Core Infrastructure
Fix Released
Wishlist
Khai Do

Bug Description

When someone submits a patch for review, gerrit is nice enough to email people, but the email only contains misc metadata about the patch. Often it is not clear from the commit message whether the patch is something I should take a closer look at. Switching from email over to the web UI to skim the patch is not a very efficient workflow. I would prefer to be able to see the full commit diff in the initial email alert, so I can very quickly see if the code is worth taking a closer look at. Only then would I go to gerrit for a detailed review.

I can understand some people would not want have their email "bloated" with patches, so I imagine some email notification preference in gerrit would be required to turn patch diff inclusion on/off. Oh, and the diff should be inline to the mail email body, not an attachment.

Tags: gerrit
James E. Blair (corvus)
Changed in openstack-ci:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Chris Wright (chrisw-x) wrote :

This appears to be implemented in upstream gerrit:

4a80e99 Add unified diff to newchange mail template.
02aacbc sendemail.includeDiff: Enable $email.UnifiedDiff in NewChange.vm

I second the notion that this would be useful (and more useful if the email could then be replied to as mentioned in https://bugs.launchpad.net/openstack-ci/+bug/861722).

Revision history for this message
James E. Blair (corvus) wrote :

Then we should get this when we upgrade to 2.6

Changed in openstack-ci:
milestone: none → havana
Khai Do (zaro0508)
Changed in openstack-ci:
assignee: nobody → Khai Do (zaro0508)
Revision history for this message
Khai Do (zaro0508) wrote :

We have upgraded to gerrit 2.8 so now diffs are in the email. The amount of the diff that gets sent in email is configurable with "sendemail.includeDiff" gerrit setting, https://review.openstack.org/Documentation/config-gerrit.html

I'm not sure if we've gotten consensus on what to set it to though.

Changed in openstack-ci:
assignee: Khai Do (zaro0508) → nobody
Khai Do (zaro0508)
tags: added: gerrit
Revision history for this message
Khai Do (zaro0508) wrote :

This is fixed. The default setting in gerrit 2.8 is to email inline comments. We can set to full diffs if there's consensus. I will close out this issue. Please come to the openstack-infra meeting to discuss possible changes to this setting.

Changed in openstack-ci:
assignee: nobody → Khai Do (zaro0508)
status: Triaged → 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.