Skip to contentSkip to conversation

runner: Produce json with results_version=10

PATCH Superseded Petri Latvala 4 participants 7 messages Dec 5, 2018 – Dec 11, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 runner/resultgen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
runner/resultgen.c +1 -1
index b0933ad7..f2bf62b3 100644
@@ -1026,7 +1026,7 @@ struct json_object *generate_results_json(int dirfd)
 
 	obj = json_object_new_object();
 	json_object_object_add(obj, "__type__", json_object_new_string("TestrunResult"));
-	json_object_object_add(obj, "results_version", json_object_new_int(9));
+	json_object_object_add(obj, "results_version", json_object_new_int(10));
 	json_object_object_add(obj, "name",
 			       settings.name ?
 			       json_object_new_string(settings.name) :
Signature · 6 lines
2.19.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
Tested-by on v1 1/1
#1 lore raw

Hi Petri,

Quoted 10 lines · Petri Latvala

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.

thank you! it works!

Andi
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#2 lore raw

[igt-dev] ✗ Fi.CI.BAT: failure for series starting with [i-g-t,1/1] runner: Produce json with results_version=10

In reply to Petri Latvala
== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,1/1] runner: Produce json with results_version=10
URL : https://patchwork.freedesktop.org/series/53554/
State : failure

== Summary ==

IGT patchset build failed on latest successful build 5c8f89f67c7b32014bc22421e48f3c0cf4e5ca3a igt/pm_rpm: Ignore modesets for basic tests with no KMS

(runner_json_test:45549) igt_core-INFO: #8 [_start+0x2a]
**** END ****
Warning: Cannot open result directory 0
(runner_json_test:45549) CRITICAL: Test assertion failure function compare, file ../runner/runner_json_tests.c:106:
(runner_json_test:45549) CRITICAL: Failed assertion: json_object_get_double(one) == json_object_get_double(two) Subtest aborted-on-boot failed.
**** DEBUG ****
(runner_json_test:45549) DEBUG: Root object
(runner_json_test:45549) DEBUG: Key __type__
(runner_json_test:45549) DEBUG: Key results_version
(runner_json_test:45549) CRITICAL: Test assertion failure function compare, file ../runner/runner_json_tests.c:106:
(runner_json_test:45549) CRITICAL: Failed assertion: json_object_get_double(one) == json_object_get_double(two) (runner_json_test:45549) igt_core-INFO: Stack trace:

(runner_json_test:45549) igt_core-INFO:   #0 ../lib/igt_core.c:1467 __igt_fail_assert()
(runner_json_test:45549) igt_core-INFO:   #1 ../runner/runner_json_tests.c:109 compare()
(runner_json_test:45549) igt_core-INFO:   #2 ../runner/runner_json_tests.c:40 compare_objects()
(runner_json_test:45549) igt_core-INFO:   #3 ../runner/runner_json_tests.c:114 compare()
(runner_json_test:45549) igt_core-INFO:   #4 ../runner/runner_json_tests.c:146 run_results_and_compare()
(runner_json_test:45549) igt_core-INFO:   #5 ../runner/runner_json_tests.c:169 __real_main161()
(runner_json_test:45549) igt_core-INFO:   #6 ../runner/runner_json_tests.c:161 main()
(runner_json_test:45549) igt_core-INFO:   #7 ../csu/libc-start.c:344 __libc_start_main()
(runner_json_test:45549) igt_core-INFO:   #8 [_start+0x2a]

**** END ****
Warning: Cannot open result directory 1
(runner_json_test:45549) CRITICAL: Test assertion failure function compare, file ../runner/runner_json_tests.c:106:
(runner_json_test:45549) CRITICAL: Failed assertion: json_object_get_double(one) == json_object_get_double(two) Subtest aborted-after-a-test failed.
**** DEBUG ****
(runner_json_test:45549) DEBUG: Root object
(runner_json_test:45549) DEBUG: Key __type__
(runner_json_test:45549) DEBUG: Key results_version
(runner_json_test:45549) CRITICAL: Test assertion failure function compare, file ../runner/runner_json_tests.c:106:
(runner_json_test:45549) CRITICAL: Failed assertion: json_object_get_double(one) == json_object_get_double(two) (runner_json_test:45549) igt_core-INFO: Stack trace:

