From: Dmitry Yu Okunev <dyokunev@ut.mephi.ru>
To: gentoo-dev@lists.gentoo.org
Subject: Re: [gentoo-dev] Referencing bug reports in git (WAS: Re: [gentoo-commits] repo/gentoo:master commit in: sci-libs/opencascade/)
Date: Tue, 11 Aug 2015 11:34:18 +0300 [thread overview]
Message-ID: <55C9B38A.5050404@ut.mephi.ru> (raw)
In-Reply-To: <20150811091258.0c62d448@pomiot>
[-- Attachment #1: Type: text/plain, Size: 4962 bytes --]
On 08/11/2015 10:12 AM, Michał Górny wrote:
> Dnia 2015-08-11, o godz. 09:56:55
> Dmitry Yu Okunev <dyokunev@ut.mephi.ru> napisał(a):
>> On 08/11/2015 12:06 AM, Michał Górny wrote:
>>>>>>>> 3. Too many text, hard to read. Some bugs may refer to a dozen of
>>>>>>>> URLs.
>>>>>>>
>>>>>>> And how is a dozen numbers better?
>>>>>>
>>>>>> Less text, more readable.
>>>>>
>>>>> How is:
>>>>>
>>>>> Bug: 123451, 453445, 344334, 343444
>>>>>
>>>>> more readable than:
>>>>>
>>>>> Bug: https://bugs.gentoo.org/123451
>>>>> Bug: https://bugs.gentoo.org/453445
>>>>> Bug: https://bugs.gentoo.org/344334
>>>>> Bug: https://bugs.gentoo.org/343444
>>>>>
>>>>> Readability is a matter of formatting, not contents.
>>>>
>>>> 1. One line and 35 chars are certainly more readable than four lines
>>>> and 140 chars.
>>>
>>> Character counts are completely irrelevant to readability. Visual space
>>> is. And in this case, exhibit A (also known as wall of digits) is more
>>> likely to get people confused.
>>
>> I think it's just individual preference. No sense to argue this. Just
>> everybody should consider that there exists another position on this
>> question.
>>
>> However I want to add an other argument:
>>
>> 1a. It's easier to parse the "Bug:" header is there only bug IDs
>> (without URLs).
>
> What if there are different bug trackers involved? We sometimes note
> upstream bugs, other distro bugs, pull requests...
For example Gentoo may use "Gentoo-Bug:"/"Bug-Gentoo:" as I mentioned.
Debian uses "Bug-Debian:" for Debian ITS references and "Bug:" for
upstream bugreport references in their patches (debian/patches/*), IIRC.
>> And is there any guarantee that URL format won't be changed in future
>> (that everybody won't be have to rewrite their parsers). I mean not
>> "near future", but "any long future".
>
> I doubt it can change *without* changing the bug tracker software.
> And then, old IDs will no longer be relevant.
Why? Just migrate with saved IDs.
> In fact, since the URLs
> are Bugzilla-specific it will allow us to ensure better compatibility
> if we start numbering bugs from 1 again.
IMHO, it's a really bad idea to do not migrate previous data to the new ITS.
> There's URL and there's URI. Even if URL is no longer valid, it will
> still be a valid URI. It will still allow us to uniquely identify
> the bug report.
Only if you will use Bugzilla or some workarounds to imitate Bugzilla.
It's a lock-in.
>>>> 2. Strings are read from left to right (at least in English), thus
>>>> having most important information last on the line is not
>>>> convenient.
>>>
>>> This is not literature. Keys usually precede values, and namespaces
>>> precede namespaced identifiers.
>>
>> A commit-comment is not a source code. It's an ordinary text (like
>> "literature").
>
> Literature is a long continuous text which you read left-to-right,
> and usually without going back. This is short text which you read
> randomly, possibly going back and forth, and scanning for specific
> details.
Well, ok. But personally I have a habit to read such text left-to-right.
It requires split seconds to recognize this lines similarity but it
requires.
Anyway as I said, I will see much more garbage while looking on the
whole text if you will use URLs instead of pure IDs.
>>>>> As far as I'm aware, URLs are supported much more widely than
>>>>> Gentoo-specific bug numbers. They are uniform and unique by definition.
>>>>> The tools using bug numbers can be easily expanded to extract them from
>>>>> URLs. I don't really see forking cgit to support Gentoo bug numbers, or
>>>>> asking github to provide special rules for our commits.
>>>>
>>>> We should not adjust our ecosystem for closed and proprietary
>>>> solutions like github.
>>>
>>> URLs are not github invention. Localized bug numbers are local Gentoo
>>> non-sense. So should we adjust it to ignore the rest of the world and
>>> expect everyone to create custom hackery just to be able to see a bug
>>> report?
>>
>> You can use header "Gentoo-Bug:" (instead of "Bug:") and explain in
>> documentation ways to parse that.
>
> So you're suggesting it's better to invent a custom format and tell
> people how to handle it, rather than use a commonly-supported format?
What you mean with the "custom format"? I suggest to use comment as a
comment, but not as a documentation about "How to reach Gentoo ITS" in
every comment.
I can agree with another argument:
There should be a possibility to define an upstream bug which format in
turn can be simply unified only by URLs. And it may became harder to
read when neighboring headlines are formatted different ways (one header
— pure IDs, another one — URLs). But _IMHO_, it doesn't outweigh
disadvantages of this approach (with URLs for reference on Gentoo bug).
--
Best regards, Dmitry.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
next prev parent reply other threads:[~2015-08-11 8:34 UTC|newest]
Thread overview: 82+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1439128706.40b3fd64ec9c5d6d94f0f0897740bc77622c24a1.xmw@gentoo>
2015-08-09 14:09 ` [gentoo-dev] Referencing bug reports in git (WAS: Re: [gentoo-commits] repo/gentoo:master commit in: sci-libs/opencascade/) hasufell
2015-08-09 14:18 ` Ian Whyman
2015-08-09 14:26 ` Dirkjan Ochtman
2015-08-09 14:38 ` hasufell
2015-08-09 14:43 ` Dirkjan Ochtman
2015-08-09 14:47 ` hasufell
2015-08-09 14:54 ` Michael Orlitzky
2015-08-09 15:03 ` Sven Vermeulen
2015-08-09 15:06 ` hasufell
2015-08-09 15:19 ` Tobias Klausmann
2015-08-09 15:30 ` hasufell
2015-08-09 15:43 ` Mike Gilbert
2015-08-09 18:49 ` Davide Pesavento
2015-08-09 23:58 ` Daniel Campbell (zlg)
2015-08-10 0:25 ` Alexandre Rostovtsev
2015-08-09 19:56 ` Michał Górny
2015-08-09 21:01 ` hasufell
2015-08-09 21:11 ` Michał Górny
2015-08-09 21:30 ` Rich Freeman
2015-08-10 0:02 ` Daniel Campbell (zlg)
2015-08-10 7:31 ` Andrew Savchenko
2015-08-09 21:44 ` Andrew Savchenko
2015-08-09 22:40 ` Michał Górny
2015-08-09 23:16 ` Andrew Savchenko
2015-08-09 23:46 ` hasufell
2015-08-10 0:05 ` Daniel Campbell (zlg)
2015-08-10 0:10 ` Kent Fredric
2015-08-10 0:51 ` [gentoo-dev] Referencing bug reports in git Ulrich Mueller
2015-08-10 1:02 ` hasufell
2015-08-10 4:29 ` [gentoo-dev] " Ryan Hill
2015-08-10 12:25 ` Duncan
2015-08-10 22:57 ` Gordon Pettey
2015-08-11 1:03 ` Duncan
2015-08-11 0:17 ` Ryan Hill
2015-08-11 1:25 ` Duncan
2015-08-11 8:57 ` Tobias Klausmann
2015-08-11 9:12 ` Kent Fredric
2015-08-11 11:49 ` Rich Freeman
2015-08-11 11:58 ` hasufell
2015-08-12 7:20 ` [gentoo-dev] Bisecting Was: " Duncan
2015-08-12 7:38 ` Jason Zaman
2015-08-12 8:42 ` [gentoo-dev] " Duncan
2015-08-11 14:28 ` [gentoo-dev] Summary line (was: Re: Referencing bug reports in git) Ian Stakenvicius
2015-08-11 14:35 ` Kent Fredric
2015-08-11 15:27 ` [gentoo-dev] Summary line Ian Stakenvicius
2015-08-31 14:53 ` [gentoo-dev] Summary line (was: Re: Referencing bug reports in git) Alec Warner
2015-08-31 17:33 ` Rich Freeman
2015-08-31 18:16 ` [gentoo-dev] Summary line Michael Orlitzky
2015-08-11 14:36 ` hasufell
2015-08-11 14:39 ` Mikle Kolyada
2015-08-10 9:45 ` [gentoo-dev] Referencing bug reports in git Chí-Thanh Christopher Nguyễn
2015-08-10 10:16 ` Ulrich Mueller
2015-08-10 13:19 ` Michał Górny
2015-08-10 14:42 ` hasufell
2015-08-10 18:44 ` Chí-Thanh Christopher Nguyễn
2015-08-10 13:11 ` [gentoo-dev] Referencing bug reports in git (WAS: Re: [gentoo-commits] repo/gentoo:master commit in: sci-libs/opencascade/) Michał Górny
2015-08-10 20:43 ` Andrew Savchenko
2015-08-10 21:06 ` Michał Górny
2015-08-11 6:56 ` Dmitry Yu Okunev
2015-08-11 7:12 ` Michał Górny
2015-08-11 8:34 ` Dmitry Yu Okunev [this message]
2015-08-11 0:52 ` [gentoo-dev] " Ryan Hill
2015-08-10 0:08 ` Ryan Hill
2015-08-12 10:40 ` [gentoo-dev] Re: Referencing bug reports in git hasufell
2015-08-12 15:59 ` Chí-Thanh Christopher Nguyễn
2015-08-12 16:03 ` Michał Górny
2015-08-12 16:25 ` Chí-Thanh Christopher Nguyễn
2015-08-12 16:34 ` Michał Górny
2015-08-12 16:39 ` Ian Stakenvicius
2015-08-13 5:48 ` Ryan Hill
2015-08-13 11:19 ` Ben de Groot
2015-08-13 12:13 ` Rich Freeman
2015-08-14 13:37 ` Aaron W. Swenson
2015-08-18 6:03 ` Ryan Hill
2015-08-14 20:04 ` Andrew Savchenko
2015-08-14 20:17 ` Matthias Maier
2015-08-15 7:17 ` Daniel Campbell (zlg)
2015-08-12 16:15 ` hasufell
2015-08-12 17:38 ` Matt Turner
2015-08-12 17:48 ` Dmitry Yu Okunev
2015-08-12 17:54 ` hasufell
2015-08-13 2:30 ` [gentoo-dev] " Steev Klimaszewski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=55C9B38A.5050404@ut.mephi.ru \
--to=dyokunev@ut.mephi.ru \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox