On Thu, Feb 10, 2022 at 10:51:02AM +0000, Luca Milanesio wrote:
>Release-Notes: new super-duper feature for reviewers
>
aaaaand ... we already have a case which shows why it isn't a very good
idea to make it a footer:
https://gerrit-review.googlesource.com/c/gerrit/+/330203
yep, the line is too long while the content is already pretty minimal.
On 12 Feb 2022, at 09:55, Sven Selberg <sven.s...@axis.com> wrote:On Friday, February 11, 2022 at 4:15:51 PM UTC+1 oswald.bu...@gmx.de wrote:On Thu, Feb 10, 2022 at 10:51:02AM +0000, Luca Milanesio wrote:
>Release-Notes: new super-duper feature for reviewers
>
aaaaand ... we already have a case which shows why it isn't a very good
idea to make it a footer:
https://gerrit-review.googlesource.com/c/gerrit/+/330203
yep, the line is too long while the content is already pretty minimal.Commit message footer is admittedly not the ideal place to keep release-notes, since it'sone-line, but AFAICT that particular line is not close to any technical limitation.
in the qt project, we therefore use a special [ChangeLog] paragraph
instead. our commit template
(https://code.qt.io/cgit/qt/qt5.git/tree/.commit-template) mentions it
and there is a formal policy
(https://quips-qt-io.herokuapp.com/quip-0017-Change-log-creation.html).
our "sanity bot" verifies that it's used appropriately in relation with
footers, etc.
(https://code.qt.io/cgit/qt/qtrepotools.git/tree/git-hooks/sanitize-commit#n471
ff. for the masochists).
of course, "[ChangeLog] Skip" looks stupid, so using a footer for this
case still makes sense.
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/702526e6-7480-4587-bb95-7abda033ad20n%40googlegroups.com.
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
--- You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/YghN/jAAJkV6cTeQ%40ugly.
On Feb 12, 2022, at 5:17 PM, Oswald Buddenhagen <oswald.bu...@gmx.de> wrote:On Sat, Feb 12, 2022 at 07:06:08PM +0000, Luca Milanesio wrote:I will always have to rework and complete them, after the initial extraction from the commit messages.that is indeed our experience at qt, too, as devs tend to be bad at context-switching to the different target audience. also, the raw output tends to be somewhat incoherent even with the best input, as some changes become obsolete, etc. nonetheless, providing better tooling to "upstream" reduces the workload "downstream".
somewhat on a tangent, and probably not too important for a relatively small project like gerrit, but you may find it interesting, or are even aware of relevant tools: https://bugreports.qt.io/browse/QTQAINFRA-933
("need ChangeLog crowdsourcing platform").Thanks for the link to that! I guess it’s not surprising that this is a common problem, but it’s disappointing that no good generic solutions seem to exist. The recent one you point to “reno”, looked good as I read through the design inputs, until I noted it does not support our current dev model of developing bug fixes on stable branches [2]. :-(I think even if this first attempt with the Release-Notes footer ends up just being used to filter out the ’skips’, it will provide good value. We can always iterate and improve.
Dear Gerrit Community of contributors and maintainers,
I am communicating about a change in the submit rules on the Gerrit project on gerrit-review.googlesource.com (see [1] just merged).
What has changed
================
What is changing today is the requirement to merge a change. The author (or co-author) of a change needs to think *IF* and *HOW* the Change needs to be mentioned on the release notes of the forthcoming target release. The Change implemented with [1] is a low-tech solution to this problem requiring change authors to add a footer to the commit message specifying why a change is either not noteworthy or provide a single sentence description or link to mention in release notes.
Example of how a Change's commit message should look like now:
```
Introduce a new super-duper feature for reviewers
Implement a new super-duper feature that helps reviewers
understand what is worth reviewing and how to track the
progress.
Release-Notes: new super-duper feature for reviewers
Change-Id: I1019556e12e2477e82edf7fa63bda917cd011215
```
We intentionally do not create files or directories for release notes to keep the overhead at a minimum and avoid problems resulting from merging branches etc. With the commit message footer mechanism, release managers can use Git/Gerrit to find all new changes not contained in the prior release that don't say 'Release-Notes: skip' and compile the release notes based on that list.
Example of a Change's commit message that isn't worth mentioning in the release notes:
```
Fix a typo in public API javadoc
The term 'behaviour' was following the English spelling
whilst the Gerrit project follows the American spelling
rules.
Release-Notes: skip
Change-Id: I1019556e12e2477e82edf7fa63bda917cd011215
```
What hasn't changed
===================
The extra footer helps the release manager understand *what to include* in the release notes: the detailed description of the feature/modification remains in its repository, under the /pages/site/releases/<version>.md on the home page project [3] and the way to amend it, review and publish stays the same.
You are also encouraged to update the release notes document with more details about the Change introduced. However, that isn't blocking the submission of the Change and can be done later on when the feature is complete.
What do we want to achieve?
==========================
The Gerrit release notes had been created and reviewed too late in the process so far, causing potential delays and potential mistakes and gaps in the initial Gerrit versions. I believe many of you noticed that, and its consequences have caused trouble to many people.
We are making the check on *IF* and *HOW* a change impacts the release notes as part of the code review and approval.
We hope to make all the contributors and maintainers more active in this process and help prevent future mistakes and omissions.
— * —
Thank to everyone for the kind cooperation in making Gerrit releases better, more complete and documented.
Luca.
[1] https://gerrit-review.googlesource.com/c/gerrit/+/328235
[2] https://www.gerritcodereview.com/2022-01-12-esc-minutes.html#delay-in-gerrit-releases-due-to-the-review-of-release-notes
[3] https://gerrit.googlesource.com/homepage/+/refs/heads/master/pages/site/releases/
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en
---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/repo-discuss/385988E0-F7D4-4BA7-8A66-02A6250B03AC%40gmail.com.