New issue
Advanced search Search tips

Issue 739412 link

Starred by 5 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jul 2017
Cc:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: ----
Type: ----


Previous locations:
gerrit:6642


Sign in to add a comment

Gerrit inserts Change-Id lines in the middle of a multiline Test: field.

Project Member Reported by patricia...@chromium.org, Jul 5 2017

Issue description

Affected Version: 2.14.1-1850-ga0eef9c93f

What steps will reproduce the problem?
1. Upload a change to PolyGerrit with a multi-line Test: field in the CL description
2. Check the CL description in the Web UI / via `git cl description`.

What is the expected output?
Change-Id: line is inserted after the Test: line (or before, but not in the middle).

What do you see instead?
The CL description has become something like this:
Bug: <Blah>
Test: <First line of test instructions>
Change-Id: <Blah>
<Second line of test instructions>


Please provide any additional information below.

Example: https://chromium-review.googlesource.com/c/558541/2
 

Comment 1 by wyatta@google.com, Jul 5 2017

Components: -PolyGerrit
Removing the PG component since this appears to be related to the commit-msg git hook.

Comment 2 by logan@google.com, Jul 5 2017

Labels: Proj-Gerrit-Migration

Comment 3 by logan@google.com, Jul 5 2017

Project: chromium
Moved issue gerrit:6642 to now be  issue chromium:739412 .

Comment 4 by logan@google.com, Jul 5 2017

Labels: -Proj=Gerrit-Migration Proj-Gerrit-Migration
Cc: aga...@chromium.org
Status: WontFix (was: New)
There is no such thing as a multiline footer. A footer that looks like

Bug: NNN
Test: This is a really long line which goes onto
the next line
Change-Id: Ideadbeef

is not a valid footer. "Test: " designators that are longer than one line should be described in prose in the body of the commit message.

Comment 6 by wyatta@google.com, Jul 10 2017

 Issue gerrit:6679  has been merged into this issue.

Comment 7 by mgiuca@chromium.org, Jul 11 2017

Is there still (or was there ever) any formal usage of "Test:" (or "TEST=") by tooling?

The advice that "if you need more than 1 line, it should be in prose and not prefixed by Test:" would break any formal tooling that looks for "Test:" (e.g., by QA looking to automatically index any manual test instructions). Therefore:

a) If "Test:" is used formally to look for manual tests, this advice is bad and we should be allowed to split a "Test:" over multiple lines. OR,
b) If "Test:" is not used formally at all, then I think we should just drop it as a concept and always use prose ("Test this by verifying that ...").

Either way, it seems weird to use a formal syntax or not, depending on how long the sentence is.

(Note: I've found that there isn't a good understanding of what "Test" means; I always thought it was for specifying manual tests to verify that a change has worked, but I often see people write "Test: Run the test suite" or other things that should be implied by our waterfall policy.)

Comment 8 by aga...@chromium.org, Jul 11 2017

I do not believe there is any automated tooling which consumes "TEST=" or "Test:" tags. There used to be support for parsing it out of the commit message in PRESUBMIT (although that support only worked for single-line tags as well) but no PRESUBMIT files actually called that code, so I removed it a few months ago.

We should leave TEST= in the dust as a relic of the past when we didn't have good CI coverage.

Comment 9 by mgiuca@chromium.org, Jul 12 2017

#8 +1

Can we update any documentation that suggests we do this, and send a PSA to chromium-dev? Who do we have to check with to do this?
 Issue gerrit:6946  has been merged into this issue.

Comment 11 by wyatta@google.com, Feb 12 2018

 Issue gerrit:8300  has been merged into this issue.

Sign in to add a comment