From: Petri Latvala <petri.latvala@intel.com>
To: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
Cc: igt-dev@lists.freedesktop.org
Subject: Re: [igt-dev] [PATCH i-g-t 2/2] gitlab-ci: Verify blacklist files with verify-blacklist.sh
Date: Mon, 15 Jun 2020 12:44:26 +0300 [thread overview]
Message-ID: <20200615094426.GA20883@platvala-desk.ger.corp.intel.com> (raw)
In-Reply-To: <20200612125247.opjuffqvjs2tpwmu@ahiler-desk1.fi.intel.com>
On Fri, Jun 12, 2020 at 03:52:47PM +0300, Arkadiusz Hiler wrote:
> On Fri, Jun 12, 2020 at 11:57:14AM +0300, Petri Latvala wrote:
> > On Fri, Jun 12, 2020 at 11:51:35AM +0300, Petri Latvala wrote:
> > > Signed-off-by: Petri Latvala <petri.latvala@intel.com>
> > > Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
> >
> > FYI: https://gitlab.freedesktop.org/adrinael/igt-gpu-tools/-/jobs/3073434
> >
> > Verifying took 5 minutes on gitlab, but that's parallelized with the
> > other test-stage executions.
>
> But it's also the slowest step of that stage by far. Even the qemu
> cross-testing is ~5x faster.
>
> Doing:
> > if ! "$RUNNER" --list-all --include-tests "$test" "$BINDIR" >/dev/null 2>/dev/null; then
> for each blacklist entry is a bit expensive. It execs all the test
> binaries each time.
>
> Something like this should be faster:
>
> TESTLIST="$("$RUNNER" --list-all "$BINDIR")"
>
> cat "$BLFILE" | while read line; do
> blentry=$(echo "$line" | sed 's/#.*//' | tr -d '[:space:]')
> if [ "$blentry" = "" ]; then continue; fi
>
> if ! (echo "$TESTLIST" | grep -q "$blentry") >/dev/null 2>/dev/null; then
> echo Useless blacklist entry: "$blentry"
> STATUS=1
> fi
> done
>
> This may be not exactly the same as runner is using glib's regex, but if
> you switch it to PCRE then 'grep -P' should be close enough.
Meh, fair enough. I was doing it this way to make sure we process the
blacklist exactly the same way in the check as in "production", and I
can't remember now what my real fear was. Extending the blacklist
syntax? We're going to catch that on first use on some level of
confidence and even if we don't it's not a big deal.
New revision with new numbers on its way!
--
Petri Latvala
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next prev parent reply other threads:[~2020-06-15 9:44 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-12 8:51 [igt-dev] [PATCH i-g-t 1/2] scripts/verify-blacklist: Script for checking blacklist files Petri Latvala
2020-06-12 8:51 ` [igt-dev] [PATCH i-g-t 2/2] gitlab-ci: Verify blacklist files with verify-blacklist.sh Petri Latvala
2020-06-12 8:57 ` Petri Latvala
2020-06-12 12:52 ` Arkadiusz Hiler
2020-06-15 9:44 ` Petri Latvala [this message]
2020-06-12 9:33 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/2] scripts/verify-blacklist: Script for checking blacklist files Patchwork
2020-06-12 11:21 ` [igt-dev] ✗ Fi.CI.IGT: failure " Patchwork
-- strict thread matches above, loose matches on Subject: below --
2020-06-15 10:25 [igt-dev] [PATCH i-g-t v3 1/2] " Petri Latvala
2020-06-15 10:25 ` [igt-dev] [PATCH i-g-t 2/2] gitlab-ci: Verify blacklist files with verify-blacklist.sh Petri Latvala
2020-06-15 10:30 ` Arkadiusz Hiler
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=20200615094426.GA20883@platvala-desk.ger.corp.intel.com \
--to=petri.latvala@intel.com \
--cc=arkadiusz.hiler@intel.com \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox