Skip to content

Abort on Chamelium failure

Arkadiusz Hiler igt-dev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9lib/tests: Extract fork helperslib/tests/igt_assert.c lib/tests/igt_conflicting_args.c lib/tests/igt_describe.c +7 more+232 -3391 reply
2/9lib/tests: Add support for redirecting fork output to /dev/nulllib/tests/igt_tests_common.h+27 -81 reply
3/9lib: Make it possible to abort the whole execution from inside of a testlib/igt_core.c lib/igt_core.h lib/tests/igt_abort.c +1 more+300 -31 reply
4/9runner/runner_tests: Extract helper for inspecting test resultrunner/runner_tests.c+17 -134 replies
5/9runner: Abort the run when test exits with IGT_EXIT_ABORTrunner/executor.c runner/json_tests_data/aborted-after-a-test/reference.json runner/json_tests_data/aborted-on-boot/reference.json +22 more+551 -61 reply
6/9lib/chamelium: Clear error after checking if chamelium is reachablelib/igt_chamelium.c+8 -21 reply
7/9lib/chamelium: Make it clear that function assertslib/igt_chamelium.c lib/igt_chamelium.h tests/kms_chamelium.c+11 -65 replies
8/9lib/chamelium: Add functions to initialize XMLRPC onlylib/igt_chamelium.c lib/igt_chamelium.h+69 -231 reply
9/9lib/kms: Try to plug all Chamelium ports, abort if it failslib/igt_chamelium.c lib/igt_chamelium.h lib/igt_kms.c +2 more+80 -81 reply

Reviews trailers per patch

8 of 9 patches have a Reviewed-by or Acked-by.

PatchPetri Latvala
1/9R-b
2/9R-b
3/9R-b
4/9R-b
5/9R-b
6/9R-b
7/9R-b
8/9R-b
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [igt-dev] [PATCH i-g-t 0/9] Abort on Chamelium failure

This series introduces new mechanism for aborting a run from inside an IGT test. It is intended to be used when we detect a critical issue with the environment and further testing makes no sense.

The first user is Chamelium.

Using chamelium as a display for non-chamelium-aware test is challenging. The board can be left in multiple different states after kms_chamelium tests even though we have atexit() handlers and other measures which try to assure that all ports are plugged in. Sadly this is not 100% reliable and causes a lot of flip-flopping skips.

In an attempt to make connectors state less random igt_display_require() will try to reset chamelium to a good state. If we fail to do so we abort the execution because the testing configuration is an unknown.

The introduction of new test state (abort) will need some changes in cibuglog & igt-viz and can be used to convert runner-injected igt@runner@abort stubs into a results for a real tests that has a meaningful dmesg attached.

Arkadiusz Hiler (9):
lib/tests: Extract fork helpers
lib/tests: Add support for redirecting fork output to /dev/null
lib: Make it possible to abort the whole execution from inside of a
test
runner/runner_tests: Extract helper for inspecting test result
runner: Abort the run when test exits with IGT_EXIT_ABORT lib/chamelium: Clear error after checking if chamelium is reachable lib/chamelium: Make it clear that function asserts lib/chamelium: Add functions to initialize XMLRPC only lib/kms: Try to plug all Chamelium ports, abort if it fails

 lib/igt_chamelium.c                           | 165 +++++++--
 lib/igt_chamelium.h                           |   6 +-
 lib/igt_core.c                                |  46 ++-
 lib/igt_core.h                                |  29 ++
 lib/igt_kms.c                                 |  18 +
 lib/tests/igt_abort.c                         | 227 ++++++++++++
 lib/tests/igt_assert.c                        |  35 +-
 lib/tests/igt_conflicting_args.c              |  25 +-
 lib/tests/igt_describe.c                      | 135 ++-----
 lib/tests/igt_dynamic_subtests.c              |  18 -
 lib/tests/igt_fork.c                          |  71 ++--
 lib/tests/igt_invalid_subtest_name.c          |  18 -
 lib/tests/igt_no_exit.c                       |  18 -
 lib/tests/igt_segfault.c                      |  59 ++--
 lib/tests/igt_simulation.c                    | 101 +++---
 lib/tests/igt_tests_common.h                  | 110 ++++++
 lib/tests/meson.build                         |   1 +
 runner/executor.c                             |   3 +
 .../aborted-after-a-test/reference.json       |   6 +
 .../aborted-on-boot/reference.json            |   6 +
 .../dmesg-escapes/reference.json              |   3 +
 .../dmesg-results/reference.json              |   5 +
 .../reference.json                            |   3 +
 .../reference.json                            |   3 +
 .../dmesg-warn-level/reference.json           |   3 +
 .../reference.json                            |   3 +
 .../dynamic-subtests/reference.json           |   3 +
 .../reference.json                            |   5 +
 .../json_tests_data/normal-run/reference.json |   5 +
 .../reference.json                            |   4 +
 .../notrun-results/reference.json             |   5 +
 .../piglit-style-dmesg/reference.json         |   5 +
 .../unprintable-characters/reference.json     |   5 +-
 .../warnings-with-dmesg-warns/reference.json  |   5 +
 .../json_tests_data/warnings/reference.json   |   5 +
 runner/resultgen.c                            |  25 ++
 runner/runner_tests.c                         | 333 +++++++++++++++++-
 runner/testdata/abort-dynamic.c               |  46 +++
 runner/testdata/abort-fixture.c               |  37 ++
 runner/testdata/abort-simple.c                |  29 ++
 runner/testdata/abort.c                       |  36 ++
 runner/testdata/meson.build                   |   4 +
 tests/kms_chamelium.c                         |  11 +-
 tests/kms_color_chamelium.c                   |   7 +-
 44 files changed, 1287 insertions(+), 400 deletions(-)
 create mode 100644 lib/tests/igt_abort.c
 create mode 100644 runner/testdata/abort-dynamic.c
 create mode 100644 runner/testdata/abort-fixture.c
 create mode 100644 runner/testdata/abort-simple.c
 create mode 100644 runner/testdata/abort.c
Signature · 6 lines
2.24.1

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