Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Knop, Ryszard" <ryszard.knop@intel.com>
To: "Sousa, Gustavo" <gustavo.sousa@intel.com>,
	"De Marchi, Lucas" <lucas.demarchi@intel.com>
Cc: "igt-dev@lists.freedesktop.org" <igt-dev@lists.freedesktop.org>,
	"peter.senna@linux.intel.com" <peter.senna@linux.intel.com>,
	"kamil.konieczny@linux.intel.com"
	<kamil.konieczny@linux.intel.com>
Subject: Re: [PATCH i-g-t v2 7/7] runner/resultgen: Add cmdline to results.json
Date: Fri, 24 Jan 2025 14:20:41 +0000	[thread overview]
Message-ID: <9f140fe0b463598af0af6cac95c613fa267fe225.camel@intel.com> (raw)
In-Reply-To: <omwtasmowswuhnn4l65qmvq5zscdjury2ezkmlw4mp7twbu26t@m4sxloefokeu>

On Thu, 2025-01-23 at 00:50 -0600, Lucas De Marchi wrote:
> On Wed, Jan 22, 2025 at 09:51:42AM -0300, Gustavo Sousa wrote:
> > Quoting Lucas De Marchi (2025-01-21 19:57:33-03:00)
> > > For easier repro scenarios, add the cmdline to the json: one can see the
> > > exact command executed to try to reproduce a CI failure without needing
> > > extra files.
> > > 
> > > Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
> > > ---
> > > runner/json_tests_data/aborted-after-a-test/reference.json | 1 +
> > > runner/json_tests_data/aborted-on-boot/reference.json      | 1 +
> > > runner/json_tests_data/dmesg-escapes/reference.json        | 1 +
> > > runner/json_tests_data/dmesg-results/reference.json        | 1 +
> > > .../dmesg-warn-level-one-piglit-style/reference.json       | 1 +
> > > .../dmesg-warn-level-piglit-style/reference.json           | 1 +
> > > runner/json_tests_data/dmesg-warn-level/reference.json     | 1 +
> > > .../reference.json                                         | 1 +
> > > .../dynamic-subtests-keep-all/reference.json               | 3 ++-
> > > .../dynamic-subtests-keep-dynamic/reference.json           | 1 +
> > > .../dynamic-subtests-keep-requested/reference.json         | 3 ++-
> > > .../dynamic-subtests-keep-subtests/reference.json          | 3 ++-
> > > runner/json_tests_data/empty-result-files/reference.json   | 1 +
> > > runner/json_tests_data/graceful-notrun/reference.json      | 1 +
> > > .../incomplete-before-any-subtests/reference.json          | 1 +
> > > runner/json_tests_data/normal-run/reference.json           | 1 +
> > > .../notrun-results-multiple-mode/reference.json            | 1 +
> > > runner/json_tests_data/notrun-results/reference.json       | 1 +
> > > runner/json_tests_data/piglit-style-dmesg/reference.json   | 1 +
> > > .../json_tests_data/unprintable-characters/reference.json  | 1 +
> > > .../warnings-with-dmesg-warns/reference.json               | 1 +
> > > runner/json_tests_data/warnings/reference.json             | 1 +
> > > runner/resultgen.c                                         | 7 ++++++-
> > > 23 files changed, 31 insertions(+), 4 deletions(-)
> > > 
> > > diff --git a/runner/json_tests_data/aborted-after-a-test/reference.json b/runner/json_tests_data/aborted-after-a-test/reference.json
> > > index 0776f7582..50ba9e6e1 100644
> > > --- a/runner/json_tests_data/aborted-after-a-test/reference.json
> > > +++ b/runner/json_tests_data/aborted-after-a-test/reference.json
> > > @@ -3,6 +3,7 @@
> > >   "results_version":10,
> > >   "name":"normal-run",
> > >   "uname":"Linux hostname 4.18.0-1-amd64 #1 SMP Debian 4.18.6-1 (2018-09-06) x86_64",
> > > +  "cmdline":[],
> > >   "time_elapsed":{
> > >     "__type__":"TimeAttribute",
> > >     "start":1539953735.1110389,
> > > diff --git a/runner/json_tests_data/aborted-on-boot/reference.json b/runner/json_tests_data/aborted-on-boot/reference.json
> > > index 75f194660..238ec6fff 100644
> > > --- a/runner/json_tests_data/aborted-on-boot/reference.json
> > > +++ b/runner/json_tests_data/aborted-on-boot/reference.json
> > > @@ -3,6 +3,7 @@
> > >   "results_version":10,
> > >   "name":"normal-run",
> > >   "uname":"Linux hostname 4.18.0-1-amd64 #1 SMP Debian 4.18.6-1 (2018-09-06) x86_64",
> > > +  "cmdline":[],
> > >   "time_elapsed":{
> > >     "__type__":"TimeAttribute",
> > >     "start":1539953735.1110389,
> > > diff --git a/runner/json_tests_data/dmesg-escapes/reference.json b/runner/json_tests_data/dmesg-escapes/reference.json
> > > index 91c573106..e74dc89e4 100644
> > > --- a/runner/json_tests_data/dmesg-escapes/reference.json
> > > +++ b/runner/json_tests_data/dmesg-escapes/reference.json
> > > @@ -3,6 +3,7 @@
> > >   "results_version":10,
> > >   "name":"normal-run",
> > >   "uname":"Linux hostname 4.18.0-1-amd64 #1 SMP Debian 4.18.6-1 (2018-09-06) x86_64",
> > > +  "cmdline":[],
> > >   "time_elapsed":{
> > >     "__type__":"TimeAttribute",
> > >     "start":1539953735.1110389,
> > > diff --git a/runner/json_tests_data/dmesg-results/reference.json b/runner/json_tests_data/dmesg-results/reference.json
> > > index e9e011853..81890f7d2 100644
> > > --- a/runner/json_tests_data/dmesg-results/reference.json
> > > +++ b/runner/json_tests_data/dmesg-results/reference.json
> > > @@ -3,6 +3,7 @@
> > >   "results_version":10,
> > >   "name":"normal-run",
> > >   "uname":"Linux hostname 4.18.0-1-amd64 #1 SMP Debian 4.18.6-1 (2018-09-06) x86_64",
> > > +  "cmdline":[],
> > >   "time_elapsed":{
> > >     "__type__":"TimeAttribute",
> > >     "start":1539953735.1110389,
> > > diff --git a/runner/json_tests_data/dmesg-warn-level-one-piglit-style/reference.json b/runner/json_tests_data/dmesg-warn-level-one-piglit-style/reference.json
> > > index 8d266cdfa..16c97d3a1 100644
> > > --- a/runner/json_tests_data/dmesg-warn-level-one-piglit-style/reference.json
> > > +++ b/runner/json_tests_data/dmesg-warn-level-one-piglit-style/reference.json
> > > @@ -3,6 +3,7 @@
> > >   "results_version":10,
> > 
> > Hm... Are we going to continue with 10 as the version after including
> > another field? Are there guidelines on how results_version should be
> > handled?
> 
> good question.... last time it was updated was in 2018, to be compatible
> with piglit.
> 
> commit 2c793666d8c8328733f5769b16ae5858fee97f3f
> Author: Petri Latvala <petri.latvala@intel.com>
> Date:   Wed Dec 5 14:53:43 2018 +0200
> 
>      runner: Produce json with results_version=10
>      
>      New piglit bumped its results_version to 10, making glxinfo and pals
>      optional in practice, not just by accident. Unfortunately reading
>      results with newer piglit attempts to convert the results to version
>      10, reading glxinfo and pals, and thus fails. In a hilarious summary:
>      A commit to piglit making glxinfo optional makes it mandatory for us.
>      
>      v2: json unit tests confirmed to be working...
>      
>      Reported-by: Andi Shyti <andi.shyti@intel.com>
>      Signed-off-by: Petri Latvala <petri.latvala@intel.com>
>      Cc: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
>      Cc: Andi Shyti <andi.shyti@intel.com>
>      Tested-by: Andi Shyti <andi.shyti@intel.com>
>      Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com>
> 
> Does this still work with piglit?  something I didn't test yet.
> Thanks for noticing

In the past, there were some tools and CI runs that used piglit, but
they are no longer around for at least 3+ years. Mesa team works with
those now, we don't have a harness or parsing utilities that work with
piglit et al. If it's still compatible, it's only by accident,
considering that deqp-runner et al is under fairly active development.

> 
> > 
> > >   "name":"normal-run",
> > >   "uname":"Linux hostname 4.18.0-1-amd64 #1 SMP Debian 4.18.6-1 (2018-09-06) x86_64",
> > > +  "cmdline":[],
> > 
> > Well, cmdline is not supposed to be empty. Shouldn't we have at least a
> > fake command here? E.g. ["igt_runner"] or even with some common
> > arguments...
> 
> if I remember well, I tried that, but then it tries to match the number
> of members in the array - it won't match since igt_runner may be
> called in different ways. Maybe there's a way to tell the test suite to
> ignore the elements of the array. I will check.
> 
> Lucas De Marchi
> 
> > 
> > --
> > Gustavo Sousa


  reply	other threads:[~2025-01-24 14:20 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-01-21 22:57 [PATCH i-g-t v2 0/7] Add igt_runner's cmdline to results Lucas De Marchi
2025-01-21 22:57 ` [PATCH i-g-t v2 1/7] runner/settings: Deduplicate cleanup Lucas De Marchi
2025-01-22 10:50   ` Gustavo Sousa
2025-01-22 12:22     ` Peter Senna Tschudin
2025-01-21 22:57 ` [PATCH i-g-t v2 2/7] runner/settings: Use wrapper functions for each type Lucas De Marchi
2025-01-22 11:20   ` Gustavo Sousa
2025-01-23  6:07     ` Lucas De Marchi
2025-01-23 11:20       ` Gustavo Sousa
2025-01-22 12:21   ` Peter Senna Tschudin
2025-01-23  6:22     ` Lucas De Marchi
2025-01-21 22:57 ` [PATCH i-g-t v2 3/7] runner/settings: Drop extra strdup Lucas De Marchi
2025-01-22 11:34   ` Gustavo Sousa
2025-01-22 12:22     ` Peter Senna Tschudin
2025-01-23  6:23     ` Lucas De Marchi
2025-01-23 11:15       ` Gustavo Sousa
2025-01-21 22:57 ` [PATCH i-g-t v2 4/7] runner/settings: Fix code_coverage_script leak Lucas De Marchi
2025-01-22 11:37   ` Gustavo Sousa
2025-01-22 12:23     ` Peter Senna Tschudin
2025-01-21 22:57 ` [PATCH i-g-t v2 5/7] runner: Free settings at the end Lucas De Marchi
2025-01-22 11:46   ` Gustavo Sousa
2025-01-22 12:23     ` Peter Senna Tschudin
2025-01-23  6:28     ` Lucas De Marchi
2025-01-24 17:25       ` Lucas De Marchi
2025-01-21 22:57 ` [PATCH i-g-t v2 6/7] runner/settings: Serialize command line Lucas De Marchi
2025-01-22 12:25   ` Peter Senna Tschudin
2025-01-22 12:40   ` Gustavo Sousa
2025-01-22 18:16     ` Peter Senna Tschudin
2025-01-22 18:26       ` Gustavo Sousa
2025-01-22 18:35         ` Peter Senna Tschudin
2025-01-22 18:55           ` Gustavo Sousa
2025-01-23  6:43             ` Lucas De Marchi
2025-01-22 18:53         ` Peter Senna Tschudin
2025-01-28 18:37   ` Kamil Konieczny
2025-01-28 19:34     ` Lucas De Marchi
2025-01-29 17:23       ` Kamil Konieczny
2025-01-29 18:09         ` Petri Latvala
2025-01-29 20:29           ` Lucas De Marchi
2025-01-29 20:15         ` Lucas De Marchi
2025-01-21 22:57 ` [PATCH i-g-t v2 7/7] runner/resultgen: Add cmdline to results.json Lucas De Marchi
2025-01-22 12:25   ` Peter Senna Tschudin
2025-01-22 12:51   ` Gustavo Sousa
2025-01-23  6:50     ` Lucas De Marchi
2025-01-24 14:20       ` Knop, Ryszard [this message]
2025-01-29 18:14         ` Petri Latvala
2025-01-22  1:45 ` ✓ Xe.CI.BAT: success for Add igt_runner's cmdline to results (rev2) Patchwork
2025-01-22  1:49 ` ✓ i915.CI.BAT: " Patchwork
2025-01-22 10:11 ` ✗ Xe.CI.Full: failure " Patchwork
2025-01-23 10:42 ` ✗ i915.CI.Full: " 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=9f140fe0b463598af0af6cac95c613fa267fe225.camel@intel.com \
    --to=ryszard.knop@intel.com \
    --cc=gustavo.sousa@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=kamil.konieczny@linux.intel.com \
    --cc=lucas.demarchi@intel.com \
    --cc=peter.senna@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox