All of lore.kernel.org
 help / color / mirror / Atom feed
From: Petri Latvala <petri.latvala@intel.com>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t] lib/kmod: Stop producing results at all for kernel selftests on taint
Date: Tue, 2 Mar 2021 15:54:58 +0200	[thread overview]
Message-ID: <YD5DsrwQ1ojBlN/S@platvala-desk.ger.corp.intel.com> (raw)
In-Reply-To: <161469174867.16094.11823053173066273735@build.alporthouse.com>

On Tue, Mar 02, 2021 at 01:29:08PM +0000, Chris Wilson wrote:
> Quoting Petri Latvala (2021-03-02 13:23:08)
> > On Tue, Mar 02, 2021 at 01:04:29PM +0000, Chris Wilson wrote:
> > > Quoting Petri Latvala (2021-03-02 12:39:35)
> > > > On Tue, Mar 02, 2021 at 11:48:02AM +0000, Chris Wilson wrote:
> > > > > Quoting Petri Latvala (2021-02-25 08:35:53)
> > > > > > Instead of producing skips for the rest when one selftest taints the
> > > > > > kernel, stop running them altogether. Having the skips produced yields
> > > > > > no value and just makes future improvements (like correctly tagging
> > > > > > tests that cause taints) harder. In effect, this gets us back to the
> > > > > > old setup when tainting made igt_runner immediately kill the test and
> > > > > > similarly made us not get spurious results for the rest of the
> > > > > > selftests.
> > > > > 
> > > > > Skip isn't spurious here. I don't see how this impacts tagging the
> > > > > earlier tests. So the only question for me is whether SKIP or NOTRUN is
> > > > > more applicable. And skip is far more informative when run by hand...
> > > > 
> > > > When run by hand on an already tainted kernel, the first (specified)
> > > > selftest still gets a skip and others don't get executed.
> > > > 
> > > > The immediate value I'll be getting from this is my ongoing work on
> > > > the ugly igt@runner@aborted pseudoresult to instead mark the last
> > > > executed test as 'ABORT' result when igt_runner decides to abort the
> > > > execution (due to a taint). If we have skips, I'd need to do some
> > > > selftest-specific handling to not mark the last executed dynamic
> > > > subtest, but the last non-skipping dynamic subtest.
> > > 
> > > The problem does not seem to be intrinsic to igt_kselftests, as any
> > > dynamic subtest that triggers a taint will then proceed to run the next
> > > igt_dynamic which may pass, fail or skip. The runner may not have a
> > > chance to check for a taint until the end of the subtest. It sounds like
> > > a job for the igt_runner <-> igt channel.
> > 
> > Would also require checking for taint mid-execution...
> 
> Yes, don't we currently check on a timer, but if there was a channel for
> intermediate test results, we would check then as well.

Ah yes a slight confusion on my part. Aborting, in general, is checked
between exec()s. Tainting check is done on any activity.

> > Anyway best practices for dynamic subtests is to never skip, but
> > instead not exist at all. I suppose I could instead mark every single
> > dynamic subtest as abort when abort happens.
> 
> Why is the test itself marked as abort? The run is aborted, the test
> failed.

Marking the test itself helps handling the aborts better, in the bug
analysis sense. Instead of just seeing the text "hey we stopped
everything after this test", you have that test's logs.

So, not only did the test fail, it caused us to abort, is the
sentiment to send with the abort result.


-- 
Petri Latvala
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2021-03-02 13:54 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-25  8:35 [igt-dev] [PATCH i-g-t] lib/kmod: Stop producing results at all for kernel selftests on taint Petri Latvala
2021-02-25  9:42 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2021-02-25 10:56 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
2021-03-03  8:00   ` Petri Latvala
2021-03-04  5:28     ` Vudum, Lakshminarayana
2021-03-02 11:48 ` [igt-dev] [PATCH i-g-t] " Chris Wilson
2021-03-02 12:39   ` Petri Latvala
2021-03-02 13:04     ` Chris Wilson
2021-03-02 13:23       ` Petri Latvala
2021-03-02 13:29         ` Chris Wilson
2021-03-02 13:54           ` Petri Latvala [this message]
2021-03-02 13:42         ` Chris Wilson
2021-03-03  8:01           ` Petri Latvala
2021-03-03 17:01 ` [igt-dev] ✓ Fi.CI.IGT: success for " Patchwork

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=YD5DsrwQ1ojBlN/S@platvala-desk.ger.corp.intel.com \
    --to=petri.latvala@intel.com \
    --cc=chris@chris-wilson.co.uk \
    --cc=igt-dev@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 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.