All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tvrtko Ursulin <tvrtko.ursulin@linux.intel.com>
To: Petri Latvala <petri.latvala@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] tests: Avoid the name "all"
Date: Thu, 28 Jul 2022 12:09:10 +0100	[thread overview]
Message-ID: <30633900-ae9f-8eb0-3d87-668d57ac055d@linux.intel.com> (raw)
In-Reply-To: <YuJpIM9gb0lgSi+2@platvala-desk.ger.corp.intel.com>


On 28/07/2022 11:46, Petri Latvala wrote:
> On Tue, Jul 26, 2022 at 10:01:32AM +0100, Tvrtko Ursulin wrote:
>>
>> On 26/07/2022 08:28, Petri Latvala wrote:
>>> If using a subtest or a dynamic subtest name "all", the piglit format
>>> name will contain the string "@all". When filing bugs for test
>>> failures, one needs extra care not to accidentally ping every
>>> developer on gitlab.
>>
>> Three questions:
>>
>> 1)
>> What if someone adds a subtest called all tomorrow or next year?
> 
> You're saying it should be a build-time error? Can be done.

Asking suggestive questions to start with..

>> 2)
>> Are there other keywords with unintended side-effects?
> 
> Usernames and group names. I hope no one makes a subtest "drm"...
> 
>>
>> 3)
>> Is there a component sitting between the IGT output and putting it into
>> GitLab which would be ideally placed to sanitize and do that reliably and
>> with less maintenance effort?
> 
> Not really. In this particular instance the @all mention was in the
> bug title, which is hand crafted with a human-followed naming
> convention.

..because I can think of various (flawed) solutions, but the only 
correct one in my view is to do it at the layer you say does not exist - 
the human layer inputting data to GitLab. Oh well, scratch a future 
proof low-maintenance option in that case.

Regards,

Tvrtko

P.S. However clunky it may be - could add some asserts to library code 
to at least serve as early warning against 'all' and 'drm'? Build or 
runtime is fine, as long as it notifies before the test becomes part of CI.

P.P.S In the bug title really? Markup/mentions are allowed in bug 
titles? That's funny.

  reply	other threads:[~2022-07-28 11:09 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-26  7:28 [igt-dev] [PATCH i-g-t] tests: Avoid the name "all" Petri Latvala
2022-07-26  8:07 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2022-07-26  9:01 ` [igt-dev] [PATCH i-g-t] " Tvrtko Ursulin
2022-07-28 10:46   ` Petri Latvala
2022-07-28 11:09     ` Tvrtko Ursulin [this message]
2022-07-26  9:59 ` [igt-dev] ✗ Fi.CI.IGT: failure for " Patchwork
2022-12-14 12:24 ` [igt-dev] [PATCH i-g-t] " Kamil Konieczny

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=30633900-ae9f-8eb0-3d87-668d57ac055d@linux.intel.com \
    --to=tvrtko.ursulin@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=petri.latvala@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.