(runner_json_test:45549) igt_core-INFO:   #0 ../lib/igt_core.c:1467 __igt_fail_assert()
(runner_json_test:45549) igt_core-INFO:   #1 ../runner/runner_json_tests.c:109 compare()
(runner_json_test:45549) igt_core-INFO:   #2 ../runner/runner_json_tests.c:40 compare_objects()
(runner_json_test:45549) igt_core-INFO:   #3 ../runner/runner_json_tests.c:114 compare()
(runner_json_test:45549) igt_core-INFO:   #4 ../runner/runner_json_tests.c:146 run_results_and_compare()
(runner_json_test:45549) igt_core-INFO:   #5 ../runner/runner_json_tests.c:169 __real_main161()
(runner_json_test:45549) igt_core-INFO:   #6 ../runner/runner_json_tests.c:161 main()
(runner_json_test:45549) igt_core-INFO:   #7 ../csu/libc-start.c:344 __libc_start_main()
(runner_json_test:45549) igt_core-INFO:   #8 [_start+0x2a]

**** END ****
-------

Full log written to /home/cidrm/igt-gpu-tools/build/meson-logs/testlog.txt
FAILED: meson-test
/usr/bin/python3 -u /usr/bin/meson test --no-rebuild --print-errorlogs
ninja: build stopped: subcommand failed.

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#3 lore raw

PATCH v2 1/1 runner: Produce json with results_version=10

In reply to Petri Latvala

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...

---
 runner/json_tests_data/aborted-after-a-test/reference.json      | 2 +-
 runner/json_tests_data/aborted-on-boot/reference.json           | 2 +-
 runner/json_tests_data/dmesg-results/reference.json             | 2 +-
 .../incomplete-before-any-subtests/reference.json               | 2 +-
 runner/json_tests_data/normal-run/reference.json                | 2 +-
 runner/json_tests_data/piglit-style-dmesg/reference.json        | 2 +-
 runner/json_tests_data/warnings-with-dmesg-warns/reference.json | 2 +-
 runner/json_tests_data/warnings/reference.json                  | 2 +-
 runner/resultgen.c                                              | 2 +-
 9 files changed, 9 insertions(+), 9 deletions(-)
