From: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
To: Arkadiusz Hiler <arkadiusz.hiler@intel.com>,
Chris Wilson <chris@chris-wilson.co.uk>
Cc: igt-dev@lists.freedesktop.org, intel-gfx@lists.freedesktop.org
Subject: Re: [igt-dev] [Intel-gfx] [ANNOUNCEMENT] Documenting tests with igt_describe()
Date: Tue, 19 Nov 2019 14:37:17 +0200 [thread overview]
Message-ID: <59485e6b-e06f-29c7-14d4-30de572e9022@intel.com> (raw)
In-Reply-To: <20191108090405.yes2ktbqngt3vtlj@ahiler-desk1.fi.intel.com>
On 08/11/2019 11:04, Arkadiusz Hiler wrote:
> On Thu, Nov 07, 2019 at 09:09:34PM +0000, Chris Wilson wrote:
>> Quoting Arkadiusz Hiler (2019-11-07 17:38:20)
>>> We don't want you to translate C into English, we want you to provide a bit of
>>> that extra information that you would have put in the comments anyway.
>> The comments should exist and are _inline_ with the code.
> And I encourage doing so. Detailed comments what this particular
> non-obvious chunk of code is doing are always welcome.
>
>> In all the examples of igt_describe() I have seen, it is nowhere near
>> the code so is useless; the information conveyed does not assist
>> anyone in diagnosing or debugging the problem, so I yet to understand
>> how it helps.
> They are supposed to document not the implementation but what is the
> grand idea behind a given subtest, so they are on a subtest level (or a
> group of subtests), which is our basic testing unit - this is what fails
> in CI, this is what you execute locally to reproduce the issue.
>
> Can you truly debug an issue or understand what the failure means
> without knowing what the test is supposed to prove?
>
> A lot of people here have struggled with this and often it takes a lot
> of time and requires advanced archeology with `git blame` hoping that
> there is at least one detailed enough commit message in there.
>
> If not then talking to people and relying on our tribal knowledge is
> required.
>
> As I have mentioned - getting the bigger picture from implementation
> details is hard. I get that you are not affected by this, but please do
> not deny the others.
I kind of agree with Chris that I don't find that additional macro
useful from the point of view of reading a particular test.
A comment above the test function seems more appropriate, at least you
don't have to look at 2 different places to find out about a particular
test.
Unless there is some untold goal here, like producing some kind of
report in an automated way.
-Lionel
>
>> What is more useful, a link to the kernel coverage of the test and
>> link to the test source code, or waffle?
>> -Chris
> Those things are not exclusive. Coverage is extremely useful metric,
> source code is where the action happens but some higher-level
> explanations and waffles can coexist peacefully and make many lives much
> more pleasant.
>
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2019-11-19 12:37 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-07 17:38 [igt-dev] [ANNOUNCEMENT] Documenting tests with igt_describe() Arkadiusz Hiler
2019-11-07 21:09 ` [igt-dev] [Intel-gfx] " Chris Wilson
2019-11-08 9:04 ` Arkadiusz Hiler
2019-11-19 12:37 ` Lionel Landwerlin [this message]
2019-11-19 12:55 ` Petri Latvala
2019-11-19 13:02 ` Arkadiusz Hiler
2019-11-19 13:18 ` Lionel Landwerlin
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=59485e6b-e06f-29c7-14d4-30de572e9022@intel.com \
--to=lionel.g.landwerlin@intel.com \
--cc=arkadiusz.hiler@intel.com \
--cc=chris@chris-wilson.co.uk \
--cc=igt-dev@lists.freedesktop.org \
--cc=intel-gfx@lists.freedesktop.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