public inbox for kernelci@lists.linux.dev
 help / color / mirror / Atom feed
From: "Tomeu Vizoso" <tomeu.vizoso@collabora.com>
To: kernelci@groups.io, guillaume.tucker@gmail.com
Cc: Enric Balletbo i Serra <enric.balletbo@collabora.com>
Subject: Re: Baseline test plan and bootrr
Date: Mon, 11 Feb 2019 14:16:21 +0100	[thread overview]
Message-ID: <df8ef2bb-b351-2003-5a1c-030a056d1d63@collabora.com> (raw)
In-Reply-To: <e32f672f-da87-7f89-c9b3-93a0a56aaad0@collabora.com>

On 2/7/19 7:54 PM, Guillaume Tucker wrote:
> Hi,
> 
> Currently, boot tests entirely rely on the LAVA logic to detect
> when a login prompt has been reached.  While this mostly works,
> it does not guarantee that the platform is actually usable or
> that everything went smoothly during the boot.
> 
> For this reason, it would seem useful to introduce a "baseline"
> test plan which would essentially boot and then do some fast
> checks to verify that nothing is obviously broken.  This can
> include things like grepping the kernel log for any errors and
> checking that drivers have been initialised correctly.  There's a
> lot that can be done in a few seconds with a basic ramdisk.
> 
> 
> So we could have a list of regular expressions to detect any
> issues in the kernel log and report a LAVA test case result for
> each of them.  The log fragment associated with each match should
> also be available to include the actual errors in a report.
> Doing this on the device means we keep the test definition in the
> same location as the other test plans, and we can run it like any
> test suite.
> 
> 
> Another useful tool is bootrr, which my colleague Enric has
> started to use on some Chromebook devices.  It can check that
> drivers have been loaded and devices probed correctly.  It's
> entirely written in shell scripts so it can be run in our current
> buildroot rootfs and can easily be extended to run other checks.
> It looks up the device tree platform name and uses that to call a
> platform-specific script with relevant drivers and devices.
> Here's Enric's branch with such scripts for a few devices and a
> LAVA test definition:
> 
>    https://github.com/eballetbo/bootrr/commits/master
> 
> and some sample runs with buildroot:
> 
>    https://lava.collabora.co.uk/scheduler/job/1478554
>    https://lava.collabora.co.uk/scheduler/job/1478553
> 
> 
> Does this look like something worth running in KernelCI?  Should
> we just have a bootrr test plan or go for the "baseline" test
> plan I'm suggesting, to be run on all devices and ultimately
> instead of the current boot-to-login jobs?

I think we could get a substantially part of the benefits that bootrr 
provides by trivially checking that /sys/kernel/debug/devices_deferred is 
empty after all modules have been loaded.

We probably want to do that even if we had bootrr, as I find unlikely 
that people will maintain device-specific scripts for all the devices we 
test on.

Cheers,

Tomeu



> Best wishes,
> Guillaume
> 
> 
> 

  parent reply	other threads:[~2019-02-11 13:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-07 18:54 Baseline test plan and bootrr Guillaume Tucker
2019-02-07 19:49 ` Anibal Limon
2019-02-11 13:16 ` Tomeu Vizoso [this message]
2019-02-11 17:18   ` eballetbo
2019-02-12  6:52     ` Tomeu Vizoso
2019-02-12 12:33       ` Mark Brown
2019-02-12 13:41       ` Guillaume Tucker
     [not found] <158129CBC2E3B0B8.7959@groups.io>
2019-02-12 13:46 ` Guillaume Tucker
2019-02-14 19:51   ` Kevin Hilman
2019-05-02 11:27     ` Guillaume Tucker

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=df8ef2bb-b351-2003-5a1c-030a056d1d63@collabora.com \
    --to=tomeu.vizoso@collabora.com \
    --cc=enric.balletbo@collabora.com \
    --cc=guillaume.tucker@gmail.com \
    --cc=kernelci@groups.io \
    /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