runner/json_tests_data/aborted-after-a-test/reference.json +1 -1
index 1e08deca..19ba9285 100644
@@ -1,6 +1,6 @@
 {
   "__type__":"TestrunResult",
-  "results_version":9,
+  "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",
   "time_elapsed":{
runner/json_tests_data/aborted-on-boot/reference.json +1 -1
index bfaee1bb..0a8723eb 100644
@@ -1,6 +1,6 @@
 {
   "__type__":"TestrunResult",
-  "results_version":9,
+  "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",
   "time_elapsed":{
runner/json_tests_data/dmesg-results/reference.json +1 -1
index 811b63eb..445cd0a0 100644
@@ -1,6 +1,6 @@
 {
   "__type__":"TestrunResult",
-  "results_version":9,
+  "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",
   "time_elapsed":{
runner/json_tests_data/incomplete-before-any-subtests/reference.json +1 -1
index 3eb6c9c1..8dc684c8 100644
@@ -1,6 +1,6 @@
 {
   "__type__":"TestrunResult",
-  "results_version":9,
+  "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",
   "time_elapsed":{
runner/json_tests_data/normal-run/reference.json +1 -1
index 0d28b2c2..5e62579b 100644
@@ -1,6 +1,6 @@
 {
   "__type__":"TestrunResult",
-  "results_version":9,
+  "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",
   "time_elapsed":{
runner/json_tests_data/piglit-style-dmesg/reference.json +1 -1
index 2257b3c7..59f46595 100644
@@ -1,6 +1,6 @@
 {
   "__type__":"TestrunResult",
-  "results_version":9,
+  "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",
   "time_elapsed":{
runner/json_tests_data/warnings-with-dmesg-warns/reference.json +1 -1
index 9e027efb..f70990e8 100644
@@ -1,6 +1,6 @@
 {
   "__type__":"TestrunResult",
-  "results_version":9,
+  "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",
   "time_elapsed":{
runner/json_tests_data/warnings/reference.json +1 -1
index 8d5edbe1..dade0439 100644
@@ -1,6 +1,6 @@
 {
   "__type__":"TestrunResult",
-  "results_version":9,
+  "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",
   "time_elapsed":{
runner/resultgen.c +1 -1
index b0933ad7..f2bf62b3 100644
@@ -1026,7 +1026,7 @@ struct json_object *generate_results_json(int dirfd)
 
 	obj = json_object_new_object();
 	json_object_object_add(obj, "__type__", json_object_new_string("TestrunResult"));
-	json_object_object_add(obj, "results_version", json_object_new_int(9));
+	json_object_object_add(obj, "results_version", json_object_new_int(10));
 	json_object_object_add(obj, "name",
 			       settings.name ?
 			       json_object_new_string(settings.name) :
Signature · 6 lines
2.19.1

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev
#4 lore raw

[igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,v2,1/1] runner: Produce json with results_version=10 (rev2)

In reply to Petri Latvala
== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,v2,1/1] runner: Produce json with results_version=10 (rev2)
URL : https://patchwork.freedesktop.org/series/53554/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_5265 -> IGTPW_2124
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://patchwork.freedesktop.org/api/1.0/series/53554/revisions/2/mbox/

Known issues
------------

Here are the changes found in IGTPW_2124 that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@i915_selftest@live_hangcheck:
- fi-bwr-2160: PASS -> DMESG-FAIL [fdo#108735]

#### Possible fixes ####

* igt@gem_exec_suspend@basic-s3:
- fi-cfl-8109u: INCOMPLETE [fdo#107187] / [fdo#108126] -> PASS

* igt@gem_exec_suspend@basic-s4-devices:
- fi-ivb-3520m: FAIL [fdo#108880] -> PASS
- fi-blb-e6850: INCOMPLETE [fdo#107718] -> PASS

* igt@i915_selftest@live_contexts:
- fi-bsw-n3050: DMESG-FAIL [fdo#108626] / [fdo#108656] -> PASS

* igt@i915_selftest@live_hangcheck:
- fi-kbl-7560u: INCOMPLETE [fdo#108044] -> PASS

[fdo#107187]: https://bugs.freedesktop.org/show_bug.cgi?id=107187
[fdo#107718]: https://bugs.freedesktop.org/show_bug.cgi?id=107718
[fdo#108044]: https://bugs.freedesktop.org/show_bug.cgi?id=108044
[fdo#108126]: https://bugs.freedesktop.org/show_bug.cgi?id=108126
[fdo#108626]: https://bugs.freedesktop.org/show_bug.cgi?id=108626
[fdo#108656]: https://bugs.freedesktop.org/show_bug.cgi?id=108656
[fdo#108735]: https://bugs.freedesktop.org/show_bug.cgi?id=108735
[fdo#108880]: https://bugs.freedesktop.org/show_bug.cgi?id=108880

Participating hosts (48 -> 44)
------------------------------

Additional (1): fi-pnv-d510
Missing (5): fi-ilk-m540 fi-hsw-4200u fi-byt-squawks fi-bsw-cyan fi-ctg-p8600

Build changes
-------------

* IGT: IGT_4741 -> IGTPW_2124

CI_DRM_5265: 84929a4f6a3efdf609b50d51fb35890fc4357dbb @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2124: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2124/
IGT_4741: 5c8f89f67c7b32014bc22421e48f3c0cf4e5ca3a @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2124/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

#5 lore raw

[igt-dev] ✓ Fi.CI.IGT: success for series starting with [i-g-t,v2,1/1] runner: Produce json with results_version=10 (rev2)

In reply to Petri Latvala
== Series Details ==

== Series Details ==

Series: series starting with [i-g-t,v2,1/1] runner: Produce json with results_version=10 (rev2)
URL : https://patchwork.freedesktop.org/series/53554/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_5265_full -> IGTPW_2124_full
====================================================

Summary
-------

**WARNING**

Minor unknown changes coming with IGTPW_2124_full need to be verified manually.

If you think the reported changes have nothing to do with the changes introduced in IGTPW_2124_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.

External URL: https://patchwork.freedesktop.org/api/1.0/series/53554/revisions/2/mbox/

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in IGTPW_2124_full:

### IGT changes ###

#### Warnings ####

* igt@pm_rc6_residency@rc6-accuracy:
- shard-snb: SKIP -> PASS

Known issues
------------

Here are the changes found in IGTPW_2124_full that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@gem_exec_fence@basic-await-default:
- shard-hsw: PASS -> FAIL [fdo#108888]

* igt@kms_color@pipe-a-legacy-gamma:
- shard-apl: PASS -> FAIL [fdo#104782] / [fdo#108145]

* igt@kms_color@pipe-c-ctm-max:
- shard-apl: PASS -> FAIL [fdo#108147]

* igt@kms_color@pipe-c-degamma:
- shard-kbl: PASS -> FAIL [fdo#104782]
- shard-apl: PASS -> FAIL [fdo#104782]

* igt@kms_cursor_crc@cursor-128x128-suspend:
- shard-glk: PASS -> FAIL [fdo#103232] +1

* igt@kms_cursor_crc@cursor-256x256-suspend:
- shard-apl: PASS -> FAIL [fdo#103191] / [fdo#103232]

* igt@kms_cursor_crc@cursor-64x21-random:
- shard-apl: PASS -> FAIL [fdo#103232] +3

* igt@kms_flip@2x-flip-vs-expired-vblank-interruptible:
- shard-glk: PASS -> FAIL [fdo#105363]

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-cur-indfb-draw-pwrite:
- shard-apl: PASS -> FAIL [fdo#103167] +7
- shard-kbl: PASS -> FAIL [fdo#103167] +1

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-spr-indfb-onoff:
- shard-glk: PASS -> FAIL [fdo#103167] +5

* {igt@kms_plane@pixel-format-pipe-a-planes-source-clamping}:
- shard-apl: PASS -> FAIL [fdo#108948]

* igt@kms_plane@pixel-format-pipe-c-planes:
- shard-apl: PASS -> FAIL [fdo#103166] +3

* igt@kms_plane_multiple@atomic-pipe-a-tiling-y:
- shard-glk: PASS -> FAIL [fdo#103166] +5

* igt@kms_plane_multiple@atomic-pipe-c-tiling-yf:
- shard-kbl: PASS -> FAIL [fdo#103166] +3

* igt@kms_setmode@basic:
- shard-apl: PASS -> FAIL [fdo#99912]

* igt@prime_self_import@basic-llseek-bad:
- shard-snb: PASS -> INCOMPLETE [fdo#105411]

#### Possible fixes ####

* igt@kms_ccs@pipe-b-crc-sprite-planes-basic:
- shard-kbl: FAIL [fdo#107725] / [fdo#108145] -> PASS

* igt@kms_color@pipe-b-ctm-max:
- shard-apl: FAIL [fdo#108147] -> PASS

* igt@kms_cursor_crc@cursor-128x128-random:
- shard-apl: FAIL [fdo#103232] -> PASS +7

* igt@kms_cursor_crc@cursor-256x85-random:
- shard-glk: FAIL [fdo#103232] -> PASS +2

* igt@kms_cursor_crc@cursor-256x85-sliding:
- shard-kbl: FAIL [fdo#103232] -> PASS +2

* igt@kms_cursor_crc@cursor-64x64-suspend:
- shard-apl: FAIL [fdo#103191] / [fdo#103232] -> PASS

* igt@kms_flip@flip-vs-expired-vblank-interruptible:
- shard-glk: FAIL [fdo#102887] / [fdo#105363] -> PASS

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-onoff:
- shard-kbl: FAIL [fdo#103167] -> PASS

* igt@kms_frontbuffer_tracking@fbc-2p-scndscrn-spr-indfb-draw-pwrite:
- shard-glk: FAIL [fdo#103167] -> PASS +5

* {igt@kms_plane@pixel-format-pipe-c-planes-source-clamping}:
- shard-apl: FAIL [fdo#108948] -> PASS

* igt@kms_plane@plane-panning-bottom-right-suspend-pipe-a-planes:
- shard-kbl: INCOMPLETE [fdo#103665] -> PASS

* igt@kms_plane_multiple@atomic-pipe-a-tiling-x:

    - shard-apl:          FAIL [fdo#103166] -> PASS
    - shard-glk:          FAIL [fdo#103166] -> PASS
    - shard-kbl:          FAIL [fdo#103166] -> PASS

* {igt@kms_rotation_crc@multiplane-rotation-cropping-top}:
- shard-kbl: DMESG-FAIL [fdo#108950] -> PASS

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[fdo#102887]: https://bugs.freedesktop.org/show_bug.cgi?id=102887
[fdo#103166]: https://bugs.freedesktop.org/show_bug.cgi?id=103166
[fdo#103167]: https://bugs.freedesktop.org/show_bug.cgi?id=103167
[fdo#103191]: https://bugs.freedesktop.org/show_bug.cgi?id=103191
[fdo#103232]: https://bugs.freedesktop.org/show_bug.cgi?id=103232
[fdo#103665]: https://bugs.freedesktop.org/show_bug.cgi?id=103665
[fdo#104782]: https://bugs.freedesktop.org/show_bug.cgi?id=104782
[fdo#105363]: https://bugs.freedesktop.org/show_bug.cgi?id=105363
[fdo#105411]: https://bugs.freedesktop.org/show_bug.cgi?id=105411
[fdo#107725]: https://bugs.freedesktop.org/show_bug.cgi?id=107725
[fdo#108145]: https://bugs.freedesktop.org/show_bug.cgi?id=108145
[fdo#108147]: https://bugs.freedesktop.org/show_bug.cgi?id=108147
[fdo#108888]: https://bugs.freedesktop.org/show_bug.cgi?id=108888
[fdo#108948]: https://bugs.freedesktop.org/show_bug.cgi?id=108948
[fdo#108950]: https://bugs.freedesktop.org/show_bug.cgi?id=108950
[fdo#99912]: https://bugs.freedesktop.org/show_bug.cgi?id=99912

Participating hosts (7 -> 5)
------------------------------

Missing (2): shard-skl shard-iclb

Build changes
-------------

* IGT: IGT_4741 -> IGTPW_2124
* Piglit: piglit_4509 -> None

CI_DRM_5265: 84929a4f6a3efdf609b50d51fb35890fc4357dbb @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_2124: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2124/
IGT_4741: 5c8f89f67c7b32014bc22421e48f3c0cf4e5ca3a @ git://anongit.freedesktop.org/xorg/app/intel-gpu-tools
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_2124/
_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev

Reviewed-by on v1 1/1
#6 lore raw
In reply to Petri Latvala
Quoted 10 lines · Petri Latvala

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.

_______________________________________________
igt-dev mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/igt-dev