From: Petri Latvala <petri.latvala@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: Petri Latvala <petri.latvala@intel.com>
Subject: [igt-dev] [PATCH i-g-t] runner: Make the result an incomplete if a test is killed due to taint
Date: Wed, 29 Jan 2020 15:56:19 +0200 [thread overview]
Message-ID: <20200129135619.15949-1-petri.latvala@intel.com> (raw)
If we're checking for taints, we kill the test as soon as we notice a
taint. Out of the box, such killing will get marked as such and yields
a 'timeout' result, which is misleading. The test didn't spend too
much time, it just did nasties.
Make sure taint-killing results in an 'incomplete' result
instead. It's still not completely truthful for the state of the
testing but closer than a 'timeout'. And stands out more in CI result
analysis.
Suggested-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Petri Latvala <petri.latvala@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
---
runner/executor.c | 20 +++++++++++++++++++-
1 file changed, 19 insertions(+), 1 deletion(-)
diff --git a/runner/executor.c b/runner/executor.c
index ca9a12e3..dbe6fa57 100644
--- a/runner/executor.c
+++ b/runner/executor.c
@@ -1010,8 +1010,26 @@ static int monitor_output(pid_t child,
time = 0.0;
if (!aborting) {
+ const char *exitline;
+
+ exitline = killed ? EXECUTOR_TIMEOUT : EXECUTOR_EXIT;
+
+ /* If we're stopping because we killed
+ * the test for tainting, let's not
+ * call it a timeout. Since the test
+ * execution was still going on, we
+ * probably didn't yet get the subtest
+ * result line printed. Such a case is
+ * parsed as an incomplete unless the
+ * journal says timeout, ergo to make
+ * the result an incomplete we avoid
+ * journaling a timeout here.
+ */
+ if (is_tainted(taints))
+ exitline = EXECUTOR_EXIT;
+
dprintf(outputs[_F_JOURNAL], "%s%d (%.3fs)\n",
- killed ? EXECUTOR_TIMEOUT : EXECUTOR_EXIT,
+ exitline,
status, time);
if (settings->sync) {
fdatasync(outputs[_F_JOURNAL]);
--
2.20.1
_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev
next reply other threads:[~2020-01-29 13:57 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-29 13:56 Petri Latvala [this message]
2020-01-29 14:01 ` [igt-dev] [PATCH i-g-t] runner: Make the result an incomplete if a test is killed due to taint Chris Wilson
2020-01-29 14:13 ` Mika Kuoppala
2020-01-29 14:27 ` Chris Wilson
2020-01-29 16:37 ` [igt-dev] ✓ Fi.CI.BAT: success for " Patchwork
2020-01-30 8:57 ` Petri Latvala
2020-02-01 2:05 ` [igt-dev] ✓ Fi.CI.IGT: " 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=20200129135619.15949-1-petri.latvala@intel.com \
--to=petri.latvala@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