Skip to contentSkip to conversation

Add support for hook script

PATCH Superseded Gustavo Sousa 3 participants 17 messages Jun 21, 2024 – Jul 24, 2024

Subsystems (2)

v2 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

v2 cover Add support for hook script

For development purposes, sometimes it is useful to have a way of running custom scripts at certain points of test executions. A real-world example I bumped into recently is to collect information from sysfs before and after running each entry of a testlist.

While it is possible for the user to handcraft a script that calls each test with the correct actions before and after execution, we can provide a better experience by adding built-in support for running hooks during test execution.

This series adds support for running a hook script during test execution. The feature is exposed to users via option --hook, which is made available for regular test binaries as well as for igt_runner.

v2:
- Updated first patch to address review commands.
- Added support for multiple instances of --hook options with 4 extra patches appended to the series. I thought about squashing them to the original patches, but I preferred to keep them separated, since supporting multiple --hook options can be seen as an extension and should make the series easier to follow.

Gustavo Sousa (7):
igt_hook: Add feature
runner: Make it easier to extend argv
runner: Add option --hook
igt_hook: Implement and use set_fake_argv() in test
igt_hook: Allow multiple hook descriptors
runner: Use dynamic vector for test argv
runner: Allow multiple --hook options

 .../igt-gpu-tools/igt-gpu-tools-docs.xml      |   1 +
 lib/igt_core.c                                | 121 +++-
 lib/igt_hook.c                                | 524 ++++++++++++++++++
 lib/igt_hook.h                                |  70 +++
 lib/meson.build                               |   1 +
 lib/tests/igt_hook.c                          | 180 ++++++
 lib/tests/igt_hook_integration.c              | 374 +++++++++++++
 lib/tests/meson.build                         |   2 +
 runner/executor.c                             |  61 +-
 runner/runner_tests.c                         |  18 +
 runner/settings.c                             | 168 +++++-
 runner/settings.h                             |   2 +
 12 files changed, 1492 insertions(+), 30 deletions(-)
 create mode 100644 lib/igt_hook.c
 create mode 100644 lib/igt_hook.h
 create mode 100644 lib/tests/igt_hook.c
 create mode 100644 lib/tests/igt_hook_integration.c
Signature · 1 line
2.45.2
#1 lore raw

PATCH v2 1/7 igt_hook: Add feature

For development purposes, sometimes it is useful to have a way of running custom scripts at certain points of test executions. A real-world example I bumped into recently is to collect information from sysfs before and after running each entry of a testlist.

While it is possible for the user to handcraft a script that calls each test with the correct actions before and after execution, we can provide a better experience by adding built-in support for running hooks during test execution.

That would be even better when adding the same kind of support for igt_runner (which is done in an upcoming change), since the user can also nicely resume with igt_resume with the hook already setup in case a crash happens during execution of the test list.

As such provide implement support for hooks, integrate it into igt_core and expose the functionality via --hook CLI option on test executables.

v2:
- s/igt_hook_init/igt_hook_create/ (Lucas)
- Use SPDX License Identifier instead of license text. (Lucas)
- Do not rely on hard-coded length 3 when generating full test name.

    (Lucas)
  - Do not pollute current environment variables when running hooks.
    (Lucas)

- Change hook string in run_tests_and_match_env() to use "printf" instead of "echo" to be compatible with CI environment.

Cc Lucas De Marchi <[email protected]>
---
 .../igt-gpu-tools/igt-gpu-tools-docs.xml      |   1 +
 lib/igt_core.c                                | 116 ++++-
 lib/igt_hook.c                                | 489 ++++++++++++++++++
 lib/igt_hook.h                                |  69 +++
 lib/meson.build                               |   1 +
 lib/tests/igt_hook.c                          | 170 ++++++
 lib/tests/igt_hook_integration.c              | 281 ++++++++++
 lib/tests/meson.build                         |   2 +
 8 files changed, 1120 insertions(+), 9 deletions(-)
 create mode 100644 lib/igt_hook.c
 create mode 100644 lib/igt_hook.h
 create mode 100644 lib/tests/igt_hook.c
 create mode 100644 lib/tests/igt_hook_integration.c
docs/reference/igt-gpu-tools/igt-gpu-tools-docs.xml +1 -0
index 9085eb924e85..11458c68124b 100644
@@ -32,6 +32,7 @@
     <xi:include href="xml/igt_fb.xml"/>
     <xi:include href="xml/igt_frame.xml"/>
     <xi:include href="xml/igt_gt.xml"/>
+    <xi:include href="xml/igt_hook.xml"/>
     <xi:include href="xml/igt_io.xml"/>
     <xi:include href="xml/igt_kmod.xml"/>
     <xi:include href="xml/igt_kms.xml"/>
lib/igt_core.c +107 -9

218 lines not on this page · raw message

lib/igt_hook.c new file +489 -0

489 lines not on this page · raw message

lib/igt_hook.h new file +69 -0

69 lines not on this page · raw message

lib/meson.build +1 -0
index e2f740c116f8..10b8066647f2 100644
@@ -109,6 +109,7 @@ lib_sources = [
 	'veboxcopy_gen12.c',
 	'igt_msm.c',
 	'igt_dsc.c',
+	'igt_hook.c',
 	'xe/xe_gt.c',
 	'xe/xe_ioctl.c',
 	'xe/xe_mmio.c',
lib/tests/igt_hook.c new file +170 -0

170 lines not on this page · raw message

lib/tests/igt_hook_integration.c new file +281 -0

281 lines not on this page · raw message

lib/tests/meson.build +2 -0
index fa3d81de6cef..df8092638eca 100644
@@ -10,6 +10,8 @@ lib_tests = [
 	'igt_exit_handler',
 	'igt_fork',
 	'igt_fork_helper',
+	'igt_hook',
+	'igt_hook_integration',
         'igt_ktap_parser',
 	'igt_list_only',
 	'igt_invalid_subtest_name',
Signature · 1 line
2.45.2
#2 lore raw

Re: [PATCH i-g-t v2 1/7] igt_hook: Add feature

Quoted 117 lines · Gustavo Sousa

For development purposes, sometimes it is useful to have a way of running custom scripts at certain points of test executions. A real-world example I bumped into recently is to collect information from sysfs before and after running each entry of a testlist.

While it is possible for the user to handcraft a script that calls each test with the correct actions before and after execution, we can provide a better experience by adding built-in support for running hooks during test execution.

That would be even better when adding the same kind of support for igt_runner (which is done in an upcoming change), since the user can also nicely resume with igt_resume with the hook already setup in case a crash happens during execution of the test list.

As such provide implement support for hooks, integrate it into igt_core and expose the functionality via --hook CLI option on test executables.

v2:
- s/igt_hook_init/igt_hook_create/ (Lucas)
- Use SPDX License Identifier instead of license text. (Lucas)
- Do not rely on hard-coded length 3 when generating full test name. (Lucas)
- Do not pollute current environment variables when running hooks. (Lucas)
- Change hook string in run_tests_and_match_env() to use "printf" instead of "echo" to be compatible with CI environment.

Cc Lucas De Marchi <[email protected]>

---

.../igt-gpu-tools/igt-gpu-tools-docs.xml      |   1 +
lib/igt_core.c                                | 116 ++++-
lib/igt_hook.c                                | 489 ++++++++++++++++++
lib/igt_hook.h                                |  69 +++
lib/meson.build                               |   1 +
lib/tests/igt_hook.c                          | 170 ++++++
lib/tests/igt_hook_integration.c              | 281 ++++++++++
lib/tests/meson.build                         |   2 +
8 files changed, 1120 insertions(+), 9 deletions(-)

create mode 100644 lib/igt_hook.c
create mode 100644 lib/igt_hook.h
create mode 100644 lib/tests/igt_hook.c create mode 100644 lib/tests/igt_hook_integration.c

docs/reference/igt-gpu-tools/igt-gpu-tools-docs.xml +1 -0
index 9085eb924e85..11458c68124b 100644
@@ -32,6 +32,7 @@
    <xi:include href="xml/igt_fb.xml"/>
    <xi:include href="xml/igt_frame.xml"/>
    <xi:include href="xml/igt_gt.xml"/>
+    <xi:include href="xml/igt_hook.xml"/>
    <xi:include href="xml/igt_io.xml"/>
    <xi:include href="xml/igt_kmod.xml"/>
    <xi:include href="xml/igt_kms.xml"/>
lib/igt_core.c +12 -0
index 3ff3e0392316..6463a5bdcae5 100644
@@ -70,6 +70,7 @@
 
 #include "igt_core.h"
 #include "igt_aux.h"
+#include "igt_hook.h"
 #include "igt_sysfs.h"
 #include "igt_sysrq.h"
 #include "igt_rc.h"
@@ -241,6 +242,9 @@
 * - '*,!basic*' match any subtest not starting basic
 * - 'basic*,!basic-render*' match any subtest starting basic but not starting basic-render
 *
+ * It is possible to run a shell script at certain points of test execution with
+ * "--hook". See the usage description with "--help-hook" for details.
+ *
 * # Configuration
 *
 * Some of IGT's behavior can be configured through a configuration file.
@@ -273,6 +277,8 @@ static unsigned int exit_handler_count;
 const char *igt_interactive_debug;
 bool igt_skip_crc_compare;
 
+static struct igt_hook *igt_hook = NULL;
+
 /* subtests helpers */
 static bool show_testlist = false;
 static bool list_subtests = false;
@@ -338,6 +344,8 @@ enum {
 	OPT_INTERACTIVE_DEBUG,
 	OPT_SKIP_CRC,
 	OPT_TRACE_OOPS,
+	OPT_HOOK,
+	OPT_HELP_HOOK,
 	OPT_DEVICE,
 	OPT_VERSION,
 	OPT_HELP = 'h'
@@ -810,6 +818,8 @@ static void common_exit_handler(int sig)
 		bind_fbcon(true);
 	}
 
+	igt_hook_free(igt_hook);
+
 	/* When not killed by a signal check that igt_exit() has been properly
 	 * called. */
 	assert(sig != 0 || igt_exit_called || igt_is_aborting);
@@ -907,6 +917,8 @@ static void print_usage(const char *help_str, bool output_on_stderr)
 		   "  --interactive-debug[=domain]\n"
 		   "  --skip-crc-compare\n"
 		   "  --trace-on-oops\n"
+		   "  --hook [<events>:]<cmd>\n"
+		   "  --help-hook\n"
 		   "  --help-description\n"
 		   "  --describe\n"
 		   "  --device filters\n"

lib/igt_core.c static int common_init(int *argc, char **argv, · line 1106

Quoted 5 lines
lib/igt_core.c +2 -0
@@ -1090,6 +1102,8 @@ static int common_init(int *argc, char **argv,
 		{"interactive-debug", optional_argument, NULL, OPT_INTERACTIVE_DEBUG},
 		{"skip-crc-compare",  no_argument,       NULL, OPT_SKIP_CRC},
 		{"trace-on-oops",     no_argument,       NULL, OPT_TRACE_OOPS},
+		{"hook",              required_argument, NULL, OPT_HOOK},
+		{"help-hook",         no_argument,       NULL, OPT_HELP_HOOK},

I'm not a fan of having --help-* for the additional options. I think this is being added because of --help-description? However --help-description should really be just --description (or removed at all since the tests aren't documented like that anymore, which IMO is sad).

I think we need short explanation for each option, and then probably refer to a man page where longer explanations can be given. I'm not blocking it on that though.

Quoted 4 lines
lib/igt_core.c +0 -0
 		{"device",            required_argument, NULL, OPT_DEVICE},
 		{"version",           no_argument,       NULL, OPT_VERSION},
 		{"help",              no_argument,       NULL, OPT_HELP},

lib/igt_core.c static int common_init(int *argc, char **argv, · line 1248

Quoted 10 lines
lib/igt_core.c +7 -0
@@ -1225,6 +1239,24 @@ static int common_init(int *argc, char **argv,
 		case OPT_TRACE_OOPS:
 			show_ftrace = true;
 			break;
+		case OPT_HOOK:
+			assert(optarg);
+			if (igt_hook) {
+				igt_warn("Overriding previous hook descriptor\n");
+				igt_hook_free(igt_hook);
+			}
+			igt_hook = igt_hook_create(optarg, &ret);

usually functions like this are done the other way around: the return is int and the pointer is passed by ref.

ret = igt_hook_create(optarg, &igt_hook);

Quoted 24 lines
lib/igt_core.c +14 -3
+			if (!igt_hook) {
+				igt_critical("Failed to initialize hook data: %s\n",
+					     igt_hook_error_str(ret));
+				ret = ret > 0 ? -2 : -3;
+				goto out;
+			}
+			break;
+		case OPT_HELP_HOOK:
+			igt_hook_print_help(stdout, "--hook");
+			ret = -1;
+			goto out;
 		case OPT_DEVICE:
 			assert(optarg);
 			/* if set by env IGT_DEVICE we need to free it */
@@ -1274,9 +1306,24 @@ out:
 			exit(IGT_EXIT_INVALID);
 	}
 
-	if (ret < 0)
-		/* exit with no error for -h/--help */
-		exit(ret == -1 ? 0 : IGT_EXIT_INVALID);
+	if (ret < 0) {
+		free(igt_hook);
+		igt_hook = NULL;

lib/igt_core.c out: · line 1321

Quoted 10 lines
lib/igt_core.c +10 -0
+
+		switch (ret) {
+		case -1: /* exit with no error for -h/--help */
+			exit(0);
+			break;
+		case -2:
+			exit(IGT_EXIT_INVALID);
+			break;
+		case -3:
+			exit(IGT_EXIT_ABORT);

I think ABORT shouldn't be used... this is for when tests can't be executed anymore due to one of the monitored abort conditions. Not if we can't create the igt_hook, which is more likely because of an invalid option.

Quoted 43 lines
lib/igt_core.c +24 -0
+			break;
+		default:
+			assert(0);
+		}
+	}
 
 	if (!igt_only_list_subtests()) {
 		bind_fbcon(false);
@@ -1284,6 +1331,15 @@ out:
 		print_version();
 		igt_srandom();
 
+		if (igt_hook) {
+			struct igt_hook_evt hook_evt = {
+				.evt_type = IGT_HOOK_PRE_TEST,
+				.target_name = command_str,
+			};
+
+			igt_hook_push_evt(igt_hook, &hook_evt);
+		}
+
 		sync();
 		oom_adjust_for_doom();
 		ftrace_dump_on_oops(show_ftrace);
@@ -1487,6 +1543,16 @@ bool __igt_run_subtest(const char *subtest_name, const char *file, const int lin
 	igt_thread_clear_fail_state();
 
 	igt_gettime(&subtest_time);
+
+	if (igt_hook) {
+		struct igt_hook_evt hook_evt = {
+			.evt_type = IGT_HOOK_PRE_SUBTEST,
+			.target_name = subtest_name,
+		};
+
+		igt_hook_push_evt(igt_hook, &hook_evt);
+	}
+
 	return (in_subtest = subtest_name);
 }
 
@@ -1517,6 +1583,16 @@ bool __igt_run_dynamic_subtest(const char *dynamic_subtest_name)
 	_igt_dynamic_tests_executed++;

lib/igt_core.c bool __igt_run_dynamic_subtest(const char *dynamic_subtest_name) · line 1593

Quoted 10 lines
lib/igt_core.c +8 -0
 
 	igt_gettime(&dynamic_subtest_time);
+
+	if (igt_hook) {
+		struct igt_hook_evt hook_evt = {
+			.evt_type = IGT_HOOK_PRE_DYN_SUBTEST,
+			.target_name = dynamic_subtest_name,
+		};
+
+		igt_hook_push_evt(igt_hook, &hook_evt);

I'm wondering if we shouldn't make igt_hook_push_evt() accept NULL as argument so we can use a compound literal like below:

	igt_hook_push_evt(igt_hook, (struct igt_hook_evt[]){
		.evt_type = IGT_HOOK_PRE_DYN_SUBTEST,
		.target_name = dynamic_subtest_name });
Quoted 213 lines
lib/igt_core.c +30 -6
+	}
+
 	return (in_dynamic_subtest = dynamic_subtest_name);
 }
 
@@ -1602,6 +1678,17 @@ __noreturn static void exit_subtest(const char *result)
 	struct timespec *thentime = in_dynamic_subtest ? &dynamic_subtest_time : &subtest_time;
 	jmp_buf *jmptarget = in_dynamic_subtest ? &igt_dynamic_jmpbuf : &igt_subtest_jmpbuf;
 
+	if (igt_hook) {
+		struct igt_hook_evt hook_evt = {
+			.evt_type = (in_dynamic_subtest
+					? IGT_HOOK_POST_DYN_SUBTEST
+					: IGT_HOOK_POST_SUBTEST),
+			.result = result,
+		};
+
+		igt_hook_push_evt(igt_hook, &hook_evt);
+	}
+
 	if (!igt_thread_is_main()) {
 		igt_thread_fail();
 		pthread_exit(NULL);
@@ -2274,6 +2361,7 @@ void __igt_abort(const char *domain, const char *file, const int line,
 void igt_exit(void)
 {
 	int tmp;
+	const char *result;
 
 	if (!test_with_subtests)
 		igt_thread_assert_no_failures();
@@ -2318,12 +2406,7 @@ void igt_exit(void)
 
 	assert(waitpid(-1, &tmp, WNOHANG) == -1 && errno == ECHILD);
 
-	if (!test_with_subtests) {
-		struct timespec now;
-		const char *result;
-
-		igt_gettime(&now);
-
+	if (!test_with_subtests || igt_hook) {
 		switch (igt_exitcode) {
 			case IGT_EXIT_SUCCESS:
 				result = "SUCCESS";
@@ -2334,6 +2417,12 @@ void igt_exit(void)
 			default:
 				result = "FAIL";
 		}
+	}
+
+	if (!test_with_subtests) {
+		struct timespec now;
+
+		igt_gettime(&now);
 
 		if (test_multi_fork_child) /* parent will do the yelling */
 			_log_line_fprintf(stdout, "dyn_child pid:%d (%.3fs) ends with err=%d\n",
@@ -2344,6 +2433,15 @@ void igt_exit(void)
 					  result, igt_time_elapsed(&subtest_time, &now));
 	}
 
+	if (igt_hook) {
+		struct igt_hook_evt hook_evt = {
+			.evt_type = IGT_HOOK_POST_TEST,
+			.result = result,
+		};
+
+		igt_hook_push_evt(igt_hook, &hook_evt);
+	}
+
 	exit(igt_exitcode);
 }
 
lib/igt_hook.c new file +133 -0
new file mode 100644
index 000000000000..a4421e2b1543
@@ -0,0 +1,489 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#include <assert.h>
+#include <errno.h>
+#include <limits.h>
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "igt_core.h"
+#include "igt_hook.h"
+
+/**
+ * SECTION:igt_hook
+ * @short_description: Support for running a hook script on test execution
+ * @title: Hook support
+ *
+ * IGT provides support for running a hook script when executing tests. This
+ * support is provided to users via CLI option `--hook` available in test
+ * binaries. Users should use `--help-hook` for detailed usaged description of
+ * the feature.
+ *
+ * The sole user of the exposed API is `igt_core`, which calls @igt_hook_create()
+ * when initializing a test case, then calls @igt_hook_push_evt() for each event
+ * that occurs during that test's execution and finally calls @igt_hook_free()
+ * to clean up at the end.
+ */
+
+#define TEST_NAME_INITIAL_SIZE 16
+
+typedef uint16_t evt_mask_t;
+
+struct igt_hook {
+	evt_mask_t evt_mask;
+	char *cmd;
+	char *test_name;
+	size_t test_name_size;
+	char *subtest_name;
+	size_t subtest_name_size;
+	char *dyn_subtest_name;
+	size_t dyn_subtest_name_size;
+	char *test_fullname;
+};
+
+enum igt_hook_error {
+	IGT_HOOK_EVT_EMPTY_NAME = 1,
+	IGT_HOOK_EVT_NO_MATCH,
+};
+
+static_assert(IGT_HOOK_NUM_EVENTS <= sizeof(evt_mask_t) * CHAR_BIT,
+	      "Number of event types does not fit event type mask");
+
+static const char *igt_hook_evt_type_to_name(enum igt_hook_evt_type evt_type)
+{
+	switch (evt_type) {
+	case IGT_HOOK_PRE_TEST:
+		return "pre-test";
+	case IGT_HOOK_PRE_SUBTEST:
+		return "pre-subtest";
+	case IGT_HOOK_PRE_DYN_SUBTEST:
+		return "pre-dyn-subtest";
+	case IGT_HOOK_POST_DYN_SUBTEST:
+		return "post-dyn-subtest";
+	case IGT_HOOK_POST_SUBTEST:
+		return "post-subtest";
+	case IGT_HOOK_POST_TEST:
+		return "post-test";
+	case IGT_HOOK_NUM_EVENTS:
+		break;
+	/* No "default:" case, to force a warning from -Wswitch in case we miss
+	 * any new event type. */
+	}
+	return "?";
+}
+
+static int igt_hook_parse_hook_str(const char *hook_str, evt_mask_t *evt_mask, const char **cmd)
+{
+	const char *s;
+
+	if (!strchr(hook_str, ':')) {
+		*evt_mask = ~0;
+		*cmd = hook_str;
+		return 0;
+	}
+
+	s = hook_str;
+	*evt_mask = 0;
+
+	while (1) {
+		const char *evt_name;
+		bool has_match;
+		bool is_star;
+		enum igt_hook_evt_type evt_type;
+
+		evt_name = s;
+
+		while (*s != ':' && *s != ',')
+			s++;
+
+		if (evt_name == s)
+			return IGT_HOOK_EVT_EMPTY_NAME;
+
+		has_match = false;
+		is_star = *evt_name == '*' && evt_name + 1 == s;
+
+		for (evt_type = IGT_HOOK_PRE_TEST; evt_type < IGT_HOOK_NUM_EVENTS; evt_type++) {
+			if (!is_star) {
+				const char *this_event_name = igt_hook_evt_type_to_name(evt_type);
+				size_t len = s - evt_name;
+
+				if (len != strlen(this_event_name))
+					continue;
+
+				if (strncmp(evt_name, this_event_name, len))
+					continue;
+			}
+
+			*evt_mask |= 1 << evt_type;
+			has_match = true;
+
+			if (!is_star)
+				break;
+		}
+
+		if (!has_match)
+			return IGT_HOOK_EVT_NO_MATCH;
+

lib/igt_hook.c line 143

Quoted 10 lines
lib/igt_hook.c new file +10 -0
+		if (*s++ == ':')
+			break;
+	}
+
+	*cmd = s;
+
+	return 0;
+}
+
+static size_t igt_hook_calc_test_fullname_size(struct igt_hook *igt_hook) {

{ <--- here

lib/igt_hook.c line 147

Quoted 4 lines
lib/igt_hook.c new file +4 -0
+	/* The maximum size of test_fullname will be the maximum length of
+	 * "igt@<test_name>@<subtest_name>@<dyn_subtest_name>" plus 1 for the
+	 * null byte. */
+	return (igt_hook->test_name_size +

no need for parenthesis

Quoted 63 lines
lib/igt_hook.c new file +63 -0
+		igt_hook->subtest_name_size +
+		igt_hook->dyn_subtest_name_size) + 4;
+}
+
+static void igt_hook_update_test_fullname(struct igt_hook *igt_hook)
+{
+	int i;
+	char *s;
+	const char *values[] = {
+		igt_hook->test_name,
+		igt_hook->subtest_name,
+		igt_hook->dyn_subtest_name,
+		NULL,
+	};
+
+	if (igt_hook->test_name[0] == '\0') {
+		igt_hook->test_fullname[0] = '\0';
+		return;
+	}
+
+	s = stpcpy(igt_hook->test_fullname, "igt");
+	for (i = 0; values[i] && values[i][0] != '\0'; i++) {
+		*s++ = '@';
+		s = stpcpy(s, values[i]);
+	}
+}
+
+/**
+ * igt_hook_create:
+ * @hook_str: Hook descriptor string.
+ * @error: Pointer to error number.
+ *
+ * Allocate and initialize an #igt_hook structure.
+ *
+ * This function parses the hook descriptor @hook_str and initializes the struct
+ * to be returned.
+ *
+ * The hook descriptor comes from the argument to `--hook` of the test
+ * executable being run.
+ *
+ * If not #NULL, @error is used to store a non-zero error number if an error
+ * happens. A human-readable string for that error number can be obtained with
+ * @igt_hook_error_str().
+ *
+ * Returns: The pointer to the #igt_hook structure on success or #NULL on error.
+ */
+struct igt_hook *igt_hook_create(const char *hook_str, int *error)
+{
+	int err;
+	evt_mask_t evt_mask;
+	const char *cmd;
+	struct igt_hook *igt_hook = NULL;
+
+
+	err = igt_hook_parse_hook_str(hook_str, &evt_mask, &cmd);
+	if (err)
+		goto out;
+
+	igt_hook = calloc(1, sizeof(*igt_hook));
+	igt_hook->evt_mask = evt_mask;
+
+	igt_hook->cmd = strdup(cmd);
+	if (!igt_hook->cmd) {

lib/igt_hook.c line 220

Quoted 10 lines
lib/igt_hook.c new file +10 -0
+		err = -errno;
+		goto out;
+	}
+
+	igt_hook->test_name = malloc(TEST_NAME_INITIAL_SIZE);
+	igt_hook->test_name_size = TEST_NAME_INITIAL_SIZE;
+	igt_hook->subtest_name = malloc(TEST_NAME_INITIAL_SIZE);
+	igt_hook->subtest_name_size = TEST_NAME_INITIAL_SIZE;
+	igt_hook->dyn_subtest_name = malloc(TEST_NAME_INITIAL_SIZE);
+	igt_hook->dyn_subtest_name_size = TEST_NAME_INITIAL_SIZE;

if we store test_name, subtest_name and dyn_subtest_name individually, why do we need to store test_fullname?

Quoted 105 lines
lib/igt_hook.c new file +105 -0
+	igt_hook->test_fullname = malloc(igt_hook_calc_test_fullname_size(igt_hook));
+
+	igt_hook->test_name[0] = '\0';
+	igt_hook->subtest_name[0] = '\0';
+	igt_hook->dyn_subtest_name[0] = '\0';
+	igt_hook->test_fullname[0] = '\0';
+
+out:
+	if (err) {
+		if (error)
+			*error = err;
+
+		igt_hook_free(igt_hook);
+
+		return NULL;
+	}
+
+	return igt_hook;
+}
+
+/**
+ * igt_hook_free:
+ * @igt_hook: The igt_hook struct.
+ *
+ * De-initialize an igt_hook struct returned by @igt_hook_create().
+ *
+ * This is a no-op if @igt_hook is #NULL.
+ */
+void igt_hook_free(struct igt_hook *igt_hook)
+{
+	if (!igt_hook)
+		return;
+
+	free(igt_hook->cmd);
+	free(igt_hook->test_name);
+	free(igt_hook->subtest_name);
+	free(igt_hook->dyn_subtest_name);
+	free(igt_hook);
+}
+
+static void igt_hook_update_test_name_pre_call(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{
+	char **name_ptr;
+	size_t *size_ptr;
+	size_t len;
+
+	switch (evt->evt_type) {
+	case IGT_HOOK_PRE_TEST:
+		name_ptr = &igt_hook->test_name;
+		size_ptr = &igt_hook->test_name_size;
+		break;
+	case IGT_HOOK_PRE_SUBTEST:
+		name_ptr = &igt_hook->subtest_name;
+		size_ptr = &igt_hook->subtest_name_size;
+		break;
+	case IGT_HOOK_PRE_DYN_SUBTEST:
+		name_ptr = &igt_hook->dyn_subtest_name;
+		size_ptr = &igt_hook->dyn_subtest_name_size;
+		break;
+	default:
+		return;
+	}
+
+	len = strlen(evt->target_name);
+	if (len + 1 > *size_ptr) {
+		size_t fullname_size;
+
+		*size_ptr *= 2;
+		*name_ptr = realloc(*name_ptr, *size_ptr);
+
+		fullname_size = igt_hook_calc_test_fullname_size(igt_hook);
+		igt_hook->test_fullname = realloc(igt_hook->test_fullname, fullname_size);
+	}
+
+	strcpy(*name_ptr, evt->target_name);
+	igt_hook_update_test_fullname(igt_hook);
+}
+
+static void igt_hook_update_test_name_post_call(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{
+	switch (evt->evt_type) {
+	case IGT_HOOK_POST_TEST:
+		igt_hook->test_name[0] = '\0';
+		break;
+	case IGT_HOOK_POST_SUBTEST:
+		igt_hook->subtest_name[0] = '\0';
+		break;
+	case IGT_HOOK_POST_DYN_SUBTEST:
+		igt_hook->dyn_subtest_name[0] = '\0';
+		break;
+	default:
+		return;
+	}
+
+	igt_hook_update_test_fullname(igt_hook);
+}
+
+static void igt_hook_update_env_vars(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{
+	setenv("IGT_HOOK_EVENT", igt_hook_evt_type_to_name(evt->evt_type), 1);
+	setenv("IGT_HOOK_TEST_FULLNAME", igt_hook->test_fullname, 1);
+	setenv("IGT_HOOK_TEST", igt_hook->test_name, 1);
+	setenv("IGT_HOOK_SUBTEST", igt_hook->subtest_name, 1);
+	setenv("IGT_HOOK_DYN_SUBTEST", igt_hook->dyn_subtest_name, 1);
+	setenv("IGT_HOOK_RESULT", evt->result ?: "", 1);

lib/igt_hook.c line 335

Quoted 10 lines
lib/igt_hook.c new file +10 -0
+}
+
+/**
+ * igt_hook_push_evt:
+ * @igt_hook: The igt_hook structure.
+ * @evt: The event to be pushed.
+ *
+ * Push a new igt_hook event.
+ *
+ * This function must be used to register a new igt_hook event. Calling it will

"register" IMO is an odd term. This is notifying/calling the previously registered hook, not registering an event.

igt_hook_event_notify() or igt_hook_event_exec() would be more appropriate I think.

Quoted 5 lines
lib/igt_hook.c new file +5 -0
+ * cause execution of the hook script if the event type matches the filters
+ * provided during initialization of @igt_hook.
+ */
+void igt_hook_push_evt(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{

lib/igt_hook.c line 350

Quoted 10 lines
lib/igt_hook.c new file +10 -0
+	evt_mask_t evt_bit = (1 << evt->evt_type);
+
+	igt_hook_update_test_name_pre_call(igt_hook, evt);
+
+	if ((evt_bit & igt_hook->evt_mask)) {
+		struct igt_helper_process proc = {};
+
+		igt_fork_helper(&proc) {
+			igt_hook_update_env_vars(igt_hook, evt);
+			system(igt_hook->cmd);

humn... we don't care about the return?
also... Why do we double fork?

it rather looks like we want an igt_exec() to complement igt_fork_helper() or at least a small wrapper around execle() do exec /bin/sh passing the command and env to use

Quoted 24 lines
lib/igt_hook.c new file +24 -0
+		}
+		igt_wait_helper(&proc);
+	}
+
+	igt_hook_update_test_name_post_call(igt_hook, evt);
+}
+
+/**
+ * igt_hook_error_str:
+ * @error: Non-zero error number.
+ *
+ * Return a human-readable string containing a description of an error number
+ * generated by one of the `igt_hook_*` functions.
+ *
+ * The string will be the result of strerror() for errors from the C standard
+ * library or a custom description specific to igt_hook.
+ */
+const char *igt_hook_error_str(int error)
+{
+	if (!error)
+		return "No error";
+
+	if (error > 0) {
+		enum igt_hook_error hook_error = error;

lib/igt_hook.c line 384

Quoted 10 lines
lib/igt_hook.c new file +10 -0
+
+		switch (hook_error) {
+		case IGT_HOOK_EVT_EMPTY_NAME:
+			return "Empty name in event descriptor";
+		case IGT_HOOK_EVT_NO_MATCH:
+			return "Event name in event descriptor does not match any event type";
+		default:
+			return "Unknown error";
+		}
+	} else {

no need for else

Lucas De Marchi

Quoted 671 lines
lib/igt_hook.c new file +105 -0
+		return strerror(-error);
+	}
+}
+
+/**
+ * igt_hook_print_help:
+ * @f: File pointer where to write the output.
+ * @option_name: Name of the CLI option that accepts the hook descriptor.
+ *
+ * Print a detailed user help text on hook usage.
+ */
+void igt_hook_print_help(FILE *f, const char *option_name)
+{
+	fprintf(f, "\
+The option %1$s receives as argument a \"hook descriptor\" and allows the\n\
+execution of a shell command at different points during execution of tests. Each\n\
+such a point is called a \"hook event\".\n\
+\n\
+Examples:\n\
+\n\
+  # Prints hook-specic env vars for every event.\n\
+  %1$s 'printenv | grep ^IGT_HOOK_'\n\
+\n\
+  # Equivalent to the above. Useful if command contains ':'.\n\
+  %1$s '*:printenv | grep ^IGT_HOOK_'\n\
+\n\
+  # Adds a line to out.txt containing the result of each test case.\n\
+  %1$s 'post-test:echo $IGT_HOOK_TEST_FULLNAME $IGT_HOOK_RESULT >> out.txt'\n\
+\n\
+The accepted format for a hook descriptor is `[<events>:]<cmd>`, where:\n\
+\n\
+  - <events> is a comma-separated list of event descriptors, which defines the\n\
+    set of events be tracked. If omitted, all events are tracked.\n\
+\n\
+  - <cmd> is a shell command to be executed on the occurrence each tracked\n\
+    event. If the command contains ':', then passing <events> is required,\n\
+    otherwise part of the command would be treated as an event descriptor.\n\
+\n\
+", option_name);
+
+	fprintf(f, "\
+An \"event descriptor\" is either the name of an event or the string '*'. The\n\
+latter matches all event names. The list of possible event names is provided\n\
+below:\n\
+\n\
+");
+
+	for (enum igt_hook_evt_type et = 0; et < IGT_HOOK_NUM_EVENTS; et++) {
+		const char *desc;
+
+		switch (et) {
+		case IGT_HOOK_PRE_TEST:
+			desc = "Occurs before a test case starts.";
+			break;
+		case IGT_HOOK_PRE_SUBTEST:
+			desc = "Occurs before the execution of a subtest.";
+			break;
+		case IGT_HOOK_PRE_DYN_SUBTEST:
+			desc = "Occurs before the execution of a dynamic subtest.";
+			break;
+		case IGT_HOOK_POST_DYN_SUBTEST:
+			desc = "Occurs after the execution of a dynamic subtest.";
+			break;
+		case IGT_HOOK_POST_SUBTEST:
+			desc = "Occurs after the execution of a subtest.";
+			break;
+		case IGT_HOOK_POST_TEST:
+			desc = "Occurs after a test case has finished.";
+			break;
+		default:
+			desc = "MISSING DESCRIPTION";
+		}
+
+		fprintf(f, "  %s\n  %s\n\n", igt_hook_evt_type_to_name(et), desc);
+	}
+
+	fprintf(f, "\
+For each event matched by <events>, <cmd> is executed as a shell command. The\n\
+exit status of the command is ignored. The following environment variables are\n\
+available to the command:\n\
+\n\
+  IGT_HOOK_EVENT\n\
+  Name of the current event.\n\
+\n\
+  IGT_HOOK_TEST_FULLNAME\n\
+  Full name of the test in the format `igt@<test>[@<subtest>[@<dyn_subtest>]]`.\n\
+\n\
+  IGT_HOOK_TEST\n\
+  Name of the current test.\n\
+\n\
+  IGT_HOOK_SUBTEST\n\
+  Name of the current subtest. Will be the empty string if not running a\n\
+  subtest.\n\
+\n\
+  IGT_HOOK_DYN_SUBTEST\n\
+  Name of the current dynamic subtest. Will be the empty string if not running a\n\
+  dynamic subtest.\n\
+\n\
+  IGT_HOOK_RESULT\n\
+  String representing the result of the test/subtest/dynamic subtest. Possible\n\
+  values are: SUCCESS, SKIP or FAIL. This is only applicable on \"post-*\"\n\
+  events and will be the empty string for other types of events.\n\
+\n\
+");
+}
lib/igt_hook.h new file +69 -0
new file mode 100644
index 000000000000..a7b67837e5a4
@@ -0,0 +1,69 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#ifndef IGT_HOOK_H
+#define IGT_HOOK_H
+
+#include <stdio.h>
+
+/**
+ * igt_hook:
+ *
+ * Opaque struct to hold data related to hook support.
+ */
+struct igt_hook;
+
+/**
+ * igt_hook_evt_type:
+ * @IGT_HOOK_PRE_TEST: Occurs before a test case (executable) starts the
+ * test code.
+ * @IGT_HOOK_PRE_SUBTEST: Occurs before the execution of a subtest.
+ * @IGT_HOOK_PRE_DYN_SUBTEST: Occurs before the execution of a dynamic subtest.
+ * @IGT_HOOK_POST_DYN_SUBTEST: Occurs after the execution of a dynamic subtest.
+ * @IGT_HOOK_POST_SUBTEST: Occurs after the execution of a subtest..
+ * @IGT_HOOK_POST_TEST: Occurs after a test case (executable) is finished with
+ * the test code.
+ * @IGT_HOOK_NUM_EVENTS: This is not really an event and represents the number
+ * of possible events tracked by igt_hook.
+ *
+ * Events tracked by igt_hook. Those events occur at specific points during the
+ * execution of a test.
+ */
+enum igt_hook_evt_type {
+	IGT_HOOK_PRE_TEST,
+	IGT_HOOK_PRE_SUBTEST,
+	IGT_HOOK_PRE_DYN_SUBTEST,
+	IGT_HOOK_POST_DYN_SUBTEST,
+	IGT_HOOK_POST_SUBTEST,
+	IGT_HOOK_POST_TEST,
+	IGT_HOOK_NUM_EVENTS /* This must always be the last one. */
+};
+
+/**
+ * igt_hook_evt:
+ * @evt_type: Type of event.
+ * @target_name: A string pointing to the name of the test, subtest or dynamic
+ * subtest, depending on @evt_type.
+ * @result: A string containing the result of the test, subtest or dynamic
+ * subtest. This is only applicable for the `IGT_HOOK_POST_\*' event types;
+ * other types must initialize this to #NULL.
+ *
+ * An event tracked by igt_hook, which is done with @igt_hook_push_evt(). This must
+ * be zero initialized and fields relevant to the event type must be set before
+ * passing its reference to @igt_hook_push_evt().
+ */
+struct igt_hook_evt {
+	enum igt_hook_evt_type evt_type;
+	const char *target_name;
+	const char *result;
+};
+
+struct igt_hook *igt_hook_create(const char *hook_str, int *error);
+void igt_hook_free(struct igt_hook *igt_hook);
+void igt_hook_push_evt(struct igt_hook *igt_hook, struct igt_hook_evt *evt);
+const char *igt_hook_error_str(int error);
+void igt_hook_print_help(FILE *f, const char *option_name);
+
+#endif /* IGT_HOOK_H */
lib/meson.build +1 -0
index e2f740c116f8..10b8066647f2 100644
@@ -109,6 +109,7 @@ lib_sources = [
 	'veboxcopy_gen12.c',
 	'igt_msm.c',
 	'igt_dsc.c',
+	'igt_hook.c',
 	'xe/xe_gt.c',
 	'xe/xe_ioctl.c',
 	'xe/xe_mmio.c',
lib/tests/igt_hook.c new file +170 -0
new file mode 100644
index 000000000000..c8a93952abed
@@ -0,0 +1,170 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#include <stdbool.h>
+#include <stdio.h>
+#include <unistd.h>
+
+#include "igt_core.h"
+#include "igt_hook.h"
+
+static const char *env_var_names[] = {
+	"IGT_HOOK_EVENT",
+	"IGT_HOOK_TEST_FULLNAME",
+	"IGT_HOOK_TEST",
+	"IGT_HOOK_SUBTEST",
+	"IGT_HOOK_DYN_SUBTEST",
+	"IGT_HOOK_RESULT",
+};
+
+#define num_env_vars (sizeof(env_var_names) / sizeof(env_var_names[0]))
+
+static int env_var_name_lookup(char *line)
+{
+	int i;
+	char *c;
+
+	c = strchr(line, '=');
+	if (c)
+		*c = '\0';
+
+	for (i = 0; i < num_env_vars; i++)
+		if (!strcmp(line, env_var_names[i]))
+			goto out;
+
+	i = -1;
+out:
+	if (c)
+		*c = '=';
+
+	return i;
+}
+
+static void test_null_error_pointer(void)
+{
+	struct igt_hook *igt_hook;
+
+	/* Ensure passing NULL error pointer does not cause issues. */
+	igt_hook = igt_hook_create("invalid:echo hello", NULL);
+	igt_assert(igt_hook == NULL);
+}
+
+static void test_invalid_hook_descriptors(void)
+{
+	struct {
+		const char *name;
+		const char *hook_desc;
+	} invalid_cases[] = {
+		{"invalid-event-name", "invalid-event:echo hello"},
+		{"invalid-empty-event-name", ":echo hello"},
+		{"invalid-colon-in-cmd", "echo hello:world"},
+		{},
+	};
+
+	for (int i = 0; invalid_cases[i].name; i++) {
+		igt_subtest(invalid_cases[i].name) {
+			int err = 0;
+			struct igt_hook *igt_hook;
+
+			igt_hook = igt_hook_create(invalid_cases[i].hook_desc, &err);
+			igt_assert(igt_hook == NULL);
+			igt_assert(err != 0);
+		}
+	}
+}
+
+static void test_print_help(void)
+{
+	char *buf;
+	size_t len;
+	FILE *f;
+	const char expected_initial_text[] = "The option --hook receives as argument a \"hook descriptor\"";
+
+	f = open_memstream(&buf, &len);
+	igt_assert(f);
+
+	igt_hook_print_help(f, "--hook");
+	fclose(f);
+
+	igt_assert(!strncmp(buf, expected_initial_text, sizeof(expected_initial_text) - 1));
+
+	/* This is an extra check to catch a case where an event type is added
+	 * without a proper description. */
+	igt_assert(!strstr(buf, "MISSING DESCRIPTION"));
+
+	free(buf);
+}
+
+static void test_all_env_vars(void)
+{
+	struct igt_hook_evt evt = {
+		.evt_type = IGT_HOOK_PRE_SUBTEST,
+		.target_name = "foo",
+	};
+	bool env_vars_checklist[num_env_vars] = {};
+	struct igt_hook *igt_hook;
+	char *hook_str;
+	FILE *f;
+	int pipefd[2];
+	int ret;
+	int i;
+	char *line;
+	size_t line_size;
+
+	ret = pipe(pipefd);
+	igt_assert(ret == 0);
+
+	/* Use grep to filter only env var set by us. This should ensure that
+	 * writing to the pipe will not block due to capacity, since we only
+	 * read from the pipe after the shell command is done. */
+	ret = asprintf(&hook_str, "printenv -0 | grep -z ^IGT_HOOK >&%d", pipefd[1]);
+	igt_assert(ret > 0);
+
+	igt_hook = igt_hook_create(hook_str, NULL);
+	igt_assert(igt_hook);
+
+	igt_hook_push_evt(igt_hook, &evt);
+
+	close(pipefd[1]);
+	f = fdopen(pipefd[0], "r");
+	igt_assert(f);
+
+	line = NULL;
+	line_size = 0;
+
+	while (getdelim(&line, &line_size, '\0', f) != -1) {
+		ret = env_var_name_lookup(line);
+		igt_assert_f(ret >= 0, "Unexpected env var %s\n", line);
+		env_vars_checklist[ret] = true;
+	}
+
+	for (i = 0; i < num_env_vars; i++)
+		igt_assert_f(env_vars_checklist[i], "Missing env var %s\n", env_var_names[i]);
+
+	fclose(f);
+	igt_hook_free(igt_hook);
+	free(hook_str);
+	free(line);
+}
+
+igt_main
+{
+	igt_subtest("null-error-pointer")
+		test_null_error_pointer();
+
+	test_invalid_hook_descriptors();
+
+	igt_subtest("help-description")
+		test_print_help();
+
+	igt_subtest_group {
+		igt_fixture {
+			igt_require_f(system(NULL), "Shell seems not to be available\n");
+		}
+
+		igt_subtest("all-env-vars")
+			test_all_env_vars();
+	}
+}
lib/tests/igt_hook_integration.c new file +281 -0
new file mode 100644
index 000000000000..f5ba25e92897
@@ -0,0 +1,281 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#include <stdbool.h>
+#include <stdio.h>
+#include <string.h>
+
+#include "igt_core.h"
+
+#include "igt_tests_common.h"
+
+char prog[] = "igt_hook_integration";
+char hook_opt[] = "--hook";
+char hook_str[128];
+char *fake_argv[] = {prog, hook_opt, hook_str};
+int fake_argc = sizeof(fake_argv) / sizeof(fake_argv[0]);
+
+#define ENV_ARRAY(evt_name, fullname_suffix, subtest, dyn_subtest, result) \
+{ \
+	"IGT_HOOK_EVENT=" evt_name, \
+	"IGT_HOOK_TEST_FULLNAME=igt@igt_hook_integration" fullname_suffix, \
+	"IGT_HOOK_TEST=igt_hook_integration", \
+	"IGT_HOOK_SUBTEST=" subtest, \
+	"IGT_HOOK_DYN_SUBTEST=" dyn_subtest, \
+	"IGT_HOOK_RESULT=" result, \
+}
+
+#define TEST_ENV(evt_name, result) \
+	ENV_ARRAY(evt_name, "", "", "", result)
+
+#define SUBTEST_ENV(evt_name, subtest, result) \
+	ENV_ARRAY(evt_name, "@" subtest, subtest, "", result)
+
+#define DYN_SUBTEST_ENV(evt_name, subtest, dyn_subtest, result) \
+	ENV_ARRAY(evt_name, "@" subtest "@" dyn_subtest, subtest, dyn_subtest, result)
+
+const char *pre_test_env[] = TEST_ENV("pre-test", "");
+const char *pre_subtest_a_env[] = SUBTEST_ENV("pre-subtest", "a", "");
+const char *pre_dyn_subtest_a_success_env[] = DYN_SUBTEST_ENV("pre-dyn-subtest", "a", "success", "");
+const char *post_dyn_subtest_a_success_env[] = DYN_SUBTEST_ENV("post-dyn-subtest", "a", "success", "SUCCESS");
+const char *pre_dyn_subtest_a_failed_env[] = DYN_SUBTEST_ENV("pre-dyn-subtest", "a", "failed", "");
+const char *post_dyn_subtest_a_failed_env[] = DYN_SUBTEST_ENV("post-dyn-subtest", "a", "failed", "FAIL");
+const char *pre_dyn_subtest_a_skipped_env[] = DYN_SUBTEST_ENV("pre-dyn-subtest", "a", "skipped", "");
+const char *post_dyn_subtest_a_skipped_env[] = DYN_SUBTEST_ENV("post-dyn-subtest", "a", "skipped", "SKIP");
+const char *post_subtest_a_env[] = SUBTEST_ENV("post-subtest", "a", "FAIL");
+const char *pre_subtest_b_env[] = SUBTEST_ENV("pre-subtest", "b", "");
+const char *post_subtest_b_env[] = SUBTEST_ENV("post-subtest", "b", "SUCCESS");
+const char *post_test_env[] = TEST_ENV("post-test", "FAIL");
+
+#define num_env_vars (sizeof(pre_test_env) / sizeof(pre_test_env[0]))
+
+__noreturn static void fake_main(void)
+{
+	igt_subtest_init(fake_argc, fake_argv);
+
+	igt_subtest_with_dynamic("a") {
+		igt_dynamic("success") {
+			igt_info("...@a@success\n");
+		}
+
+		igt_dynamic("failed") {
+			igt_assert_f(false, "Fail on purpose\n");
+			igt_info("...@a@failed\n");
+		}
+
+		igt_dynamic("skipped") {
+			igt_require_f(false, "Skip on purpose\n");
+			igt_info("...@a@skipped\n");
+		}
+	}
+
+	igt_subtest("b") {
+		igt_info("...@b\n");
+	}
+
+	igt_exit();
+}
+
+static void test_invalid_hook_str(void)
+{
+	int status;
+	pid_t pid;
+	static char err[4096];
+	int errfd;
+
+	sprintf(hook_str, "invalid-event:echo hello");
+
+	pid = do_fork_bg_with_pipes(fake_main, NULL, &errfd);
+
+	read_whole_pipe(errfd, err, sizeof(err));
+
+	internal_assert(safe_wait(pid, &status) != -1);
+	internal_assert_wexited(status, IGT_EXIT_INVALID);
+
+	internal_assert(strstr(err, "Failed to initialize hook data:"));
+
+	close(errfd);
+}
+
+static bool match_env(FILE *hook_out_stream, const char **expected_env)
+{
+	int i;
+	char hook_env_buf[4096];
+	size_t buf_len = 0;
+	char *line = NULL;
+	size_t line_size;
+	bool env_checklist[num_env_vars] = {};
+	bool has_unexpected = false;
+	bool has_missing = false;
+
+	/* Store env from hook so we can show it in case of errors */
+	while (getdelim(&line, &line_size, '\0', hook_out_stream) != -1) {
+		internal_assert(buf_len + strlen(line) + 1 <= sizeof(hook_env_buf));
+		strcpy(hook_env_buf + buf_len, line);
+		buf_len += strlen(line) + 1;
+
+		if (!strcmp(line, "---"))
+			break;
+	}
+
+	if (!expected_env && !buf_len) {
+		/* We have consumed everything and we are done now. */
+		return false;
+	}
+
+
+	if (!expected_env) {
+		printf("Detected unexpected hook execution\n");
+		has_unexpected = true;
+		goto out;
+	}
+
+	if (!buf_len) {
+		printf("Expected more hook execution, but none found\n");
+		has_missing = true;
+		goto out;
+	}
+
+
+	line = hook_env_buf;
+	while (strcmp(line, "---")) {
+		for (i = 0; i < num_env_vars; i++) {
+			if (!strcmp(line, expected_env[i])) {
+				env_checklist[i] = true;
+				break;
+			}
+		}
+
+		if (i == num_env_vars) {
+			printf("Unexpected envline from hook: %s\n", line);
+			has_unexpected = true;
+		}
+
+		line += strlen(line) + 1;
+	}
+
+	for (i = 0; i < num_env_vars; i++) {
+		if (!env_checklist[i]) {
+			has_missing = true;
+			printf("Missing expected envline: %s\n", expected_env[i]);
+		}
+	}
+
+out:
+	if (has_unexpected || has_missing) {
+		if (expected_env) {
+			printf("Expected environment:\n");
+			for (i = 0; i < num_env_vars; i++)
+				printf("  %s\n", expected_env[i]);
+		}
+
+		if (buf_len) {
+			printf("Environment from hook:\n");
+			line = hook_env_buf;
+			while (strcmp(line, "---")) {
+				printf("  %s\n", line);
+				line += strlen(line) + 1;
+			}
+		} else {
+			printf("No hook execution found\n");
+		}
+	}
+
+	internal_assert(!has_unexpected);
+	internal_assert(!has_missing);
+
+	/* Ready to consume next hook output. */
+	return true;
+}
+
+static void run_tests_and_match_env(const char *evt_descriptors, const char **expected_envs[])
+{
+	int i;
+	int ret;
+	int pipefd[2];
+	pid_t pid;
+	FILE *f;
+
+	ret = pipe(pipefd);
+	internal_assert(ret == 0);
+
+	/* Use grep to filter only env var set by us. This should ensure that
+	 * writing to the pipe will not block due to capacity, since we only
+	 * read from the pipe after the shell command is done. */
+	sprintf(hook_str,
+		"%1$s:printenv -0 | grep -z ^IGT_HOOK >&%2$d; printf -- ---\\\\00 >&%2$d",
+		evt_descriptors,
+		pipefd[1]);
+
+	pid = do_fork_bg_with_pipes(fake_main, NULL, NULL);
+	internal_assert(safe_wait(pid, &ret) != -1);
+	internal_assert_wexited(ret, IGT_EXIT_FAILURE);
+
+	close(pipefd[1]);
+	f = fdopen(pipefd[0], "r");
+	internal_assert(f);
+
+	i = 0;
+	while (match_env(f, expected_envs[i]))
+		i++;
+
+	fclose(f);
+
+}
+
+int main(int argc, char **argv)
+{
+	{
+		printf("Check invalid hook string\n");
+		test_invalid_hook_str();
+	}
+
+	{
+		const char **expected_envs[] = {
+			pre_test_env,
+			pre_subtest_a_env,
+			pre_dyn_subtest_a_success_env,
+			post_dyn_subtest_a_success_env,
+			pre_dyn_subtest_a_failed_env,
+			post_dyn_subtest_a_failed_env,
+			pre_dyn_subtest_a_skipped_env,
+			post_dyn_subtest_a_skipped_env,
+			post_subtest_a_env,
+			pre_subtest_b_env,
+			post_subtest_b_env,
+			post_test_env,
+			NULL,
+		};
+
+		printf("Check full event tracking\n");
+		run_tests_and_match_env("*", expected_envs);
+	}
+
+	{
+		const char **expected_envs[] = {
+			pre_dyn_subtest_a_success_env,
+			pre_dyn_subtest_a_failed_env,
+			pre_dyn_subtest_a_skipped_env,
+			NULL,
+		};
+
+		printf("Check single event type tracking\n");
+		run_tests_and_match_env("pre-dyn-subtest", expected_envs);
+	}
+
+	{
+		const char **expected_envs[] = {
+			pre_subtest_a_env,
+			post_dyn_subtest_a_success_env,
+			post_dyn_subtest_a_failed_env,
+			post_dyn_subtest_a_skipped_env,
+			pre_subtest_b_env,
+			NULL,
+		};
+
+		printf("Check multiple event types tracking\n");
+		run_tests_and_match_env("post-dyn-subtest,pre-subtest", expected_envs);
+	}
+}
lib/tests/meson.build +2 -0
index fa3d81de6cef..df8092638eca 100644
@@ -10,6 +10,8 @@ lib_tests = [
 	'igt_exit_handler',
 	'igt_fork',
 	'igt_fork_helper',
+	'igt_hook',
+	'igt_hook_integration',
        'igt_ktap_parser',
 	'igt_list_only',
 	'igt_invalid_subtest_name',
Signature · 1 line
2.45.2
#3 lore raw

Re: [PATCH i-g-t v2 1/7] igt_hook: Add feature

Quoting Lucas De Marchi (2024-07-03 16:27:10-03:00)

Quoted 121 lines · Gustavo Sousa
Quoted 120 lines

For development purposes, sometimes it is useful to have a way of running custom scripts at certain points of test executions. A real-world example I bumped into recently is to collect information from sysfs before and after running each entry of a testlist.

While it is possible for the user to handcraft a script that calls each test with the correct actions before and after execution, we can provide a better experience by adding built-in support for running hooks during test execution.

That would be even better when adding the same kind of support for igt_runner (which is done in an upcoming change), since the user can also nicely resume with igt_resume with the hook already setup in case a crash happens during execution of the test list.

As such provide implement support for hooks, integrate it into igt_core and expose the functionality via --hook CLI option on test executables.

v2:
- s/igt_hook_init/igt_hook_create/ (Lucas)
- Use SPDX License Identifier instead of license text. (Lucas)
- Do not rely on hard-coded length 3 when generating full test name. (Lucas)
- Do not pollute current environment variables when running hooks. (Lucas)
- Change hook string in run_tests_and_match_env() to use "printf" instead of "echo" to be compatible with CI environment.

Cc Lucas De Marchi <[email protected]>

---

.../igt-gpu-tools/igt-gpu-tools-docs.xml      |   1 +
lib/igt_core.c                                | 116 ++++-
lib/igt_hook.c                                | 489 ++++++++++++++++++
lib/igt_hook.h                                |  69 +++
lib/meson.build                               |   1 +
lib/tests/igt_hook.c                          | 170 ++++++
lib/tests/igt_hook_integration.c              | 281 ++++++++++
lib/tests/meson.build                         |   2 +
8 files changed, 1120 insertions(+), 9 deletions(-)

create mode 100644 lib/igt_hook.c
create mode 100644 lib/igt_hook.h
create mode 100644 lib/tests/igt_hook.c create mode 100644 lib/tests/igt_hook_integration.c

docs/reference/igt-gpu-tools/igt-gpu-tools-docs.xml +1 -0
index 9085eb924e85..11458c68124b 100644
@@ -32,6 +32,7 @@
    <xi:include href="xml/igt_fb.xml"/>
    <xi:include href="xml/igt_frame.xml"/>
    <xi:include href="xml/igt_gt.xml"/>
+    <xi:include href="xml/igt_hook.xml"/>
    <xi:include href="xml/igt_io.xml"/>
    <xi:include href="xml/igt_kmod.xml"/>
    <xi:include href="xml/igt_kms.xml"/>
lib/igt_core.c +12 -0
index 3ff3e0392316..6463a5bdcae5 100644
@@ -70,6 +70,7 @@
 
 #include "igt_core.h"
 #include "igt_aux.h"
+#include "igt_hook.h"
 #include "igt_sysfs.h"
 #include "igt_sysrq.h"
 #include "igt_rc.h"
@@ -241,6 +242,9 @@
 * - '*,!basic*' match any subtest not starting basic
 * - 'basic*,!basic-render*' match any subtest starting basic but not starting basic-render
 *
+ * It is possible to run a shell script at certain points of test execution with
+ * "--hook". See the usage description with "--help-hook" for details.
+ *
 * # Configuration
 *
 * Some of IGT's behavior can be configured through a configuration file.
@@ -273,6 +277,8 @@ static unsigned int exit_handler_count;
 const char *igt_interactive_debug;
 bool igt_skip_crc_compare;
 
+static struct igt_hook *igt_hook = NULL;
+
 /* subtests helpers */
 static bool show_testlist = false;
 static bool list_subtests = false;
@@ -338,6 +344,8 @@ enum {
        OPT_INTERACTIVE_DEBUG,
        OPT_SKIP_CRC,
        OPT_TRACE_OOPS,
+        OPT_HOOK,
+        OPT_HELP_HOOK,
        OPT_DEVICE,
        OPT_VERSION,
        OPT_HELP = 'h'
@@ -810,6 +818,8 @@ static void common_exit_handler(int sig)
                bind_fbcon(true);
        }
 
+        igt_hook_free(igt_hook);
+
        /* When not killed by a signal check that igt_exit() has been properly
         * called. */
        assert(sig != 0 || igt_exit_called || igt_is_aborting);
@@ -907,6 +917,8 @@ static void print_usage(const char *help_str, bool output_on_stderr)
                   "  --interactive-debug[=domain]\n"
                   "  --skip-crc-compare\n"
                   "  --trace-on-oops\n"
+                   "  --hook [<events>:]<cmd>\n"
+                   "  --help-hook\n"
                   "  --help-description\n"
                   "  --describe\n"
                   "  --device filters\n"
@@ -1090,6 +1102,8 @@ static int common_init(int *argc, char **argv,
                {"interactive-debug", optional_argument, NULL, OPT_INTERACTIVE_DEBUG},
                {"skip-crc-compare",  no_argument,       NULL, OPT_SKIP_CRC},
                {"trace-on-oops",     no_argument,       NULL, OPT_TRACE_OOPS},
Quoted 8 lines

lib/igt_core.c static int common_init(int *argc, char **argv, · line 1106

Quoted 2 lines
lib/igt_core.c +2 -0
+                {"hook",              required_argument, NULL, OPT_HOOK},
+                {"help-hook",         no_argument,       NULL, OPT_HELP_HOOK},

I'm not a fan of having --help-* for the additional options. I think this is being added because of --help-description? However --help-description should really be just --description (or removed at all since the tests aren't documented like that anymore, which IMO is sad).

Yeah, I saw --help-description and decided to have a --help-hook. But, yeah, now that you mentioned, I agree that those two have different purposes.

Quoted 4 lines

I think we need short explanation for each option, and then probably refer to a man page where longer explanations can be given. I'm not blocking it on that though.

That sounds good. Since all options and not just "--hook" need the short explanation, I guess that can be done in a separate series.

Quoted 19 lines
Quoted 5 lines
lib/igt_core.c +0 -0
                {"device",            required_argument, NULL, OPT_DEVICE},
                {"version",           no_argument,       NULL, OPT_VERSION},
                {"help",              no_argument,       NULL, OPT_HELP},

lib/igt_core.c static int common_init(int *argc, char **argv, · line 1248

Quoted 10 lines
lib/igt_core.c +7 -0
@@ -1225,6 +1239,24 @@ static int common_init(int *argc, char **argv,
                case OPT_TRACE_OOPS:
                        show_ftrace = true;
                        break;
+                case OPT_HOOK:
+                        assert(optarg);
+                        if (igt_hook) {
+                                igt_warn("Overriding previous hook descriptor\n");
+                                igt_hook_free(igt_hook);
+                        }
+                        igt_hook = igt_hook_create(optarg, &ret);

usually functions like this are done the other way around: the return is int and the pointer is passed by ref.

Quoted 2 lines

ret = igt_hook_create(optarg, &igt_hook);

I'll update to match the above. Thanks.

Quoted 31 lines
Quoted 31 lines
lib/igt_core.c +21 -3
+                        if (!igt_hook) {
+                                igt_critical("Failed to initialize hook data: %s\n",
+                                             igt_hook_error_str(ret));
+                                ret = ret > 0 ? -2 : -3;
+                                goto out;
+                        }
+                        break;
+                case OPT_HELP_HOOK:
+                        igt_hook_print_help(stdout, "--hook");
+                        ret = -1;
+                        goto out;
                case OPT_DEVICE:
                        assert(optarg);
                        /* if set by env IGT_DEVICE we need to free it */
@@ -1274,9 +1306,24 @@ out:
                        exit(IGT_EXIT_INVALID);
        }
 
-        if (ret < 0)
-                /* exit with no error for -h/--help */
-                exit(ret == -1 ? 0 : IGT_EXIT_INVALID);
+        if (ret < 0) {
+                free(igt_hook);
+                igt_hook = NULL;
+
+                switch (ret) {
+                case -1: /* exit with no error for -h/--help */
+                        exit(0);
+                        break;
+                case -2:
+                        exit(IGT_EXIT_INVALID);
Quoted 8 lines

lib/igt_core.c out: · line 1321

Quoted 3 lines
lib/igt_core.c +3 -0
+                        break;
+                case -3:
+                        exit(IGT_EXIT_ABORT);

I think ABORT shouldn't be used... this is for when tests can't be executed anymore due to one of the monitored abort conditions. Not if we can't create the igt_hook, which is more likely because of an invalid option.

Yeah. This comes from the first version of the patch series, where a negative error meant something else than invalid hook str. This can be removed now that we only error out because of invalid input.

Thanks!

Quoted 58 lines
Quoted 44 lines
lib/igt_core.c +24 -0
+                        break;
+                default:
+                        assert(0);
+                }
+        }
 
        if (!igt_only_list_subtests()) {
                bind_fbcon(false);
@@ -1284,6 +1331,15 @@ out:
                print_version();
                igt_srandom();
 
+                if (igt_hook) {
+                        struct igt_hook_evt hook_evt = {
+                                .evt_type = IGT_HOOK_PRE_TEST,
+                                .target_name = command_str,
+                        };
+
+                        igt_hook_push_evt(igt_hook, &hook_evt);
+                }
+
                sync();
                oom_adjust_for_doom();
                ftrace_dump_on_oops(show_ftrace);
@@ -1487,6 +1543,16 @@ bool __igt_run_subtest(const char *subtest_name, const char *file, const int lin
        igt_thread_clear_fail_state();
 
        igt_gettime(&subtest_time);
+
+        if (igt_hook) {
+                struct igt_hook_evt hook_evt = {
+                        .evt_type = IGT_HOOK_PRE_SUBTEST,
+                        .target_name = subtest_name,
+                };
+
+                igt_hook_push_evt(igt_hook, &hook_evt);
+        }
+
        return (in_subtest = subtest_name);
 }
 
@@ -1517,6 +1583,16 @@ bool __igt_run_dynamic_subtest(const char *dynamic_subtest_name)
        _igt_dynamic_tests_executed++;

lib/igt_core.c bool __igt_run_dynamic_subtest(const char *dynamic_subtest_name) · line 1593

Quoted 10 lines
lib/igt_core.c +8 -0
 
        igt_gettime(&dynamic_subtest_time);
+
+        if (igt_hook) {
+                struct igt_hook_evt hook_evt = {
+                        .evt_type = IGT_HOOK_PRE_DYN_SUBTEST,
+                        .target_name = dynamic_subtest_name,
+                };
+
+                igt_hook_push_evt(igt_hook, &hook_evt);

I'm wondering if we shouldn't make igt_hook_push_evt() accept NULL as argument so we can use a compound literal like below:

Quoted 4 lines
       igt_hook_push_evt(igt_hook, (struct igt_hook_evt[]){
               .evt_type = IGT_HOOK_PRE_DYN_SUBTEST,
               .target_name = dynamic_subtest_name });

That sounds good, however I don't get why we would need
to make igt_hook_push_evt() accept NULL for that. This seems to compile fine:

    $ cat /tmp/foo.c
    #include <stdio.h>
    struct some_struct {
        int a;
        int b;
    };

    void f(struct some_struct *s)
    {
        printf("a=%d\nb=%d\n", s->a, s->b);
    }

    int main()
    {
        f(&(struct some_struct){.a = 1, .b = 2});
        return 0;
    }

    $ gcc -Wall -Wextra -Werror -o /tmp/foo /tmp/foo.c && /tmp/foo
    a=1
    b=2

I tested that on gcc 12 and gcc 14.

Quoted 217 lines
Quoted 217 lines
lib/igt_core.c +30 -6
+        }
+
        return (in_dynamic_subtest = dynamic_subtest_name);
 }
 
@@ -1602,6 +1678,17 @@ __noreturn static void exit_subtest(const char *result)
        struct timespec *thentime = in_dynamic_subtest ? &dynamic_subtest_time : &subtest_time;
        jmp_buf *jmptarget = in_dynamic_subtest ? &igt_dynamic_jmpbuf : &igt_subtest_jmpbuf;
 
+        if (igt_hook) {
+                struct igt_hook_evt hook_evt = {
+                        .evt_type = (in_dynamic_subtest
+                                        ? IGT_HOOK_POST_DYN_SUBTEST
+                                        : IGT_HOOK_POST_SUBTEST),
+                        .result = result,
+                };
+
+                igt_hook_push_evt(igt_hook, &hook_evt);
+        }
+
        if (!igt_thread_is_main()) {
                igt_thread_fail();
                pthread_exit(NULL);
@@ -2274,6 +2361,7 @@ void __igt_abort(const char *domain, const char *file, const int line,
 void igt_exit(void)
 {
        int tmp;
+        const char *result;
 
        if (!test_with_subtests)
                igt_thread_assert_no_failures();
@@ -2318,12 +2406,7 @@ void igt_exit(void)
 
        assert(waitpid(-1, &tmp, WNOHANG) == -1 && errno == ECHILD);
 
-        if (!test_with_subtests) {
-                struct timespec now;
-                const char *result;
-
-                igt_gettime(&now);
-
+        if (!test_with_subtests || igt_hook) {
                switch (igt_exitcode) {
                        case IGT_EXIT_SUCCESS:
                                result = "SUCCESS";
@@ -2334,6 +2417,12 @@ void igt_exit(void)
                        default:
                                result = "FAIL";
                }
+        }
+
+        if (!test_with_subtests) {
+                struct timespec now;
+
+                igt_gettime(&now);
 
                if (test_multi_fork_child) /* parent will do the yelling */
                        _log_line_fprintf(stdout, "dyn_child pid:%d (%.3fs) ends with err=%d\n",
@@ -2344,6 +2433,15 @@ void igt_exit(void)
                                          result, igt_time_elapsed(&subtest_time, &now));
        }
 
+        if (igt_hook) {
+                struct igt_hook_evt hook_evt = {
+                        .evt_type = IGT_HOOK_POST_TEST,
+                        .result = result,
+                };
+
+                igt_hook_push_evt(igt_hook, &hook_evt);
+        }
+
        exit(igt_exitcode);
 }
 
lib/igt_hook.c new file +137 -0
new file mode 100644
index 000000000000..a4421e2b1543
@@ -0,0 +1,489 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#include <assert.h>
+#include <errno.h>
+#include <limits.h>
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "igt_core.h"
+#include "igt_hook.h"
+
+/**
+ * SECTION:igt_hook
+ * @short_description: Support for running a hook script on test execution
+ * @title: Hook support
+ *
+ * IGT provides support for running a hook script when executing tests. This
+ * support is provided to users via CLI option `--hook` available in test
+ * binaries. Users should use `--help-hook` for detailed usaged description of
+ * the feature.
+ *
+ * The sole user of the exposed API is `igt_core`, which calls @igt_hook_create()
+ * when initializing a test case, then calls @igt_hook_push_evt() for each event
+ * that occurs during that test's execution and finally calls @igt_hook_free()
+ * to clean up at the end.
+ */
+
+#define TEST_NAME_INITIAL_SIZE 16
+
+typedef uint16_t evt_mask_t;
+
+struct igt_hook {
+        evt_mask_t evt_mask;
+        char *cmd;
+        char *test_name;
+        size_t test_name_size;
+        char *subtest_name;
+        size_t subtest_name_size;
+        char *dyn_subtest_name;
+        size_t dyn_subtest_name_size;
+        char *test_fullname;
+};
+
+enum igt_hook_error {
+        IGT_HOOK_EVT_EMPTY_NAME = 1,
+        IGT_HOOK_EVT_NO_MATCH,
+};
+
+static_assert(IGT_HOOK_NUM_EVENTS <= sizeof(evt_mask_t) * CHAR_BIT,
+              "Number of event types does not fit event type mask");
+
+static const char *igt_hook_evt_type_to_name(enum igt_hook_evt_type evt_type)
+{
+        switch (evt_type) {
+        case IGT_HOOK_PRE_TEST:
+                return "pre-test";
+        case IGT_HOOK_PRE_SUBTEST:
+                return "pre-subtest";
+        case IGT_HOOK_PRE_DYN_SUBTEST:
+                return "pre-dyn-subtest";
+        case IGT_HOOK_POST_DYN_SUBTEST:
+                return "post-dyn-subtest";
+        case IGT_HOOK_POST_SUBTEST:
+                return "post-subtest";
+        case IGT_HOOK_POST_TEST:
+                return "post-test";
+        case IGT_HOOK_NUM_EVENTS:
+                break;
+        /* No "default:" case, to force a warning from -Wswitch in case we miss
+         * any new event type. */
+        }
+        return "?";
+}
+
+static int igt_hook_parse_hook_str(const char *hook_str, evt_mask_t *evt_mask, const char **cmd)
+{
+        const char *s;
+
+        if (!strchr(hook_str, ':')) {
+                *evt_mask = ~0;
+                *cmd = hook_str;
+                return 0;
+        }
+
+        s = hook_str;
+        *evt_mask = 0;
+
+        while (1) {
+                const char *evt_name;
+                bool has_match;
+                bool is_star;
+                enum igt_hook_evt_type evt_type;
+
+                evt_name = s;
+
+                while (*s != ':' && *s != ',')
+                        s++;
+
+                if (evt_name == s)
+                        return IGT_HOOK_EVT_EMPTY_NAME;
+
+                has_match = false;
+                is_star = *evt_name == '*' && evt_name + 1 == s;
+
+                for (evt_type = IGT_HOOK_PRE_TEST; evt_type < IGT_HOOK_NUM_EVENTS; evt_type++) {
+                        if (!is_star) {
+                                const char *this_event_name = igt_hook_evt_type_to_name(evt_type);
+                                size_t len = s - evt_name;
+
+                                if (len != strlen(this_event_name))
+                                        continue;
+
+                                if (strncmp(evt_name, this_event_name, len))
+                                        continue;
+                        }
+
+                        *evt_mask |= 1 << evt_type;
+                        has_match = true;
+
+                        if (!is_star)
+                                break;
+                }
+
+                if (!has_match)
+                        return IGT_HOOK_EVT_NO_MATCH;
+
+                if (*s++ == ':')
+                        break;
+        }
+
Quoted 9 lines

lib/igt_hook.c line 143

Quoted 6 lines
lib/igt_hook.c new file +6 -0
+        *cmd = s;
+
+        return 0;
+}
+
+static size_t igt_hook_calc_test_fullname_size(struct igt_hook *igt_hook) {

{ <--- here

Thanks.

Quoted 6 lines

lib/igt_hook.c line 147

Quoted 4 lines
lib/igt_hook.c new file +4 -0
+        /* The maximum size of test_fullname will be the maximum length of
+         * "igt@<test_name>@<subtest_name>@<dyn_subtest_name>" plus 1 for the
+         * null byte. */
+        return (igt_hook->test_name_size +

no need for parenthesis

I used the parenthesis (and should have probably included the "+ 4" inside) to lineup things like they would be done for kernel style [1]. Although that applies for function parameters, I remember seeing usage for normal expressions as well.

But I can live without them as well :-)

[1]: https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings

Quoted 69 lines
Quoted 69 lines
lib/igt_hook.c new file +68 -0
+                igt_hook->subtest_name_size +
+                igt_hook->dyn_subtest_name_size) + 4;
+}
+
+static void igt_hook_update_test_fullname(struct igt_hook *igt_hook)
+{
+        int i;
+        char *s;
+        const char *values[] = {
+                igt_hook->test_name,
+                igt_hook->subtest_name,
+                igt_hook->dyn_subtest_name,
+                NULL,
+        };
+
+        if (igt_hook->test_name[0] == '\0') {
+                igt_hook->test_fullname[0] = '\0';
+                return;
+        }
+
+        s = stpcpy(igt_hook->test_fullname, "igt");
+        for (i = 0; values[i] && values[i][0] != '\0'; i++) {
+                *s++ = '@';
+                s = stpcpy(s, values[i]);
+        }
+}
+
+/**
+ * igt_hook_create:
+ * @hook_str: Hook descriptor string.
+ * @error: Pointer to error number.
+ *
+ * Allocate and initialize an #igt_hook structure.
+ *
+ * This function parses the hook descriptor @hook_str and initializes the struct
+ * to be returned.
+ *
+ * The hook descriptor comes from the argument to `--hook` of the test
+ * executable being run.
+ *
+ * If not #NULL, @error is used to store a non-zero error number if an error
+ * happens. A human-readable string for that error number can be obtained with
+ * @igt_hook_error_str().
+ *
+ * Returns: The pointer to the #igt_hook structure on success or #NULL on error.
+ */
+struct igt_hook *igt_hook_create(const char *hook_str, int *error)
+{
+        int err;
+        evt_mask_t evt_mask;
+        const char *cmd;
+        struct igt_hook *igt_hook = NULL;
+
+
+        err = igt_hook_parse_hook_str(hook_str, &evt_mask, &cmd);
+        if (err)
+                goto out;
+
+        igt_hook = calloc(1, sizeof(*igt_hook));
+        igt_hook->evt_mask = evt_mask;
+
+        igt_hook->cmd = strdup(cmd);
+        if (!igt_hook->cmd) {
+                err = -errno;
+                goto out;
+        }
+
+        igt_hook->test_name = malloc(TEST_NAME_INITIAL_SIZE);
Quoted 8 lines

lib/igt_hook.c line 220

Quoted 5 lines
lib/igt_hook.c new file +5 -0
+        igt_hook->test_name_size = TEST_NAME_INITIAL_SIZE;
+        igt_hook->subtest_name = malloc(TEST_NAME_INITIAL_SIZE);
+        igt_hook->subtest_name_size = TEST_NAME_INITIAL_SIZE;
+        igt_hook->dyn_subtest_name = malloc(TEST_NAME_INITIAL_SIZE);
+        igt_hook->dyn_subtest_name_size = TEST_NAME_INITIAL_SIZE;

if we store test_name, subtest_name and dyn_subtest_name individually, why do we need to store test_fullname?

To make igt_hook_update_env_vars() as simple as a bunch of setenv() calls.

If you prefer, I could update the code to build the full test name on the fly when setting environment, but like the current version better:
we have everything that we need already in the igt_hook struct and extra memory cost is small IMO.

Now, if your question is more on the lines of "why do we need the full test name if we already expose the components?", I think exposing the full test name is a convenience.

Quoted 111 lines
Quoted 111 lines
lib/igt_hook.c new file +110 -0
+        igt_hook->test_fullname = malloc(igt_hook_calc_test_fullname_size(igt_hook));
+
+        igt_hook->test_name[0] = '\0';
+        igt_hook->subtest_name[0] = '\0';
+        igt_hook->dyn_subtest_name[0] = '\0';
+        igt_hook->test_fullname[0] = '\0';
+
+out:
+        if (err) {
+                if (error)
+                        *error = err;
+
+                igt_hook_free(igt_hook);
+
+                return NULL;
+        }
+
+        return igt_hook;
+}
+
+/**
+ * igt_hook_free:
+ * @igt_hook: The igt_hook struct.
+ *
+ * De-initialize an igt_hook struct returned by @igt_hook_create().
+ *
+ * This is a no-op if @igt_hook is #NULL.
+ */
+void igt_hook_free(struct igt_hook *igt_hook)
+{
+        if (!igt_hook)
+                return;
+
+        free(igt_hook->cmd);
+        free(igt_hook->test_name);
+        free(igt_hook->subtest_name);
+        free(igt_hook->dyn_subtest_name);
+        free(igt_hook);
+}
+
+static void igt_hook_update_test_name_pre_call(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{
+        char **name_ptr;
+        size_t *size_ptr;
+        size_t len;
+
+        switch (evt->evt_type) {
+        case IGT_HOOK_PRE_TEST:
+                name_ptr = &igt_hook->test_name;
+                size_ptr = &igt_hook->test_name_size;
+                break;
+        case IGT_HOOK_PRE_SUBTEST:
+                name_ptr = &igt_hook->subtest_name;
+                size_ptr = &igt_hook->subtest_name_size;
+                break;
+        case IGT_HOOK_PRE_DYN_SUBTEST:
+                name_ptr = &igt_hook->dyn_subtest_name;
+                size_ptr = &igt_hook->dyn_subtest_name_size;
+                break;
+        default:
+                return;
+        }
+
+        len = strlen(evt->target_name);
+        if (len + 1 > *size_ptr) {
+                size_t fullname_size;
+
+                *size_ptr *= 2;
+                *name_ptr = realloc(*name_ptr, *size_ptr);
+
+                fullname_size = igt_hook_calc_test_fullname_size(igt_hook);
+                igt_hook->test_fullname = realloc(igt_hook->test_fullname, fullname_size);
+        }
+
+        strcpy(*name_ptr, evt->target_name);
+        igt_hook_update_test_fullname(igt_hook);
+}
+
+static void igt_hook_update_test_name_post_call(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{
+        switch (evt->evt_type) {
+        case IGT_HOOK_POST_TEST:
+                igt_hook->test_name[0] = '\0';
+                break;
+        case IGT_HOOK_POST_SUBTEST:
+                igt_hook->subtest_name[0] = '\0';
+                break;
+        case IGT_HOOK_POST_DYN_SUBTEST:
+                igt_hook->dyn_subtest_name[0] = '\0';
+                break;
+        default:
+                return;
+        }
+
+        igt_hook_update_test_fullname(igt_hook);
+}
+
+static void igt_hook_update_env_vars(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{
+        setenv("IGT_HOOK_EVENT", igt_hook_evt_type_to_name(evt->evt_type), 1);
+        setenv("IGT_HOOK_TEST_FULLNAME", igt_hook->test_fullname, 1);
+        setenv("IGT_HOOK_TEST", igt_hook->test_name, 1);
+        setenv("IGT_HOOK_SUBTEST", igt_hook->subtest_name, 1);
+        setenv("IGT_HOOK_DYN_SUBTEST", igt_hook->dyn_subtest_name, 1);
+        setenv("IGT_HOOK_RESULT", evt->result ?: "", 1);
+}
+
+/**
+ * igt_hook_push_evt:
+ * @igt_hook: The igt_hook structure.
Quoted 8 lines

lib/igt_hook.c line 335

Quoted 5 lines
lib/igt_hook.c new file +5 -0
+ * @evt: The event to be pushed.
+ *
+ * Push a new igt_hook event.
+ *
+ * This function must be used to register a new igt_hook event. Calling it will

"register" IMO is an odd term. This is notifying/calling the previously registered hook, not registering an event.

The term "register" here is to mean that we are telling that a new event happened. Whether a registered hook gets "notified" (or "called") depends on whether the event matches the event descriptor passed on hook registration.

If you prefer, "notify" could be used instead (to mean what I just described), but I don't think "call" is suitable here.

Quoted 3 lines

igt_hook_event_notify() or igt_hook_event_exec() would be more appropriate I think.

On the same lines as my previous comment, I do not think igt_hook_event_exec() is suitable.

Let's go with igt_hook_event_notify(), then?

Quoted 11 lines
Quoted 11 lines
lib/igt_hook.c new file +9 -0
+ * cause execution of the hook script if the event type matches the filters
+ * provided during initialization of @igt_hook.
+ */
+void igt_hook_push_evt(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{
+        evt_mask_t evt_bit = (1 << evt->evt_type);
+
+        igt_hook_update_test_name_pre_call(igt_hook, evt);
+
Quoted 8 lines

lib/igt_hook.c line 350

Quoted 6 lines
lib/igt_hook.c new file +6 -0
+        if ((evt_bit & igt_hook->evt_mask)) {
+                struct igt_helper_process proc = {};
+
+                igt_fork_helper(&proc) {
+                        igt_hook_update_env_vars(igt_hook, evt);
+                        system(igt_hook->cmd);

humn... we don't care about the return?

Not at the moment. I had considered hooks controlling the execution. For example, we could have a hook causing a test to skip or to abort the overall execution.

However, I decided to keep it simple for now. We could extend the functionality to allow hooks to influence the execution if we see the need in the future.

Quoted 5 lines

also... Why do we double fork?

it rather looks like we want an igt_exec() to complement igt_fork_helper() or at least a small wrapper around execle() do exec /bin/sh passing the command and env to use

I was lazy and did not want to have to deal with stuff that system() gives me for "free". Let me look into how I can improve this with igt_exec()...

Quoted 29 lines
Quoted 29 lines
lib/igt_hook.c new file +28 -0
+                }
+                igt_wait_helper(&proc);
+        }
+
+        igt_hook_update_test_name_post_call(igt_hook, evt);
+}
+
+/**
+ * igt_hook_error_str:
+ * @error: Non-zero error number.
+ *
+ * Return a human-readable string containing a description of an error number
+ * generated by one of the `igt_hook_*` functions.
+ *
+ * The string will be the result of strerror() for errors from the C standard
+ * library or a custom description specific to igt_hook.
+ */
+const char *igt_hook_error_str(int error)
+{
+        if (!error)
+                return "No error";
+
+        if (error > 0) {
+                enum igt_hook_error hook_error = error;
+
+                switch (hook_error) {
+                case IGT_HOOK_EVT_EMPTY_NAME:
+                        return "Empty name in event descriptor";
Quoted 8 lines

lib/igt_hook.c line 384

Quoted 6 lines
lib/igt_hook.c new file +6 -0
+                case IGT_HOOK_EVT_NO_MATCH:
+                        return "Event name in event descriptor does not match any event type";
+                default:
+                        return "Unknown error";
+                }
+        } else {

no need for else

Right. This is also a leftover from v1, where error could be negative. Now there is not need for the "if" either. I'll fix this. Thanks.

Quoted 3 lines

Lucas De Marchi

Thanks for the new feedback! I'll start working on a v3.

--
Gustavo Sousa

Quoted 672 lines
Quoted 672 lines
lib/igt_hook.c new file +105 -0
+                return strerror(-error);
+        }
+}
+
+/**
+ * igt_hook_print_help:
+ * @f: File pointer where to write the output.
+ * @option_name: Name of the CLI option that accepts the hook descriptor.
+ *
+ * Print a detailed user help text on hook usage.
+ */
+void igt_hook_print_help(FILE *f, const char *option_name)
+{
+        fprintf(f, "\
+The option %1$s receives as argument a \"hook descriptor\" and allows the\n\
+execution of a shell command at different points during execution of tests. Each\n\
+such a point is called a \"hook event\".\n\
+\n\
+Examples:\n\
+\n\
+  # Prints hook-specic env vars for every event.\n\
+  %1$s 'printenv | grep ^IGT_HOOK_'\n\
+\n\
+  # Equivalent to the above. Useful if command contains ':'.\n\
+  %1$s '*:printenv | grep ^IGT_HOOK_'\n\
+\n\
+  # Adds a line to out.txt containing the result of each test case.\n\
+  %1$s 'post-test:echo $IGT_HOOK_TEST_FULLNAME $IGT_HOOK_RESULT >> out.txt'\n\
+\n\
+The accepted format for a hook descriptor is `[<events>:]<cmd>`, where:\n\
+\n\
+  - <events> is a comma-separated list of event descriptors, which defines the\n\
+    set of events be tracked. If omitted, all events are tracked.\n\
+\n\
+  - <cmd> is a shell command to be executed on the occurrence each tracked\n\
+    event. If the command contains ':', then passing <events> is required,\n\
+    otherwise part of the command would be treated as an event descriptor.\n\
+\n\
+", option_name);
+
+        fprintf(f, "\
+An \"event descriptor\" is either the name of an event or the string '*'. The\n\
+latter matches all event names. The list of possible event names is provided\n\
+below:\n\
+\n\
+");
+
+        for (enum igt_hook_evt_type et = 0; et < IGT_HOOK_NUM_EVENTS; et++) {
+                const char *desc;
+
+                switch (et) {
+                case IGT_HOOK_PRE_TEST:
+                        desc = "Occurs before a test case starts.";
+                        break;
+                case IGT_HOOK_PRE_SUBTEST:
+                        desc = "Occurs before the execution of a subtest.";
+                        break;
+                case IGT_HOOK_PRE_DYN_SUBTEST:
+                        desc = "Occurs before the execution of a dynamic subtest.";
+                        break;
+                case IGT_HOOK_POST_DYN_SUBTEST:
+                        desc = "Occurs after the execution of a dynamic subtest.";
+                        break;
+                case IGT_HOOK_POST_SUBTEST:
+                        desc = "Occurs after the execution of a subtest.";
+                        break;
+                case IGT_HOOK_POST_TEST:
+                        desc = "Occurs after a test case has finished.";
+                        break;
+                default:
+                        desc = "MISSING DESCRIPTION";
+                }
+
+                fprintf(f, "  %s\n  %s\n\n", igt_hook_evt_type_to_name(et), desc);
+        }
+
+        fprintf(f, "\
+For each event matched by <events>, <cmd> is executed as a shell command. The\n\
+exit status of the command is ignored. The following environment variables are\n\
+available to the command:\n\
+\n\
+  IGT_HOOK_EVENT\n\
+  Name of the current event.\n\
+\n\
+  IGT_HOOK_TEST_FULLNAME\n\
+  Full name of the test in the format `igt@<test>[@<subtest>[@<dyn_subtest>]]`.\n\
+\n\
+  IGT_HOOK_TEST\n\
+  Name of the current test.\n\
+\n\
+  IGT_HOOK_SUBTEST\n\
+  Name of the current subtest. Will be the empty string if not running a\n\
+  subtest.\n\
+\n\
+  IGT_HOOK_DYN_SUBTEST\n\
+  Name of the current dynamic subtest. Will be the empty string if not running a\n\
+  dynamic subtest.\n\
+\n\
+  IGT_HOOK_RESULT\n\
+  String representing the result of the test/subtest/dynamic subtest. Possible\n\
+  values are: SUCCESS, SKIP or FAIL. This is only applicable on \"post-*\"\n\
+  events and will be the empty string for other types of events.\n\
+\n\
+");
+}
lib/igt_hook.h new file +69 -0
new file mode 100644
index 000000000000..a7b67837e5a4
@@ -0,0 +1,69 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#ifndef IGT_HOOK_H
+#define IGT_HOOK_H
+
+#include <stdio.h>
+
+/**
+ * igt_hook:
+ *
+ * Opaque struct to hold data related to hook support.
+ */
+struct igt_hook;
+
+/**
+ * igt_hook_evt_type:
+ * @IGT_HOOK_PRE_TEST: Occurs before a test case (executable) starts the
+ * test code.
+ * @IGT_HOOK_PRE_SUBTEST: Occurs before the execution of a subtest.
+ * @IGT_HOOK_PRE_DYN_SUBTEST: Occurs before the execution of a dynamic subtest.
+ * @IGT_HOOK_POST_DYN_SUBTEST: Occurs after the execution of a dynamic subtest.
+ * @IGT_HOOK_POST_SUBTEST: Occurs after the execution of a subtest..
+ * @IGT_HOOK_POST_TEST: Occurs after a test case (executable) is finished with
+ * the test code.
+ * @IGT_HOOK_NUM_EVENTS: This is not really an event and represents the number
+ * of possible events tracked by igt_hook.
+ *
+ * Events tracked by igt_hook. Those events occur at specific points during the
+ * execution of a test.
+ */
+enum igt_hook_evt_type {
+        IGT_HOOK_PRE_TEST,
+        IGT_HOOK_PRE_SUBTEST,
+        IGT_HOOK_PRE_DYN_SUBTEST,
+        IGT_HOOK_POST_DYN_SUBTEST,
+        IGT_HOOK_POST_SUBTEST,
+        IGT_HOOK_POST_TEST,
+        IGT_HOOK_NUM_EVENTS /* This must always be the last one. */
+};
+
+/**
+ * igt_hook_evt:
+ * @evt_type: Type of event.
+ * @target_name: A string pointing to the name of the test, subtest or dynamic
+ * subtest, depending on @evt_type.
+ * @result: A string containing the result of the test, subtest or dynamic
+ * subtest. This is only applicable for the `IGT_HOOK_POST_\*' event types;
+ * other types must initialize this to #NULL.
+ *
+ * An event tracked by igt_hook, which is done with @igt_hook_push_evt(). This must
+ * be zero initialized and fields relevant to the event type must be set before
+ * passing its reference to @igt_hook_push_evt().
+ */
+struct igt_hook_evt {
+        enum igt_hook_evt_type evt_type;
+        const char *target_name;
+        const char *result;
+};
+
+struct igt_hook *igt_hook_create(const char *hook_str, int *error);
+void igt_hook_free(struct igt_hook *igt_hook);
+void igt_hook_push_evt(struct igt_hook *igt_hook, struct igt_hook_evt *evt);
+const char *igt_hook_error_str(int error);
+void igt_hook_print_help(FILE *f, const char *option_name);
+
+#endif /* IGT_HOOK_H */
lib/meson.build +1 -0
index e2f740c116f8..10b8066647f2 100644
@@ -109,6 +109,7 @@ lib_sources = [
        'veboxcopy_gen12.c',
        'igt_msm.c',
        'igt_dsc.c',
+        'igt_hook.c',
        'xe/xe_gt.c',
        'xe/xe_ioctl.c',
        'xe/xe_mmio.c',
lib/tests/igt_hook.c new file +170 -0
new file mode 100644
index 000000000000..c8a93952abed
@@ -0,0 +1,170 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#include <stdbool.h>
+#include <stdio.h>
+#include <unistd.h>
+
+#include "igt_core.h"
+#include "igt_hook.h"
+
+static const char *env_var_names[] = {
+        "IGT_HOOK_EVENT",
+        "IGT_HOOK_TEST_FULLNAME",
+        "IGT_HOOK_TEST",
+        "IGT_HOOK_SUBTEST",
+        "IGT_HOOK_DYN_SUBTEST",
+        "IGT_HOOK_RESULT",
+};
+
+#define num_env_vars (sizeof(env_var_names) / sizeof(env_var_names[0]))
+
+static int env_var_name_lookup(char *line)
+{
+        int i;
+        char *c;
+
+        c = strchr(line, '=');
+        if (c)
+                *c = '\0';
+
+        for (i = 0; i < num_env_vars; i++)
+                if (!strcmp(line, env_var_names[i]))
+                        goto out;
+
+        i = -1;
+out:
+        if (c)
+                *c = '=';
+
+        return i;
+}
+
+static void test_null_error_pointer(void)
+{
+        struct igt_hook *igt_hook;
+
+        /* Ensure passing NULL error pointer does not cause issues. */
+        igt_hook = igt_hook_create("invalid:echo hello", NULL);
+        igt_assert(igt_hook == NULL);
+}
+
+static void test_invalid_hook_descriptors(void)
+{
+        struct {
+                const char *name;
+                const char *hook_desc;
+        } invalid_cases[] = {
+                {"invalid-event-name", "invalid-event:echo hello"},
+                {"invalid-empty-event-name", ":echo hello"},
+                {"invalid-colon-in-cmd", "echo hello:world"},
+                {},
+        };
+
+        for (int i = 0; invalid_cases[i].name; i++) {
+                igt_subtest(invalid_cases[i].name) {
+                        int err = 0;
+                        struct igt_hook *igt_hook;
+
+                        igt_hook = igt_hook_create(invalid_cases[i].hook_desc, &err);
+                        igt_assert(igt_hook == NULL);
+                        igt_assert(err != 0);
+                }
+        }
+}
+
+static void test_print_help(void)
+{
+        char *buf;
+        size_t len;
+        FILE *f;
+        const char expected_initial_text[] = "The option --hook receives as argument a \"hook descriptor\"";
+
+        f = open_memstream(&buf, &len);
+        igt_assert(f);
+
+        igt_hook_print_help(f, "--hook");
+        fclose(f);
+
+        igt_assert(!strncmp(buf, expected_initial_text, sizeof(expected_initial_text) - 1));
+
+        /* This is an extra check to catch a case where an event type is added
+         * without a proper description. */
+        igt_assert(!strstr(buf, "MISSING DESCRIPTION"));
+
+        free(buf);
+}
+
+static void test_all_env_vars(void)
+{
+        struct igt_hook_evt evt = {
+                .evt_type = IGT_HOOK_PRE_SUBTEST,
+                .target_name = "foo",
+        };
+        bool env_vars_checklist[num_env_vars] = {};
+        struct igt_hook *igt_hook;
+        char *hook_str;
+        FILE *f;
+        int pipefd[2];
+        int ret;
+        int i;
+        char *line;
+        size_t line_size;
+
+        ret = pipe(pipefd);
+        igt_assert(ret == 0);
+
+        /* Use grep to filter only env var set by us. This should ensure that
+         * writing to the pipe will not block due to capacity, since we only
+         * read from the pipe after the shell command is done. */
+        ret = asprintf(&hook_str, "printenv -0 | grep -z ^IGT_HOOK >&%d", pipefd[1]);
+        igt_assert(ret > 0);
+
+        igt_hook = igt_hook_create(hook_str, NULL);
+        igt_assert(igt_hook);
+
+        igt_hook_push_evt(igt_hook, &evt);
+
+        close(pipefd[1]);
+        f = fdopen(pipefd[0], "r");
+        igt_assert(f);
+
+        line = NULL;
+        line_size = 0;
+
+        while (getdelim(&line, &line_size, '\0', f) != -1) {
+                ret = env_var_name_lookup(line);
+                igt_assert_f(ret >= 0, "Unexpected env var %s\n", line);
+                env_vars_checklist[ret] = true;
+        }
+
+        for (i = 0; i < num_env_vars; i++)
+                igt_assert_f(env_vars_checklist[i], "Missing env var %s\n", env_var_names[i]);
+
+        fclose(f);
+        igt_hook_free(igt_hook);
+        free(hook_str);
+        free(line);
+}
+
+igt_main
+{
+        igt_subtest("null-error-pointer")
+                test_null_error_pointer();
+
+        test_invalid_hook_descriptors();
+
+        igt_subtest("help-description")
+                test_print_help();
+
+        igt_subtest_group {
+                igt_fixture {
+                        igt_require_f(system(NULL), "Shell seems not to be available\n");
+                }
+
+                igt_subtest("all-env-vars")
+                        test_all_env_vars();
+        }
+}
lib/tests/igt_hook_integration.c new file +281 -0
new file mode 100644
index 000000000000..f5ba25e92897
@@ -0,0 +1,281 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#include <stdbool.h>
+#include <stdio.h>
+#include <string.h>
+
+#include "igt_core.h"
+
+#include "igt_tests_common.h"
+
+char prog[] = "igt_hook_integration";
+char hook_opt[] = "--hook";
+char hook_str[128];
+char *fake_argv[] = {prog, hook_opt, hook_str};
+int fake_argc = sizeof(fake_argv) / sizeof(fake_argv[0]);
+
+#define ENV_ARRAY(evt_name, fullname_suffix, subtest, dyn_subtest, result) \
+{ \
+        "IGT_HOOK_EVENT=" evt_name, \
+        "IGT_HOOK_TEST_FULLNAME=igt@igt_hook_integration" fullname_suffix, \
+        "IGT_HOOK_TEST=igt_hook_integration", \
+        "IGT_HOOK_SUBTEST=" subtest, \
+        "IGT_HOOK_DYN_SUBTEST=" dyn_subtest, \
+        "IGT_HOOK_RESULT=" result, \
+}
+
+#define TEST_ENV(evt_name, result) \
+        ENV_ARRAY(evt_name, "", "", "", result)
+
+#define SUBTEST_ENV(evt_name, subtest, result) \
+        ENV_ARRAY(evt_name, "@" subtest, subtest, "", result)
+
+#define DYN_SUBTEST_ENV(evt_name, subtest, dyn_subtest, result) \
+        ENV_ARRAY(evt_name, "@" subtest "@" dyn_subtest, subtest, dyn_subtest, result)
+
+const char *pre_test_env[] = TEST_ENV("pre-test", "");
+const char *pre_subtest_a_env[] = SUBTEST_ENV("pre-subtest", "a", "");
+const char *pre_dyn_subtest_a_success_env[] = DYN_SUBTEST_ENV("pre-dyn-subtest", "a", "success", "");
+const char *post_dyn_subtest_a_success_env[] = DYN_SUBTEST_ENV("post-dyn-subtest", "a", "success", "SUCCESS");
+const char *pre_dyn_subtest_a_failed_env[] = DYN_SUBTEST_ENV("pre-dyn-subtest", "a", "failed", "");
+const char *post_dyn_subtest_a_failed_env[] = DYN_SUBTEST_ENV("post-dyn-subtest", "a", "failed", "FAIL");
+const char *pre_dyn_subtest_a_skipped_env[] = DYN_SUBTEST_ENV("pre-dyn-subtest", "a", "skipped", "");
+const char *post_dyn_subtest_a_skipped_env[] = DYN_SUBTEST_ENV("post-dyn-subtest", "a", "skipped", "SKIP");
+const char *post_subtest_a_env[] = SUBTEST_ENV("post-subtest", "a", "FAIL");
+const char *pre_subtest_b_env[] = SUBTEST_ENV("pre-subtest", "b", "");
+const char *post_subtest_b_env[] = SUBTEST_ENV("post-subtest", "b", "SUCCESS");
+const char *post_test_env[] = TEST_ENV("post-test", "FAIL");
+
+#define num_env_vars (sizeof(pre_test_env) / sizeof(pre_test_env[0]))
+
+__noreturn static void fake_main(void)
+{
+        igt_subtest_init(fake_argc, fake_argv);
+
+        igt_subtest_with_dynamic("a") {
+                igt_dynamic("success") {
+                        igt_info("...@a@success\n");
+                }
+
+                igt_dynamic("failed") {
+                        igt_assert_f(false, "Fail on purpose\n");
+                        igt_info("...@a@failed\n");
+                }
+
+                igt_dynamic("skipped") {
+                        igt_require_f(false, "Skip on purpose\n");
+                        igt_info("...@a@skipped\n");
+                }
+        }
+
+        igt_subtest("b") {
+                igt_info("...@b\n");
+        }
+
+        igt_exit();
+}
+
+static void test_invalid_hook_str(void)
+{
+        int status;
+        pid_t pid;
+        static char err[4096];
+        int errfd;
+
+        sprintf(hook_str, "invalid-event:echo hello");
+
+        pid = do_fork_bg_with_pipes(fake_main, NULL, &errfd);
+
+        read_whole_pipe(errfd, err, sizeof(err));
+
+        internal_assert(safe_wait(pid, &status) != -1);
+        internal_assert_wexited(status, IGT_EXIT_INVALID);
+
+        internal_assert(strstr(err, "Failed to initialize hook data:"));
+
+        close(errfd);
+}
+
+static bool match_env(FILE *hook_out_stream, const char **expected_env)
+{
+        int i;
+        char hook_env_buf[4096];
+        size_t buf_len = 0;
+        char *line = NULL;
+        size_t line_size;
+        bool env_checklist[num_env_vars] = {};
+        bool has_unexpected = false;
+        bool has_missing = false;
+
+        /* Store env from hook so we can show it in case of errors */
+        while (getdelim(&line, &line_size, '\0', hook_out_stream) != -1) {
+                internal_assert(buf_len + strlen(line) + 1 <= sizeof(hook_env_buf));
+                strcpy(hook_env_buf + buf_len, line);
+                buf_len += strlen(line) + 1;
+
+                if (!strcmp(line, "---"))
+                        break;
+        }
+
+        if (!expected_env && !buf_len) {
+                /* We have consumed everything and we are done now. */
+                return false;
+        }
+
+
+        if (!expected_env) {
+                printf("Detected unexpected hook execution\n");
+                has_unexpected = true;
+                goto out;
+        }
+
+        if (!buf_len) {
+                printf("Expected more hook execution, but none found\n");
+                has_missing = true;
+                goto out;
+        }
+
+
+        line = hook_env_buf;
+        while (strcmp(line, "---")) {
+                for (i = 0; i < num_env_vars; i++) {
+                        if (!strcmp(line, expected_env[i])) {
+                                env_checklist[i] = true;
+                                break;
+                        }
+                }
+
+                if (i == num_env_vars) {
+                        printf("Unexpected envline from hook: %s\n", line);
+                        has_unexpected = true;
+                }
+
+                line += strlen(line) + 1;
+        }
+
+        for (i = 0; i < num_env_vars; i++) {
+                if (!env_checklist[i]) {
+                        has_missing = true;
+                        printf("Missing expected envline: %s\n", expected_env[i]);
+                }
+        }
+
+out:
+        if (has_unexpected || has_missing) {
+                if (expected_env) {
+                        printf("Expected environment:\n");
+                        for (i = 0; i < num_env_vars; i++)
+                                printf("  %s\n", expected_env[i]);
+                }
+
+                if (buf_len) {
+                        printf("Environment from hook:\n");
+                        line = hook_env_buf;
+                        while (strcmp(line, "---")) {
+                                printf("  %s\n", line);
+                                line += strlen(line) + 1;
+                        }
+                } else {
+                        printf("No hook execution found\n");
+                }
+        }
+
+        internal_assert(!has_unexpected);
+        internal_assert(!has_missing);
+
+        /* Ready to consume next hook output. */
+        return true;
+}
+
+static void run_tests_and_match_env(const char *evt_descriptors, const char **expected_envs[])
+{
+        int i;
+        int ret;
+        int pipefd[2];
+        pid_t pid;
+        FILE *f;
+
+        ret = pipe(pipefd);
+        internal_assert(ret == 0);
+
+        /* Use grep to filter only env var set by us. This should ensure that
+         * writing to the pipe will not block due to capacity, since we only
+         * read from the pipe after the shell command is done. */
+        sprintf(hook_str,
+                "%1$s:printenv -0 | grep -z ^IGT_HOOK >&%2$d; printf -- ---\\\\00 >&%2$d",
+                evt_descriptors,
+                pipefd[1]);
+
+        pid = do_fork_bg_with_pipes(fake_main, NULL, NULL);
+        internal_assert(safe_wait(pid, &ret) != -1);
+        internal_assert_wexited(ret, IGT_EXIT_FAILURE);
+
+        close(pipefd[1]);
+        f = fdopen(pipefd[0], "r");
+        internal_assert(f);
+
+        i = 0;
+        while (match_env(f, expected_envs[i]))
+                i++;
+
+        fclose(f);
+
+}
+
+int main(int argc, char **argv)
+{
+        {
+                printf("Check invalid hook string\n");
+                test_invalid_hook_str();
+        }
+
+        {
+                const char **expected_envs[] = {
+                        pre_test_env,
+                        pre_subtest_a_env,
+                        pre_dyn_subtest_a_success_env,
+                        post_dyn_subtest_a_success_env,
+                        pre_dyn_subtest_a_failed_env,
+                        post_dyn_subtest_a_failed_env,
+                        pre_dyn_subtest_a_skipped_env,
+                        post_dyn_subtest_a_skipped_env,
+                        post_subtest_a_env,
+                        pre_subtest_b_env,
+                        post_subtest_b_env,
+                        post_test_env,
+                        NULL,
+                };
+
+                printf("Check full event tracking\n");
+                run_tests_and_match_env("*", expected_envs);
+        }
+
+        {
+                const char **expected_envs[] = {
+                        pre_dyn_subtest_a_success_env,
+                        pre_dyn_subtest_a_failed_env,
+                        pre_dyn_subtest_a_skipped_env,
+                        NULL,
+                };
+
+                printf("Check single event type tracking\n");
+                run_tests_and_match_env("pre-dyn-subtest", expected_envs);
+        }
+
+        {
+                const char **expected_envs[] = {
+                        pre_subtest_a_env,
+                        post_dyn_subtest_a_success_env,
+                        post_dyn_subtest_a_failed_env,
+                        post_dyn_subtest_a_skipped_env,
+                        pre_subtest_b_env,
+                        NULL,
+                };
+
+                printf("Check multiple event types tracking\n");
+                run_tests_and_match_env("post-dyn-subtest,pre-subtest", expected_envs);
+        }
+}
lib/tests/meson.build +2 -0
index fa3d81de6cef..df8092638eca 100644
@@ -10,6 +10,8 @@ lib_tests = [
        'igt_exit_handler',
        'igt_fork',
        'igt_fork_helper',
+        'igt_hook',
+        'igt_hook_integration',
        'igt_ktap_parser',
        'igt_list_only',
        'igt_invalid_subtest_name',
Signature · 1 line
2.45.2
#4 lore raw

Re: [PATCH i-g-t v2 1/7] igt_hook: Add feature

Quoted 294 lines · Gustavo Sousa

Quoting Lucas De Marchi (2024-07-03 16:27:10-03:00)

Quoted 121 lines · Gustavo Sousa
Quoted 120 lines

For development purposes, sometimes it is useful to have a way of running custom scripts at certain points of test executions. A real-world example I bumped into recently is to collect information from sysfs before and after running each entry of a testlist.

While it is possible for the user to handcraft a script that calls each test with the correct actions before and after execution, we can provide a better experience by adding built-in support for running hooks during test execution.

That would be even better when adding the same kind of support for igt_runner (which is done in an upcoming change), since the user can also nicely resume with igt_resume with the hook already setup in case a crash happens during execution of the test list.

As such provide implement support for hooks, integrate it into igt_core and expose the functionality via --hook CLI option on test executables.

v2:
- s/igt_hook_init/igt_hook_create/ (Lucas)
- Use SPDX License Identifier instead of license text. (Lucas)
- Do not rely on hard-coded length 3 when generating full test name. (Lucas)
- Do not pollute current environment variables when running hooks. (Lucas)
- Change hook string in run_tests_and_match_env() to use "printf" instead of "echo" to be compatible with CI environment.

Cc Lucas De Marchi <[email protected]>

---

.../igt-gpu-tools/igt-gpu-tools-docs.xml      |   1 +
lib/igt_core.c                                | 116 ++++-
lib/igt_hook.c                                | 489 ++++++++++++++++++
lib/igt_hook.h                                |  69 +++
lib/meson.build                               |   1 +
lib/tests/igt_hook.c                          | 170 ++++++
lib/tests/igt_hook_integration.c              | 281 ++++++++++
lib/tests/meson.build                         |   2 +
8 files changed, 1120 insertions(+), 9 deletions(-)

create mode 100644 lib/igt_hook.c
create mode 100644 lib/igt_hook.h
create mode 100644 lib/tests/igt_hook.c create mode 100644 lib/tests/igt_hook_integration.c

docs/reference/igt-gpu-tools/igt-gpu-tools-docs.xml +1 -0
index 9085eb924e85..11458c68124b 100644
@@ -32,6 +32,7 @@
    <xi:include href="xml/igt_fb.xml"/>
    <xi:include href="xml/igt_frame.xml"/>
    <xi:include href="xml/igt_gt.xml"/>
+    <xi:include href="xml/igt_hook.xml"/>
    <xi:include href="xml/igt_io.xml"/>
    <xi:include href="xml/igt_kmod.xml"/>
    <xi:include href="xml/igt_kms.xml"/>
lib/igt_core.c +12 -0
index 3ff3e0392316..6463a5bdcae5 100644
@@ -70,6 +70,7 @@
 
 #include "igt_core.h"
 #include "igt_aux.h"
+#include "igt_hook.h"
 #include "igt_sysfs.h"
 #include "igt_sysrq.h"
 #include "igt_rc.h"
@@ -241,6 +242,9 @@
 * - '*,!basic*' match any subtest not starting basic
 * - 'basic*,!basic-render*' match any subtest starting basic but not starting basic-render
 *
+ * It is possible to run a shell script at certain points of test execution with
+ * "--hook". See the usage description with "--help-hook" for details.
+ *
 * # Configuration
 *
 * Some of IGT's behavior can be configured through a configuration file.
@@ -273,6 +277,8 @@ static unsigned int exit_handler_count;
 const char *igt_interactive_debug;
 bool igt_skip_crc_compare;
 
+static struct igt_hook *igt_hook = NULL;
+
 /* subtests helpers */
 static bool show_testlist = false;
 static bool list_subtests = false;
@@ -338,6 +344,8 @@ enum {
        OPT_INTERACTIVE_DEBUG,
        OPT_SKIP_CRC,
        OPT_TRACE_OOPS,
+        OPT_HOOK,
+        OPT_HELP_HOOK,
        OPT_DEVICE,
        OPT_VERSION,
        OPT_HELP = 'h'
@@ -810,6 +818,8 @@ static void common_exit_handler(int sig)
                bind_fbcon(true);
        }
 
+        igt_hook_free(igt_hook);
+
        /* When not killed by a signal check that igt_exit() has been properly
         * called. */
        assert(sig != 0 || igt_exit_called || igt_is_aborting);
@@ -907,6 +917,8 @@ static void print_usage(const char *help_str, bool output_on_stderr)
                   "  --interactive-debug[=domain]\n"
                   "  --skip-crc-compare\n"
                   "  --trace-on-oops\n"
+                   "  --hook [<events>:]<cmd>\n"
+                   "  --help-hook\n"
                   "  --help-description\n"
                   "  --describe\n"
                   "  --device filters\n"
@@ -1090,6 +1102,8 @@ static int common_init(int *argc, char **argv,
                {"interactive-debug", optional_argument, NULL, OPT_INTERACTIVE_DEBUG},
                {"skip-crc-compare",  no_argument,       NULL, OPT_SKIP_CRC},
                {"trace-on-oops",     no_argument,       NULL, OPT_TRACE_OOPS},
Quoted 8 lines

lib/igt_core.c static int common_init(int *argc, char **argv, · line 1106

Quoted 2 lines
lib/igt_core.c +2 -0
+                {"hook",              required_argument, NULL, OPT_HOOK},
+                {"help-hook",         no_argument,       NULL, OPT_HELP_HOOK},

I'm not a fan of having --help-* for the additional options. I think this is being added because of --help-description? However --help-description should really be just --description (or removed at all since the tests aren't documented like that anymore, which IMO is sad).

Yeah, I saw --help-description and decided to have a --help-hook. But, yeah, now that you mentioned, I agree that those two have different purposes.

Quoted 4 lines

I think we need short explanation for each option, and then probably refer to a man page where longer explanations can be given. I'm not blocking it on that though.

That sounds good. Since all options and not just "--hook" need the short explanation, I guess that can be done in a separate series.

Quoted 19 lines
Quoted 5 lines
lib/igt_core.c +0 -0
                {"device",            required_argument, NULL, OPT_DEVICE},
                {"version",           no_argument,       NULL, OPT_VERSION},
                {"help",              no_argument,       NULL, OPT_HELP},

lib/igt_core.c static int common_init(int *argc, char **argv, · line 1248

Quoted 10 lines
lib/igt_core.c +7 -0
@@ -1225,6 +1239,24 @@ static int common_init(int *argc, char **argv,
                case OPT_TRACE_OOPS:
                        show_ftrace = true;
                        break;
+                case OPT_HOOK:
+                        assert(optarg);
+                        if (igt_hook) {
+                                igt_warn("Overriding previous hook descriptor\n");
+                                igt_hook_free(igt_hook);
+                        }
+                        igt_hook = igt_hook_create(optarg, &ret);

usually functions like this are done the other way around: the return is int and the pointer is passed by ref.

Quoted 2 lines

ret = igt_hook_create(optarg, &igt_hook);

I'll update to match the above. Thanks.

Quoted 31 lines
Quoted 31 lines
lib/igt_core.c +21 -3
+                        if (!igt_hook) {
+                                igt_critical("Failed to initialize hook data: %s\n",
+                                             igt_hook_error_str(ret));
+                                ret = ret > 0 ? -2 : -3;
+                                goto out;
+                        }
+                        break;
+                case OPT_HELP_HOOK:
+                        igt_hook_print_help(stdout, "--hook");
+                        ret = -1;
+                        goto out;
                case OPT_DEVICE:
                        assert(optarg);
                        /* if set by env IGT_DEVICE we need to free it */
@@ -1274,9 +1306,24 @@ out:
                        exit(IGT_EXIT_INVALID);
        }
 
-        if (ret < 0)
-                /* exit with no error for -h/--help */
-                exit(ret == -1 ? 0 : IGT_EXIT_INVALID);
+        if (ret < 0) {
+                free(igt_hook);
+                igt_hook = NULL;
+
+                switch (ret) {
+                case -1: /* exit with no error for -h/--help */
+                        exit(0);
+                        break;
+                case -2:
+                        exit(IGT_EXIT_INVALID);
Quoted 8 lines

lib/igt_core.c out: · line 1321

Quoted 3 lines
lib/igt_core.c +3 -0
+                        break;
+                case -3:
+                        exit(IGT_EXIT_ABORT);

I think ABORT shouldn't be used... this is for when tests can't be executed anymore due to one of the monitored abort conditions. Not if we can't create the igt_hook, which is more likely because of an invalid option.

Yeah. This comes from the first version of the patch series, where a negative error meant something else than invalid hook str. This can be removed now that we only error out because of invalid input.

Thanks!

Quoted 58 lines
Quoted 44 lines
lib/igt_core.c +24 -0
+                        break;
+                default:
+                        assert(0);
+                }
+        }
 
        if (!igt_only_list_subtests()) {
                bind_fbcon(false);
@@ -1284,6 +1331,15 @@ out:
                print_version();
                igt_srandom();
 
+                if (igt_hook) {
+                        struct igt_hook_evt hook_evt = {
+                                .evt_type = IGT_HOOK_PRE_TEST,
+                                .target_name = command_str,
+                        };
+
+                        igt_hook_push_evt(igt_hook, &hook_evt);
+                }
+
                sync();
                oom_adjust_for_doom();
                ftrace_dump_on_oops(show_ftrace);
@@ -1487,6 +1543,16 @@ bool __igt_run_subtest(const char *subtest_name, const char *file, const int lin
        igt_thread_clear_fail_state();
 
        igt_gettime(&subtest_time);
+
+        if (igt_hook) {
+                struct igt_hook_evt hook_evt = {
+                        .evt_type = IGT_HOOK_PRE_SUBTEST,
+                        .target_name = subtest_name,
+                };
+
+                igt_hook_push_evt(igt_hook, &hook_evt);
+        }
+
        return (in_subtest = subtest_name);
 }
 
@@ -1517,6 +1583,16 @@ bool __igt_run_dynamic_subtest(const char *dynamic_subtest_name)
        _igt_dynamic_tests_executed++;

lib/igt_core.c bool __igt_run_dynamic_subtest(const char *dynamic_subtest_name) · line 1593

Quoted 10 lines
lib/igt_core.c +8 -0
 
        igt_gettime(&dynamic_subtest_time);
+
+        if (igt_hook) {
+                struct igt_hook_evt hook_evt = {
+                        .evt_type = IGT_HOOK_PRE_DYN_SUBTEST,
+                        .target_name = dynamic_subtest_name,
+                };
+
+                igt_hook_push_evt(igt_hook, &hook_evt);

I'm wondering if we shouldn't make igt_hook_push_evt() accept NULL as argument so we can use a compound literal like below:

Quoted 4 lines
       igt_hook_push_evt(igt_hook, (struct igt_hook_evt[]){
               .evt_type = IGT_HOOK_PRE_DYN_SUBTEST,
               .target_name = dynamic_subtest_name });

That sounds good, however I don't get why we would need
to make igt_hook_push_evt() accept NULL for that. This seems to compile fine:

   $ cat /tmp/foo.c
   #include <stdio.h>
   struct some_struct {
       int a;
       int b;
   };

   void f(struct some_struct *s)
   {
       printf("a=%d\nb=%d\n", s->a, s->b);
   }

   int main()
Quoted 8 lines
   {
       f(&(struct some_struct){.a = 1, .b = 2});
       return 0;
   }

   $ gcc -Wall -Wextra -Werror -o /tmp/foo /tmp/foo.c && /tmp/foo
   a=1
   b=2

I meant igt_hook_push_evt() to accept NULL as the first argument. So instead of doing this everywhere:

	if (igt_hook)
		igt_hook_push_evt(igt_hook, ...)

we do this:

	igt_hook_push_evt(igt_hook, ...)

Without the compound literal accepting NULL as the first arg would be kind of pointless since you'd still need to setup the second argument (struct igt_hook_evt), probably in a inner scope. But having the NULL check for the first + compound literal for the second, we can reduce the boilerplate code to add events.

Quoted 239 lines

I tested that on gcc 12 and gcc 14.

Quoted 217 lines
Quoted 217 lines
lib/igt_core.c +30 -6
+        }
+
        return (in_dynamic_subtest = dynamic_subtest_name);
 }
 
@@ -1602,6 +1678,17 @@ __noreturn static void exit_subtest(const char *result)
        struct timespec *thentime = in_dynamic_subtest ? &dynamic_subtest_time : &subtest_time;
        jmp_buf *jmptarget = in_dynamic_subtest ? &igt_dynamic_jmpbuf : &igt_subtest_jmpbuf;
 
+        if (igt_hook) {
+                struct igt_hook_evt hook_evt = {
+                        .evt_type = (in_dynamic_subtest
+                                        ? IGT_HOOK_POST_DYN_SUBTEST
+                                        : IGT_HOOK_POST_SUBTEST),
+                        .result = result,
+                };
+
+                igt_hook_push_evt(igt_hook, &hook_evt);
+        }
+
        if (!igt_thread_is_main()) {
                igt_thread_fail();
                pthread_exit(NULL);
@@ -2274,6 +2361,7 @@ void __igt_abort(const char *domain, const char *file, const int line,
 void igt_exit(void)
 {
        int tmp;
+        const char *result;
 
        if (!test_with_subtests)
                igt_thread_assert_no_failures();
@@ -2318,12 +2406,7 @@ void igt_exit(void)
 
        assert(waitpid(-1, &tmp, WNOHANG) == -1 && errno == ECHILD);
 
-        if (!test_with_subtests) {
-                struct timespec now;
-                const char *result;
-
-                igt_gettime(&now);
-
+        if (!test_with_subtests || igt_hook) {
                switch (igt_exitcode) {
                        case IGT_EXIT_SUCCESS:
                                result = "SUCCESS";
@@ -2334,6 +2417,12 @@ void igt_exit(void)
                        default:
                                result = "FAIL";
                }
+        }
+
+        if (!test_with_subtests) {
+                struct timespec now;
+
+                igt_gettime(&now);
 
                if (test_multi_fork_child) /* parent will do the yelling */
                        _log_line_fprintf(stdout, "dyn_child pid:%d (%.3fs) ends with err=%d\n",
@@ -2344,6 +2433,15 @@ void igt_exit(void)
                                          result, igt_time_elapsed(&subtest_time, &now));
        }
 
+        if (igt_hook) {
+                struct igt_hook_evt hook_evt = {
+                        .evt_type = IGT_HOOK_POST_TEST,
+                        .result = result,
+                };
+
+                igt_hook_push_evt(igt_hook, &hook_evt);
+        }
+
        exit(igt_exitcode);
 }
 
lib/igt_hook.c new file +137 -0
new file mode 100644
index 000000000000..a4421e2b1543
@@ -0,0 +1,489 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#include <assert.h>
+#include <errno.h>
+#include <limits.h>
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "igt_core.h"
+#include "igt_hook.h"
+
+/**
+ * SECTION:igt_hook
+ * @short_description: Support for running a hook script on test execution
+ * @title: Hook support
+ *
+ * IGT provides support for running a hook script when executing tests. This
+ * support is provided to users via CLI option `--hook` available in test
+ * binaries. Users should use `--help-hook` for detailed usaged description of
+ * the feature.
+ *
+ * The sole user of the exposed API is `igt_core`, which calls @igt_hook_create()
+ * when initializing a test case, then calls @igt_hook_push_evt() for each event
+ * that occurs during that test's execution and finally calls @igt_hook_free()
+ * to clean up at the end.
+ */
+
+#define TEST_NAME_INITIAL_SIZE 16
+
+typedef uint16_t evt_mask_t;
+
+struct igt_hook {
+        evt_mask_t evt_mask;
+        char *cmd;
+        char *test_name;
+        size_t test_name_size;
+        char *subtest_name;
+        size_t subtest_name_size;
+        char *dyn_subtest_name;
+        size_t dyn_subtest_name_size;
+        char *test_fullname;
+};
+
+enum igt_hook_error {
+        IGT_HOOK_EVT_EMPTY_NAME = 1,
+        IGT_HOOK_EVT_NO_MATCH,
+};
+
+static_assert(IGT_HOOK_NUM_EVENTS <= sizeof(evt_mask_t) * CHAR_BIT,
+              "Number of event types does not fit event type mask");
+
+static const char *igt_hook_evt_type_to_name(enum igt_hook_evt_type evt_type)
+{
+        switch (evt_type) {
+        case IGT_HOOK_PRE_TEST:
+                return "pre-test";
+        case IGT_HOOK_PRE_SUBTEST:
+                return "pre-subtest";
+        case IGT_HOOK_PRE_DYN_SUBTEST:
+                return "pre-dyn-subtest";
+        case IGT_HOOK_POST_DYN_SUBTEST:
+                return "post-dyn-subtest";
+        case IGT_HOOK_POST_SUBTEST:
+                return "post-subtest";
+        case IGT_HOOK_POST_TEST:
+                return "post-test";
+        case IGT_HOOK_NUM_EVENTS:
+                break;
+        /* No "default:" case, to force a warning from -Wswitch in case we miss
+         * any new event type. */
+        }
+        return "?";
+}
+
+static int igt_hook_parse_hook_str(const char *hook_str, evt_mask_t *evt_mask, const char **cmd)
+{
+        const char *s;
+
+        if (!strchr(hook_str, ':')) {
+                *evt_mask = ~0;
+                *cmd = hook_str;
+                return 0;
+        }
+
+        s = hook_str;
+        *evt_mask = 0;
+
+        while (1) {
+                const char *evt_name;
+                bool has_match;
+                bool is_star;
+                enum igt_hook_evt_type evt_type;
+
+                evt_name = s;
+
+                while (*s != ':' && *s != ',')
+                        s++;
+
+                if (evt_name == s)
+                        return IGT_HOOK_EVT_EMPTY_NAME;
+
+                has_match = false;
+                is_star = *evt_name == '*' && evt_name + 1 == s;
+
+                for (evt_type = IGT_HOOK_PRE_TEST; evt_type < IGT_HOOK_NUM_EVENTS; evt_type++) {
+                        if (!is_star) {
+                                const char *this_event_name = igt_hook_evt_type_to_name(evt_type);
+                                size_t len = s - evt_name;
+
+                                if (len != strlen(this_event_name))
+                                        continue;
+
+                                if (strncmp(evt_name, this_event_name, len))
+                                        continue;
+                        }
+
+                        *evt_mask |= 1 << evt_type;
+                        has_match = true;
+
+                        if (!is_star)
+                                break;
+                }
+
+                if (!has_match)
+                        return IGT_HOOK_EVT_NO_MATCH;
+
+                if (*s++ == ':')
+                        break;
+        }
+
Quoted 9 lines

lib/igt_hook.c line 143

Quoted 6 lines
lib/igt_hook.c new file +6 -0
+        *cmd = s;
+
+        return 0;
+}
+
+static size_t igt_hook_calc_test_fullname_size(struct igt_hook *igt_hook) {

{ <--- here

Thanks.

Quoted 6 lines

lib/igt_hook.c line 147

Quoted 4 lines
lib/igt_hook.c new file +4 -0
+        /* The maximum size of test_fullname will be the maximum length of
+         * "igt@<test_name>@<subtest_name>@<dyn_subtest_name>" plus 1 for the
+         * null byte. */
+        return (igt_hook->test_name_size +

no need for parenthesis

Quoted 8 lines

I used the parenthesis (and should have probably included the "+ 4" inside) to lineup things like they would be done for kernel style [1]. Although that applies for function parameters, I remember seeing usage for normal expressions as well.

But I can live without them as well :-)

[1]: https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings

we shouldn't add random chars (parenthesis in this case) to align stuff. In the kernel it's perfectly fine to do:

	return igt_hook->test_name_size +
		igt_hook->subtest_name_size +
		igt_hook->dyn_subtest_name_size + 4;
Quoted 82 lines
Quoted 70 lines
Quoted 70 lines
lib/igt_hook.c new file +68 -0
+                igt_hook->subtest_name_size +
+                igt_hook->dyn_subtest_name_size) + 4;
+}
+
+static void igt_hook_update_test_fullname(struct igt_hook *igt_hook)
+{
+        int i;
+        char *s;
+        const char *values[] = {
+                igt_hook->test_name,
+                igt_hook->subtest_name,
+                igt_hook->dyn_subtest_name,
+                NULL,
+        };
+
+        if (igt_hook->test_name[0] == '\0') {
+                igt_hook->test_fullname[0] = '\0';
+                return;
+        }
+
+        s = stpcpy(igt_hook->test_fullname, "igt");
+        for (i = 0; values[i] && values[i][0] != '\0'; i++) {
+                *s++ = '@';
+                s = stpcpy(s, values[i]);
+        }
+}
+
+/**
+ * igt_hook_create:
+ * @hook_str: Hook descriptor string.
+ * @error: Pointer to error number.
+ *
+ * Allocate and initialize an #igt_hook structure.
+ *
+ * This function parses the hook descriptor @hook_str and initializes the struct
+ * to be returned.
+ *
+ * The hook descriptor comes from the argument to `--hook` of the test
+ * executable being run.
+ *
+ * If not #NULL, @error is used to store a non-zero error number if an error
+ * happens. A human-readable string for that error number can be obtained with
+ * @igt_hook_error_str().
+ *
+ * Returns: The pointer to the #igt_hook structure on success or #NULL on error.
+ */
+struct igt_hook *igt_hook_create(const char *hook_str, int *error)
+{
+        int err;
+        evt_mask_t evt_mask;
+        const char *cmd;
+        struct igt_hook *igt_hook = NULL;
+
+
+        err = igt_hook_parse_hook_str(hook_str, &evt_mask, &cmd);
+        if (err)
+                goto out;
+
+        igt_hook = calloc(1, sizeof(*igt_hook));
+        igt_hook->evt_mask = evt_mask;
+
+        igt_hook->cmd = strdup(cmd);
+        if (!igt_hook->cmd) {
+                err = -errno;
+                goto out;
+        }
+
+        igt_hook->test_name = malloc(TEST_NAME_INITIAL_SIZE);
Quoted 8 lines

lib/igt_hook.c line 220

Quoted 5 lines
lib/igt_hook.c new file +5 -0
+        igt_hook->test_name_size = TEST_NAME_INITIAL_SIZE;
+        igt_hook->subtest_name = malloc(TEST_NAME_INITIAL_SIZE);
+        igt_hook->subtest_name_size = TEST_NAME_INITIAL_SIZE;
+        igt_hook->dyn_subtest_name = malloc(TEST_NAME_INITIAL_SIZE);
+        igt_hook->dyn_subtest_name_size = TEST_NAME_INITIAL_SIZE;

if we store test_name, subtest_name and dyn_subtest_name individually, why do we need to store test_fullname?

To make igt_hook_update_env_vars() as simple as a bunch of setenv() calls.

Quoted 8 lines

If you prefer, I could update the code to build the full test name on the fly when setting environment, but like the current version better:
we have everything that we need already in the igt_hook struct and extra memory cost is small IMO.

Now, if your question is more on the lines of "why do we need the full test name if we already expose the components?", I think exposing the full test name is a convenience.

humn... but we still call igt_hook_update_test_fullname() to update it Anyway, nothing critical here, I'd just do this differently

Quoted 121 lines
Quoted 112 lines
Quoted 112 lines
lib/igt_hook.c new file +110 -0
+        igt_hook->test_fullname = malloc(igt_hook_calc_test_fullname_size(igt_hook));
+
+        igt_hook->test_name[0] = '\0';
+        igt_hook->subtest_name[0] = '\0';
+        igt_hook->dyn_subtest_name[0] = '\0';
+        igt_hook->test_fullname[0] = '\0';
+
+out:
+        if (err) {
+                if (error)
+                        *error = err;
+
+                igt_hook_free(igt_hook);
+
+                return NULL;
+        }
+
+        return igt_hook;
+}
+
+/**
+ * igt_hook_free:
+ * @igt_hook: The igt_hook struct.
+ *
+ * De-initialize an igt_hook struct returned by @igt_hook_create().
+ *
+ * This is a no-op if @igt_hook is #NULL.
+ */
+void igt_hook_free(struct igt_hook *igt_hook)
+{
+        if (!igt_hook)
+                return;
+
+        free(igt_hook->cmd);
+        free(igt_hook->test_name);
+        free(igt_hook->subtest_name);
+        free(igt_hook->dyn_subtest_name);
+        free(igt_hook);
+}
+
+static void igt_hook_update_test_name_pre_call(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{
+        char **name_ptr;
+        size_t *size_ptr;
+        size_t len;
+
+        switch (evt->evt_type) {
+        case IGT_HOOK_PRE_TEST:
+                name_ptr = &igt_hook->test_name;
+                size_ptr = &igt_hook->test_name_size;
+                break;
+        case IGT_HOOK_PRE_SUBTEST:
+                name_ptr = &igt_hook->subtest_name;
+                size_ptr = &igt_hook->subtest_name_size;
+                break;
+        case IGT_HOOK_PRE_DYN_SUBTEST:
+                name_ptr = &igt_hook->dyn_subtest_name;
+                size_ptr = &igt_hook->dyn_subtest_name_size;
+                break;
+        default:
+                return;
+        }
+
+        len = strlen(evt->target_name);
+        if (len + 1 > *size_ptr) {
+                size_t fullname_size;
+
+                *size_ptr *= 2;
+                *name_ptr = realloc(*name_ptr, *size_ptr);
+
+                fullname_size = igt_hook_calc_test_fullname_size(igt_hook);
+                igt_hook->test_fullname = realloc(igt_hook->test_fullname, fullname_size);
+        }
+
+        strcpy(*name_ptr, evt->target_name);
+        igt_hook_update_test_fullname(igt_hook);
+}
+
+static void igt_hook_update_test_name_post_call(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{
+        switch (evt->evt_type) {
+        case IGT_HOOK_POST_TEST:
+                igt_hook->test_name[0] = '\0';
+                break;
+        case IGT_HOOK_POST_SUBTEST:
+                igt_hook->subtest_name[0] = '\0';
+                break;
+        case IGT_HOOK_POST_DYN_SUBTEST:
+                igt_hook->dyn_subtest_name[0] = '\0';
+                break;
+        default:
+                return;
+        }
+
+        igt_hook_update_test_fullname(igt_hook);
+}
+
+static void igt_hook_update_env_vars(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{
+        setenv("IGT_HOOK_EVENT", igt_hook_evt_type_to_name(evt->evt_type), 1);
+        setenv("IGT_HOOK_TEST_FULLNAME", igt_hook->test_fullname, 1);
+        setenv("IGT_HOOK_TEST", igt_hook->test_name, 1);
+        setenv("IGT_HOOK_SUBTEST", igt_hook->subtest_name, 1);
+        setenv("IGT_HOOK_DYN_SUBTEST", igt_hook->dyn_subtest_name, 1);
+        setenv("IGT_HOOK_RESULT", evt->result ?: "", 1);
+}
+
+/**
+ * igt_hook_push_evt:
+ * @igt_hook: The igt_hook structure.
Quoted 8 lines

lib/igt_hook.c line 335

Quoted 5 lines
lib/igt_hook.c new file +5 -0
+ * @evt: The event to be pushed.
+ *
+ * Push a new igt_hook event.
+ *
+ * This function must be used to register a new igt_hook event. Calling it will

"register" IMO is an odd term. This is notifying/calling the previously registered hook, not registering an event.

Quoted 7 lines

The term "register" here is to mean that we are telling that a new event happened. Whether a registered hook gets "notified" (or "called") depends on whether the event matches the event descriptor passed on hook registration.

If you prefer, "notify" could be used instead (to mean what I just described), but I don't think "call" is suitable here.

notify sounds good to me.

Quoted 9 lines
Quoted 4 lines

igt_hook_event_notify() or igt_hook_event_exec() would be more appropriate I think.

On the same lines as my previous comment, I do not think igt_hook_event_exec() is suitable.

Let's go with igt_hook_event_notify(), then?

yep

Quoted 31 lines
Quoted 12 lines
Quoted 12 lines
lib/igt_hook.c new file +9 -0
+ * cause execution of the hook script if the event type matches the filters
+ * provided during initialization of @igt_hook.
+ */
+void igt_hook_push_evt(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{
+        evt_mask_t evt_bit = (1 << evt->evt_type);
+
+        igt_hook_update_test_name_pre_call(igt_hook, evt);
+
Quoted 8 lines

lib/igt_hook.c line 350

Quoted 6 lines
lib/igt_hook.c new file +6 -0
+        if ((evt_bit & igt_hook->evt_mask)) {
+                struct igt_helper_process proc = {};
+
+                igt_fork_helper(&proc) {
+                        igt_hook_update_env_vars(igt_hook, evt);
+                        system(igt_hook->cmd);

humn... we don't care about the return?

Not at the moment. I had considered hooks controlling the execution. For example, we could have a hook causing a test to skip or to abort the overall execution.

However, I decided to keep it simple for now. We could extend the functionality to allow hooks to influence the execution if we see the need in the future.

Quoted 2 lines

also... Why do we double fork?

Quoted 7 lines
Quoted 3 lines

it rather looks like we want an igt_exec() to complement igt_fork_helper() or at least a small wrapper around execle() do exec /bin/sh passing the command and env to use

I was lazy and did not want to have to deal with stuff that system() gives me for "free". Let me look into how I can improve this with igt_exec()...

what I find odd is that now we have a double fork, with the seconde fork exec'ing. If we keep using system() why do we need the fork helper since...

Quoted 4 lines
Quoted 4 lines

lib/igt_hook.c line 352

Quoted 4 lines
lib/igt_hook.c new file +2 -0
+                }
+                igt_wait_helper(&proc);

^ we are just waiting for it to complete.

is it so we update the env only in the forked context? Any downside of having the env var set in igt_runner's context?

Quoted 40 lines
Quoted 26 lines
Quoted 26 lines
lib/igt_hook.c new file +26 -0
+        }
+
+        igt_hook_update_test_name_post_call(igt_hook, evt);
+}
+
+/**
+ * igt_hook_error_str:
+ * @error: Non-zero error number.
+ *
+ * Return a human-readable string containing a description of an error number
+ * generated by one of the `igt_hook_*` functions.
+ *
+ * The string will be the result of strerror() for errors from the C standard
+ * library or a custom description specific to igt_hook.
+ */
+const char *igt_hook_error_str(int error)
+{
+        if (!error)
+                return "No error";
+
+        if (error > 0) {
+                enum igt_hook_error hook_error = error;
+
+                switch (hook_error) {
+                case IGT_HOOK_EVT_EMPTY_NAME:
+                        return "Empty name in event descriptor";
Quoted 8 lines

lib/igt_hook.c line 384

Quoted 6 lines
lib/igt_hook.c new file +6 -0
+                case IGT_HOOK_EVT_NO_MATCH:
+                        return "Event name in event descriptor does not match any event type";
+                default:
+                        return "Unknown error";
+                }
+        } else {

no need for else

Right. This is also a leftover from v1, where error could be negative. Now there is not need for the "if" either. I'll fix this. Thanks.

Quoted 2 lines
Quoted 5 lines
Quoted 1 line

Lucas De Marchi

Thanks for the new feedback! I'll start working on a v3.

thanks
Lucas De Marchi

Quoted 675 lines

--
Gustavo Sousa

Quoted 672 lines
Quoted 672 lines
lib/igt_hook.c new file +105 -0
+                return strerror(-error);
+        }
+}
+
+/**
+ * igt_hook_print_help:
+ * @f: File pointer where to write the output.
+ * @option_name: Name of the CLI option that accepts the hook descriptor.
+ *
+ * Print a detailed user help text on hook usage.
+ */
+void igt_hook_print_help(FILE *f, const char *option_name)
+{
+        fprintf(f, "\
+The option %1$s receives as argument a \"hook descriptor\" and allows the\n\
+execution of a shell command at different points during execution of tests. Each\n\
+such a point is called a \"hook event\".\n\
+\n\
+Examples:\n\
+\n\
+  # Prints hook-specic env vars for every event.\n\
+  %1$s 'printenv | grep ^IGT_HOOK_'\n\
+\n\
+  # Equivalent to the above. Useful if command contains ':'.\n\
+  %1$s '*:printenv | grep ^IGT_HOOK_'\n\
+\n\
+  # Adds a line to out.txt containing the result of each test case.\n\
+  %1$s 'post-test:echo $IGT_HOOK_TEST_FULLNAME $IGT_HOOK_RESULT >> out.txt'\n\
+\n\
+The accepted format for a hook descriptor is `[<events>:]<cmd>`, where:\n\
+\n\
+  - <events> is a comma-separated list of event descriptors, which defines the\n\
+    set of events be tracked. If omitted, all events are tracked.\n\
+\n\
+  - <cmd> is a shell command to be executed on the occurrence each tracked\n\
+    event. If the command contains ':', then passing <events> is required,\n\
+    otherwise part of the command would be treated as an event descriptor.\n\
+\n\
+", option_name);
+
+        fprintf(f, "\
+An \"event descriptor\" is either the name of an event or the string '*'. The\n\
+latter matches all event names. The list of possible event names is provided\n\
+below:\n\
+\n\
+");
+
+        for (enum igt_hook_evt_type et = 0; et < IGT_HOOK_NUM_EVENTS; et++) {
+                const char *desc;
+
+                switch (et) {
+                case IGT_HOOK_PRE_TEST:
+                        desc = "Occurs before a test case starts.";
+                        break;
+                case IGT_HOOK_PRE_SUBTEST:
+                        desc = "Occurs before the execution of a subtest.";
+                        break;
+                case IGT_HOOK_PRE_DYN_SUBTEST:
+                        desc = "Occurs before the execution of a dynamic subtest.";
+                        break;
+                case IGT_HOOK_POST_DYN_SUBTEST:
+                        desc = "Occurs after the execution of a dynamic subtest.";
+                        break;
+                case IGT_HOOK_POST_SUBTEST:
+                        desc = "Occurs after the execution of a subtest.";
+                        break;
+                case IGT_HOOK_POST_TEST:
+                        desc = "Occurs after a test case has finished.";
+                        break;
+                default:
+                        desc = "MISSING DESCRIPTION";
+                }
+
+                fprintf(f, "  %s\n  %s\n\n", igt_hook_evt_type_to_name(et), desc);
+        }
+
+        fprintf(f, "\
+For each event matched by <events>, <cmd> is executed as a shell command. The\n\
+exit status of the command is ignored. The following environment variables are\n\
+available to the command:\n\
+\n\
+  IGT_HOOK_EVENT\n\
+  Name of the current event.\n\
+\n\
+  IGT_HOOK_TEST_FULLNAME\n\
+  Full name of the test in the format `igt@<test>[@<subtest>[@<dyn_subtest>]]`.\n\
+\n\
+  IGT_HOOK_TEST\n\
+  Name of the current test.\n\
+\n\
+  IGT_HOOK_SUBTEST\n\
+  Name of the current subtest. Will be the empty string if not running a\n\
+  subtest.\n\
+\n\
+  IGT_HOOK_DYN_SUBTEST\n\
+  Name of the current dynamic subtest. Will be the empty string if not running a\n\
+  dynamic subtest.\n\
+\n\
+  IGT_HOOK_RESULT\n\
+  String representing the result of the test/subtest/dynamic subtest. Possible\n\
+  values are: SUCCESS, SKIP or FAIL. This is only applicable on \"post-*\"\n\
+  events and will be the empty string for other types of events.\n\
+\n\
+");
+}
lib/igt_hook.h new file +69 -0
new file mode 100644
index 000000000000..a7b67837e5a4
@@ -0,0 +1,69 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#ifndef IGT_HOOK_H
+#define IGT_HOOK_H
+
+#include <stdio.h>
+
+/**
+ * igt_hook:
+ *
+ * Opaque struct to hold data related to hook support.
+ */
+struct igt_hook;
+
+/**
+ * igt_hook_evt_type:
+ * @IGT_HOOK_PRE_TEST: Occurs before a test case (executable) starts the
+ * test code.
+ * @IGT_HOOK_PRE_SUBTEST: Occurs before the execution of a subtest.
+ * @IGT_HOOK_PRE_DYN_SUBTEST: Occurs before the execution of a dynamic subtest.
+ * @IGT_HOOK_POST_DYN_SUBTEST: Occurs after the execution of a dynamic subtest.
+ * @IGT_HOOK_POST_SUBTEST: Occurs after the execution of a subtest..
+ * @IGT_HOOK_POST_TEST: Occurs after a test case (executable) is finished with
+ * the test code.
+ * @IGT_HOOK_NUM_EVENTS: This is not really an event and represents the number
+ * of possible events tracked by igt_hook.
+ *
+ * Events tracked by igt_hook. Those events occur at specific points during the
+ * execution of a test.
+ */
+enum igt_hook_evt_type {
+        IGT_HOOK_PRE_TEST,
+        IGT_HOOK_PRE_SUBTEST,
+        IGT_HOOK_PRE_DYN_SUBTEST,
+        IGT_HOOK_POST_DYN_SUBTEST,
+        IGT_HOOK_POST_SUBTEST,
+        IGT_HOOK_POST_TEST,
+        IGT_HOOK_NUM_EVENTS /* This must always be the last one. */
+};
+
+/**
+ * igt_hook_evt:
+ * @evt_type: Type of event.
+ * @target_name: A string pointing to the name of the test, subtest or dynamic
+ * subtest, depending on @evt_type.
+ * @result: A string containing the result of the test, subtest or dynamic
+ * subtest. This is only applicable for the `IGT_HOOK_POST_\*' event types;
+ * other types must initialize this to #NULL.
+ *
+ * An event tracked by igt_hook, which is done with @igt_hook_push_evt(). This must
+ * be zero initialized and fields relevant to the event type must be set before
+ * passing its reference to @igt_hook_push_evt().
+ */
+struct igt_hook_evt {
+        enum igt_hook_evt_type evt_type;
+        const char *target_name;
+        const char *result;
+};
+
+struct igt_hook *igt_hook_create(const char *hook_str, int *error);
+void igt_hook_free(struct igt_hook *igt_hook);
+void igt_hook_push_evt(struct igt_hook *igt_hook, struct igt_hook_evt *evt);
+const char *igt_hook_error_str(int error);
+void igt_hook_print_help(FILE *f, const char *option_name);
+
+#endif /* IGT_HOOK_H */
lib/meson.build +1 -0
index e2f740c116f8..10b8066647f2 100644
@@ -109,6 +109,7 @@ lib_sources = [
        'veboxcopy_gen12.c',
        'igt_msm.c',
        'igt_dsc.c',
+        'igt_hook.c',
        'xe/xe_gt.c',
        'xe/xe_ioctl.c',
        'xe/xe_mmio.c',
lib/tests/igt_hook.c new file +170 -0
new file mode 100644
index 000000000000..c8a93952abed
@@ -0,0 +1,170 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#include <stdbool.h>
+#include <stdio.h>
+#include <unistd.h>
+
+#include "igt_core.h"
+#include "igt_hook.h"
+
+static const char *env_var_names[] = {
+        "IGT_HOOK_EVENT",
+        "IGT_HOOK_TEST_FULLNAME",
+        "IGT_HOOK_TEST",
+        "IGT_HOOK_SUBTEST",
+        "IGT_HOOK_DYN_SUBTEST",
+        "IGT_HOOK_RESULT",
+};
+
+#define num_env_vars (sizeof(env_var_names) / sizeof(env_var_names[0]))
+
+static int env_var_name_lookup(char *line)
+{
+        int i;
+        char *c;
+
+        c = strchr(line, '=');
+        if (c)
+                *c = '\0';
+
+        for (i = 0; i < num_env_vars; i++)
+                if (!strcmp(line, env_var_names[i]))
+                        goto out;
+
+        i = -1;
+out:
+        if (c)
+                *c = '=';
+
+        return i;
+}
+
+static void test_null_error_pointer(void)
+{
+        struct igt_hook *igt_hook;
+
+        /* Ensure passing NULL error pointer does not cause issues. */
+        igt_hook = igt_hook_create("invalid:echo hello", NULL);
+        igt_assert(igt_hook == NULL);
+}
+
+static void test_invalid_hook_descriptors(void)
+{
+        struct {
+                const char *name;
+                const char *hook_desc;
+        } invalid_cases[] = {
+                {"invalid-event-name", "invalid-event:echo hello"},
+                {"invalid-empty-event-name", ":echo hello"},
+                {"invalid-colon-in-cmd", "echo hello:world"},
+                {},
+        };
+
+        for (int i = 0; invalid_cases[i].name; i++) {
+                igt_subtest(invalid_cases[i].name) {
+                        int err = 0;
+                        struct igt_hook *igt_hook;
+
+                        igt_hook = igt_hook_create(invalid_cases[i].hook_desc, &err);
+                        igt_assert(igt_hook == NULL);
+                        igt_assert(err != 0);
+                }
+        }
+}
+
+static void test_print_help(void)
+{
+        char *buf;
+        size_t len;
+        FILE *f;
+        const char expected_initial_text[] = "The option --hook receives as argument a \"hook descriptor\"";
+
+        f = open_memstream(&buf, &len);
+        igt_assert(f);
+
+        igt_hook_print_help(f, "--hook");
+        fclose(f);
+
+        igt_assert(!strncmp(buf, expected_initial_text, sizeof(expected_initial_text) - 1));
+
+        /* This is an extra check to catch a case where an event type is added
+         * without a proper description. */
+        igt_assert(!strstr(buf, "MISSING DESCRIPTION"));
+
+        free(buf);
+}
+
+static void test_all_env_vars(void)
+{
+        struct igt_hook_evt evt = {
+                .evt_type = IGT_HOOK_PRE_SUBTEST,
+                .target_name = "foo",
+        };
+        bool env_vars_checklist[num_env_vars] = {};
+        struct igt_hook *igt_hook;
+        char *hook_str;
+        FILE *f;
+        int pipefd[2];
+        int ret;
+        int i;
+        char *line;
+        size_t line_size;
+
+        ret = pipe(pipefd);
+        igt_assert(ret == 0);
+
+        /* Use grep to filter only env var set by us. This should ensure that
+         * writing to the pipe will not block due to capacity, since we only
+         * read from the pipe after the shell command is done. */
+        ret = asprintf(&hook_str, "printenv -0 | grep -z ^IGT_HOOK >&%d", pipefd[1]);
+        igt_assert(ret > 0);
+
+        igt_hook = igt_hook_create(hook_str, NULL);
+        igt_assert(igt_hook);
+
+        igt_hook_push_evt(igt_hook, &evt);
+
+        close(pipefd[1]);
+        f = fdopen(pipefd[0], "r");
+        igt_assert(f);
+
+        line = NULL;
+        line_size = 0;
+
+        while (getdelim(&line, &line_size, '\0', f) != -1) {
+                ret = env_var_name_lookup(line);
+                igt_assert_f(ret >= 0, "Unexpected env var %s\n", line);
+                env_vars_checklist[ret] = true;
+        }
+
+        for (i = 0; i < num_env_vars; i++)
+                igt_assert_f(env_vars_checklist[i], "Missing env var %s\n", env_var_names[i]);
+
+        fclose(f);
+        igt_hook_free(igt_hook);
+        free(hook_str);
+        free(line);
+}
+
+igt_main
+{
+        igt_subtest("null-error-pointer")
+                test_null_error_pointer();
+
+        test_invalid_hook_descriptors();
+
+        igt_subtest("help-description")
+                test_print_help();
+
+        igt_subtest_group {
+                igt_fixture {
+                        igt_require_f(system(NULL), "Shell seems not to be available\n");
+                }
+
+                igt_subtest("all-env-vars")
+                        test_all_env_vars();
+        }
+}
lib/tests/igt_hook_integration.c new file +281 -0
new file mode 100644
index 000000000000..f5ba25e92897
@@ -0,0 +1,281 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#include <stdbool.h>
+#include <stdio.h>
+#include <string.h>
+
+#include "igt_core.h"
+
+#include "igt_tests_common.h"
+
+char prog[] = "igt_hook_integration";
+char hook_opt[] = "--hook";
+char hook_str[128];
+char *fake_argv[] = {prog, hook_opt, hook_str};
+int fake_argc = sizeof(fake_argv) / sizeof(fake_argv[0]);
+
+#define ENV_ARRAY(evt_name, fullname_suffix, subtest, dyn_subtest, result) \
+{ \
+        "IGT_HOOK_EVENT=" evt_name, \
+        "IGT_HOOK_TEST_FULLNAME=igt@igt_hook_integration" fullname_suffix, \
+        "IGT_HOOK_TEST=igt_hook_integration", \
+        "IGT_HOOK_SUBTEST=" subtest, \
+        "IGT_HOOK_DYN_SUBTEST=" dyn_subtest, \
+        "IGT_HOOK_RESULT=" result, \
+}
+
+#define TEST_ENV(evt_name, result) \
+        ENV_ARRAY(evt_name, "", "", "", result)
+
+#define SUBTEST_ENV(evt_name, subtest, result) \
+        ENV_ARRAY(evt_name, "@" subtest, subtest, "", result)
+
+#define DYN_SUBTEST_ENV(evt_name, subtest, dyn_subtest, result) \
+        ENV_ARRAY(evt_name, "@" subtest "@" dyn_subtest, subtest, dyn_subtest, result)
+
+const char *pre_test_env[] = TEST_ENV("pre-test", "");
+const char *pre_subtest_a_env[] = SUBTEST_ENV("pre-subtest", "a", "");
+const char *pre_dyn_subtest_a_success_env[] = DYN_SUBTEST_ENV("pre-dyn-subtest", "a", "success", "");
+const char *post_dyn_subtest_a_success_env[] = DYN_SUBTEST_ENV("post-dyn-subtest", "a", "success", "SUCCESS");
+const char *pre_dyn_subtest_a_failed_env[] = DYN_SUBTEST_ENV("pre-dyn-subtest", "a", "failed", "");
+const char *post_dyn_subtest_a_failed_env[] = DYN_SUBTEST_ENV("post-dyn-subtest", "a", "failed", "FAIL");
+const char *pre_dyn_subtest_a_skipped_env[] = DYN_SUBTEST_ENV("pre-dyn-subtest", "a", "skipped", "");
+const char *post_dyn_subtest_a_skipped_env[] = DYN_SUBTEST_ENV("post-dyn-subtest", "a", "skipped", "SKIP");
+const char *post_subtest_a_env[] = SUBTEST_ENV("post-subtest", "a", "FAIL");
+const char *pre_subtest_b_env[] = SUBTEST_ENV("pre-subtest", "b", "");
+const char *post_subtest_b_env[] = SUBTEST_ENV("post-subtest", "b", "SUCCESS");
+const char *post_test_env[] = TEST_ENV("post-test", "FAIL");
+
+#define num_env_vars (sizeof(pre_test_env) / sizeof(pre_test_env[0]))
+
+__noreturn static void fake_main(void)
+{
+        igt_subtest_init(fake_argc, fake_argv);
+
+        igt_subtest_with_dynamic("a") {
+                igt_dynamic("success") {
+                        igt_info("...@a@success\n");
+                }
+
+                igt_dynamic("failed") {
+                        igt_assert_f(false, "Fail on purpose\n");
+                        igt_info("...@a@failed\n");
+                }
+
+                igt_dynamic("skipped") {
+                        igt_require_f(false, "Skip on purpose\n");
+                        igt_info("...@a@skipped\n");
+                }
+        }
+
+        igt_subtest("b") {
+                igt_info("...@b\n");
+        }
+
+        igt_exit();
+}
+
+static void test_invalid_hook_str(void)
+{
+        int status;
+        pid_t pid;
+        static char err[4096];
+        int errfd;
+
+        sprintf(hook_str, "invalid-event:echo hello");
+
+        pid = do_fork_bg_with_pipes(fake_main, NULL, &errfd);
+
+        read_whole_pipe(errfd, err, sizeof(err));
+
+        internal_assert(safe_wait(pid, &status) != -1);
+        internal_assert_wexited(status, IGT_EXIT_INVALID);
+
+        internal_assert(strstr(err, "Failed to initialize hook data:"));
+
+        close(errfd);
+}
+
+static bool match_env(FILE *hook_out_stream, const char **expected_env)
+{
+        int i;
+        char hook_env_buf[4096];
+        size_t buf_len = 0;
+        char *line = NULL;
+        size_t line_size;
+        bool env_checklist[num_env_vars] = {};
+        bool has_unexpected = false;
+        bool has_missing = false;
+
+        /* Store env from hook so we can show it in case of errors */
+        while (getdelim(&line, &line_size, '\0', hook_out_stream) != -1) {
+                internal_assert(buf_len + strlen(line) + 1 <= sizeof(hook_env_buf));
+                strcpy(hook_env_buf + buf_len, line);
+                buf_len += strlen(line) + 1;
+
+                if (!strcmp(line, "---"))
+                        break;
+        }
+
+        if (!expected_env && !buf_len) {
+                /* We have consumed everything and we are done now. */
+                return false;
+        }
+
+
+        if (!expected_env) {
+                printf("Detected unexpected hook execution\n");
+                has_unexpected = true;
+                goto out;
+        }
+
+        if (!buf_len) {
+                printf("Expected more hook execution, but none found\n");
+                has_missing = true;
+                goto out;
+        }
+
+
+        line = hook_env_buf;
+        while (strcmp(line, "---")) {
+                for (i = 0; i < num_env_vars; i++) {
+                        if (!strcmp(line, expected_env[i])) {
+                                env_checklist[i] = true;
+                                break;
+                        }
+                }
+
+                if (i == num_env_vars) {
+                        printf("Unexpected envline from hook: %s\n", line);
+                        has_unexpected = true;
+                }
+
+                line += strlen(line) + 1;
+        }
+
+        for (i = 0; i < num_env_vars; i++) {
+                if (!env_checklist[i]) {
+                        has_missing = true;
+                        printf("Missing expected envline: %s\n", expected_env[i]);
+                }
+        }
+
+out:
+        if (has_unexpected || has_missing) {
+                if (expected_env) {
+                        printf("Expected environment:\n");
+                        for (i = 0; i < num_env_vars; i++)
+                                printf("  %s\n", expected_env[i]);
+                }
+
+                if (buf_len) {
+                        printf("Environment from hook:\n");
+                        line = hook_env_buf;
+                        while (strcmp(line, "---")) {
+                                printf("  %s\n", line);
+                                line += strlen(line) + 1;
+                        }
+                } else {
+                        printf("No hook execution found\n");
+                }
+        }
+
+        internal_assert(!has_unexpected);
+        internal_assert(!has_missing);
+
+        /* Ready to consume next hook output. */
+        return true;
+}
+
+static void run_tests_and_match_env(const char *evt_descriptors, const char **expected_envs[])
+{
+        int i;
+        int ret;
+        int pipefd[2];
+        pid_t pid;
+        FILE *f;
+
+        ret = pipe(pipefd);
+        internal_assert(ret == 0);
+
+        /* Use grep to filter only env var set by us. This should ensure that
+         * writing to the pipe will not block due to capacity, since we only
+         * read from the pipe after the shell command is done. */
+        sprintf(hook_str,
+                "%1$s:printenv -0 | grep -z ^IGT_HOOK >&%2$d; printf -- ---\\\\00 >&%2$d",
+                evt_descriptors,
+                pipefd[1]);
+
+        pid = do_fork_bg_with_pipes(fake_main, NULL, NULL);
+        internal_assert(safe_wait(pid, &ret) != -1);
+        internal_assert_wexited(ret, IGT_EXIT_FAILURE);
+
+        close(pipefd[1]);
+        f = fdopen(pipefd[0], "r");
+        internal_assert(f);
+
+        i = 0;
+        while (match_env(f, expected_envs[i]))
+                i++;
+
+        fclose(f);
+
+}
+
+int main(int argc, char **argv)
+{
+        {
+                printf("Check invalid hook string\n");
+                test_invalid_hook_str();
+        }
+
+        {
+                const char **expected_envs[] = {
+                        pre_test_env,
+                        pre_subtest_a_env,
+                        pre_dyn_subtest_a_success_env,
+                        post_dyn_subtest_a_success_env,
+                        pre_dyn_subtest_a_failed_env,
+                        post_dyn_subtest_a_failed_env,
+                        pre_dyn_subtest_a_skipped_env,
+                        post_dyn_subtest_a_skipped_env,
+                        post_subtest_a_env,
+                        pre_subtest_b_env,
+                        post_subtest_b_env,
+                        post_test_env,
+                        NULL,
+                };
+
+                printf("Check full event tracking\n");
+                run_tests_and_match_env("*", expected_envs);
+        }
+
+        {
+                const char **expected_envs[] = {
+                        pre_dyn_subtest_a_success_env,
+                        pre_dyn_subtest_a_failed_env,
+                        pre_dyn_subtest_a_skipped_env,
+                        NULL,
+                };
+
+                printf("Check single event type tracking\n");
+                run_tests_and_match_env("pre-dyn-subtest", expected_envs);
+        }
+
+        {
+                const char **expected_envs[] = {
+                        pre_subtest_a_env,
+                        post_dyn_subtest_a_success_env,
+                        post_dyn_subtest_a_failed_env,
+                        post_dyn_subtest_a_skipped_env,
+                        pre_subtest_b_env,
+                        NULL,
+                };
+
+                printf("Check multiple event types tracking\n");
+                run_tests_and_match_env("post-dyn-subtest,pre-subtest", expected_envs);
+        }
+}
lib/tests/meson.build +2 -1
index fa3d81de6cef..df8092638eca 100644
@@ -10,6 +10,8 @@ lib_tests = [
        'igt_exit_handler',
        'igt_fork',
        'igt_fork_helper',
+        'igt_hook',
+        'igt_hook_integration',
        'igt_ktap_parser',
        'igt_list_only',
        'igt_invalid_subtest_name',
--

2.45.2

#5 lore raw

Re: [PATCH i-g-t v2 1/7] igt_hook: Add feature

Quoting Lucas De Marchi (2024-07-24 14:29:30-03:00)

Quoted 312 lines · Gustavo Sousa
Quoted 294 lines

Quoting Lucas De Marchi (2024-07-03 16:27:10-03:00)

Quoted 121 lines · Gustavo Sousa
Quoted 120 lines

For development purposes, sometimes it is useful to have a way of running custom scripts at certain points of test executions. A real-world example I bumped into recently is to collect information from sysfs before and after running each entry of a testlist.

While it is possible for the user to handcraft a script that calls each test with the correct actions before and after execution, we can provide a better experience by adding built-in support for running hooks during test execution.

That would be even better when adding the same kind of support for igt_runner (which is done in an upcoming change), since the user can also nicely resume with igt_resume with the hook already setup in case a crash happens during execution of the test list.

As such provide implement support for hooks, integrate it into igt_core and expose the functionality via --hook CLI option on test executables.

v2:
- s/igt_hook_init/igt_hook_create/ (Lucas)
- Use SPDX License Identifier instead of license text. (Lucas)
- Do not rely on hard-coded length 3 when generating full test name. (Lucas)
- Do not pollute current environment variables when running hooks. (Lucas)
- Change hook string in run_tests_and_match_env() to use "printf" instead of "echo" to be compatible with CI environment.

Cc Lucas De Marchi <[email protected]>

---

.../igt-gpu-tools/igt-gpu-tools-docs.xml      |   1 +
lib/igt_core.c                                | 116 ++++-
lib/igt_hook.c                                | 489 ++++++++++++++++++
lib/igt_hook.h                                |  69 +++
lib/meson.build                               |   1 +
lib/tests/igt_hook.c                          | 170 ++++++
lib/tests/igt_hook_integration.c              | 281 ++++++++++
lib/tests/meson.build                         |   2 +
8 files changed, 1120 insertions(+), 9 deletions(-)

create mode 100644 lib/igt_hook.c
create mode 100644 lib/igt_hook.h
create mode 100644 lib/tests/igt_hook.c create mode 100644 lib/tests/igt_hook_integration.c

docs/reference/igt-gpu-tools/igt-gpu-tools-docs.xml +1 -0
index 9085eb924e85..11458c68124b 100644
@@ -32,6 +32,7 @@
    <xi:include href="xml/igt_fb.xml"/>
    <xi:include href="xml/igt_frame.xml"/>
    <xi:include href="xml/igt_gt.xml"/>
+    <xi:include href="xml/igt_hook.xml"/>
    <xi:include href="xml/igt_io.xml"/>
    <xi:include href="xml/igt_kmod.xml"/>
    <xi:include href="xml/igt_kms.xml"/>
lib/igt_core.c +12 -0
index 3ff3e0392316..6463a5bdcae5 100644
@@ -70,6 +70,7 @@
 
 #include "igt_core.h"
 #include "igt_aux.h"
+#include "igt_hook.h"
 #include "igt_sysfs.h"
 #include "igt_sysrq.h"
 #include "igt_rc.h"
@@ -241,6 +242,9 @@
 * - '*,!basic*' match any subtest not starting basic
 * - 'basic*,!basic-render*' match any subtest starting basic but not starting basic-render
 *
+ * It is possible to run a shell script at certain points of test execution with
+ * "--hook". See the usage description with "--help-hook" for details.
+ *
 * # Configuration
 *
 * Some of IGT's behavior can be configured through a configuration file.
@@ -273,6 +277,8 @@ static unsigned int exit_handler_count;
 const char *igt_interactive_debug;
 bool igt_skip_crc_compare;
 
+static struct igt_hook *igt_hook = NULL;
+
 /* subtests helpers */
 static bool show_testlist = false;
 static bool list_subtests = false;
@@ -338,6 +344,8 @@ enum {
        OPT_INTERACTIVE_DEBUG,
        OPT_SKIP_CRC,
        OPT_TRACE_OOPS,
+        OPT_HOOK,
+        OPT_HELP_HOOK,
        OPT_DEVICE,
        OPT_VERSION,
        OPT_HELP = 'h'
@@ -810,6 +818,8 @@ static void common_exit_handler(int sig)
                bind_fbcon(true);
        }
 
+        igt_hook_free(igt_hook);
+
        /* When not killed by a signal check that igt_exit() has been properly
         * called. */
        assert(sig != 0 || igt_exit_called || igt_is_aborting);
@@ -907,6 +917,8 @@ static void print_usage(const char *help_str, bool output_on_stderr)
                   "  --interactive-debug[=domain]\n"
                   "  --skip-crc-compare\n"
                   "  --trace-on-oops\n"
+                   "  --hook [<events>:]<cmd>\n"
+                   "  --help-hook\n"
                   "  --help-description\n"
                   "  --describe\n"
                   "  --device filters\n"
@@ -1090,6 +1102,8 @@ static int common_init(int *argc, char **argv,
                {"interactive-debug", optional_argument, NULL, OPT_INTERACTIVE_DEBUG},
                {"skip-crc-compare",  no_argument,       NULL, OPT_SKIP_CRC},
                {"trace-on-oops",     no_argument,       NULL, OPT_TRACE_OOPS},
Quoted 8 lines

lib/igt_core.c static int common_init(int *argc, char **argv, · line 1106

Quoted 2 lines
lib/igt_core.c +2 -0
+                {"hook",              required_argument, NULL, OPT_HOOK},
+                {"help-hook",         no_argument,       NULL, OPT_HELP_HOOK},

I'm not a fan of having --help-* for the additional options. I think this is being added because of --help-description? However --help-description should really be just --description (or removed at all since the tests aren't documented like that anymore, which IMO is sad).

Yeah, I saw --help-description and decided to have a --help-hook. But, yeah, now that you mentioned, I agree that those two have different purposes.

Quoted 4 lines

I think we need short explanation for each option, and then probably refer to a man page where longer explanations can be given. I'm not blocking it on that though.

That sounds good. Since all options and not just "--hook" need the short explanation, I guess that can be done in a separate series.

Quoted 19 lines
Quoted 5 lines
lib/igt_core.c +0 -0
                {"device",            required_argument, NULL, OPT_DEVICE},
                {"version",           no_argument,       NULL, OPT_VERSION},
                {"help",              no_argument,       NULL, OPT_HELP},

lib/igt_core.c static int common_init(int *argc, char **argv, · line 1248

Quoted 10 lines
lib/igt_core.c +7 -0
@@ -1225,6 +1239,24 @@ static int common_init(int *argc, char **argv,
                case OPT_TRACE_OOPS:
                        show_ftrace = true;
                        break;
+                case OPT_HOOK:
+                        assert(optarg);
+                        if (igt_hook) {
+                                igt_warn("Overriding previous hook descriptor\n");
+                                igt_hook_free(igt_hook);
+                        }
+                        igt_hook = igt_hook_create(optarg, &ret);

usually functions like this are done the other way around: the return is int and the pointer is passed by ref.

Quoted 2 lines

ret = igt_hook_create(optarg, &igt_hook);

I'll update to match the above. Thanks.

Quoted 31 lines
Quoted 31 lines
lib/igt_core.c +21 -3
+                        if (!igt_hook) {
+                                igt_critical("Failed to initialize hook data: %s\n",
+                                             igt_hook_error_str(ret));
+                                ret = ret > 0 ? -2 : -3;
+                                goto out;
+                        }
+                        break;
+                case OPT_HELP_HOOK:
+                        igt_hook_print_help(stdout, "--hook");
+                        ret = -1;
+                        goto out;
                case OPT_DEVICE:
                        assert(optarg);
                        /* if set by env IGT_DEVICE we need to free it */
@@ -1274,9 +1306,24 @@ out:
                        exit(IGT_EXIT_INVALID);
        }
 
-        if (ret < 0)
-                /* exit with no error for -h/--help */
-                exit(ret == -1 ? 0 : IGT_EXIT_INVALID);
+        if (ret < 0) {
+                free(igt_hook);
+                igt_hook = NULL;
+
+                switch (ret) {
+                case -1: /* exit with no error for -h/--help */
+                        exit(0);
+                        break;
+                case -2:
+                        exit(IGT_EXIT_INVALID);
Quoted 8 lines

lib/igt_core.c out: · line 1321

Quoted 3 lines
lib/igt_core.c +3 -0
+                        break;
+                case -3:
+                        exit(IGT_EXIT_ABORT);

I think ABORT shouldn't be used... this is for when tests can't be executed anymore due to one of the monitored abort conditions. Not if we can't create the igt_hook, which is more likely because of an invalid option.

Yeah. This comes from the first version of the patch series, where a negative error meant something else than invalid hook str. This can be removed now that we only error out because of invalid input.

Thanks!

Quoted 58 lines
Quoted 44 lines
lib/igt_core.c +24 -0
+                        break;
+                default:
+                        assert(0);
+                }
+        }
 
        if (!igt_only_list_subtests()) {
                bind_fbcon(false);
@@ -1284,6 +1331,15 @@ out:
                print_version();
                igt_srandom();
 
+                if (igt_hook) {
+                        struct igt_hook_evt hook_evt = {
+                                .evt_type = IGT_HOOK_PRE_TEST,
+                                .target_name = command_str,
+                        };
+
+                        igt_hook_push_evt(igt_hook, &hook_evt);
+                }
+
                sync();
                oom_adjust_for_doom();
                ftrace_dump_on_oops(show_ftrace);
@@ -1487,6 +1543,16 @@ bool __igt_run_subtest(const char *subtest_name, const char *file, const int lin
        igt_thread_clear_fail_state();
 
        igt_gettime(&subtest_time);
+
+        if (igt_hook) {
+                struct igt_hook_evt hook_evt = {
+                        .evt_type = IGT_HOOK_PRE_SUBTEST,
+                        .target_name = subtest_name,
+                };
+
+                igt_hook_push_evt(igt_hook, &hook_evt);
+        }
+
        return (in_subtest = subtest_name);
 }
 
@@ -1517,6 +1583,16 @@ bool __igt_run_dynamic_subtest(const char *dynamic_subtest_name)
        _igt_dynamic_tests_executed++;

lib/igt_core.c bool __igt_run_dynamic_subtest(const char *dynamic_subtest_name) · line 1593

Quoted 10 lines
lib/igt_core.c +8 -0
 
        igt_gettime(&dynamic_subtest_time);
+
+        if (igt_hook) {
+                struct igt_hook_evt hook_evt = {
+                        .evt_type = IGT_HOOK_PRE_DYN_SUBTEST,
+                        .target_name = dynamic_subtest_name,
+                };
+
+                igt_hook_push_evt(igt_hook, &hook_evt);

I'm wondering if we shouldn't make igt_hook_push_evt() accept NULL as argument so we can use a compound literal like below:

Quoted 4 lines
       igt_hook_push_evt(igt_hook, (struct igt_hook_evt[]){
               .evt_type = IGT_HOOK_PRE_DYN_SUBTEST,
               .target_name = dynamic_subtest_name });

That sounds good, however I don't get why we would need
to make igt_hook_push_evt() accept NULL for that. This seems to compile fine:

   $ cat /tmp/foo.c
   #include <stdio.h>
   struct some_struct {
       int a;
       int b;
   };

   void f(struct some_struct *s)
   {
       printf("a=%d\nb=%d\n", s->a, s->b);
   }

   int main()
Quoted 8 lines
   {
       f(&(struct some_struct){.a = 1, .b = 2});
       return 0;
   }

   $ gcc -Wall -Wextra -Werror -o /tmp/foo /tmp/foo.c && /tmp/foo
   a=1
   b=2

I meant igt_hook_push_evt() to accept NULL as the first argument. So instead of doing this everywhere:

       if (igt_hook)
               igt_hook_push_evt(igt_hook, ...)

we do this:

Quoted 7 lines
       igt_hook_push_evt(igt_hook, ...)

Without the compound literal accepting NULL as the first arg would be kind of pointless since you'd still need to setup the second argument (struct igt_hook_evt), probably in a inner scope. But having the NULL check for the first + compound literal for the second, we can reduce the boilerplate code to add events.

Ahhh, okay. That makes much more sense now. :-)

Thanks for the clarification.

Quoted 246 lines
Quoted 246 lines

I tested that on gcc 12 and gcc 14.

Quoted 217 lines
Quoted 217 lines
lib/igt_core.c +30 -6
+        }
+
        return (in_dynamic_subtest = dynamic_subtest_name);
 }
 
@@ -1602,6 +1678,17 @@ __noreturn static void exit_subtest(const char *result)
        struct timespec *thentime = in_dynamic_subtest ? &dynamic_subtest_time : &subtest_time;
        jmp_buf *jmptarget = in_dynamic_subtest ? &igt_dynamic_jmpbuf : &igt_subtest_jmpbuf;
 
+        if (igt_hook) {
+                struct igt_hook_evt hook_evt = {
+                        .evt_type = (in_dynamic_subtest
+                                        ? IGT_HOOK_POST_DYN_SUBTEST
+                                        : IGT_HOOK_POST_SUBTEST),
+                        .result = result,
+                };
+
+                igt_hook_push_evt(igt_hook, &hook_evt);
+        }
+
        if (!igt_thread_is_main()) {
                igt_thread_fail();
                pthread_exit(NULL);
@@ -2274,6 +2361,7 @@ void __igt_abort(const char *domain, const char *file, const int line,
 void igt_exit(void)
 {
        int tmp;
+        const char *result;
 
        if (!test_with_subtests)
                igt_thread_assert_no_failures();
@@ -2318,12 +2406,7 @@ void igt_exit(void)
 
        assert(waitpid(-1, &tmp, WNOHANG) == -1 && errno == ECHILD);
 
-        if (!test_with_subtests) {
-                struct timespec now;
-                const char *result;
-
-                igt_gettime(&now);
-
+        if (!test_with_subtests || igt_hook) {
                switch (igt_exitcode) {
                        case IGT_EXIT_SUCCESS:
                                result = "SUCCESS";
@@ -2334,6 +2417,12 @@ void igt_exit(void)
                        default:
                                result = "FAIL";
                }
+        }
+
+        if (!test_with_subtests) {
+                struct timespec now;
+
+                igt_gettime(&now);
 
                if (test_multi_fork_child) /* parent will do the yelling */
                        _log_line_fprintf(stdout, "dyn_child pid:%d (%.3fs) ends with err=%d\n",
@@ -2344,6 +2433,15 @@ void igt_exit(void)
                                          result, igt_time_elapsed(&subtest_time, &now));
        }
 
+        if (igt_hook) {
+                struct igt_hook_evt hook_evt = {
+                        .evt_type = IGT_HOOK_POST_TEST,
+                        .result = result,
+                };
+
+                igt_hook_push_evt(igt_hook, &hook_evt);
+        }
+
        exit(igt_exitcode);
 }
 
lib/igt_hook.c new file +137 -0
new file mode 100644
index 000000000000..a4421e2b1543
@@ -0,0 +1,489 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#include <assert.h>
+#include <errno.h>
+#include <limits.h>
+#include <stdbool.h>
+#include <stddef.h>
+#include <stdint.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "igt_core.h"
+#include "igt_hook.h"
+
+/**
+ * SECTION:igt_hook
+ * @short_description: Support for running a hook script on test execution
+ * @title: Hook support
+ *
+ * IGT provides support for running a hook script when executing tests. This
+ * support is provided to users via CLI option `--hook` available in test
+ * binaries. Users should use `--help-hook` for detailed usaged description of
+ * the feature.
+ *
+ * The sole user of the exposed API is `igt_core`, which calls @igt_hook_create()
+ * when initializing a test case, then calls @igt_hook_push_evt() for each event
+ * that occurs during that test's execution and finally calls @igt_hook_free()
+ * to clean up at the end.
+ */
+
+#define TEST_NAME_INITIAL_SIZE 16
+
+typedef uint16_t evt_mask_t;
+
+struct igt_hook {
+        evt_mask_t evt_mask;
+        char *cmd;
+        char *test_name;
+        size_t test_name_size;
+        char *subtest_name;
+        size_t subtest_name_size;
+        char *dyn_subtest_name;
+        size_t dyn_subtest_name_size;
+        char *test_fullname;
+};
+
+enum igt_hook_error {
+        IGT_HOOK_EVT_EMPTY_NAME = 1,
+        IGT_HOOK_EVT_NO_MATCH,
+};
+
+static_assert(IGT_HOOK_NUM_EVENTS <= sizeof(evt_mask_t) * CHAR_BIT,
+              "Number of event types does not fit event type mask");
+
+static const char *igt_hook_evt_type_to_name(enum igt_hook_evt_type evt_type)
+{
+        switch (evt_type) {
+        case IGT_HOOK_PRE_TEST:
+                return "pre-test";
+        case IGT_HOOK_PRE_SUBTEST:
+                return "pre-subtest";
+        case IGT_HOOK_PRE_DYN_SUBTEST:
+                return "pre-dyn-subtest";
+        case IGT_HOOK_POST_DYN_SUBTEST:
+                return "post-dyn-subtest";
+        case IGT_HOOK_POST_SUBTEST:
+                return "post-subtest";
+        case IGT_HOOK_POST_TEST:
+                return "post-test";
+        case IGT_HOOK_NUM_EVENTS:
+                break;
+        /* No "default:" case, to force a warning from -Wswitch in case we miss
+         * any new event type. */
+        }
+        return "?";
+}
+
+static int igt_hook_parse_hook_str(const char *hook_str, evt_mask_t *evt_mask, const char **cmd)
+{
+        const char *s;
+
+        if (!strchr(hook_str, ':')) {
+                *evt_mask = ~0;
+                *cmd = hook_str;
+                return 0;
+        }
+
+        s = hook_str;
+        *evt_mask = 0;
+
+        while (1) {
+                const char *evt_name;
+                bool has_match;
+                bool is_star;
+                enum igt_hook_evt_type evt_type;
+
+                evt_name = s;
+
+                while (*s != ':' && *s != ',')
+                        s++;
+
+                if (evt_name == s)
+                        return IGT_HOOK_EVT_EMPTY_NAME;
+
+                has_match = false;
+                is_star = *evt_name == '*' && evt_name + 1 == s;
+
+                for (evt_type = IGT_HOOK_PRE_TEST; evt_type < IGT_HOOK_NUM_EVENTS; evt_type++) {
+                        if (!is_star) {
+                                const char *this_event_name = igt_hook_evt_type_to_name(evt_type);
+                                size_t len = s - evt_name;
+
+                                if (len != strlen(this_event_name))
+                                        continue;
+
+                                if (strncmp(evt_name, this_event_name, len))
+                                        continue;
+                        }
+
+                        *evt_mask |= 1 << evt_type;
+                        has_match = true;
+
+                        if (!is_star)
+                                break;
+                }
+
+                if (!has_match)
+                        return IGT_HOOK_EVT_NO_MATCH;
+
+                if (*s++ == ':')
+                        break;
+        }
+
Quoted 9 lines

lib/igt_hook.c line 143

Quoted 6 lines
lib/igt_hook.c new file +6 -0
+        *cmd = s;
+
+        return 0;
+}
+
+static size_t igt_hook_calc_test_fullname_size(struct igt_hook *igt_hook) {

{ <--- here

Thanks.

Quoted 6 lines

lib/igt_hook.c line 147

Quoted 4 lines
lib/igt_hook.c new file +4 -0
+        /* The maximum size of test_fullname will be the maximum length of
+         * "igt@<test_name>@<subtest_name>@<dyn_subtest_name>" plus 1 for the
+         * null byte. */
+        return (igt_hook->test_name_size +

no need for parenthesis

I used the parenthesis (and should have probably included the "+ 4" inside) to lineup things like they would be done for kernel style [1]. Although that applies for function parameters, I remember seeing usage for normal expressions as well.

Quoted 5 lines
Quoted 3 lines

But I can live without them as well :-)

[1]: https://www.kernel.org/doc/html/latest/process/coding-style.html#breaking-long-lines-and-strings

we shouldn't add random chars (parenthesis in this case) to align stuff.

Noted.

Quoted 289 lines

In the kernel it's perfectly fine to do:

       return igt_hook->test_name_size +
               igt_hook->subtest_name_size +
               igt_hook->dyn_subtest_name_size + 4;
Quoted 82 lines
Quoted 70 lines
Quoted 70 lines
lib/igt_hook.c new file +68 -0
+                igt_hook->subtest_name_size +
+                igt_hook->dyn_subtest_name_size) + 4;
+}
+
+static void igt_hook_update_test_fullname(struct igt_hook *igt_hook)
+{
+        int i;
+        char *s;
+        const char *values[] = {
+                igt_hook->test_name,
+                igt_hook->subtest_name,
+                igt_hook->dyn_subtest_name,
+                NULL,
+        };
+
+        if (igt_hook->test_name[0] == '\0') {
+                igt_hook->test_fullname[0] = '\0';
+                return;
+        }
+
+        s = stpcpy(igt_hook->test_fullname, "igt");
+        for (i = 0; values[i] && values[i][0] != '\0'; i++) {
+                *s++ = '@';
+                s = stpcpy(s, values[i]);
+        }
+}
+
+/**
+ * igt_hook_create:
+ * @hook_str: Hook descriptor string.
+ * @error: Pointer to error number.
+ *
+ * Allocate and initialize an #igt_hook structure.
+ *
+ * This function parses the hook descriptor @hook_str and initializes the struct
+ * to be returned.
+ *
+ * The hook descriptor comes from the argument to `--hook` of the test
+ * executable being run.
+ *
+ * If not #NULL, @error is used to store a non-zero error number if an error
+ * happens. A human-readable string for that error number can be obtained with
+ * @igt_hook_error_str().
+ *
+ * Returns: The pointer to the #igt_hook structure on success or #NULL on error.
+ */
+struct igt_hook *igt_hook_create(const char *hook_str, int *error)
+{
+        int err;
+        evt_mask_t evt_mask;
+        const char *cmd;
+        struct igt_hook *igt_hook = NULL;
+
+
+        err = igt_hook_parse_hook_str(hook_str, &evt_mask, &cmd);
+        if (err)
+                goto out;
+
+        igt_hook = calloc(1, sizeof(*igt_hook));
+        igt_hook->evt_mask = evt_mask;
+
+        igt_hook->cmd = strdup(cmd);
+        if (!igt_hook->cmd) {
+                err = -errno;
+                goto out;
+        }
+
+        igt_hook->test_name = malloc(TEST_NAME_INITIAL_SIZE);
Quoted 8 lines

lib/igt_hook.c line 220

Quoted 5 lines
lib/igt_hook.c new file +5 -0
+        igt_hook->test_name_size = TEST_NAME_INITIAL_SIZE;
+        igt_hook->subtest_name = malloc(TEST_NAME_INITIAL_SIZE);
+        igt_hook->subtest_name_size = TEST_NAME_INITIAL_SIZE;
+        igt_hook->dyn_subtest_name = malloc(TEST_NAME_INITIAL_SIZE);
+        igt_hook->dyn_subtest_name_size = TEST_NAME_INITIAL_SIZE;

if we store test_name, subtest_name and dyn_subtest_name individually, why do we need to store test_fullname?

To make igt_hook_update_env_vars() as simple as a bunch of setenv() calls.

Quoted 8 lines

If you prefer, I could update the code to build the full test name on the fly when setting environment, but like the current version better:
we have everything that we need already in the igt_hook struct and extra memory cost is small IMO.

Now, if your question is more on the lines of "why do we need the full test name if we already expose the components?", I think exposing the full test name is a convenience.

humn... but we still call igt_hook_update_test_fullname() to update it Anyway, nothing critical here, I'd just do this differently

Quoted 121 lines
Quoted 112 lines
Quoted 112 lines
lib/igt_hook.c new file +110 -0
+        igt_hook->test_fullname = malloc(igt_hook_calc_test_fullname_size(igt_hook));
+
+        igt_hook->test_name[0] = '\0';
+        igt_hook->subtest_name[0] = '\0';
+        igt_hook->dyn_subtest_name[0] = '\0';
+        igt_hook->test_fullname[0] = '\0';
+
+out:
+        if (err) {
+                if (error)
+                        *error = err;
+
+                igt_hook_free(igt_hook);
+
+                return NULL;
+        }
+
+        return igt_hook;
+}
+
+/**
+ * igt_hook_free:
+ * @igt_hook: The igt_hook struct.
+ *
+ * De-initialize an igt_hook struct returned by @igt_hook_create().
+ *
+ * This is a no-op if @igt_hook is #NULL.
+ */
+void igt_hook_free(struct igt_hook *igt_hook)
+{
+        if (!igt_hook)
+                return;
+
+        free(igt_hook->cmd);
+        free(igt_hook->test_name);
+        free(igt_hook->subtest_name);
+        free(igt_hook->dyn_subtest_name);
+        free(igt_hook);
+}
+
+static void igt_hook_update_test_name_pre_call(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{
+        char **name_ptr;
+        size_t *size_ptr;
+        size_t len;
+
+        switch (evt->evt_type) {
+        case IGT_HOOK_PRE_TEST:
+                name_ptr = &igt_hook->test_name;
+                size_ptr = &igt_hook->test_name_size;
+                break;
+        case IGT_HOOK_PRE_SUBTEST:
+                name_ptr = &igt_hook->subtest_name;
+                size_ptr = &igt_hook->subtest_name_size;
+                break;
+        case IGT_HOOK_PRE_DYN_SUBTEST:
+                name_ptr = &igt_hook->dyn_subtest_name;
+                size_ptr = &igt_hook->dyn_subtest_name_size;
+                break;
+        default:
+                return;
+        }
+
+        len = strlen(evt->target_name);
+        if (len + 1 > *size_ptr) {
+                size_t fullname_size;
+
+                *size_ptr *= 2;
+                *name_ptr = realloc(*name_ptr, *size_ptr);
+
+                fullname_size = igt_hook_calc_test_fullname_size(igt_hook);
+                igt_hook->test_fullname = realloc(igt_hook->test_fullname, fullname_size);
+        }
+
+        strcpy(*name_ptr, evt->target_name);
+        igt_hook_update_test_fullname(igt_hook);
+}
+
+static void igt_hook_update_test_name_post_call(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{
+        switch (evt->evt_type) {
+        case IGT_HOOK_POST_TEST:
+                igt_hook->test_name[0] = '\0';
+                break;
+        case IGT_HOOK_POST_SUBTEST:
+                igt_hook->subtest_name[0] = '\0';
+                break;
+        case IGT_HOOK_POST_DYN_SUBTEST:
+                igt_hook->dyn_subtest_name[0] = '\0';
+                break;
+        default:
+                return;
+        }
+
+        igt_hook_update_test_fullname(igt_hook);
+}
+
+static void igt_hook_update_env_vars(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{
+        setenv("IGT_HOOK_EVENT", igt_hook_evt_type_to_name(evt->evt_type), 1);
+        setenv("IGT_HOOK_TEST_FULLNAME", igt_hook->test_fullname, 1);
+        setenv("IGT_HOOK_TEST", igt_hook->test_name, 1);
+        setenv("IGT_HOOK_SUBTEST", igt_hook->subtest_name, 1);
+        setenv("IGT_HOOK_DYN_SUBTEST", igt_hook->dyn_subtest_name, 1);
+        setenv("IGT_HOOK_RESULT", evt->result ?: "", 1);
+}
+
+/**
+ * igt_hook_push_evt:
+ * @igt_hook: The igt_hook structure.
Quoted 8 lines

lib/igt_hook.c line 335

Quoted 5 lines
lib/igt_hook.c new file +5 -0
+ * @evt: The event to be pushed.
+ *
+ * Push a new igt_hook event.
+ *
+ * This function must be used to register a new igt_hook event. Calling it will

"register" IMO is an odd term. This is notifying/calling the previously registered hook, not registering an event.

Quoted 7 lines

The term "register" here is to mean that we are telling that a new event happened. Whether a registered hook gets "notified" (or "called") depends on whether the event matches the event descriptor passed on hook registration.

If you prefer, "notify" could be used instead (to mean what I just described), but I don't think "call" is suitable here.

notify sounds good to me.

Quoted 9 lines
Quoted 4 lines

igt_hook_event_notify() or igt_hook_event_exec() would be more appropriate I think.

On the same lines as my previous comment, I do not think igt_hook_event_exec() is suitable.

Let's go with igt_hook_event_notify(), then?

yep

Quoted 31 lines
Quoted 12 lines
Quoted 12 lines
lib/igt_hook.c new file +9 -0
+ * cause execution of the hook script if the event type matches the filters
+ * provided during initialization of @igt_hook.
+ */
+void igt_hook_push_evt(struct igt_hook *igt_hook, struct igt_hook_evt *evt)
+{
+        evt_mask_t evt_bit = (1 << evt->evt_type);
+
+        igt_hook_update_test_name_pre_call(igt_hook, evt);
+
Quoted 8 lines

lib/igt_hook.c line 350

Quoted 6 lines
lib/igt_hook.c new file +6 -0
+        if ((evt_bit & igt_hook->evt_mask)) {
+                struct igt_helper_process proc = {};
+
+                igt_fork_helper(&proc) {
+                        igt_hook_update_env_vars(igt_hook, evt);
+                        system(igt_hook->cmd);

humn... we don't care about the return?

Not at the moment. I had considered hooks controlling the execution. For example, we could have a hook causing a test to skip or to abort the overall execution.

However, I decided to keep it simple for now. We could extend the functionality to allow hooks to influence the execution if we see the need in the future.

Quoted 2 lines

also... Why do we double fork?

Quoted 7 lines
Quoted 3 lines

it rather looks like we want an igt_exec() to complement igt_fork_helper() or at least a small wrapper around execle() do exec /bin/sh passing the command and env to use

I was lazy and did not want to have to deal with stuff that system() gives me for "free". Let me look into how I can improve this with igt_exec()...

what I find odd is that now we have a double fork, with the seconde fork exec'ing. If we keep using system() why do we need the fork helper since...

Quoted 2 lines
Quoted 2 lines
Quoted 6 lines
Quoted 2 lines
Quoted 2 lines

lib/igt_hook.c line 352

Quoted 2 lines
lib/igt_hook.c new file +2 -0
+                }
+                igt_wait_helper(&proc);

^ we are just waiting for it to complete.

is it so we update the env only in the forked context?

Yes. See my reply on v1 of this section:

https://lore.kernel.org/igt-dev/171883157362.2358.4692119154210725467@gjsousa-mobl2/

Quoted 2 lines

Any downside of
having the env var set in igt_runner's context?

The need to save and restore env vars with the same name that could possibly be in igt_runner's context.

Well, that might be worth doing instead of "open coding" system() to avoid the double fork. What do you think?

--
Gustavo Sousa

Quoted 725 lines
Quoted 41 lines
Quoted 27 lines
Quoted 27 lines
lib/igt_hook.c new file +26 -0
+        }
+
+        igt_hook_update_test_name_post_call(igt_hook, evt);
+}
+
+/**
+ * igt_hook_error_str:
+ * @error: Non-zero error number.
+ *
+ * Return a human-readable string containing a description of an error number
+ * generated by one of the `igt_hook_*` functions.
+ *
+ * The string will be the result of strerror() for errors from the C standard
+ * library or a custom description specific to igt_hook.
+ */
+const char *igt_hook_error_str(int error)
+{
+        if (!error)
+                return "No error";
+
+        if (error > 0) {
+                enum igt_hook_error hook_error = error;
+
+                switch (hook_error) {
+                case IGT_HOOK_EVT_EMPTY_NAME:
+                        return "Empty name in event descriptor";
Quoted 8 lines

lib/igt_hook.c line 384

Quoted 6 lines
lib/igt_hook.c new file +6 -0
+                case IGT_HOOK_EVT_NO_MATCH:
+                        return "Event name in event descriptor does not match any event type";
+                default:
+                        return "Unknown error";
+                }
+        } else {

no need for else

Right. This is also a leftover from v1, where error could be negative. Now there is not need for the "if" either. I'll fix this. Thanks.

Quoted 2 lines
Quoted 5 lines
Quoted 1 line

Lucas De Marchi

Thanks for the new feedback! I'll start working on a v3.

thanks
Lucas De Marchi

Quoted 675 lines

--
Gustavo Sousa

Quoted 672 lines
Quoted 672 lines
lib/igt_hook.c new file +105 -0
+                return strerror(-error);
+        }
+}
+
+/**
+ * igt_hook_print_help:
+ * @f: File pointer where to write the output.
+ * @option_name: Name of the CLI option that accepts the hook descriptor.
+ *
+ * Print a detailed user help text on hook usage.
+ */
+void igt_hook_print_help(FILE *f, const char *option_name)
+{
+        fprintf(f, "\
+The option %1$s receives as argument a \"hook descriptor\" and allows the\n\
+execution of a shell command at different points during execution of tests. Each\n\
+such a point is called a \"hook event\".\n\
+\n\
+Examples:\n\
+\n\
+  # Prints hook-specic env vars for every event.\n\
+  %1$s 'printenv | grep ^IGT_HOOK_'\n\
+\n\
+  # Equivalent to the above. Useful if command contains ':'.\n\
+  %1$s '*:printenv | grep ^IGT_HOOK_'\n\
+\n\
+  # Adds a line to out.txt containing the result of each test case.\n\
+  %1$s 'post-test:echo $IGT_HOOK_TEST_FULLNAME $IGT_HOOK_RESULT >> out.txt'\n\
+\n\
+The accepted format for a hook descriptor is `[<events>:]<cmd>`, where:\n\
+\n\
+  - <events> is a comma-separated list of event descriptors, which defines the\n\
+    set of events be tracked. If omitted, all events are tracked.\n\
+\n\
+  - <cmd> is a shell command to be executed on the occurrence each tracked\n\
+    event. If the command contains ':', then passing <events> is required,\n\
+    otherwise part of the command would be treated as an event descriptor.\n\
+\n\
+", option_name);
+
+        fprintf(f, "\
+An \"event descriptor\" is either the name of an event or the string '*'. The\n\
+latter matches all event names. The list of possible event names is provided\n\
+below:\n\
+\n\
+");
+
+        for (enum igt_hook_evt_type et = 0; et < IGT_HOOK_NUM_EVENTS; et++) {
+                const char *desc;
+
+                switch (et) {
+                case IGT_HOOK_PRE_TEST:
+                        desc = "Occurs before a test case starts.";
+                        break;
+                case IGT_HOOK_PRE_SUBTEST:
+                        desc = "Occurs before the execution of a subtest.";
+                        break;
+                case IGT_HOOK_PRE_DYN_SUBTEST:
+                        desc = "Occurs before the execution of a dynamic subtest.";
+                        break;
+                case IGT_HOOK_POST_DYN_SUBTEST:
+                        desc = "Occurs after the execution of a dynamic subtest.";
+                        break;
+                case IGT_HOOK_POST_SUBTEST:
+                        desc = "Occurs after the execution of a subtest.";
+                        break;
+                case IGT_HOOK_POST_TEST:
+                        desc = "Occurs after a test case has finished.";
+                        break;
+                default:
+                        desc = "MISSING DESCRIPTION";
+                }
+
+                fprintf(f, "  %s\n  %s\n\n", igt_hook_evt_type_to_name(et), desc);
+        }
+
+        fprintf(f, "\
+For each event matched by <events>, <cmd> is executed as a shell command. The\n\
+exit status of the command is ignored. The following environment variables are\n\
+available to the command:\n\
+\n\
+  IGT_HOOK_EVENT\n\
+  Name of the current event.\n\
+\n\
+  IGT_HOOK_TEST_FULLNAME\n\
+  Full name of the test in the format `igt@<test>[@<subtest>[@<dyn_subtest>]]`.\n\
+\n\
+  IGT_HOOK_TEST\n\
+  Name of the current test.\n\
+\n\
+  IGT_HOOK_SUBTEST\n\
+  Name of the current subtest. Will be the empty string if not running a\n\
+  subtest.\n\
+\n\
+  IGT_HOOK_DYN_SUBTEST\n\
+  Name of the current dynamic subtest. Will be the empty string if not running a\n\
+  dynamic subtest.\n\
+\n\
+  IGT_HOOK_RESULT\n\
+  String representing the result of the test/subtest/dynamic subtest. Possible\n\
+  values are: SUCCESS, SKIP or FAIL. This is only applicable on \"post-*\"\n\
+  events and will be the empty string for other types of events.\n\
+\n\
+");
+}
lib/igt_hook.h new file +69 -0
new file mode 100644
index 000000000000..a7b67837e5a4
@@ -0,0 +1,69 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#ifndef IGT_HOOK_H
+#define IGT_HOOK_H
+
+#include <stdio.h>
+
+/**
+ * igt_hook:
+ *
+ * Opaque struct to hold data related to hook support.
+ */
+struct igt_hook;
+
+/**
+ * igt_hook_evt_type:
+ * @IGT_HOOK_PRE_TEST: Occurs before a test case (executable) starts the
+ * test code.
+ * @IGT_HOOK_PRE_SUBTEST: Occurs before the execution of a subtest.
+ * @IGT_HOOK_PRE_DYN_SUBTEST: Occurs before the execution of a dynamic subtest.
+ * @IGT_HOOK_POST_DYN_SUBTEST: Occurs after the execution of a dynamic subtest.
+ * @IGT_HOOK_POST_SUBTEST: Occurs after the execution of a subtest..
+ * @IGT_HOOK_POST_TEST: Occurs after a test case (executable) is finished with
+ * the test code.
+ * @IGT_HOOK_NUM_EVENTS: This is not really an event and represents the number
+ * of possible events tracked by igt_hook.
+ *
+ * Events tracked by igt_hook. Those events occur at specific points during the
+ * execution of a test.
+ */
+enum igt_hook_evt_type {
+        IGT_HOOK_PRE_TEST,
+        IGT_HOOK_PRE_SUBTEST,
+        IGT_HOOK_PRE_DYN_SUBTEST,
+        IGT_HOOK_POST_DYN_SUBTEST,
+        IGT_HOOK_POST_SUBTEST,
+        IGT_HOOK_POST_TEST,
+        IGT_HOOK_NUM_EVENTS /* This must always be the last one. */
+};
+
+/**
+ * igt_hook_evt:
+ * @evt_type: Type of event.
+ * @target_name: A string pointing to the name of the test, subtest or dynamic
+ * subtest, depending on @evt_type.
+ * @result: A string containing the result of the test, subtest or dynamic
+ * subtest. This is only applicable for the `IGT_HOOK_POST_\*' event types;
+ * other types must initialize this to #NULL.
+ *
+ * An event tracked by igt_hook, which is done with @igt_hook_push_evt(). This must
+ * be zero initialized and fields relevant to the event type must be set before
+ * passing its reference to @igt_hook_push_evt().
+ */
+struct igt_hook_evt {
+        enum igt_hook_evt_type evt_type;
+        const char *target_name;
+        const char *result;
+};
+
+struct igt_hook *igt_hook_create(const char *hook_str, int *error);
+void igt_hook_free(struct igt_hook *igt_hook);
+void igt_hook_push_evt(struct igt_hook *igt_hook, struct igt_hook_evt *evt);
+const char *igt_hook_error_str(int error);
+void igt_hook_print_help(FILE *f, const char *option_name);
+
+#endif /* IGT_HOOK_H */
lib/meson.build +1 -0
index e2f740c116f8..10b8066647f2 100644
@@ -109,6 +109,7 @@ lib_sources = [
        'veboxcopy_gen12.c',
        'igt_msm.c',
        'igt_dsc.c',
+        'igt_hook.c',
        'xe/xe_gt.c',
        'xe/xe_ioctl.c',
        'xe/xe_mmio.c',
lib/tests/igt_hook.c new file +170 -0
new file mode 100644
index 000000000000..c8a93952abed
@@ -0,0 +1,170 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#include <stdbool.h>
+#include <stdio.h>
+#include <unistd.h>
+
+#include "igt_core.h"
+#include "igt_hook.h"
+
+static const char *env_var_names[] = {
+        "IGT_HOOK_EVENT",
+        "IGT_HOOK_TEST_FULLNAME",
+        "IGT_HOOK_TEST",
+        "IGT_HOOK_SUBTEST",
+        "IGT_HOOK_DYN_SUBTEST",
+        "IGT_HOOK_RESULT",
+};
+
+#define num_env_vars (sizeof(env_var_names) / sizeof(env_var_names[0]))
+
+static int env_var_name_lookup(char *line)
+{
+        int i;
+        char *c;
+
+        c = strchr(line, '=');
+        if (c)
+                *c = '\0';
+
+        for (i = 0; i < num_env_vars; i++)
+                if (!strcmp(line, env_var_names[i]))
+                        goto out;
+
+        i = -1;
+out:
+        if (c)
+                *c = '=';
+
+        return i;
+}
+
+static void test_null_error_pointer(void)
+{
+        struct igt_hook *igt_hook;
+
+        /* Ensure passing NULL error pointer does not cause issues. */
+        igt_hook = igt_hook_create("invalid:echo hello", NULL);
+        igt_assert(igt_hook == NULL);
+}
+
+static void test_invalid_hook_descriptors(void)
+{
+        struct {
+                const char *name;
+                const char *hook_desc;
+        } invalid_cases[] = {
+                {"invalid-event-name", "invalid-event:echo hello"},
+                {"invalid-empty-event-name", ":echo hello"},
+                {"invalid-colon-in-cmd", "echo hello:world"},
+                {},
+        };
+
+        for (int i = 0; invalid_cases[i].name; i++) {
+                igt_subtest(invalid_cases[i].name) {
+                        int err = 0;
+                        struct igt_hook *igt_hook;
+
+                        igt_hook = igt_hook_create(invalid_cases[i].hook_desc, &err);
+                        igt_assert(igt_hook == NULL);
+                        igt_assert(err != 0);
+                }
+        }
+}
+
+static void test_print_help(void)
+{
+        char *buf;
+        size_t len;
+        FILE *f;
+        const char expected_initial_text[] = "The option --hook receives as argument a \"hook descriptor\"";
+
+        f = open_memstream(&buf, &len);
+        igt_assert(f);
+
+        igt_hook_print_help(f, "--hook");
+        fclose(f);
+
+        igt_assert(!strncmp(buf, expected_initial_text, sizeof(expected_initial_text) - 1));
+
+        /* This is an extra check to catch a case where an event type is added
+         * without a proper description. */
+        igt_assert(!strstr(buf, "MISSING DESCRIPTION"));
+
+        free(buf);
+}
+
+static void test_all_env_vars(void)
+{
+        struct igt_hook_evt evt = {
+                .evt_type = IGT_HOOK_PRE_SUBTEST,
+                .target_name = "foo",
+        };
+        bool env_vars_checklist[num_env_vars] = {};
+        struct igt_hook *igt_hook;
+        char *hook_str;
+        FILE *f;
+        int pipefd[2];
+        int ret;
+        int i;
+        char *line;
+        size_t line_size;
+
+        ret = pipe(pipefd);
+        igt_assert(ret == 0);
+
+        /* Use grep to filter only env var set by us. This should ensure that
+         * writing to the pipe will not block due to capacity, since we only
+         * read from the pipe after the shell command is done. */
+        ret = asprintf(&hook_str, "printenv -0 | grep -z ^IGT_HOOK >&%d", pipefd[1]);
+        igt_assert(ret > 0);
+
+        igt_hook = igt_hook_create(hook_str, NULL);
+        igt_assert(igt_hook);
+
+        igt_hook_push_evt(igt_hook, &evt);
+
+        close(pipefd[1]);
+        f = fdopen(pipefd[0], "r");
+        igt_assert(f);
+
+        line = NULL;
+        line_size = 0;
+
+        while (getdelim(&line, &line_size, '\0', f) != -1) {
+                ret = env_var_name_lookup(line);
+                igt_assert_f(ret >= 0, "Unexpected env var %s\n", line);
+                env_vars_checklist[ret] = true;
+        }
+
+        for (i = 0; i < num_env_vars; i++)
+                igt_assert_f(env_vars_checklist[i], "Missing env var %s\n", env_var_names[i]);
+
+        fclose(f);
+        igt_hook_free(igt_hook);
+        free(hook_str);
+        free(line);
+}
+
+igt_main
+{
+        igt_subtest("null-error-pointer")
+                test_null_error_pointer();
+
+        test_invalid_hook_descriptors();
+
+        igt_subtest("help-description")
+                test_print_help();
+
+        igt_subtest_group {
+                igt_fixture {
+                        igt_require_f(system(NULL), "Shell seems not to be available\n");
+                }
+
+                igt_subtest("all-env-vars")
+                        test_all_env_vars();
+        }
+}
lib/tests/igt_hook_integration.c new file +281 -0
new file mode 100644
index 000000000000..f5ba25e92897
@@ -0,0 +1,281 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright(c) 2024 Intel Corporation. All rights reserved.
+ */
+
+#include <stdbool.h>
+#include <stdio.h>
+#include <string.h>
+
+#include "igt_core.h"
+
+#include "igt_tests_common.h"
+
+char prog[] = "igt_hook_integration";
+char hook_opt[] = "--hook";
+char hook_str[128];
+char *fake_argv[] = {prog, hook_opt, hook_str};
+int fake_argc = sizeof(fake_argv) / sizeof(fake_argv[0]);
+
+#define ENV_ARRAY(evt_name, fullname_suffix, subtest, dyn_subtest, result) \
+{ \
+        "IGT_HOOK_EVENT=" evt_name, \
+        "IGT_HOOK_TEST_FULLNAME=igt@igt_hook_integration" fullname_suffix, \
+        "IGT_HOOK_TEST=igt_hook_integration", \
+        "IGT_HOOK_SUBTEST=" subtest, \
+        "IGT_HOOK_DYN_SUBTEST=" dyn_subtest, \
+        "IGT_HOOK_RESULT=" result, \
+}
+
+#define TEST_ENV(evt_name, result) \
+        ENV_ARRAY(evt_name, "", "", "", result)
+
+#define SUBTEST_ENV(evt_name, subtest, result) \
+        ENV_ARRAY(evt_name, "@" subtest, subtest, "", result)
+
+#define DYN_SUBTEST_ENV(evt_name, subtest, dyn_subtest, result) \
+        ENV_ARRAY(evt_name, "@" subtest "@" dyn_subtest, subtest, dyn_subtest, result)
+
+const char *pre_test_env[] = TEST_ENV("pre-test", "");
+const char *pre_subtest_a_env[] = SUBTEST_ENV("pre-subtest", "a", "");
+const char *pre_dyn_subtest_a_success_env[] = DYN_SUBTEST_ENV("pre-dyn-subtest", "a", "success", "");
+const char *post_dyn_subtest_a_success_env[] = DYN_SUBTEST_ENV("post-dyn-subtest", "a", "success", "SUCCESS");
+const char *pre_dyn_subtest_a_failed_env[] = DYN_SUBTEST_ENV("pre-dyn-subtest", "a", "failed", "");
+const char *post_dyn_subtest_a_failed_env[] = DYN_SUBTEST_ENV("post-dyn-subtest", "a", "failed", "FAIL");
+const char *pre_dyn_subtest_a_skipped_env[] = DYN_SUBTEST_ENV("pre-dyn-subtest", "a", "skipped", "");
+const char *post_dyn_subtest_a_skipped_env[] = DYN_SUBTEST_ENV("post-dyn-subtest", "a", "skipped", "SKIP");
+const char *post_subtest_a_env[] = SUBTEST_ENV("post-subtest", "a", "FAIL");
+const char *pre_subtest_b_env[] = SUBTEST_ENV("pre-subtest", "b", "");
+const char *post_subtest_b_env[] = SUBTEST_ENV("post-subtest", "b", "SUCCESS");
+const char *post_test_env[] = TEST_ENV("post-test", "FAIL");
+
+#define num_env_vars (sizeof(pre_test_env) / sizeof(pre_test_env[0]))
+
+__noreturn static void fake_main(void)
+{
+        igt_subtest_init(fake_argc, fake_argv);
+
+        igt_subtest_with_dynamic("a") {
+                igt_dynamic("success") {
+                        igt_info("...@a@success\n");
+                }
+
+                igt_dynamic("failed") {
+                        igt_assert_f(false, "Fail on purpose\n");
+                        igt_info("...@a@failed\n");
+                }
+
+                igt_dynamic("skipped") {
+                        igt_require_f(false, "Skip on purpose\n");
+                        igt_info("...@a@skipped\n");
+                }
+        }
+
+        igt_subtest("b") {
+                igt_info("...@b\n");
+        }
+
+        igt_exit();
+}
+
+static void test_invalid_hook_str(void)
+{
+        int status;
+        pid_t pid;
+        static char err[4096];
+        int errfd;
+
+        sprintf(hook_str, "invalid-event:echo hello");
+
+        pid = do_fork_bg_with_pipes(fake_main, NULL, &errfd);
+
+        read_whole_pipe(errfd, err, sizeof(err));
+
+        internal_assert(safe_wait(pid, &status) != -1);
+        internal_assert_wexited(status, IGT_EXIT_INVALID);
+
+        internal_assert(strstr(err, "Failed to initialize hook data:"));
+
+        close(errfd);
+}
+
+static bool match_env(FILE *hook_out_stream, const char **expected_env)
+{
+        int i;
+        char hook_env_buf[4096];
+        size_t buf_len = 0;
+        char *line = NULL;
+        size_t line_size;
+        bool env_checklist[num_env_vars] = {};
+        bool has_unexpected = false;
+        bool has_missing = false;
+
+        /* Store env from hook so we can show it in case of errors */
+        while (getdelim(&line, &line_size, '\0', hook_out_stream) != -1) {
+                internal_assert(buf_len + strlen(line) + 1 <= sizeof(hook_env_buf));
+                strcpy(hook_env_buf + buf_len, line);
+                buf_len += strlen(line) + 1;
+
+                if (!strcmp(line, "---"))
+                        break;
+        }
+
+        if (!expected_env && !buf_len) {
+                /* We have consumed everything and we are done now. */
+                return false;
+        }
+
+
+        if (!expected_env) {
+                printf("Detected unexpected hook execution\n");
+                has_unexpected = true;
+                goto out;
+        }
+
+        if (!buf_len) {
+                printf("Expected more hook execution, but none found\n");
+                has_missing = true;
+                goto out;
+        }
+
+
+        line = hook_env_buf;
+        while (strcmp(line, "---")) {
+                for (i = 0; i < num_env_vars; i++) {
+                        if (!strcmp(line, expected_env[i])) {
+                                env_checklist[i] = true;
+                                break;
+                        }
+                }
+
+                if (i == num_env_vars) {
+                        printf("Unexpected envline from hook: %s\n", line);
+                        has_unexpected = true;
+                }
+
+                line += strlen(line) + 1;
+        }
+
+        for (i = 0; i < num_env_vars; i++) {
+                if (!env_checklist[i]) {
+                        has_missing = true;
+                        printf("Missing expected envline: %s\n", expected_env[i]);
+                }
+        }
+
+out:
+        if (has_unexpected || has_missing) {
+                if (expected_env) {
+                        printf("Expected environment:\n");
+                        for (i = 0; i < num_env_vars; i++)
+                                printf("  %s\n", expected_env[i]);
+                }
+
+                if (buf_len) {
+                        printf("Environment from hook:\n");
+                        line = hook_env_buf;
+                        while (strcmp(line, "---")) {
+                                printf("  %s\n", line);
+                                line += strlen(line) + 1;
+                        }
+                } else {
+                        printf("No hook execution found\n");
+                }
+        }
+
+        internal_assert(!has_unexpected);
+        internal_assert(!has_missing);
+
+        /* Ready to consume next hook output. */
+        return true;
+}
+
+static void run_tests_and_match_env(const char *evt_descriptors, const char **expected_envs[])
+{
+        int i;
+        int ret;
+        int pipefd[2];
+        pid_t pid;
+        FILE *f;
+
+        ret = pipe(pipefd);
+        internal_assert(ret == 0);
+
+        /* Use grep to filter only env var set by us. This should ensure that
+         * writing to the pipe will not block due to capacity, since we only
+         * read from the pipe after the shell command is done. */
+        sprintf(hook_str,
+                "%1$s:printenv -0 | grep -z ^IGT_HOOK >&%2$d; printf -- ---\\\\00 >&%2$d",
+                evt_descriptors,
+                pipefd[1]);
+
+        pid = do_fork_bg_with_pipes(fake_main, NULL, NULL);
+        internal_assert(safe_wait(pid, &ret) != -1);
+        internal_assert_wexited(ret, IGT_EXIT_FAILURE);
+
+        close(pipefd[1]);
+        f = fdopen(pipefd[0], "r");
+        internal_assert(f);
+
+        i = 0;
+        while (match_env(f, expected_envs[i]))
+                i++;
+
+        fclose(f);
+
+}
+
+int main(int argc, char **argv)
+{
+        {
+                printf("Check invalid hook string\n");
+                test_invalid_hook_str();
+        }
+
+        {
+                const char **expected_envs[] = {
+                        pre_test_env,
+                        pre_subtest_a_env,
+                        pre_dyn_subtest_a_success_env,
+                        post_dyn_subtest_a_success_env,
+                        pre_dyn_subtest_a_failed_env,
+                        post_dyn_subtest_a_failed_env,
+                        pre_dyn_subtest_a_skipped_env,
+                        post_dyn_subtest_a_skipped_env,
+                        post_subtest_a_env,
+                        pre_subtest_b_env,
+                        post_subtest_b_env,
+                        post_test_env,
+                        NULL,
+                };
+
+                printf("Check full event tracking\n");
+                run_tests_and_match_env("*", expected_envs);
+        }
+
+        {
+                const char **expected_envs[] = {
+                        pre_dyn_subtest_a_success_env,
+                        pre_dyn_subtest_a_failed_env,
+                        pre_dyn_subtest_a_skipped_env,
+                        NULL,
+                };
+
+                printf("Check single event type tracking\n");
+                run_tests_and_match_env("pre-dyn-subtest", expected_envs);
+        }
+
+        {
+                const char **expected_envs[] = {
+                        pre_subtest_a_env,
+                        post_dyn_subtest_a_success_env,
+                        post_dyn_subtest_a_failed_env,
+                        post_dyn_subtest_a_skipped_env,
+                        pre_subtest_b_env,
+                        NULL,
+                };
+
+                printf("Check multiple event types tracking\n");
+                run_tests_and_match_env("post-dyn-subtest,pre-subtest", expected_envs);
+        }
+}
lib/tests/meson.build +2 -1
index fa3d81de6cef..df8092638eca 100644
@@ -10,6 +10,8 @@ lib_tests = [
        'igt_exit_handler',
        'igt_fork',
        'igt_fork_helper',
+        'igt_hook',
+        'igt_hook_integration',
        'igt_ktap_parser',
        'igt_list_only',
        'igt_invalid_subtest_name',
--

2.45.2

#6 lore raw

PATCH v2 2/7 runner: Make it easier to extend argv

In reply to Gustavo Sousa

In an upcoming change, we will be adding the option to forward the --hook option to the test cases, which will require updating execute_test_process() to add the option when asked by the user.

The current implementation makes that task not quite straightforward:
filling of argv is already dependent on stuff like entry->subtest_count and dynbegin; if we want to keep on using constant indices, we would need several conditional branches for adding arguments for --hook.

One way of simplifying this is to treat argv as a stack and have a "head" index variable which is incremented after we are done setting the current value. However, we would lose the benefit of static array bounds analysis from the compiler, which we do have with the current code.

Let's instead define a static mapping in argv_refs of the possible arguments that execute_test_process() could define and then generate argv at the end with only those values that were set. With that, we keep benefits of static array bounds analysis and make it easier to extend argv, which is just a matter of adding more stuff into argv_refs and setting them when necessary.

---
 runner/executor.c | 44 ++++++++++++++++++++++++++++++--------------
 1 file changed, 30 insertions(+), 14 deletions(-)
runner/executor.c +30 -14
index 4b374d2235b2..e9b037ebcaf9 100644
@@ -1506,7 +1506,18 @@ execute_test_process(int outfd, int errfd, int socketfd,
 		     struct settings *settings,
 		     struct job_list_entry *entry)
 {
-	char *argv[6] = {};
+	char *arg0;
+	char *arg_run_subtest[2] = {};
+	char *arg_dyn_subtest[2] = {};
+	char **argv_refs[] = {
+		&arg0,
+		&arg_run_subtest[0],
+		&arg_run_subtest[1],
+		&arg_dyn_subtest[0],
+		&arg_dyn_subtest[1],
+		NULL,
+	};
+	char *argv[sizeof(argv_refs) / sizeof(argv_refs[0])] = {};
 	size_t rootlen;
 
 	dup2(outfd, STDOUT_FILENO);
@@ -1515,30 +1526,30 @@ execute_test_process(int outfd, int errfd, int socketfd,
 	setpgid(0, 0);
 
 	rootlen = strlen(settings->test_root);
-	argv[0] = malloc(rootlen + strlen(entry->binary) + 2);
-	strcpy(argv[0], settings->test_root);
-	argv[0][rootlen] = '/';
-	strcpy(argv[0] + rootlen + 1, entry->binary);
+	arg0 = malloc(rootlen + strlen(entry->binary) + 2);
+	strcpy(arg0, settings->test_root);
+	arg0[rootlen] = '/';
+	strcpy(arg0 + rootlen + 1, entry->binary);
 
 	if (entry->subtest_count) {
 		size_t argsize;
 		const char *dynbegin;
 		size_t i;
 
-		argv[1] = strdup("--run-subtest");
+		arg_run_subtest[0] = strdup("--run-subtest");
 
 		if ((dynbegin = strchr(entry->subtests[0], '@')) != NULL)
 			argsize = dynbegin - entry->subtests[0];
 		else
 			argsize = strlen(entry->subtests[0]);
 
-		argv[2] = malloc(argsize + 1);
-		memcpy(argv[2], entry->subtests[0], argsize);
-		argv[2][argsize] = '\0';
+		arg_run_subtest[1] = malloc(argsize + 1);
+		memcpy(arg_run_subtest[1], entry->subtests[0], argsize);
+		arg_run_subtest[1][argsize] = '\0';
 
 		if (dynbegin) {
-			argv[3] = strdup("--dynamic-subtest");
-			argv[4] = strdup(dynbegin + 1);
+			arg_dyn_subtest[0] = strdup("--dynamic-subtest");
+			arg_dyn_subtest[1] = strdup(dynbegin + 1);
 		}
 
 		for (i = 1; i < entry->subtest_count; i++) {
@@ -1547,13 +1558,18 @@ execute_test_process(int outfd, int errfd, int socketfd,
 
 			assert(dynbegin == NULL);
 
-			argv[2] = realloc(argv[2], argsize + sublen + 2);
-			argv[2][argsize] = ',';
-			strcpy(argv[2] + argsize + 1, sub);
+			arg_run_subtest[1] = realloc(arg_run_subtest[1], argsize + sublen + 2);
+			arg_run_subtest[1][argsize] = ',';
+			strcpy(arg_run_subtest[1] + argsize + 1, sub);
 			argsize += sublen + 1;
 		}
 	}
 
+	/* Build argv with only stuff that is set. */
+	for (size_t i = 0, j = 0; argv_refs[i]; i++)
+		if (*argv_refs[i])
+			argv[j++] = *argv_refs[i];
+
 	if (socketfd >= 0) {
 		struct runnerpacket *packet;
 
Signature · 1 line
2.45.2
#7 lore raw

PATCH v2 3/7 runner: Add option --hook

In reply to Gustavo Sousa

Now that we have support for setting a hook script for test cases, let's also add the option --hook to igt_runner, which forwards it to test executables.

---
 runner/executor.c     |  8 ++++++++
 runner/runner_tests.c |  5 +++++
 runner/settings.c     | 25 ++++++++++++++++++++++++-
 runner/settings.h     |  1 +
 4 files changed, 38 insertions(+), 1 deletion(-)
runner/executor.c +8 -0
index e9b037ebcaf9..92dee6e32f6f 100644
@@ -1509,12 +1509,15 @@ execute_test_process(int outfd, int errfd, int socketfd,
 	char *arg0;
 	char *arg_run_subtest[2] = {};
 	char *arg_dyn_subtest[2] = {};
+	char *arg_hook[2] = {};
 	char **argv_refs[] = {
 		&arg0,
 		&arg_run_subtest[0],
 		&arg_run_subtest[1],
 		&arg_dyn_subtest[0],
 		&arg_dyn_subtest[1],
+		&arg_hook[0],
+		&arg_hook[1],
 		NULL,
 	};
 	char *argv[sizeof(argv_refs) / sizeof(argv_refs[0])] = {};
@@ -1565,6 +1568,11 @@ execute_test_process(int outfd, int errfd, int socketfd,
 		}
 	}
 
+	if (settings->hook_str) {
+		arg_hook[0] = strdup("--hook");
+		arg_hook[1] = strdup(settings->hook_str);
+	}
+
 	/* Build argv with only stuff that is set. */
 	for (size_t i = 0, j = 0; argv_refs[i]; i++)
 		if (*argv_refs[i])
runner/runner_tests.c +5 -0
index 0aa7dd6626b7..7470cc24052f 100644
@@ -202,6 +202,7 @@ static void assert_settings_equal(struct settings *one, struct settings *two)
 	igt_assert_eq(one->piglit_style_dmesg, two->piglit_style_dmesg);
 	igt_assert_eq(one->dmesg_warn_level, two->dmesg_warn_level);
 	igt_assert_eq(one->prune_mode, two->prune_mode);
+	igt_assert_eqstr(one->hook_str, two->hook_str);
 }
 
 static void assert_job_list_equal(struct job_list *one, struct job_list *two)
@@ -302,6 +303,7 @@ igt_main
 		igt_assert_eq(settings->overall_timeout, 0);
 		igt_assert(!settings->use_watchdog);
 		igt_assert_eq(settings->prune_mode, 0);
+		igt_assert(!settings->hook_str);
 		igt_assert(strstr(settings->test_root, "test-root-dir") != NULL);
 		igt_assert(strstr(settings->results_path, "path-to-results") != NULL);
 
@@ -464,6 +466,7 @@ igt_main
 				       "--collect-code-cov",
 				       "--coverage-per-test",
 				       "--collect-script", "/usr/bin/true",
+				       "--hook", "echo hello",
 				       "--prune-mode=keep-subtests",
 				       "test-root-dir",
 				       "path-to-results",
@@ -511,6 +514,7 @@ igt_main
 		igt_assert_eq(settings->per_test_timeout, 72);
 		igt_assert_eq(settings->overall_timeout, 360);
 		igt_assert(settings->use_watchdog);
+		igt_assert_eqstr(settings->hook_str, "echo hello");
 		igt_assert_eq(settings->prune_mode, PRUNE_KEEP_SUBTESTS);
 		igt_assert(strstr(settings->test_root, "test-root-dir") != NULL);
 		igt_assert(strstr(settings->results_path, "path-to-results") != NULL);
@@ -961,6 +965,7 @@ igt_main
 					       "--use-watchdog",
 					       "--piglit-style-dmesg",
 					       "--prune-mode=keep-all",
+					       "--hook", "echo hello",
 					       testdatadir,
 					       dirname,
 			};
runner/settings.c +24 -1
index 42d8137f18e9..e554a5c70776 100644
@@ -1,3 +1,4 @@
+#include "igt_hook.h"
 #include "settings.h"
 #include "version.h"
 
@@ -28,6 +29,8 @@ enum {
 	OPT_CODE_COV_SCRIPT,
 	OPT_ENABLE_CODE_COVERAGE,
 	OPT_COV_RESULTS_PER_TEST,
+	OPT_HOOK,
+	OPT_HELP_HOOK,
 	OPT_VERSION,
 	OPT_PRUNE_MODE,
 	OPT_HELP = 'h',
@@ -297,6 +300,10 @@ static const char *usage_str =
 	"                        Requires --collect-script FILENAME\n"
 	"  --collect-script FILENAME\n"
 	"                        Use FILENAME as script to collect code coverage data.\n"
+	"  --hook HOOK_STR\n"
+	"                        Forward HOOK_STR to the --hook option of each test.\n"
+	"  --help-hook\n"
+	"                        Show detailed usage information for --hook.\n"
 	"\n"
 	"  [test_root]           Directory that contains the IGT tests. The environment\n"
 	"                        variable IGT_TEST_ROOT will be used if set, overriding\n"
@@ -654,6 +661,8 @@ bool parse_options(int argc, char **argv,
 		{"collect-code-cov", no_argument, NULL, OPT_ENABLE_CODE_COVERAGE},
 		{"coverage-per-test", no_argument, NULL, OPT_COV_RESULTS_PER_TEST},
 		{"collect-script", required_argument, NULL, OPT_CODE_COV_SCRIPT},
+		{"hook", required_argument, NULL, OPT_HOOK},
+		{"help-hook", no_argument, NULL, OPT_HELP_HOOK},
 		{"multiple-mode", no_argument, NULL, OPT_MULTIPLE},
 		{"inactivity-timeout", required_argument, NULL, OPT_TIMEOUT},
 		{"per-test-timeout", required_argument, NULL, OPT_PER_TEST_TIMEOUT},
@@ -741,7 +750,19 @@ bool parse_options(int argc, char **argv,
 		case OPT_CODE_COV_SCRIPT:
 			settings->code_coverage_script = bin_path(optarg);
 			break;
-
+		case OPT_HOOK:
+			/* FIXME: In order to allow line breaks, we should
+			 * change the format of settings serialization. Maybe
+			 * use JSON instead of our own format? */
+			if (strchr(optarg, '\n')) {
+				fprintf(stderr, "Newlines in --hook are currently unsupported.\n");
+				goto error;
+			}
+			settings->hook_str = optarg;
+			break;
+		case OPT_HELP_HOOK:
+			igt_hook_print_help(stdout, "--hook");
+			goto error;
 		case OPT_MULTIPLE:
 			settings->multiple_mode = true;
 			break;
@@ -1040,6 +1061,7 @@ bool serialize_settings(struct settings *settings)
 	SERIALIZE_LINE(f, settings, enable_code_coverage, "%d");
 	SERIALIZE_LINE(f, settings, cov_results_per_test, "%d");
 	SERIALIZE_LINE(f, settings, code_coverage_script, "%s");
+	SERIALIZE_LINE(f, settings, hook_str, "%s");
 
 	if (settings->sync) {
 		fflush(f);
@@ -1103,6 +1125,7 @@ bool read_settings_from_file(struct settings *settings, FILE *f)
 		PARSE_LINE(settings, name, val, enable_code_coverage, numval);
 		PARSE_LINE(settings, name, val, cov_results_per_test, numval);
 		PARSE_LINE(settings, name, val, code_coverage_script, val ? strdup(val) : NULL);
+		PARSE_LINE(settings, name, val, hook_str, val ? strdup(val) : NULL);
 
 		printf("Warning: Unknown field in settings file: %s = %s\n",
 		       name, val);
runner/settings.h +1 -0
index 819c346027ed..d3afb56de039 100644
@@ -72,6 +72,7 @@ struct settings {
 	char *code_coverage_script;
 	bool enable_code_coverage;
 	bool cov_results_per_test;
+	char *hook_str;
 };
 
 /**
Signature · 1 line
2.45.2
#8 lore raw

PATCH v2 4/7 igt_hook: Implement and use set_fake_argv() in test

In reply to Gustavo Sousa

In upcoming changes, fake_argv will need to allow a variable number of elements. As such, implement the variadic function set_fake_argv() to allow that.

---
 lib/tests/igt_hook_integration.c | 49 +++++++++++++++++++++++++-------
 1 file changed, 39 insertions(+), 10 deletions(-)
lib/tests/igt_hook_integration.c +39 -10
index f5ba25e92897..c552d5a4e796 100644
@@ -3,6 +3,7 @@
  * Copyright(c) 2024 Intel Corporation. All rights reserved.
  */
 
+#include <stdarg.h>
 #include <stdbool.h>
 #include <stdio.h>
 #include <string.h>
@@ -11,11 +12,9 @@
 
 #include "igt_tests_common.h"
 
-char prog[] = "igt_hook_integration";
-char hook_opt[] = "--hook";
-char hook_str[128];
-char *fake_argv[] = {prog, hook_opt, hook_str};
-int fake_argc = sizeof(fake_argv) / sizeof(fake_argv[0]);
+char fake_argv_buffer[1024];
+char *fake_argv[64];
+int fake_argc;
 
 #define ENV_ARRAY(evt_name, fullname_suffix, subtest, dyn_subtest, result) \
 { \
@@ -51,6 +50,32 @@ const char *post_test_env[] = TEST_ENV("post-test", "FAIL");
 
 #define num_env_vars (sizeof(pre_test_env) / sizeof(pre_test_env[0]))
 
+static void set_fake_argv(const char *arg0, ...)
+{
+	va_list ap;
+	const char *arg;
+	size_t buf_size;
+
+	fake_argc = 0;
+	buf_size = 0;
+
+	va_start(ap, arg0);
+
+	arg = arg0;
+	while (arg != NULL) {
+		internal_assert(buf_size + strlen(arg) < sizeof(fake_argv_buffer));
+		internal_assert((size_t)fake_argc < sizeof(fake_argv) / sizeof(fake_argv[0]));
+
+		strcpy(fake_argv_buffer + buf_size, arg);
+		fake_argv[fake_argc++] = fake_argv_buffer + buf_size;
+		buf_size += strlen(arg) + 1;
+
+		arg = va_arg(ap, typeof(arg));
+	}
+
+	va_end(ap);
+}
+
 __noreturn static void fake_main(void)
 {
 	igt_subtest_init(fake_argc, fake_argv);
@@ -85,7 +110,7 @@ static void test_invalid_hook_str(void)
 	static char err[4096];
 	int errfd;
 
-	sprintf(hook_str, "invalid-event:echo hello");
+	set_fake_argv("igt_hook_integration", "--hook", "invalid-event:echo hello", NULL);
 
 	pid = do_fork_bg_with_pipes(fake_main, NULL, &errfd);
 
@@ -196,6 +221,7 @@ static void run_tests_and_match_env(const char *evt_descriptors, const char **ex
 	int ret;
 	int pipefd[2];
 	pid_t pid;
+	char hook_str[128];
 	FILE *f;
 
 	ret = pipe(pipefd);
@@ -204,10 +230,13 @@ static void run_tests_and_match_env(const char *evt_descriptors, const char **ex
 	/* Use grep to filter only env var set by us. This should ensure that
 	 * writing to the pipe will not block due to capacity, since we only
 	 * read from the pipe after the shell command is done. */
-	sprintf(hook_str,
-		"%1$s:printenv -0 | grep -z ^IGT_HOOK >&%2$d; printf -- ---\\\\00 >&%2$d",
-		evt_descriptors,
-		pipefd[1]);
+	ret = snprintf(hook_str, sizeof(hook_str),
+		     "%1$s:printenv -0 | grep -z ^IGT_HOOK >&%2$d; printf -- ---\\\\00 >&%2$d",
+		     evt_descriptors,
+		     pipefd[1]);
+	internal_assert(0 < ret && ret < sizeof(hook_str));
+
+	set_fake_argv("igt_hook_integration", "--hook", hook_str, NULL);
 
 	pid = do_fork_bg_with_pipes(fake_main, NULL, NULL);
 	internal_assert(safe_wait(pid, &ret) != -1);
Signature · 1 line
2.45.2
#9 lore raw

PATCH v2 5/7 igt_hook: Allow multiple hook descriptors

In reply to Gustavo Sousa

Extend the current hook functionality to allow using multiple hook descriptors. That allows running a test binary like the following:

    my-test --hook pre-subtest:do-something \
            --hook post-subtest:do-somthing-else

Which is more convenient to the user than having to implement a script that checks the value of IGT_HOOK_EVENT environment variable.

Note that we still need to add the same support for igt_runner, which is left for a followup change.

---
 lib/igt_core.c                   | 27 ++++++-----
 lib/igt_hook.c                   | 77 +++++++++++++++++++++++---------
 lib/igt_hook.h                   |  3 +-
 lib/tests/igt_hook.c             | 16 +++++--
 lib/tests/igt_hook_integration.c | 74 +++++++++++++++++++++++++++---
 runner/settings.c                |  1 +
 6 files changed, 157 insertions(+), 41 deletions(-)
lib/igt_core.c +16 -11
index 6463a5bdcae5..3764525d4a66 100644
@@ -78,6 +78,7 @@
 #include "igt_map.h"
 #include "igt_device_scan.h"
 #include "igt_thread.h"
+#include "igt_vec.h"
 #include "runnercomms.h"
 
 #define UNW_LOCAL_ONLY
@@ -1115,10 +1116,12 @@ static int common_init(int *argc, char **argv,
 	struct option *combined_opts;
 	int extra_opt_count;
 	int all_opt_count;
+	struct igt_vec hook_strs;
 	int ret = 0;
 
 	common_init_env();
 	IGT_INIT_LIST_HEAD(&subgroup_descriptions);
+	igt_vec_init(&hook_strs, sizeof(char *));
 
 	command_str = argv[0];
 	if (strrchr(command_str, '/'))
@@ -1241,17 +1244,7 @@ static int common_init(int *argc, char **argv,
 			break;
 		case OPT_HOOK:
 			assert(optarg);
-			if (igt_hook) {
-				igt_warn("Overriding previous hook descriptor\n");
-				igt_hook_free(igt_hook);
-			}
-			igt_hook = igt_hook_create(optarg, &ret);
-			if (!igt_hook) {
-				igt_critical("Failed to initialize hook data: %s\n",
-					     igt_hook_error_str(ret));
-				ret = ret > 0 ? -2 : -3;
-				goto out;
-			}
+			igt_vec_push(&hook_strs, &optarg);
 			break;
 		case OPT_HELP_HOOK:
 			igt_hook_print_help(stdout, "--hook");
@@ -1285,11 +1278,23 @@ static int common_init(int *argc, char **argv,
 		}
 	}
 
+	if (igt_vec_length(&hook_strs)) {
+		igt_hook = igt_hook_create(hook_strs.elems, igt_vec_length(&hook_strs), &ret);
+
+		if (!igt_hook) {
+			igt_critical("Failed to initialize hook data: %s\n",
+				     igt_hook_error_str(ret));
+			ret = ret > 0 ? -2 : -3;
+			goto out;
+		}
+	}
+
 	common_init_config();
 
 out:
 	free(short_opts);
 	free(combined_opts);
+	igt_vec_fini(&hook_strs);
 
 	/* exit immediately if this test has no subtests and a subtest or the
 	 * list of subtests has been requested */
lib/igt_hook.c +56 -21

134 lines not on this page · raw message

lib/igt_hook.h +2 -1
index a7b67837e5a4..e5b57260e3cb 100644
@@ -6,6 +6,7 @@
 #ifndef IGT_HOOK_H
 #define IGT_HOOK_H
 
+#include <stddef.h>
 #include <stdio.h>
 
 /**
@@ -60,7 +61,7 @@ struct igt_hook_evt {
 	const char *result;
 };
 
-struct igt_hook *igt_hook_create(const char *hook_str, int *error);
+struct igt_hook *igt_hook_create(const char **hook_strs, size_t n, int *error);
 void igt_hook_free(struct igt_hook *igt_hook);
 void igt_hook_push_evt(struct igt_hook *igt_hook, struct igt_hook_evt *evt);
 const char *igt_hook_error_str(int error);
lib/tests/igt_hook.c +13 -3
index c8a93952abed..a2def893d7f7 100644
@@ -42,12 +42,22 @@ out:
 	return i;
 }
 
+
+static struct igt_hook *igt_single_hook(const char *hook_str, int *error)
+{
+	const char *hook_strs[] = {
+		hook_str,
+	};
+
+	return igt_hook_create(hook_strs, 1, error);
+}
+
 static void test_null_error_pointer(void)
 {
 	struct igt_hook *igt_hook;
 
 	/* Ensure passing NULL error pointer does not cause issues. */
-	igt_hook = igt_hook_create("invalid:echo hello", NULL);
+	igt_hook = igt_single_hook("invalid:echo hello", NULL);
 	igt_assert(igt_hook == NULL);
 }
 
@@ -68,7 +78,7 @@ static void test_invalid_hook_descriptors(void)
 			int err = 0;
 			struct igt_hook *igt_hook;
 
-			igt_hook = igt_hook_create(invalid_cases[i].hook_desc, &err);
+			igt_hook = igt_single_hook(invalid_cases[i].hook_desc, &err);
 			igt_assert(igt_hook == NULL);
 			igt_assert(err != 0);
 		}
@@ -122,7 +132,7 @@ static void test_all_env_vars(void)
 	ret = asprintf(&hook_str, "printenv -0 | grep -z ^IGT_HOOK >&%d", pipefd[1]);
 	igt_assert(ret > 0);
 
-	igt_hook = igt_hook_create(hook_str, NULL);
+	igt_hook = igt_single_hook(hook_str, NULL);
 	igt_assert(igt_hook);
 
 	igt_hook_push_evt(igt_hook, &evt);
lib/tests/igt_hook_integration.c +69 -5

96 lines not on this page · raw message

runner/settings.c +1 -0
index e554a5c70776..6fd742cc826d 100644
@@ -758,6 +758,7 @@ bool parse_options(int argc, char **argv,
 				fprintf(stderr, "Newlines in --hook are currently unsupported.\n");
 				goto error;
 			}
+			/* FIXME: Allow as many options as allowed by test binaries. */
 			settings->hook_str = optarg;
 			break;
 		case OPT_HELP_HOOK:
Signature · 1 line
2.45.2
#10 lore raw

PATCH v2 6/7 runner: Use dynamic vector for test argv

In reply to Gustavo Sousa

With an upcoming update to allow multiple hook options, we need to allow for a dynamicly sized argument vector in execute_test_process(). Do that by using a struct igt_vec.

---
 runner/executor.c | 77 +++++++++++++++++++++++------------------------
 1 file changed, 37 insertions(+), 40 deletions(-)
runner/executor.c +37 -40
index 92dee6e32f6f..a23cd58c0781 100644
@@ -31,6 +31,7 @@
 #include "igt_aux.h"
 #include "igt_core.h"
 #include "igt_taints.h"
+#include "igt_vec.h"
 #include "executor.h"
 #include "output_strings.h"
 #include "runnercomms.h"
@@ -1506,21 +1507,8 @@ execute_test_process(int outfd, int errfd, int socketfd,
 		     struct settings *settings,
 		     struct job_list_entry *entry)
 {
-	char *arg0;
-	char *arg_run_subtest[2] = {};
-	char *arg_dyn_subtest[2] = {};
-	char *arg_hook[2] = {};
-	char **argv_refs[] = {
-		&arg0,
-		&arg_run_subtest[0],
-		&arg_run_subtest[1],
-		&arg_dyn_subtest[0],
-		&arg_dyn_subtest[1],
-		&arg_hook[0],
-		&arg_hook[1],
-		NULL,
-	};
-	char *argv[sizeof(argv_refs) / sizeof(argv_refs[0])] = {};
+	struct igt_vec arg_vec;
+	char *arg;
 	size_t rootlen;
 
 	dup2(outfd, STDOUT_FILENO);
@@ -1528,32 +1516,31 @@ execute_test_process(int outfd, int errfd, int socketfd,
 
 	setpgid(0, 0);
 
+	igt_vec_init(&arg_vec, sizeof(char *));
+
 	rootlen = strlen(settings->test_root);
-	arg0 = malloc(rootlen + strlen(entry->binary) + 2);
-	strcpy(arg0, settings->test_root);
-	arg0[rootlen] = '/';
-	strcpy(arg0 + rootlen + 1, entry->binary);
+	arg = malloc(rootlen + strlen(entry->binary) + 2);
+	strcpy(arg, settings->test_root);
+	arg[rootlen] = '/';
+	strcpy(arg + rootlen + 1, entry->binary);
+	igt_vec_push(&arg_vec, &arg);
 
 	if (entry->subtest_count) {
 		size_t argsize;
 		const char *dynbegin;
 		size_t i;
 
-		arg_run_subtest[0] = strdup("--run-subtest");
+		arg = strdup("--run-subtest");
+		igt_vec_push(&arg_vec, &arg);
 
 		if ((dynbegin = strchr(entry->subtests[0], '@')) != NULL)
 			argsize = dynbegin - entry->subtests[0];
 		else
 			argsize = strlen(entry->subtests[0]);
 
-		arg_run_subtest[1] = malloc(argsize + 1);
-		memcpy(arg_run_subtest[1], entry->subtests[0], argsize);
-		arg_run_subtest[1][argsize] = '\0';
-
-		if (dynbegin) {
-			arg_dyn_subtest[0] = strdup("--dynamic-subtest");
-			arg_dyn_subtest[1] = strdup(dynbegin + 1);
-		}
+		arg = malloc(argsize + 1);
+		memcpy(arg, entry->subtests[0], argsize);
+		arg[argsize] = '\0';
 
 		for (i = 1; i < entry->subtest_count; i++) {
 			char *sub = entry->subtests[i];
@@ -1561,32 +1548,42 @@ execute_test_process(int outfd, int errfd, int socketfd,
 
 			assert(dynbegin == NULL);
 
-			arg_run_subtest[1] = realloc(arg_run_subtest[1], argsize + sublen + 2);
-			arg_run_subtest[1][argsize] = ',';
-			strcpy(arg_run_subtest[1] + argsize + 1, sub);
+			arg = realloc(arg, argsize + sublen + 2);
+			arg[argsize] = ',';
+			strcpy(arg + argsize + 1, sub);
 			argsize += sublen + 1;
 		}
+
+		igt_vec_push(&arg_vec, &arg);
+
+		if (dynbegin) {
+			arg = strdup("--dynamic-subtest");
+			igt_vec_push(&arg_vec, &arg);
+			arg = strdup(dynbegin + 1);
+			igt_vec_push(&arg_vec, &arg);
+		}
 	}
 
 	if (settings->hook_str) {
-		arg_hook[0] = strdup("--hook");
-		arg_hook[1] = strdup(settings->hook_str);
+		arg = strdup("--hook");
+		igt_vec_push(&arg_vec, &arg);
+		arg = strdup(settings->hook_str);
+		igt_vec_push(&arg_vec, &arg);
 	}
 
-	/* Build argv with only stuff that is set. */
-	for (size_t i = 0, j = 0; argv_refs[i]; i++)
-		if (*argv_refs[i])
-			argv[j++] = *argv_refs[i];
+	arg = NULL;
+	igt_vec_push(&arg_vec, &arg);
 
 	if (socketfd >= 0) {
 		struct runnerpacket *packet;
 
-		packet = runnerpacket_exec(argv);
+		packet = runnerpacket_exec(arg_vec.elems);
 		write(socketfd, packet, packet->size);
 	}
 
-	execv(argv[0], argv);
-	fprintf(stderr, "Cannot execute %s\n", argv[0]);
+	arg = *((char **)igt_vec_elem(&arg_vec, 0));
+	execv(arg, arg_vec.elems);
+	fprintf(stderr, "Cannot execute %s\n", arg);
 	exit(IGT_EXIT_INVALID);
 }
 
Signature · 1 line
2.45.2
#11 lore raw

Re: [PATCH i-g-t v2 6/7] runner: Use dynamic vector for test argv

Quoted 3 lines · Gustavo Sousa

With an upcoming update to allow multiple hook options, we need to allow for a dynamicly sized argument vector in execute_test_process(). Do that by using a struct igt_vec.

this is exactly what you said could be done in patch 2... should just go straight to this solution then as it is more flexible to allow the rest of this series

Lucas De Marchi

#12 lore raw

PATCH v2 7/7 runner: Allow multiple --hook options

In reply to Gustavo Sousa

Test binaries now allow passing multiple --hook options, it just makes sense that igt_runner follows suit, so let's do it.

Note that this requires having another file in the results directory for storing the hook strings, as metadata.txt does not support multivalued items.

Since we are using a different file to store hook strings, take this opportunity to also allow multiline hook strings (which was not possible with metadata.txt).

---
 runner/executor.c     |   4 +-
 runner/runner_tests.c |  19 ++++-
 runner/settings.c     | 164 +++++++++++++++++++++++++++++++++++++++---
 runner/settings.h     |   3 +-
 4 files changed, 173 insertions(+), 17 deletions(-)
runner/executor.c +2 -2
index a23cd58c0781..ac73e1ddec07 100644
@@ -1564,10 +1564,10 @@ execute_test_process(int outfd, int errfd, int socketfd,
 		}
 	}
 
-	if (settings->hook_str) {
+	for (size_t i = 0; i < igt_vec_length(&settings->hook_strs); i++) {
 		arg = strdup("--hook");
 		igt_vec_push(&arg_vec, &arg);
-		arg = strdup(settings->hook_str);
+		arg = strdup(*((char **)igt_vec_elem(&settings->hook_strs, i)));
 		igt_vec_push(&arg_vec, &arg);
 	}
 
runner/runner_tests.c +16 -3
index 7470cc24052f..b806d45adbd6 100644
@@ -202,7 +202,14 @@ static void assert_settings_equal(struct settings *one, struct settings *two)
 	igt_assert_eq(one->piglit_style_dmesg, two->piglit_style_dmesg);
 	igt_assert_eq(one->dmesg_warn_level, two->dmesg_warn_level);
 	igt_assert_eq(one->prune_mode, two->prune_mode);
-	igt_assert_eqstr(one->hook_str, two->hook_str);
+
+	igt_assert_eq(igt_vec_length(&one->hook_strs), igt_vec_length(&two->hook_strs));
+	for (size_t i = 0; i < igt_vec_length(&one->hook_strs); i++) {
+		char **hook_str_one = igt_vec_elem(&one->hook_strs, i);
+		char **hook_str_two = igt_vec_elem(&two->hook_strs, i);
+
+		igt_assert_eqstr(*hook_str_one, *hook_str_two);
+	}
 }
 
 static void assert_job_list_equal(struct job_list *one, struct job_list *two)
@@ -294,6 +301,7 @@ igt_main
 		igt_assert_eq(settings->include_regexes.size, 0);
 		igt_assert_eq(settings->exclude_regexes.size, 0);
 		igt_assert(igt_list_empty(&settings->env_vars));
+		igt_assert(!igt_vec_length(&settings->hook_strs));
 		igt_assert(!settings->sync);
 		igt_assert_eq(settings->log_level, LOG_LEVEL_NORMAL);
 		igt_assert(!settings->overwrite);
@@ -303,7 +311,6 @@ igt_main
 		igt_assert_eq(settings->overall_timeout, 0);
 		igt_assert(!settings->use_watchdog);
 		igt_assert_eq(settings->prune_mode, 0);
-		igt_assert(!settings->hook_str);
 		igt_assert(strstr(settings->test_root, "test-root-dir") != NULL);
 		igt_assert(strstr(settings->results_path, "path-to-results") != NULL);
 
@@ -467,6 +474,7 @@ igt_main
 				       "--coverage-per-test",
 				       "--collect-script", "/usr/bin/true",
 				       "--hook", "echo hello",
+				       "--hook", "echo world",
 				       "--prune-mode=keep-subtests",
 				       "test-root-dir",
 				       "path-to-results",
@@ -506,6 +514,10 @@ igt_main
 		igt_assert_eqstr(env_var->key, "ENVS_WITH_JUST_KEYS");
 		igt_assert_eqstr(env_var->value, "SHOULD_WORK");
 
+		igt_assert_eq(igt_vec_length(&settings->hook_strs), 2);
+		igt_assert_eqstr(*((char **)igt_vec_elem(&settings->hook_strs, 0)), "echo hello");
+		igt_assert_eqstr(*((char **)igt_vec_elem(&settings->hook_strs, 1)), "echo world");
+
 		igt_assert(settings->sync);
 		igt_assert_eq(settings->log_level, LOG_LEVEL_VERBOSE);
 		igt_assert(settings->overwrite);
@@ -514,7 +526,6 @@ igt_main
 		igt_assert_eq(settings->per_test_timeout, 72);
 		igt_assert_eq(settings->overall_timeout, 360);
 		igt_assert(settings->use_watchdog);
-		igt_assert_eqstr(settings->hook_str, "echo hello");
 		igt_assert_eq(settings->prune_mode, PRUNE_KEEP_SUBTESTS);
 		igt_assert(strstr(settings->test_root, "test-root-dir") != NULL);
 		igt_assert(strstr(settings->results_path, "path-to-results") != NULL);
@@ -966,6 +977,8 @@ igt_main
 					       "--piglit-style-dmesg",
 					       "--prune-mode=keep-all",
 					       "--hook", "echo hello",
+					       "--hook", "echo hello\necho newline",
+					       "--hook", "echo hello\necho newline\\still the second line",
 					       testdatadir,
 					       dirname,
 			};
runner/settings.c +153 -11

239 lines not on this page · raw message

runner/settings.h +2 -1
index d3afb56de039..8335f0b8c813 100644
@@ -8,6 +8,7 @@
 #include <glib.h>
 
 #include "igt_list.h"
+#include "igt_vec.h"
 
 enum {
 	LOG_LEVEL_NORMAL = 0,
@@ -55,6 +56,7 @@ struct settings {
 	struct regex_list include_regexes;
 	struct regex_list exclude_regexes;
 	struct igt_list_head env_vars;
+	struct igt_vec hook_strs;
 	bool sync;
 	int log_level;
 	bool overwrite;
@@ -72,7 +74,6 @@ struct settings {
 	char *code_coverage_script;
 	bool enable_code_coverage;
 	bool cov_results_per_test;
-	char *hook_str;
 };
 
 /**
Signature · 1 line
2.45.2
#13 lore raw

✓ CI.xeBAT: success for Add support for hook script (rev2)

In reply to Gustavo Sousa
== Series Details ==

== Series Details ==

Series: Add support for hook script (rev2)
URL : https://patchwork.freedesktop.org/series/133391/
State : success

== Summary ==

CI Bug Log - changes from XEIGT_7895_BAT -> XEIGTPW_11295_BAT
====================================================

Summary
-------

**SUCCESS**

No regressions found.

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

No changes in participating hosts

Changes
-------

No changes found

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

* IGT: IGT_7895 -> IGTPW_11295
* Linux: xe-1512-40deb379b103746ee4c9df5f0f1919bd4703c9cc -> xe-1514-383dc44a79848f13f2430c9ed811b5c9b22b882a

IGTPW_11295: 11295
IGT_7895: 7895
xe-1512-40deb379b103746ee4c9df5f0f1919bd4703c9cc: 40deb379b103746ee4c9df5f0f1919bd4703c9cc xe-1514-383dc44a79848f13f2430c9ed811b5c9b22b882a: 383dc44a79848f13f2430c9ed811b5c9b22b882a

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/index.html

#14 lore raw

✓ Fi.CI.BAT: success for Add support for hook script (rev2)

In reply to Gustavo Sousa
== Series Details ==

== Series Details ==

Series: Add support for hook script (rev2)
URL : https://patchwork.freedesktop.org/series/133391/
State : success

== Summary ==

CI Bug Log - changes from CI_DRM_14987 -> IGTPW_11295
====================================================

Summary
-------

**SUCCESS**

No regressions found.

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/index.html

Participating hosts (42 -> 41)
------------------------------

Additional (3): bat-kbl-2 bat-arls-1 bat-mtlp-6
Missing (4): fi-kbl-8809g bat-jsl-3 fi-snb-2520m fi-pnv-d510

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

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

### IGT changes ###

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@kms_pipe_crc_basic@hang-read-crc@pipe-b-dp-6:
- {bat-mtlp-9}: NOTRUN -> [FAIL][1] +1 other test fail
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-9/igt@kms_pipe_crc_basic@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@debugfs_test@basic-hwmon:
- bat-arls-1: NOTRUN -> [SKIP][2] ([i915#9318])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]
- bat-mtlp-6: NOTRUN -> [SKIP][3] ([i915#9318])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@fbdev@info:
- bat-kbl-2: NOTRUN -> [SKIP][4] ([i915#1849])
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-kbl-2/igt@[email protected]
- bat-mtlp-6: NOTRUN -> [SKIP][5] ([i915#1849] / [i915#2582])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@fbdev@write:
- bat-mtlp-6: NOTRUN -> [SKIP][6] ([i915#2582]) +3 other tests skip
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@gem_lmem_swapping@basic:
- bat-arls-1: NOTRUN -> [SKIP][7] ([i915#10213]) +3 other tests skip
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]

* igt@gem_lmem_swapping@parallel-random-engines:
- bat-kbl-2: NOTRUN -> [SKIP][8] +39 other tests skip
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-kbl-2/igt@[email protected]

* igt@gem_lmem_swapping@verify-random:
- bat-mtlp-6: NOTRUN -> [SKIP][9] ([i915#4613]) +3 other tests skip
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@gem_mmap@basic:
- bat-arls-1: NOTRUN -> [SKIP][10] ([i915#11343] / [i915#4083])
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]
- bat-mtlp-6: NOTRUN -> [SKIP][11] ([i915#4083])
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@gem_render_tiled_blits@basic:
- bat-arls-1: NOTRUN -> [SKIP][12] ([i915#10197] / [i915#10211] / [i915#4079])
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]

* igt@gem_tiled_blits@basic:
- bat-arls-1: NOTRUN -> [SKIP][13] ([i915#10196] / [i915#4077]) +2 other tests skip
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]
- bat-mtlp-6: NOTRUN -> [SKIP][14] ([i915#4077]) +2 other tests skip
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@gem_tiled_pread_basic:
- bat-mtlp-6: NOTRUN -> [SKIP][15] ([i915#4079]) +1 other test skip
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@gem_tiled_pread_basic.html
- bat-arls-1: NOTRUN -> [SKIP][16] ([i915#10206] / [i915#4079])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@gem_tiled_pread_basic.html

* igt@i915_pm_rps@basic-api:
- bat-arls-1: NOTRUN -> [SKIP][17] ([i915#10209])
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]
- bat-mtlp-6: NOTRUN -> [SKIP][18] ([i915#6621])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@kms_addfb_basic@addfb25-x-tiled-legacy:
- bat-mtlp-6: NOTRUN -> [SKIP][19] ([i915#4212] / [i915#9792]) +8 other tests skip
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@kms_addfb_basic@addfb25-y-tiled-small-legacy:
- bat-mtlp-6: NOTRUN -> [SKIP][20] ([i915#5190] / [i915#9792])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@kms_addfb_basic@basic-y-tiled-legacy:
- bat-arls-1: NOTRUN -> [SKIP][21] ([i915#10200]) +9 other tests skip
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]

* igt@kms_cursor_legacy@basic-busy-flip-before-cursor-legacy:
- bat-arls-1: NOTRUN -> [SKIP][22] ([i915#10202] / [i915#11346]) +1 other test skip
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]

* igt@kms_cursor_legacy@basic-flip-after-cursor-legacy:
- bat-mtlp-6: NOTRUN -> [SKIP][23] ([i915#9792]) +17 other tests skip
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@kms_dsc@dsc-basic:
- bat-arls-1: NOTRUN -> [SKIP][24] ([i915#11346] / [i915#9886])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]

* igt@kms_flip@basic-flip-vs-dpms:
- bat-mtlp-6: NOTRUN -> [SKIP][25] ([i915#3637] / [i915#9792]) +3 other tests skip
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@kms_force_connector_basic@force-load-detect:
- bat-arls-1: NOTRUN -> [SKIP][26] ([i915#10207] / [i915#11346])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]

* igt@kms_force_connector_basic@prune-stale-modes:
- bat-mtlp-6: NOTRUN -> [SKIP][27] ([i915#5274] / [i915#9792])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@kms_frontbuffer_tracking@basic:
- bat-mtlp-6: NOTRUN -> [SKIP][28] ([i915#4342] / [i915#5354] / [i915#9792])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@kms_pm_backlight@basic-brightness:
- bat-arls-1: NOTRUN -> [SKIP][29] ([i915#11346] / [i915#9812])
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]
- bat-mtlp-6: NOTRUN -> [SKIP][30] ([i915#5354] / [i915#9792])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@kms_psr@psr-cursor-plane-move:
- bat-mtlp-6: NOTRUN -> [SKIP][31] ([i915#1072] / [i915#9673] / [i915#9732] / [i915#9792]) +3 other tests skip
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@kms_psr@psr-primary-mmap-gtt:
- bat-arls-1: NOTRUN -> [SKIP][32] ([i915#11346] / [i915#9732]) +3 other tests skip
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]

* igt@kms_setmode@basic-clone-single-crtc:
- bat-mtlp-6: NOTRUN -> [SKIP][33] ([i915#3555] / [i915#8809] / [i915#9792])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]
- bat-arls-1: NOTRUN -> [SKIP][34] ([i915#10208] / [i915#8809])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]

* igt@prime_vgem@basic-fence-flip:
- bat-mtlp-6: NOTRUN -> [SKIP][35] ([i915#3708] / [i915#9792])
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@prime_vgem@basic-fence-mmap:
- bat-mtlp-6: NOTRUN -> [SKIP][36] ([i915#3708] / [i915#4077]) +1 other test skip
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]

* igt@prime_vgem@basic-fence-read:
- bat-arls-1: NOTRUN -> [SKIP][37] ([i915#10212] / [i915#3708])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]

* igt@prime_vgem@basic-gtt:
- bat-arls-1: NOTRUN -> [SKIP][38] ([i915#10196] / [i915#3708] / [i915#4077]) +1 other test skip
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]

* igt@prime_vgem@basic-read:
- bat-mtlp-6: NOTRUN -> [SKIP][39] ([i915#3708]) +1 other test skip
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]
- bat-arls-1: NOTRUN -> [SKIP][40] ([i915#10214] / [i915#3708])
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]

* igt@prime_vgem@basic-write:
- bat-mtlp-6: NOTRUN -> [SKIP][41] ([i915#10216] / [i915#3708])
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-6/igt@[email protected]
- bat-arls-1: NOTRUN -> [SKIP][42] ([i915#10216] / [i915#3708])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-arls-1/igt@[email protected]

#### Possible fixes ####

* igt@i915_selftest@live@hangcheck:
- bat-mtlp-8: [DMESG-FAIL][43] ([i915#9500]) -> [PASS][44]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/bat-mtlp-8/igt@i915_selftest@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-8/igt@i915_selftest@[email protected]

* igt@kms_cursor_legacy@basic-flip-after-cursor-atomic:
- {bat-mtlp-9}: [SKIP][45] ([i915#10580]) -> [PASS][46]
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/bat-mtlp-9/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-9/igt@[email protected]

* igt@kms_frontbuffer_tracking@basic:
- {bat-mtlp-9}: [DMESG-FAIL][47] ([i915#11009]) -> [PASS][48]
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/bat-mtlp-9/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-9/igt@[email protected]

* igt@kms_pm_rpm@basic-rte:
- {bat-mtlp-9}: [DMESG-WARN][49] ([i915#11009]) -> [PASS][50] +1 other test pass
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/bat-mtlp-9/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/bat-mtlp-9/igt@[email protected]

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

[i915#10196]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10196
[i915#10197]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10197
[i915#10200]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10200
[i915#10202]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10202
[i915#10206]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10206
[i915#10207]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10207
[i915#10208]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10208
[i915#10209]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10209
[i915#10211]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10211
[i915#10212]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10212
[i915#10213]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10213
[i915#10214]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10214
[i915#10216]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10216
[i915#10580]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10580
[i915#1072]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1072
[i915#11009]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11009
[i915#11343]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11343
[i915#11346]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11346
[i915#11394]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11394
[i915#11395]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11395
[i915#1849]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1849
[i915#2582]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2582
[i915#3555]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3555
[i915#3637]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3637
[i915#3708]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3708
[i915#4077]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4083
[i915#4212]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4213
[i915#4342]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4342
[i915#4613]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4613
[i915#5190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5190
[i915#5274]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5274
[i915#5354]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5354
[i915#6121]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6121
[i915#6621]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6621
[i915#8809]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8809
[i915#9318]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9318
[i915#9500]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9500
[i915#9673]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9673
[i915#9732]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9732
[i915#9792]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9792
[i915#9812]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9812
[i915#9886]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9886

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

* CI: CI-20190529 -> None
* IGT: IGT_7895 -> IGTPW_11295

CI-20190529: 20190529
CI_DRM_14987: 383dc44a79848f13f2430c9ed811b5c9b22b882a @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_11295: 11295
IGT_7895: 7895

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/index.html

#15 lore raw

✗ CI.xeFULL: failure for Add support for hook script (rev2)

In reply to Gustavo Sousa
== Series Details ==

== Series Details ==

Series: Add support for hook script (rev2)
URL : https://patchwork.freedesktop.org/series/133391/
State : failure

== Summary ==

CI Bug Log - changes from XEIGT_7895_full -> XEIGTPW_11295_full
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with XEIGTPW_11295_full absolutely need to be verified manually.

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

Participating hosts (3 -> 3)
------------------------------

No changes in participating hosts

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

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

### IGT changes ###

#### Possible regressions ####

* igt@kms_fb_coherency@memset-crc:
- shard-dg2-set2: [PASS][1] -> [CRASH][2] +1 other test crash
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-434/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-434/igt@[email protected]

#### Warnings ####

* igt@kms_flip@2x-flip-vs-suspend-interruptible:
- shard-dg2-set2: [INCOMPLETE][3] ([Intel XE#1195]) -> [DMESG-WARN][4]
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-435/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_flip@2x-flip-vs-suspend-interruptible@ab-hdmi-a6-dp4:
- shard-dg2-set2: [DMESG-WARN][5] ([Intel XE#1214]) -> [DMESG-WARN][6] +1 other test dmesg-warn
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-435/igt@kms_flip@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@kms_flip@[email protected]

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@kms_3d:
- {shard-lnl}: [SKIP][7] ([Intel XE#1465]) -> [INCOMPLETE][8]
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-lnl-8/igt@kms_3d.html
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-lnl-4/igt@kms_3d.html

* igt@kms_fb_coherency@memset-crc@mmap-offset-wc:
- {shard-lnl}: NOTRUN -> [CRASH][9] +1 other test crash
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-lnl-1/igt@kms_fb_coherency@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc@pipe-a-edp-1:
- {shard-lnl}: [PASS][10] -> [INCOMPLETE][11] +1 other test incomplete
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-lnl-7/igt@kms_pipe_crc_basic@[email protected]
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-lnl-4/igt@kms_pipe_crc_basic@[email protected]

* igt@kms_pm_dc@dc6-psr:
- {shard-lnl}: [FAIL][12] ([Intel XE#1430]) -> [INCOMPLETE][13]
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-lnl-1/igt@[email protected]
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-lnl-1/igt@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@kms_async_flips@alternate-sync-async-flip@pipe-c-dp-4:
- shard-dg2-set2: [PASS][14] -> [FAIL][15] ([Intel XE#827]) +1 other test fail
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@kms_async_flips@[email protected]
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-435/igt@kms_async_flips@[email protected]

* igt@kms_big_fb@y-tiled-addfb-size-offset-overflow:
- shard-dg2-set2: NOTRUN -> [SKIP][16] ([Intel XE#1201] / [Intel XE#607])
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-436/igt@[email protected]

* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180-hflip:
- shard-dg2-set2: NOTRUN -> [SKIP][17] ([Intel XE#1124] / [Intel XE#1201]) +2 other tests skip
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-463/igt@[email protected]

* igt@kms_bw@linear-tiling-4-displays-2160x1440p:
- shard-dg2-set2: NOTRUN -> [SKIP][18] ([Intel XE#1201] / [Intel XE#367])
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-463/igt@[email protected]

* igt@kms_ccs@bad-pixel-format-yf-tiled-ccs:
- shard-dg2-set2: NOTRUN -> [SKIP][19] ([Intel XE#455] / [Intel XE#787]) +1 other test skip
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_ccs@bad-pixel-format-yf-tiled-ccs@pipe-c-dp-4:
- shard-dg2-set2: NOTRUN -> [SKIP][20] ([Intel XE#787]) +6 other tests skip
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@kms_ccs@[email protected]

* igt@kms_ccs@ccs-on-another-bo-y-tiled-ccs:
- shard-dg2-set2: NOTRUN -> [SKIP][21] ([Intel XE#1201] / [Intel XE#455] / [Intel XE#787]) +5 other tests skip
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-434/igt@[email protected]

* igt@kms_ccs@missing-ccs-buffer-y-tiled-gen12-rc-ccs-cc@pipe-c-hdmi-a-6:
- shard-dg2-set2: NOTRUN -> [SKIP][22] ([Intel XE#1201] / [Intel XE#787]) +20 other tests skip
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-434/igt@kms_ccs@[email protected]

* igt@kms_chamelium_edid@hdmi-edid-read:
- shard-dg2-set2: NOTRUN -> [SKIP][23] ([Intel XE#1201] / [Intel XE#373]) +2 other tests skip
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-435/igt@[email protected]

* igt@kms_chamelium_frames@vga-frame-dump:
- shard-dg2-set2: NOTRUN -> [SKIP][24] ([Intel XE#373])
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_cursor_crc@cursor-rapid-movement-256x256@pipe-d-hdmi-a-6:
- shard-dg2-set2: [PASS][25] -> [DMESG-WARN][26] ([Intel XE#1214] / [Intel XE#282]) +4 other tests dmesg-warn
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-434/igt@kms_cursor_crc@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-435/igt@kms_cursor_crc@[email protected]

* igt@kms_cursor_edge_walk@256x256-left-edge@pipe-a-hdmi-a-6:
- shard-dg2-set2: NOTRUN -> [DMESG-WARN][27] ([Intel XE#1214] / [Intel XE#282]) +2 other tests dmesg-warn
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-434/igt@kms_cursor_edge_walk@[email protected]

* igt@kms_cursor_legacy@2x-cursor-vs-flip-atomic:
- shard-dg2-set2: [PASS][28] -> [DMESG-WARN][29] ([Intel XE#282] / [Intel XE#910])
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-433/igt@[email protected]
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_cursor_legacy@2x-long-cursor-vs-flip-atomic:
- shard-dg2-set2: [PASS][30] -> [DMESG-WARN][31] ([Intel XE#1214] / [Intel XE#282] / [Intel XE#910])
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-463/igt@[email protected]
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-433/igt@[email protected]

* igt@kms_cursor_legacy@forked-move@pipe-b:
- shard-dg2-set2: [PASS][32] -> [DMESG-WARN][33] ([Intel XE#282]) +1 other test dmesg-warn
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@kms_cursor_legacy@[email protected]
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@kms_cursor_legacy@[email protected]

* igt@kms_display_modes@mst-extended-mode-negative:
- shard-dg2-set2: NOTRUN -> [SKIP][34] ([Intel XE#1201] / [Intel XE#307])
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-466/igt@[email protected]

* igt@kms_fbcon_fbt@psr:
- shard-dg2-set2: NOTRUN -> [SKIP][35] ([Intel XE#1201] / [Intel XE#776])
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-434/igt@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-downscaling:
- shard-dg2-set2: NOTRUN -> [SKIP][36] ([Intel XE#1201] / [Intel XE#455]) +3 other tests skip
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-435/igt@kms_flip_scaled_crc@flip-32bpp-yftile-to-32bpp-yftileccs-downscaling.html

* igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-pri-shrfb-draw-render:
- shard-dg2-set2: NOTRUN -> [SKIP][37] ([Intel XE#1201] / [Intel XE#651]) +7 other tests skip
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-466/igt@kms_frontbuffer_tracking@drrs-2p-scndscrn-pri-shrfb-draw-render.html

* igt@kms_frontbuffer_tracking@fbc-tiling-y:
- shard-dg2-set2: NOTRUN -> [SKIP][38] ([Intel XE#1201] / [Intel XE#658])
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-435/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-shrfb-pgflip-blt:
- shard-dg2-set2: NOTRUN -> [SKIP][39] ([Intel XE#651])
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@kms_frontbuffer_tracking@fbcdrrs-2p-scndscrn-shrfb-pgflip-blt.html

* igt@kms_frontbuffer_tracking@psr-2p-primscrn-cur-indfb-draw-render:
- shard-dg2-set2: NOTRUN -> [SKIP][40] ([Intel XE#1201] / [Intel XE#653]) +8 other tests skip
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-435/igt@kms_frontbuffer_tracking@psr-2p-primscrn-cur-indfb-draw-render.html

* igt@kms_plane_cursor@viewport@pipe-a-hdmi-a-6-size-64:
- shard-dg2-set2: [PASS][41] -> [FAIL][42] ([Intel XE#616]) +1 other test fail
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-435/igt@kms_plane_cursor@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-464/igt@kms_plane_cursor@[email protected]

* igt@kms_plane_scaling@intel-max-src-size@pipe-a-hdmi-a-6:
- shard-dg2-set2: [PASS][43] -> [FAIL][44] ([Intel XE#361])
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-436/igt@kms_plane_scaling@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@kms_plane_scaling@[email protected]

* igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25:
- shard-dg2-set2: NOTRUN -> [SKIP][45] ([Intel XE#1201] / [Intel XE#305] / [Intel XE#455]) +1 other test skip
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-435/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25.html

* igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25@pipe-c-hdmi-a-6:
- shard-dg2-set2: NOTRUN -> [SKIP][46] ([Intel XE#1201] / [Intel XE#305]) +2 other tests skip
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-435/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25@pipe-c-hdmi-a-6.html

* igt@kms_psr@fbc-pr-primary-blt:
- shard-dg2-set2: NOTRUN -> [SKIP][47] ([Intel XE#929]) +1 other test skip
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_psr@psr2-basic:
- shard-dg2-set2: NOTRUN -> [SKIP][48] ([Intel XE#1201] / [Intel XE#929]) +5 other tests skip
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-436/igt@[email protected]

* igt@kms_writeback@writeback-check-output:
- shard-dg2-set2: NOTRUN -> [SKIP][49] ([Intel XE#756])
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@xe_copy_basic@mem-set-linear-0xfd:
- shard-dg2-set2: NOTRUN -> [SKIP][50] ([Intel XE#1126] / [Intel XE#1201])
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-466/igt@[email protected]

* igt@xe_evict@evict-beng-mixed-threads-large:
- shard-dg2-set2: [PASS][51] -> [INCOMPLETE][52] ([Intel XE#1473] / [Intel XE#392])
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-463/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@xe_exec_fault_mode@many-execqueues-bindexecqueue-userptr-invalidate-race-prefetch:
- shard-dg2-set2: NOTRUN -> [SKIP][53] ([Intel XE#1201] / [Intel XE#288]) +6 other tests skip
[53]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-434/igt@xe_exec_fault_mode@many-execqueues-bindexecqueue-userptr-invalidate-race-prefetch.html

* igt@xe_exec_fault_mode@twice-bindexecqueue-userptr:
- shard-dg2-set2: NOTRUN -> [SKIP][54] ([Intel XE#288])
[54]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@xe_module_load@reload:
- shard-dg2-set2: NOTRUN -> [DMESG-WARN][55] ([Intel XE#1214])
[55]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-463/igt@[email protected]

* igt@xe_pm@s3-basic-exec:
- shard-dg2-set2: [PASS][56] -> [DMESG-WARN][57] ([Intel XE#1214] / [Intel XE#1551] / [Intel XE#569]) +1 other test dmesg-warn
[56]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-435/igt@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-434/igt@[email protected]

* igt@xe_query@multigpu-query-gt-list:
- shard-dg2-set2: NOTRUN -> [SKIP][58] ([Intel XE#1201] / [Intel XE#944])
[58]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-464/igt@[email protected]

* igt@xe_wedged@wedged-at-any-timeout:
- shard-dg2-set2: NOTRUN -> [DMESG-WARN][59] ([Intel XE#1214] / [Intel XE#1760])
[59]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-434/igt@[email protected]

#### Possible fixes ####

* igt@kms_big_fb@4-tiled-64bpp-rotate-180:
- {shard-lnl}: [FAIL][60] ([Intel XE#1659]) -> [PASS][61]
[60]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-lnl-6/igt@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-lnl-2/igt@[email protected]

* igt@kms_cursor_crc@cursor-rapid-movement-256x256@pipe-a-hdmi-a-6:
- shard-dg2-set2: [DMESG-WARN][62] ([Intel XE#1214] / [Intel XE#282]) -> [PASS][63] +3 other tests pass
[62]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-434/igt@kms_cursor_crc@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-435/igt@kms_cursor_crc@[email protected]

* igt@kms_cursor_legacy@forked-move@all-pipes:
- shard-dg2-set2: [DMESG-WARN][64] ([Intel XE#282]) -> [PASS][65]
[64]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@kms_cursor_legacy@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@kms_cursor_legacy@[email protected]

* igt@kms_flip@2x-flip-vs-suspend-interruptible@cd-hdmi-a6-dp4:
- shard-dg2-set2: [INCOMPLETE][66] ([Intel XE#1195]) -> [PASS][67]
[66]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-435/igt@kms_flip@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@kms_flip@[email protected]

* igt@kms_plane_scaling@intel-max-src-size@pipe-a-dp-4:
- shard-dg2-set2: [FAIL][68] ([Intel XE#361]) -> [PASS][69]
[68]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-436/igt@kms_plane_scaling@[email protected]
[69]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@kms_plane_scaling@[email protected]

* igt@xe_evict@evict-beng-mixed-many-threads-small:
- shard-dg2-set2: [TIMEOUT][70] ([Intel XE#1473] / [Intel XE#402]) -> [PASS][71]
[70]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-466/igt@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@xe_exec_balancer@once-cm-virtual-userptr-rebind:
- {shard-lnl}: [INCOMPLETE][72] -> [PASS][73]
[72]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-lnl-3/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-lnl-8/igt@[email protected]

* igt@xe_module_load@reload:
- {shard-lnl}: [INCOMPLETE][74] ([Intel XE#2026]) -> [PASS][75]
[74]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-lnl-6/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-lnl-5/igt@[email protected]

* igt@xe_pm@s3-basic:
- shard-dg2-set2: [DMESG-WARN][76] ([Intel XE#569]) -> [PASS][77]
[76]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@xe_pm@s3-multiple-execs:
- shard-dg2-set2: [DMESG-WARN][78] ([Intel XE#1214] / [Intel XE#1551] / [Intel XE#569]) -> [PASS][79]
[78]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-436/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-435/igt@[email protected]

* igt@xe_pm@s4-vm-bind-prefetch:
- shard-dg2-set2: [DMESG-WARN][80] ([Intel XE#1214]) -> [PASS][81] +2 other tests pass
[80]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-435/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

#### Warnings ####

* igt@kms_async_flips@async-flip-with-page-flip-events@pipe-c-hdmi-a-6-4-mc-ccs:
- shard-dg2-set2: [SKIP][82] ([Intel XE#1201] / [Intel XE#801]) -> [SKIP][83] ([Intel XE#801]) +23 other tests skip
[82]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-435/igt@kms_async_flips@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@kms_async_flips@[email protected]

* igt@kms_big_fb@4-tiled-64bpp-rotate-270:
- shard-dg2-set2: [SKIP][84] ([Intel XE#316]) -> [SKIP][85] ([Intel XE#1201] / [Intel XE#316]) +1 other test skip
[84]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-435/igt@[email protected]

* igt@kms_big_fb@linear-8bpp-rotate-270:
- shard-dg2-set2: [SKIP][86] ([Intel XE#1201] / [Intel XE#316]) -> [SKIP][87] ([Intel XE#316]) +2 other tests skip
[86]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-463/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_big_fb@yf-tiled-64bpp-rotate-180:
- shard-dg2-set2: [SKIP][88] ([Intel XE#1124] / [Intel XE#1201]) -> [SKIP][89] ([Intel XE#1124]) +6 other tests skip
[88]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-436/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_big_fb@yf-tiled-addfb-size-offset-overflow:
- shard-dg2-set2: [SKIP][90] ([Intel XE#607]) -> [SKIP][91] ([Intel XE#1201] / [Intel XE#607])
[90]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-463/igt@[email protected]

* igt@kms_big_fb@yf-tiled-addfb-size-overflow:
- shard-dg2-set2: [SKIP][92] ([Intel XE#610]) -> [SKIP][93] ([Intel XE#1201] / [Intel XE#610])
[92]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-434/igt@[email protected]

* igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip:
- shard-dg2-set2: [SKIP][94] ([Intel XE#1124]) -> [SKIP][95] ([Intel XE#1124] / [Intel XE#1201]) +6 other tests skip
[94]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip.html
[95]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-466/igt@kms_big_fb@yf-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip.html

* igt@kms_bw@linear-tiling-2-displays-1920x1080p:
- shard-dg2-set2: [SKIP][96] ([Intel XE#1201] / [Intel XE#367]) -> [SKIP][97] ([Intel XE#367]) +1 other test skip
[96]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-463/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_bw@linear-tiling-4-displays-1920x1080p:
- shard-dg2-set2: [SKIP][98] ([Intel XE#367]) -> [SKIP][99] ([Intel XE#1201] / [Intel XE#367])
[98]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-466/igt@[email protected]

* igt@kms_ccs@bad-pixel-format-4-tiled-mtl-rc-ccs-cc@pipe-a-hdmi-a-6:
- shard-dg2-set2: [SKIP][100] ([Intel XE#787]) -> [SKIP][101] ([Intel XE#1201] / [Intel XE#787]) +76 other tests skip
[100]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@kms_ccs@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-464/igt@kms_ccs@[email protected]

* igt@kms_ccs@bad-pixel-format-y-tiled-gen12-mc-ccs@pipe-d-dp-4:
- shard-dg2-set2: [SKIP][102] ([Intel XE#455] / [Intel XE#787]) -> [SKIP][103] ([Intel XE#1201] / [Intel XE#455] / [Intel XE#787]) +21 other tests skip
[102]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@kms_ccs@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-466/igt@kms_ccs@[email protected]

* igt@kms_ccs@bad-rotation-90-y-tiled-ccs@pipe-a-hdmi-a-6:
- shard-dg2-set2: [SKIP][104] ([Intel XE#1201] / [Intel XE#787]) -> [SKIP][105] ([Intel XE#787]) +41 other tests skip
[104]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-436/igt@kms_ccs@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@kms_ccs@[email protected]

* igt@kms_ccs@random-ccs-data-y-tiled-gen12-mc-ccs@pipe-d-dp-4:
- shard-dg2-set2: [SKIP][106] ([Intel XE#1201] / [Intel XE#455] / [Intel XE#787]) -> [SKIP][107] ([Intel XE#455] / [Intel XE#787]) +11 other tests skip
[106]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-434/igt@kms_ccs@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@kms_ccs@[email protected]

* igt@kms_chamelium_color@ctm-red-to-blue:
- shard-dg2-set2: [SKIP][108] ([Intel XE#306]) -> [SKIP][109] ([Intel XE#1201] / [Intel XE#306]) +1 other test skip
[108]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-434/igt@[email protected]

* igt@kms_chamelium_edid@dp-edid-stress-resolution-4k:
- shard-dg2-set2: [SKIP][110] ([Intel XE#1201] / [Intel XE#373]) -> [SKIP][111] ([Intel XE#373]) +5 other tests skip
[110]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-435/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_chamelium_hpd@vga-hpd:
- shard-dg2-set2: [SKIP][112] ([Intel XE#373]) -> [SKIP][113] ([Intel XE#1201] / [Intel XE#373]) +8 other tests skip
[112]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-466/igt@[email protected]

* igt@kms_cursor_crc@cursor-onscreen-512x170:
- shard-dg2-set2: [SKIP][114] ([Intel XE#308]) -> [SKIP][115] ([Intel XE#1201] / [Intel XE#308]) +1 other test skip
[114]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-464/igt@[email protected]

* igt@kms_cursor_crc@cursor-rapid-movement-512x170:
- shard-dg2-set2: [SKIP][116] ([Intel XE#1201] / [Intel XE#308]) -> [SKIP][117] ([Intel XE#308]) +1 other test skip
[116]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-434/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_cursor_crc@cursor-rapid-movement-max-size:
- shard-dg2-set2: [SKIP][118] ([Intel XE#455]) -> [SKIP][119] ([Intel XE#1201] / [Intel XE#455]) +14 other tests skip
[118]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-466/igt@[email protected]

* igt@kms_cursor_edge_walk@256x256-top-bottom:
- shard-dg2-set2: [DMESG-WARN][120] ([Intel XE#1214] / [Intel XE#282]) -> [DMESG-WARN][121] ([Intel XE#282]) +4 other tests dmesg-warn
[120]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-435/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_cursor_legacy@cursor-vs-flip-atomic-transitions:
- shard-dg2-set2: [DMESG-WARN][122] ([Intel XE#282]) -> [DMESG-WARN][123] ([Intel XE#1214] / [Intel XE#282]) +4 other tests dmesg-warn
[122]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-435/igt@[email protected]

* igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions:
- shard-dg2-set2: [SKIP][124] ([Intel XE#323]) -> [SKIP][125] ([Intel XE#1201] / [Intel XE#323])
[124]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions.html
[125]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-435/igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions.html

* igt@kms_feature_discovery@display-4x:
- shard-dg2-set2: [SKIP][126] ([Intel XE#1138]) -> [SKIP][127] ([Intel XE#1138] / [Intel XE#1201])
[126]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-433/igt@[email protected]

* igt@kms_feature_discovery@dp-mst:
- shard-dg2-set2: [SKIP][128] ([Intel XE#1137]) -> [SKIP][129] ([Intel XE#1137] / [Intel XE#1201])
[128]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-464/igt@[email protected]

* igt@kms_feature_discovery@psr2:
- shard-dg2-set2: [SKIP][130] ([Intel XE#1135]) -> [SKIP][131] ([Intel XE#1135] / [Intel XE#1201])
[130]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-436/igt@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling:
- shard-dg2-set2: [SKIP][132] ([Intel XE#1201] / [Intel XE#455]) -> [SKIP][133] ([Intel XE#455]) +8 other tests skip
[132]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-434/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling.html
[133]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@kms_flip_scaled_crc@flip-32bpp-ytile-to-32bpp-ytilegen12rcccs-upscaling.html

* igt@kms_frontbuffer_tracking@drrs-suspend:
- shard-dg2-set2: [SKIP][134] ([Intel XE#651]) -> [SKIP][135] ([Intel XE#1201] / [Intel XE#651]) +27 other tests skip
[134]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[135]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-466/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcdrrs-1p-primscrn-cur-indfb-draw-render:
- shard-dg2-set2: [SKIP][136] ([Intel XE#1201] / [Intel XE#651]) -> [SKIP][137] ([Intel XE#651]) +18 other tests skip
[136]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-435/igt@kms_frontbuffer_tracking@fbcdrrs-1p-primscrn-cur-indfb-draw-render.html
[137]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@kms_frontbuffer_tracking@fbcdrrs-1p-primscrn-cur-indfb-draw-render.html

* igt@kms_frontbuffer_tracking@psr-2p-primscrn-shrfb-msflip-blt:
- shard-dg2-set2: [SKIP][138] ([Intel XE#1201] / [Intel XE#653]) -> [SKIP][139] ([Intel XE#653]) +18 other tests skip
[138]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-435/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-2p-primscrn-spr-indfb-draw-mmap-wc:
- shard-dg2-set2: [SKIP][140] ([Intel XE#653]) -> [SKIP][141] ([Intel XE#1201] / [Intel XE#653]) +24 other tests skip
[140]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@kms_frontbuffer_tracking@psr-2p-primscrn-spr-indfb-draw-mmap-wc.html
[141]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-433/igt@kms_frontbuffer_tracking@psr-2p-primscrn-spr-indfb-draw-mmap-wc.html

* igt@kms_getfb@getfb-reject-ccs:
- shard-dg2-set2: [SKIP][142] ([Intel XE#605]) -> [SKIP][143] ([Intel XE#1201] / [Intel XE#605])
[142]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-466/igt@[email protected]

* igt@kms_hdmi_inject@inject-audio:
- shard-dg2-set2: [SKIP][144] ([Intel XE#417]) -> [SKIP][145] ([Intel XE#1201] / [Intel XE#417])
[144]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-464/igt@[email protected]

* igt@kms_pipe_crc_basic@suspend-read-crc:
- shard-dg2-set2: [DMESG-WARN][146] ([Intel XE#1162] / [Intel XE#1214]) -> [DMESG-WARN][147] ([Intel XE#1162])
[146]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-436/igt@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-20x20@pipe-a-hdmi-a-6:
- shard-dg2-set2: [SKIP][148] ([Intel XE#1201] / [Intel XE#305]) -> [SKIP][149] ([Intel XE#305]) +5 other tests skip
[148]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-463/igt@kms_plane_scaling@[email protected]
[149]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@kms_plane_scaling@[email protected]

* igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-20x20@pipe-d-hdmi-a-6:
- shard-dg2-set2: [SKIP][150] ([Intel XE#1201] / [Intel XE#305] / [Intel XE#455]) -> [SKIP][151] ([Intel XE#305] / [Intel XE#455]) +2 other tests skip
[150]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-463/igt@kms_plane_scaling@[email protected]
[151]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@kms_plane_scaling@[email protected]

* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-d-hdmi-a-6:
- shard-dg2-set2: [SKIP][152] ([Intel XE#305] / [Intel XE#455]) -> [SKIP][153] ([Intel XE#1201] / [Intel XE#305] / [Intel XE#455]) +2 other tests skip
[152]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@kms_plane_scaling@[email protected]
[153]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-436/igt@kms_plane_scaling@[email protected]

* igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25@pipe-c-hdmi-a-6:
- shard-dg2-set2: [SKIP][154] ([Intel XE#305]) -> [SKIP][155] ([Intel XE#1201] / [Intel XE#305]) +5 other tests skip
[154]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25@pipe-c-hdmi-a-6.html
[155]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-463/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25@pipe-c-hdmi-a-6.html

* igt@kms_pm_backlight@bad-brightness:
- shard-dg2-set2: [SKIP][156] ([Intel XE#870]) -> [SKIP][157] ([Intel XE#1201] / [Intel XE#870])
[156]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[157]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-434/igt@[email protected]

* igt@kms_pm_backlight@fade-with-suspend:
- shard-dg2-set2: [SKIP][158] ([Intel XE#1201] / [Intel XE#870]) -> [SKIP][159] ([Intel XE#870])
[158]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-464/igt@[email protected]
[159]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_pm_dc@dc5-psr:
- shard-dg2-set2: [SKIP][160] ([Intel XE#1129]) -> [SKIP][161] ([Intel XE#1129] / [Intel XE#1201]) +1 other test skip
[160]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[161]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-433/igt@[email protected]

* igt@kms_pm_dc@dc6-dpms:
- shard-dg2-set2: [SKIP][162] ([Intel XE#1201] / [Intel XE#908]) -> [SKIP][163] ([Intel XE#908])
[162]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-466/igt@[email protected]
[163]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_psr2_su@page_flip-nv12:
- shard-dg2-set2: [SKIP][164] ([Intel XE#1122]) -> [SKIP][165] ([Intel XE#1122] / [Intel XE#1201])
[164]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@kms_psr2_su@page_flip-nv12.html
[165]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-436/igt@kms_psr2_su@page_flip-nv12.html

* igt@kms_psr@fbc-pr-no-drrs:
- shard-dg2-set2: [SKIP][166] ([Intel XE#929]) -> [SKIP][167] ([Intel XE#1201] / [Intel XE#929]) +14 other tests skip
[166]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[167]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-436/igt@[email protected]

* igt@kms_psr@fbc-psr-sprite-render:
- shard-dg2-set2: [SKIP][168] ([Intel XE#1201] / [Intel XE#929]) -> [SKIP][169] ([Intel XE#929]) +10 other tests skip
[168]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-436/igt@[email protected]
[169]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_rotation_crc@bad-pixel-format:
- shard-dg2-set2: [SKIP][170] ([Intel XE#327]) -> [SKIP][171] ([Intel XE#1201] / [Intel XE#327]) +1 other test skip
[170]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[171]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-434/igt@[email protected]

* igt@kms_rotation_crc@sprite-rotation-270:
- shard-dg2-set2: [SKIP][172] ([Intel XE#1201] / [Intel XE#327]) -> [SKIP][173] ([Intel XE#327])
[172]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-435/igt@[email protected]
[173]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@kms_tiled_display@basic-test-pattern-with-chamelium:
- shard-dg2-set2: [SKIP][174] ([Intel XE#1201] / [Intel XE#362]) -> [SKIP][175] ([Intel XE#1201] / [Intel XE#1500])
[174]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-463/igt@[email protected]
[175]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-435/igt@[email protected]

* igt@kms_vblank@ts-continuation-dpms-suspend:
- shard-dg2-set2: [DMESG-WARN][176] ([Intel XE#1551]) -> [DMESG-WARN][177] ([Intel XE#1214] / [Intel XE#1551]) +1 other test dmesg-warn
[176]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[177]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-463/igt@[email protected]

* igt@sriov_basic@bind-unbind-vf:
- shard-dg2-set2: [SKIP][178] ([Intel XE#1091]) -> [SKIP][179] ([Intel XE#1091] / [Intel XE#1201]) +1 other test skip
[178]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[179]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-436/igt@[email protected]

* igt@xe_compute_preempt@compute-preempt-many:
- shard-dg2-set2: [SKIP][180] ([Intel XE#1280] / [Intel XE#455]) -> [SKIP][181] ([Intel XE#1201] / [Intel XE#1280] / [Intel XE#455]) +1 other test skip
[180]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[181]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-436/igt@[email protected]

* igt@xe_copy_basic@mem-copy-linear-0xfffe:
- shard-dg2-set2: [SKIP][182] ([Intel XE#1123]) -> [SKIP][183] ([Intel XE#1123] / [Intel XE#1201])
[182]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[183]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-433/igt@[email protected]

* igt@xe_copy_basic@mem-set-linear-0xfffe:
- shard-dg2-set2: [SKIP][184] ([Intel XE#1126] / [Intel XE#1201]) -> [SKIP][185] ([Intel XE#1126]) +1 other test skip
[184]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-434/igt@[email protected]
[185]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@xe_create@multigpu-create-massive-size:
- shard-dg2-set2: [SKIP][186] ([Intel XE#1201] / [Intel XE#944]) -> [SKIP][187] ([Intel XE#944])
[186]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-435/igt@[email protected]
[187]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@xe_evict@evict-mixed-threads-large:
- shard-dg2-set2: [TIMEOUT][188] ([Intel XE#1473] / [Intel XE#392]) -> [INCOMPLETE][189] ([Intel XE#1195] / [Intel XE#1473] / [Intel XE#392])
[188]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-466/igt@[email protected]
[189]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-436/igt@[email protected]

* igt@xe_exec_fault_mode@once-bindexecqueue-userptr-invalidate-prefetch:
- shard-dg2-set2: [SKIP][190] ([Intel XE#1201] / [Intel XE#288]) -> [SKIP][191] ([Intel XE#288]) +13 other tests skip
[190]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-463/igt@xe_exec_fault_mode@once-bindexecqueue-userptr-invalidate-prefetch.html
[191]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@xe_exec_fault_mode@once-bindexecqueue-userptr-invalidate-prefetch.html

* igt@xe_exec_fault_mode@twice-userptr-rebind-imm:
- shard-dg2-set2: [SKIP][192] ([Intel XE#288]) -> [SKIP][193] ([Intel XE#1201] / [Intel XE#288]) +19 other tests skip
[192]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[193]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-435/igt@[email protected]

* igt@xe_pat@display-vs-wb-transient:
- shard-dg2-set2: [SKIP][194] ([Intel XE#1201] / [Intel XE#1337]) -> [SKIP][195] ([Intel XE#1337])
[194]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-434/igt@[email protected]
[195]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@xe_pat@pat-index-xe2:
- shard-dg2-set2: [SKIP][196] ([Intel XE#1201] / [Intel XE#977]) -> [SKIP][197] ([Intel XE#977])
[196]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-463/igt@[email protected]
[197]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@xe_pat@pat-index-xehpc:
- shard-dg2-set2: [SKIP][198] ([Intel XE#979]) -> [SKIP][199] ([Intel XE#1201] / [Intel XE#979])
[198]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[199]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-463/igt@[email protected]

* igt@xe_pm@d3cold-mmap-system:
- shard-dg2-set2: [SKIP][200] ([Intel XE#1201] / [Intel XE#366]) -> [SKIP][201] ([Intel XE#366])
[200]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-435/igt@[email protected]
[201]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-432/igt@[email protected]

* igt@xe_pm@s2idle-d3cold-basic-exec:
- shard-dg2-set2: [SKIP][202] ([Intel XE#366]) -> [SKIP][203] ([Intel XE#1201] / [Intel XE#366]) +1 other test skip
[202]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[203]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-466/igt@[email protected]

* igt@xe_query@multigpu-query-engines:
- shard-dg2-set2: [SKIP][204] ([Intel XE#944]) -> [SKIP][205] ([Intel XE#1201] / [Intel XE#944]) +1 other test skip
[204]: https://intel-gfx-ci.01.org/tree/intel-xe/IGT_7895/shard-dg2-432/igt@[email protected]
[205]: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/shard-dg2-463/igt@[email protected]

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

[Intel XE#1091]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1091
[Intel XE#1122]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1122
[Intel XE#1123]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1123
[Intel XE#1124]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1124
[Intel XE#1126]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1126
[Intel XE#1127]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1127
[Intel XE#1129]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1129
[Intel XE#1135]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1135
[Intel XE#1137]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1137
[Intel XE#1138]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1138
[Intel XE#1162]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1162
[Intel XE#1169]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1169
[Intel XE#1192]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1192
[Intel XE#1195]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1195
[Intel XE#1201]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1201
[Intel XE#1214]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1214
[Intel XE#1280]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1280
[Intel XE#1337]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1337
[Intel XE#1358]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1358
[Intel XE#1392]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1392
[Intel XE#1397]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1397
[Intel XE#1399]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1399
[Intel XE#1401]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1401
[Intel XE#1406]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1406
[Intel XE#1407]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1407
[Intel XE#1413]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1413
[Intel XE#1421]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1421
[Intel XE#1424]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1424
[Intel XE#1430]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1430
[Intel XE#1435]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1435
[Intel XE#1437]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1437
[Intel XE#1439]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1439
[Intel XE#1442]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1442
[Intel XE#1447]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1447
[Intel XE#1465]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1465
[Intel XE#1466]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1466
[Intel XE#1469]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1469
[Intel XE#1473]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1473
[Intel XE#1477]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1477
[Intel XE#1500]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1500
[Intel XE#1503]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1503
[Intel XE#1504]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1504
[Intel XE#1512]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1512
[Intel XE#1551]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1551
[Intel XE#1607]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1607
[Intel XE#1659]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1659
[Intel XE#1745]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1745
[Intel XE#1760]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1760
[Intel XE#1794]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1794
[Intel XE#2026]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2026
[Intel XE#2097]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2097
[Intel XE#282]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/282
[Intel XE#288]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/288
[Intel XE#305]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/305
[Intel XE#306]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/306
[Intel XE#307]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/307
[Intel XE#308]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/308
[Intel XE#309]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/309
[Intel XE#316]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/316
[Intel XE#323]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/323
[Intel XE#327]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/327
[Intel XE#346]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/346
[Intel XE#352]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/352
[Intel XE#361]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/361
[Intel XE#362]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/362
[Intel XE#366]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/366
[Intel XE#367]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/367
[Intel XE#373]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/373
[Intel XE#374]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/374
[Intel XE#378]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/378
[Intel XE#392]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/392
[Intel XE#402]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/402
[Intel XE#417]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/417
[Intel XE#455]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/455
[Intel XE#498]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/498
[Intel XE#569]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/569
[Intel XE#584]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/584
[Intel XE#599]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/599
[Intel XE#605]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/605
[Intel XE#607]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/607
[Intel XE#610]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/610
[Intel XE#616]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/616
[Intel XE#651]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/651
[Intel XE#653]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/653
[Intel XE#656]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/656
[Intel XE#658]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/658
[Intel XE#688]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/688
[Intel XE#701]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/701
[Intel XE#718]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/718
[Intel XE#756]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/756
[Intel XE#776]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/776
[Intel XE#787]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/787
[Intel XE#801]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/801
[Intel XE#827]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/827
[Intel XE#870]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/870
[Intel XE#873]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/873
[Intel XE#908]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/908
[Intel XE#910]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/910
[Intel XE#929]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/929
[Intel XE#944]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/944
[Intel XE#977]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/977
[Intel XE#979]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/979

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

* IGT: IGT_7895 -> IGTPW_11295
* Linux: xe-1512-40deb379b103746ee4c9df5f0f1919bd4703c9cc -> xe-1514-383dc44a79848f13f2430c9ed811b5c9b22b882a

IGTPW_11295: 11295
IGT_7895: 7895
xe-1512-40deb379b103746ee4c9df5f0f1919bd4703c9cc: 40deb379b103746ee4c9df5f0f1919bd4703c9cc xe-1514-383dc44a79848f13f2430c9ed811b5c9b22b882a: 383dc44a79848f13f2430c9ed811b5c9b22b882a

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/IGTPW_11295/index.html

#16 lore raw

✗ Fi.CI.IGT: failure for Add support for hook script (rev2)

In reply to Gustavo Sousa
== Series Details ==

== Series Details ==

Series: Add support for hook script (rev2)
URL : https://patchwork.freedesktop.org/series/133391/
State : failure

== Summary ==

CI Bug Log - changes from CI_DRM_14987_full -> IGTPW_11295_full
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with IGTPW_11295_full absolutely need to be verified manually.

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

External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/index.html

Participating hosts (9 -> 9)
------------------------------

No changes in participating hosts

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

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

### IGT changes ###

#### Possible regressions ####

* igt@gem_exec_suspend@basic-s0@smem:
- shard-tglu: [PASS][1] -> [ABORT][2] +1 other test abort
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-tglu-9/igt@gem_exec_suspend@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-9/igt@gem_exec_suspend@[email protected]

* igt@kms_fb_coherency@memset-crc@mmap-gtt:
- shard-tglu: [PASS][3] -> [CRASH][4]
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-tglu-9/igt@kms_fb_coherency@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-8/igt@kms_fb_coherency@[email protected]
- shard-glk: [PASS][5] -> [CRASH][6]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-glk2/igt@kms_fb_coherency@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-glk2/igt@kms_fb_coherency@[email protected]

* igt@kms_fb_coherency@memset-crc@mmap-offset-fixed:
- shard-dg2: [PASS][7] -> [CRASH][8]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg2-4/igt@kms_fb_coherency@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-5/igt@kms_fb_coherency@[email protected]

* igt@kms_fb_coherency@memset-crc@mmap-offset-wc:
- shard-mtlp: [PASS][9] -> [CRASH][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-mtlp-7/igt@kms_fb_coherency@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-8/igt@kms_fb_coherency@[email protected]

* igt@kms_vblank@ts-continuation-suspend@pipe-d-hdmi-a-1:
- shard-tglu: [PASS][11] -> [DMESG-WARN][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-tglu-5/igt@kms_vblank@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-7/igt@kms_vblank@[email protected]

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

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

### IGT changes ###

#### Issues hit ####

* igt@api_intel_bb@blit-reloc-keep-cache:
- shard-rkl: NOTRUN -> [SKIP][13] ([i915#8411]) +1 other test skip
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-6/igt@[email protected]

* igt@api_intel_bb@blit-reloc-purge-cache:
- shard-dg2: NOTRUN -> [SKIP][14] ([i915#8411]) +1 other test skip
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-5/igt@[email protected]

* igt@api_intel_bb@object-reloc-keep-cache:
- shard-dg1: NOTRUN -> [SKIP][15] ([i915#8411])
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-14/igt@[email protected]

* igt@debugfs_test@basic-hwmon:
- shard-tglu: NOTRUN -> [SKIP][16] ([i915#9318])
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-10/igt@[email protected]

* igt@device_reset@cold-reset-bound:
- shard-dg2: NOTRUN -> [SKIP][17] ([i915#11078]) +1 other test skip
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-6/igt@[email protected]

* igt@device_reset@unbind-cold-reset-rebind:
- shard-rkl: NOTRUN -> [SKIP][18] ([i915#11078])
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]
- shard-tglu: NOTRUN -> [SKIP][19] ([i915#11078])
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-8/igt@[email protected]

* igt@drm_fdinfo@all-busy-check-all:
- shard-mtlp: NOTRUN -> [SKIP][20] ([i915#8414])
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-6/igt@[email protected]

* igt@drm_fdinfo@busy@rcs0:
- shard-dg2: NOTRUN -> [SKIP][21] ([i915#8414]) +7 other tests skip
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@drm_fdinfo@[email protected]

* igt@drm_fdinfo@isolation@vecs0:
- shard-dg1: NOTRUN -> [SKIP][22] ([i915#8414]) +10 other tests skip
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-14/igt@drm_fdinfo@[email protected]

* igt@drm_fdinfo@most-busy-idle-check-all@rcs0:
- shard-rkl: NOTRUN -> [FAIL][23] ([i915#7742])
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@drm_fdinfo@[email protected]

* igt@gem_ccs@block-copy-compressed:
- shard-rkl: NOTRUN -> [SKIP][24] ([i915#3555] / [i915#9323])
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]

* igt@gem_ccs@block-multicopy-compressed:
- shard-rkl: NOTRUN -> [SKIP][25] ([i915#9323]) +1 other test skip
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-1/igt@[email protected]

* igt@gem_ccs@block-multicopy-inplace:
- shard-dg1: NOTRUN -> [SKIP][26] ([i915#3555] / [i915#9323])
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-16/igt@[email protected]

* igt@gem_ccs@ctrl-surf-copy-new-ctx:
- shard-tglu: NOTRUN -> [SKIP][27] ([i915#9323])
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-3/igt@[email protected]

* igt@gem_close_race@multigpu-basic-process:
- shard-dg1: NOTRUN -> [SKIP][28] ([i915#7697])
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-14/igt@[email protected]

* igt@gem_close_race@multigpu-basic-threads:
- shard-dg2: NOTRUN -> [SKIP][29] ([i915#7697]) +1 other test skip
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-1/igt@[email protected]
- shard-tglu: NOTRUN -> [SKIP][30] ([i915#7697])
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-5/igt@[email protected]

* igt@gem_create@create-ext-cpu-access-big:
- shard-dg2: NOTRUN -> [ABORT][31] ([i915#9846])
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@[email protected]

* igt@gem_create@create-ext-cpu-access-sanity-check:
- shard-tglu: NOTRUN -> [SKIP][32] ([i915#6335])
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-3/igt@[email protected]

* igt@gem_create@create-ext-set-pat:
- shard-rkl: NOTRUN -> [SKIP][33] ([i915#8562])
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@[email protected]

* igt@gem_ctx_persistence@hang:
- shard-dg1: NOTRUN -> [SKIP][34] ([i915#8555])
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-18/igt@[email protected]

* igt@gem_ctx_persistence@heartbeat-hang:
- shard-dg2: NOTRUN -> [SKIP][35] ([i915#8555]) +3 other tests skip
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-6/igt@[email protected]

* igt@gem_ctx_sseu@invalid-sseu:
- shard-mtlp: NOTRUN -> [SKIP][36] ([i915#280])
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-4/igt@[email protected]

* igt@gem_ctx_sseu@mmap-args:
- shard-dg2: NOTRUN -> [SKIP][37] ([i915#280])
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-4/igt@[email protected]
- shard-rkl: NOTRUN -> [SKIP][38] ([i915#280])
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-1/igt@[email protected]

* igt@gem_exec_balancer@bonded-sync:
- shard-dg1: NOTRUN -> [SKIP][39] ([i915#4771])
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-18/igt@[email protected]

* igt@gem_exec_balancer@parallel-bb-first:
- shard-rkl: NOTRUN -> [SKIP][40] ([i915#4525]) +2 other tests skip
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-3/igt@[email protected]

* igt@gem_exec_capture@capture-invisible@lmem0:
- shard-dg2: NOTRUN -> [SKIP][41] ([i915#6334]) +1 other test skip
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@gem_exec_capture@[email protected]

* igt@gem_exec_endless@dispatch@bcs0:
- shard-dg1: [PASS][42] -> [TIMEOUT][43] ([i915#3778])
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg1-16/igt@gem_exec_endless@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-15/igt@gem_exec_endless@[email protected]

* igt@gem_exec_fair@basic-none-rrul:
- shard-dg2: NOTRUN -> [SKIP][44] ([i915#3539] / [i915#4852]) +5 other tests skip
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-5/igt@[email protected]

* igt@gem_exec_fair@basic-none-solo@rcs0:
- shard-glk: NOTRUN -> [FAIL][45] ([i915#2842])
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-glk6/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-none@rcs0:
- shard-tglu: NOTRUN -> [FAIL][46] ([i915#2842]) +4 other tests fail
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-9/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace-solo@rcs0:
- shard-rkl: [PASS][47] -> [FAIL][48] ([i915#2842]) +1 other test fail
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-rkl-4/igt@gem_exec_fair@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fence@submit67:
- shard-dg2: NOTRUN -> [SKIP][49] ([i915#4812]) +1 other test skip
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-1/igt@[email protected]

* igt@gem_exec_flush@basic-uc-prw-default:
- shard-dg1: NOTRUN -> [SKIP][50] ([i915#3539]) +3 other tests skip
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-18/igt@[email protected]

* igt@gem_exec_flush@basic-uc-set-default:
- shard-dg2: NOTRUN -> [SKIP][51] ([i915#3539]) +1 other test skip
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-4/igt@[email protected]

* igt@gem_exec_flush@basic-wb-prw-default:
- shard-dg1: NOTRUN -> [SKIP][52] ([i915#3539] / [i915#4852]) +1 other test skip
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]

* igt@gem_exec_reloc@basic-cpu:
- shard-dg2: NOTRUN -> [SKIP][53] ([i915#3281]) +4 other tests skip
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-2/igt@[email protected]

* igt@gem_exec_reloc@basic-write-gtt-active:
- shard-dg1: NOTRUN -> [SKIP][54] ([i915#3281]) +10 other tests skip
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]

* igt@gem_exec_reloc@basic-write-read-noreloc:
- shard-rkl: NOTRUN -> [SKIP][55] ([i915#3281]) +9 other tests skip
[55]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-2/igt@[email protected]

* igt@gem_exec_schedule@preempt-queue:
- shard-dg1: NOTRUN -> [SKIP][56] ([i915#4812]) +1 other test skip
[56]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]

* igt@gem_exec_schedule@preempt-queue-chain:
- shard-mtlp: NOTRUN -> [SKIP][57] ([i915#4537] / [i915#4812])
[57]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-5/igt@[email protected]

* igt@gem_exec_schedule@reorder-wide:
- shard-dg2: NOTRUN -> [SKIP][58] ([i915#4537] / [i915#4812]) +2 other tests skip
[58]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-10/igt@[email protected]

* igt@gem_exec_schedule@semaphore-power:
- shard-rkl: NOTRUN -> [SKIP][59] ([i915#7276])
[59]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-3/igt@[email protected]

* igt@gem_fence_thrash@bo-write-verify-none:
- shard-dg1: NOTRUN -> [SKIP][60] ([i915#4860]) +3 other tests skip
[60]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-18/igt@[email protected]

* igt@gem_fenced_exec_thrash@too-many-fences:
- shard-dg2: NOTRUN -> [SKIP][61] ([i915#4860])
[61]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-5/igt@[email protected]

* igt@gem_lmem_swapping@heavy-verify-multi-ccs@lmem0:
- shard-dg2: NOTRUN -> [FAIL][62] ([i915#10378]) +1 other test fail
[62]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@gem_lmem_swapping@[email protected]
- shard-dg1: NOTRUN -> [SKIP][63] ([i915#4565]) +2 other tests skip
[63]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-18/igt@gem_lmem_swapping@[email protected]

* igt@gem_lmem_swapping@heavy-verify-random-ccs@lmem0:
- shard-dg2: [PASS][64] -> [FAIL][65] ([i915#10378])
[64]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg2-11/igt@gem_lmem_swapping@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-6/igt@gem_lmem_swapping@[email protected]

* igt@gem_lmem_swapping@parallel-random-verify:
- shard-rkl: NOTRUN -> [SKIP][66] ([i915#4613]) +2 other tests skip
[66]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@[email protected]
- shard-tglu: NOTRUN -> [SKIP][67] ([i915#4613]) +1 other test skip
[67]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-5/igt@[email protected]
- shard-mtlp: NOTRUN -> [SKIP][68] ([i915#4613])
[68]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-3/igt@[email protected]

* igt@gem_lmem_swapping@smem-oom@lmem0:
- shard-dg2: [PASS][69] -> [TIMEOUT][70] ([i915#5493])
[69]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg2-11/igt@gem_lmem_swapping@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-6/igt@gem_lmem_swapping@[email protected]

* igt@gem_media_fill@media-fill:
- shard-dg2: NOTRUN -> [SKIP][71] ([i915#8289])
[71]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-5/igt@[email protected]

* igt@gem_mmap@bad-offset:
- shard-dg1: NOTRUN -> [SKIP][72] ([i915#4083]) +3 other tests skip
[72]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]

* igt@gem_mmap_gtt@hang:
- shard-dg2: NOTRUN -> [SKIP][73] ([i915#4077]) +8 other tests skip
[73]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@[email protected]

* igt@gem_mmap_wc@bad-offset:
- shard-dg2: NOTRUN -> [SKIP][74] ([i915#4083])
[74]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-3/igt@[email protected]

* igt@gem_partial_pwrite_pread@writes-after-reads:
- shard-rkl: NOTRUN -> [SKIP][75] ([i915#3282]) +6 other tests skip
[75]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-2/igt@[email protected]

* igt@gem_pread@uncached:
- shard-dg2: NOTRUN -> [SKIP][76] ([i915#3282]) +3 other tests skip
[76]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-5/igt@[email protected]

* igt@gem_pwrite@basic-exhaustion:
- shard-dg1: NOTRUN -> [SKIP][77] ([i915#3282]) +3 other tests skip
[77]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-13/igt@[email protected]

* igt@gem_pxp@display-protected-crc:
- shard-dg2: NOTRUN -> [SKIP][78] ([i915#4270]) +1 other test skip
[78]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-5/igt@[email protected]

* igt@gem_pxp@protected-encrypted-src-copy-not-readible:
- shard-dg1: NOTRUN -> [SKIP][79] ([i915#4270]) +1 other test skip
[79]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]
- shard-mtlp: NOTRUN -> [SKIP][80] ([i915#4270])
[80]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-2/igt@[email protected]

* igt@gem_pxp@protected-raw-src-copy-not-readible:
- shard-rkl: NOTRUN -> [SKIP][81] ([i915#4270]) +4 other tests skip
[81]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@[email protected]

* igt@gem_pxp@reject-modify-context-protection-on:
- shard-tglu: NOTRUN -> [SKIP][82] ([i915#4270])
[82]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-10/igt@[email protected]

* igt@gem_render_copy@y-tiled-to-vebox-yf-tiled:
- shard-dg2: NOTRUN -> [SKIP][83] ([i915#5190] / [i915#8428]) +6 other tests skip
[83]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-6/igt@[email protected]

* igt@gem_tiled_pread_basic:
- shard-dg2: NOTRUN -> [SKIP][84] ([i915#4079]) +1 other test skip
[84]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-2/igt@gem_tiled_pread_basic.html

* igt@gem_tiled_pread_pwrite:
- shard-dg1: NOTRUN -> [SKIP][85] ([i915#4079]) +1 other test skip
[85]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-13/igt@gem_tiled_pread_pwrite.html

* igt@gem_unfence_active_buffers:
- shard-dg2: NOTRUN -> [SKIP][86] ([i915#4879])
[86]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@gem_unfence_active_buffers.html

* igt@gem_userptr_blits@access-control:
- shard-rkl: NOTRUN -> [SKIP][87] ([i915#3297])
[87]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-2/igt@[email protected]

* igt@gem_userptr_blits@map-fixed-invalidate-overlap:
- shard-dg1: NOTRUN -> [SKIP][88] ([i915#3297] / [i915#4880])
[88]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]

* igt@gem_userptr_blits@map-fixed-invalidate-overlap-busy:
- shard-dg2: NOTRUN -> [SKIP][89] ([i915#3297] / [i915#4880]) +1 other test skip
[89]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-3/igt@[email protected]

* igt@gem_userptr_blits@readonly-pwrite-unsync:
- shard-tglu: NOTRUN -> [SKIP][90] ([i915#3297]) +1 other test skip
[90]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-3/igt@[email protected]
- shard-dg2: NOTRUN -> [SKIP][91] ([i915#3297])
[91]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@[email protected]

* igt@gem_userptr_blits@relocations:
- shard-rkl: NOTRUN -> [SKIP][92] ([i915#3281] / [i915#3297])
[92]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@[email protected]

* igt@gem_userptr_blits@unsync-unmap-after-close:
- shard-dg1: NOTRUN -> [SKIP][93] ([i915#3297]) +2 other tests skip
[93]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]

* igt@gen7_exec_parse@bitmasks:
- shard-dg2: NOTRUN -> [SKIP][94] +25 other tests skip
[94]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-10/igt@[email protected]

* igt@gen9_exec_parse@basic-rejected-ctx-param:
- shard-tglu: NOTRUN -> [SKIP][95] ([i915#2527] / [i915#2856]) +2 other tests skip
[95]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-3/igt@[email protected]
- shard-mtlp: NOTRUN -> [SKIP][96] ([i915#2856])
[96]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-7/igt@[email protected]

* igt@gen9_exec_parse@bb-chained:
- shard-dg1: NOTRUN -> [SKIP][97] ([i915#2527]) +4 other tests skip
[97]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]

* igt@gen9_exec_parse@shadow-peek:
- shard-rkl: NOTRUN -> [SKIP][98] ([i915#2527]) +3 other tests skip
[98]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]

* igt@gen9_exec_parse@unaligned-access:
- shard-dg2: NOTRUN -> [SKIP][99] ([i915#2856]) +2 other tests skip
[99]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-5/igt@[email protected]

* igt@i915_module_load@reload-with-fault-injection:
- shard-dg2: [PASS][100] -> [ABORT][101] ([i915#9820])
[100]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg2-7/igt@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-3/igt@[email protected]

* igt@i915_module_load@resize-bar:
- shard-rkl: NOTRUN -> [SKIP][102] ([i915#6412])
[102]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-3/igt@[email protected]

* igt@i915_pipe_stress@stress-xrgb8888-ytiled:
- shard-dg2: NOTRUN -> [SKIP][103] ([i915#7091])
[103]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-2/igt@[email protected]

* igt@i915_pm_freq_api@freq-suspend:
- shard-rkl: NOTRUN -> [SKIP][104] ([i915#8399])
[104]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@[email protected]

* igt@i915_pm_freq_mult@media-freq@gt0:
- shard-rkl: NOTRUN -> [SKIP][105] ([i915#6590])
[105]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@i915_pm_freq_mult@[email protected]
- shard-dg1: NOTRUN -> [SKIP][106] ([i915#6590])
[106]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-15/igt@i915_pm_freq_mult@[email protected]
- shard-tglu: NOTRUN -> [SKIP][107] ([i915#6590])
[107]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-9/igt@i915_pm_freq_mult@[email protected]

* igt@i915_pm_freq_mult@media-freq@gt1:
- shard-mtlp: NOTRUN -> [SKIP][108] ([i915#6590]) +1 other test skip
[108]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-8/igt@i915_pm_freq_mult@[email protected]

* igt@i915_pm_rps@basic-api:
- shard-dg1: NOTRUN -> [SKIP][109] ([i915#6621])
[109]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]
- shard-dg2: NOTRUN -> [SKIP][110] ([i915#6621])
[110]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@[email protected]

* igt@i915_pm_sseu@full-enable:
- shard-rkl: NOTRUN -> [SKIP][111] ([i915#4387])
[111]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-3/igt@[email protected]

* igt@i915_query@query-topology-coherent-slice-mask:
- shard-dg2: NOTRUN -> [SKIP][112] ([i915#6188])
[112]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@[email protected]

* igt@i915_query@test-query-geometry-subslices:
- shard-dg1: NOTRUN -> [SKIP][113] ([i915#5723])
[113]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-16/igt@[email protected]

* igt@intel_hwmon@hwmon-read:
- shard-rkl: NOTRUN -> [SKIP][114] ([i915#7707])
[114]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]

* igt@kms_addfb_basic@addfb25-framebuffer-vs-set-tiling:
- shard-mtlp: NOTRUN -> [SKIP][115] ([i915#4212])
[115]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-8/igt@[email protected]

* igt@kms_addfb_basic@basic-y-tiled-legacy:
- shard-dg1: NOTRUN -> [SKIP][116] ([i915#4215])
[116]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-13/igt@[email protected]

* igt@kms_addfb_basic@framebuffer-vs-set-tiling:
- shard-dg2: NOTRUN -> [SKIP][117] ([i915#4212]) +2 other tests skip
[117]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-1/igt@[email protected]
- shard-dg1: NOTRUN -> [SKIP][118] ([i915#4212]) +3 other tests skip
[118]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-15/igt@[email protected]

* igt@kms_big_fb@4-tiled-32bpp-rotate-270:
- shard-tglu: NOTRUN -> [SKIP][119] ([i915#5286]) +3 other tests skip
[119]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-9/igt@[email protected]

* igt@kms_big_fb@4-tiled-8bpp-rotate-180:
- shard-dg1: NOTRUN -> [SKIP][120] ([i915#4538] / [i915#5286]) +5 other tests skip
[120]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-15/igt@[email protected]

* igt@kms_big_fb@4-tiled-addfb-size-offset-overflow:
- shard-dg1: NOTRUN -> [SKIP][121] ([i915#5286])
[121]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-14/igt@[email protected]

* igt@kms_big_fb@4-tiled-max-hw-stride-32bpp-rotate-0:
- shard-rkl: NOTRUN -> [SKIP][122] ([i915#5286]) +6 other tests skip
[122]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]

* igt@kms_big_fb@x-tiled-64bpp-rotate-270:
- shard-dg1: NOTRUN -> [SKIP][123] ([i915#3638]) +2 other tests skip
[123]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]

* igt@kms_big_fb@y-tiled-64bpp-rotate-180:
- shard-mtlp: NOTRUN -> [SKIP][124]
[124]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-7/igt@[email protected]

* igt@kms_big_fb@y-tiled-64bpp-rotate-270:
- shard-rkl: NOTRUN -> [SKIP][125] ([i915#3638]) +5 other tests skip
[125]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]

* igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip:
- shard-dg2: NOTRUN -> [SKIP][126] ([i915#4538] / [i915#5190]) +10 other tests skip
[126]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-6/igt@kms_big_fb@y-tiled-max-hw-stride-64bpp-rotate-0-hflip-async-flip.html

* igt@kms_big_fb@yf-tiled-max-hw-stride-32bpp-rotate-180:
- shard-dg1: NOTRUN -> [SKIP][127] ([i915#4538]) +8 other tests skip
[127]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-16/igt@[email protected]

* igt@kms_big_joiner@basic:
- shard-dg2: NOTRUN -> [SKIP][128] ([i915#10656]) +1 other test skip
[128]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-3/igt@[email protected]
- shard-dg1: NOTRUN -> [SKIP][129] ([i915#10656])
[129]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-16/igt@[email protected]

* igt@kms_big_joiner@basic-force-joiner:
- shard-tglu: NOTRUN -> [SKIP][130] ([i915#10656]) +1 other test skip
[130]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-9/igt@[email protected]
- shard-rkl: NOTRUN -> [SKIP][131] ([i915#10656])
[131]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]

* igt@kms_ccs@bad-pixel-format-4-tiled-dg2-rc-ccs-cc@pipe-a-hdmi-a-1:
- shard-tglu: NOTRUN -> [SKIP][132] ([i915#6095]) +27 other tests skip
[132]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-10/igt@kms_ccs@[email protected]

* igt@kms_ccs@bad-pixel-format-y-tiled-ccs@pipe-d-hdmi-a-1:
- shard-dg2: NOTRUN -> [SKIP][133] ([i915#10307] / [i915#10434] / [i915#6095]) +1 other test skip
[133]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-4/igt@kms_ccs@[email protected]

* igt@kms_ccs@bad-rotation-90-4-tiled-mtl-rc-ccs-cc@pipe-b-hdmi-a-4:
- shard-dg1: NOTRUN -> [SKIP][134] ([i915#6095]) +63 other tests skip
[134]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-18/igt@kms_ccs@[email protected]

* igt@kms_ccs@ccs-on-another-bo-yf-tiled-ccs@pipe-a-hdmi-a-3:
- shard-dg2: NOTRUN -> [SKIP][135] ([i915#10307] / [i915#6095]) +145 other tests skip
[135]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-6/igt@kms_ccs@[email protected]

* igt@kms_ccs@crc-primary-basic-4-tiled-dg2-mc-ccs@pipe-c-edp-1:
- shard-mtlp: NOTRUN -> [SKIP][136] ([i915#6095]) +3 other tests skip
[136]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-3/igt@kms_ccs@[email protected]

* igt@kms_ccs@crc-primary-rotation-180-4-tiled-mtl-mc-ccs@pipe-c-hdmi-a-2:
- shard-glk: NOTRUN -> [SKIP][137] +146 other tests skip
[137]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-glk8/igt@kms_ccs@[email protected]

* igt@kms_ccs@random-ccs-data-4-tiled-mtl-rc-ccs@pipe-b-hdmi-a-2:
- shard-rkl: NOTRUN -> [SKIP][138] ([i915#6095]) +71 other tests skip
[138]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-3/igt@kms_ccs@[email protected]

* igt@kms_cdclk@mode-transition:
- shard-dg1: NOTRUN -> [SKIP][139] ([i915#3742])
[139]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]

* igt@kms_cdclk@plane-scaling:
- shard-rkl: NOTRUN -> [SKIP][140] ([i915#3742])
[140]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-3/igt@[email protected]

* igt@kms_cdclk@plane-scaling@pipe-d-dp-4:
- shard-dg2: NOTRUN -> [SKIP][141] ([i915#4087]) +3 other tests skip
[141]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@kms_cdclk@[email protected]

* igt@kms_chamelium_edid@hdmi-edid-change-during-suspend:
- shard-rkl: NOTRUN -> [SKIP][142] ([i915#7828]) +11 other tests skip
[142]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@[email protected]

* igt@kms_chamelium_hpd@dp-hpd-enable-disable-mode:
- shard-dg1: NOTRUN -> [SKIP][143] ([i915#7828]) +12 other tests skip
[143]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-15/igt@[email protected]

* igt@kms_chamelium_hpd@dp-hpd-with-enabled-mode:
- shard-dg2: NOTRUN -> [SKIP][144] ([i915#7828]) +10 other tests skip
[144]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-4/igt@[email protected]

* igt@kms_chamelium_hpd@hdmi-hpd-with-enabled-mode:
- shard-mtlp: NOTRUN -> [SKIP][145] ([i915#7828]) +2 other tests skip
[145]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-2/igt@[email protected]

* igt@kms_chamelium_hpd@vga-hpd-without-ddc:
- shard-tglu: NOTRUN -> [SKIP][146] ([i915#7828]) +7 other tests skip
[146]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-9/igt@[email protected]

* igt@kms_content_protection@atomic:
- shard-dg1: NOTRUN -> [SKIP][147] ([i915#7116] / [i915#9424]) +1 other test skip
[147]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]
- shard-dg2: NOTRUN -> [SKIP][148] ([i915#7118] / [i915#9424])
[148]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-5/igt@[email protected]

* igt@kms_content_protection@content-type-change:
- shard-tglu: NOTRUN -> [SKIP][149] ([i915#6944] / [i915#9424])
[149]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-10/igt@[email protected]

* igt@kms_content_protection@dp-mst-lic-type-0:
- shard-dg2: NOTRUN -> [SKIP][150] ([i915#3299])
[150]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@[email protected]
- shard-dg1: NOTRUN -> [SKIP][151] ([i915#3299])
[151]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-14/igt@[email protected]

* igt@kms_content_protection@legacy:
- shard-rkl: NOTRUN -> [SKIP][152] ([i915#7118] / [i915#9424])
[152]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@[email protected]

* igt@kms_content_protection@lic-type-1:
- shard-rkl: NOTRUN -> [SKIP][153] ([i915#9424])
[153]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-1/igt@[email protected]

* igt@kms_content_protection@uevent:
- shard-tglu: NOTRUN -> [SKIP][154] ([i915#6944] / [i915#7116] / [i915#7118] / [i915#9424])
[154]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-3/igt@[email protected]

* igt@kms_content_protection@uevent@pipe-a-dp-4:
- shard-dg2: NOTRUN -> [FAIL][155] ([i915#1339] / [i915#7173])
[155]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@kms_content_protection@[email protected]

* igt@kms_cursor_crc@cursor-offscreen-512x170:
- shard-dg1: NOTRUN -> [SKIP][156] ([i915#3359]) +2 other tests skip
[156]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]

* igt@kms_cursor_crc@cursor-rapid-movement-32x10:
- shard-tglu: NOTRUN -> [SKIP][157] ([i915#3555]) +4 other tests skip
[157]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-9/igt@[email protected]

* igt@kms_cursor_crc@cursor-rapid-movement-512x170:
- shard-dg2: NOTRUN -> [SKIP][158] ([i915#3359]) +2 other tests skip
[158]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-5/igt@[email protected]

* igt@kms_cursor_crc@cursor-sliding-512x512:
- shard-rkl: NOTRUN -> [SKIP][159] ([i915#3359]) +3 other tests skip
[159]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]

* igt@kms_cursor_crc@cursor-sliding-max-size:
- shard-rkl: NOTRUN -> [SKIP][160] ([i915#3555]) +3 other tests skip
[160]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-6/igt@[email protected]

* igt@kms_cursor_legacy@2x-long-cursor-vs-flip-atomic:
- shard-mtlp: NOTRUN -> [SKIP][161] ([i915#9809]) +1 other test skip
[161]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-6/igt@[email protected]

* igt@kms_cursor_legacy@modeset-atomic-cursor-hotspot:
- shard-rkl: NOTRUN -> [SKIP][162] ([i915#9067])
[162]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-3/igt@[email protected]

* igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions:
- shard-rkl: NOTRUN -> [SKIP][163] ([i915#4103])
[163]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-2/igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions.html

* igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions-varying-size:
- shard-dg2: NOTRUN -> [SKIP][164] ([i915#4103] / [i915#4213]) +1 other test skip
[164]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-1/igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions-varying-size.html
- shard-dg1: NOTRUN -> [SKIP][165] ([i915#4103] / [i915#4213])
[165]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-15/igt@kms_cursor_legacy@short-busy-flip-before-cursor-atomic-transitions-varying-size.html

* igt@kms_cursor_legacy@torture-bo@pipe-a:
- shard-snb: [PASS][166] -> [DMESG-WARN][167] ([i915#10166])
[166]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-snb2/igt@kms_cursor_legacy@[email protected]
[167]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-snb2/igt@kms_cursor_legacy@[email protected]

* igt@kms_dirtyfb@drrs-dirtyfb-ioctl:
- shard-rkl: NOTRUN -> [SKIP][168] ([i915#9723])
[168]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]

* igt@kms_dither@fb-8bpc-vs-panel-6bpc@pipe-a-hdmi-a-1:
- shard-tglu: NOTRUN -> [SKIP][169] ([i915#3804])
[169]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-9/igt@kms_dither@[email protected]

* igt@kms_draw_crc@draw-method-mmap-gtt:
- shard-dg1: NOTRUN -> [SKIP][170] ([i915#8812])
[170]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-14/igt@[email protected]

* igt@kms_dsc@dsc-fractional-bpp:
- shard-dg2: NOTRUN -> [SKIP][171] ([i915#3840] / [i915#9688])
[171]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-3/igt@[email protected]
- shard-dg1: NOTRUN -> [SKIP][172] ([i915#3840]) +1 other test skip
[172]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-18/igt@[email protected]

* igt@kms_dsc@dsc-with-bpc:
- shard-dg2: NOTRUN -> [SKIP][173] ([i915#3555] / [i915#3840])
[173]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-2/igt@[email protected]
- shard-rkl: NOTRUN -> [SKIP][174] ([i915#3555] / [i915#3840])
[174]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@[email protected]

* igt@kms_dsc@dsc-with-formats:
- shard-dg1: NOTRUN -> [SKIP][175] ([i915#3555] / [i915#3840])
[175]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-15/igt@[email protected]

* igt@kms_dsc@dsc-with-output-formats-with-bpc:
- shard-dg2: NOTRUN -> [SKIP][176] ([i915#3840] / [i915#9053])
[176]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-1/igt@[email protected]
- shard-rkl: NOTRUN -> [SKIP][177] ([i915#3840] / [i915#9053])
[177]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@[email protected]

* igt@kms_feature_discovery@chamelium:
- shard-tglu: NOTRUN -> [SKIP][178] ([i915#2065] / [i915#4854])
[178]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-8/igt@[email protected]
- shard-mtlp: NOTRUN -> [SKIP][179] ([i915#4854])
[179]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-5/igt@[email protected]
- shard-rkl: NOTRUN -> [SKIP][180] ([i915#4854])
[180]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-6/igt@[email protected]
- shard-dg1: NOTRUN -> [SKIP][181] ([i915#4854])
[181]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]

* igt@kms_feature_discovery@display-4x:
- shard-rkl: NOTRUN -> [SKIP][182] ([i915#1839])
[182]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-2/igt@[email protected]

* igt@kms_feature_discovery@dp-mst:
- shard-tglu: NOTRUN -> [SKIP][183] ([i915#9337])
[183]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-8/igt@[email protected]

* igt@kms_fence_pin_leak:
- shard-dg1: NOTRUN -> [SKIP][184] ([i915#4881])
[184]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-14/igt@kms_fence_pin_leak.html

* igt@kms_flip@2x-absolute-wf_vblank:
- shard-tglu: NOTRUN -> [SKIP][185] ([i915#3637] / [i915#3966])
[185]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-8/igt@kms_flip@2x-absolute-wf_vblank.html

* igt@kms_flip@2x-flip-vs-dpms-off-vs-modeset-interruptible:
- shard-mtlp: NOTRUN -> [SKIP][186] ([i915#3637]) +1 other test skip
[186]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-5/igt@[email protected]

* igt@kms_flip@2x-flip-vs-fences-interruptible:
- shard-dg1: NOTRUN -> [SKIP][187] ([i915#8381]) +1 other test skip
[187]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-15/igt@[email protected]
- shard-dg2: NOTRUN -> [SKIP][188] ([i915#8381])
[188]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-6/igt@[email protected]

* igt@kms_flip@2x-plain-flip:
- shard-tglu: NOTRUN -> [SKIP][189] ([i915#3637]) +3 other tests skip
[189]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-3/igt@[email protected]

* igt@kms_flip@2x-plain-flip-interruptible:
- shard-dg1: NOTRUN -> [SKIP][190] ([i915#9934]) +4 other tests skip
[190]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]

* igt@kms_flip@flip-vs-absolute-wf_vblank-interruptible@a-vga1:
- shard-snb: [PASS][191] -> [FAIL][192] ([i915#2122])
[191]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-snb4/igt@kms_flip@[email protected]
[192]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-snb7/igt@kms_flip@[email protected]

* igt@kms_flip_scaled_crc@flip-32bpp-4tile-to-32bpp-4tiledg2rcccs-upscaling@pipe-a-valid-mode:
- shard-rkl: NOTRUN -> [SKIP][193] ([i915#2672]) +3 other tests skip
[193]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-1/igt@kms_flip_scaled_crc@flip-32bpp-4tile-to-32bpp-4tiledg2rcccs-upscaling@pipe-a-valid-mode.html

* igt@kms_flip_scaled_crc@flip-64bpp-4tile-to-16bpp-4tile-upscaling@pipe-a-valid-mode:
- shard-tglu: NOTRUN -> [SKIP][194] ([i915#2587] / [i915#2672]) +2 other tests skip
[194]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-8/igt@kms_flip_scaled_crc@[email protected]

* igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling@pipe-a-valid-mode:
- shard-dg1: NOTRUN -> [SKIP][195] ([i915#2587] / [i915#2672]) +4 other tests skip
[195]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@kms_flip_scaled_crc@flip-64bpp-yftile-to-16bpp-yftile-upscaling@pipe-a-valid-mode.html

* igt@kms_flip_scaled_crc@flip-64bpp-ytile-to-32bpp-ytile-upscaling@pipe-a-valid-mode:
- shard-dg2: NOTRUN -> [SKIP][196] ([i915#2672]) +3 other tests skip
[196]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-5/igt@kms_flip_scaled_crc@[email protected]

* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-cpu:
- shard-dg2: [PASS][197] -> [FAIL][198] ([i915#6880])
[197]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg2-6/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-cpu.html
[198]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@kms_frontbuffer_tracking@fbc-1p-primscrn-spr-indfb-draw-mmap-cpu.html

* igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-mmap-gtt:
- shard-mtlp: NOTRUN -> [SKIP][199] ([i915#8708])
[199]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-7/igt@kms_frontbuffer_tracking@fbc-2p-primscrn-cur-indfb-draw-mmap-gtt.html

* igt@kms_frontbuffer_tracking@fbc-2p-rte:
- shard-dg2: NOTRUN -> [SKIP][200] ([i915#5354]) +34 other tests skip
[200]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-1/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbc-tiling-4:
- shard-rkl: NOTRUN -> [SKIP][201] ([i915#5439])
[201]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-2/igt@[email protected]
- shard-dg1: NOTRUN -> [SKIP][202] ([i915#5439]) +1 other test skip
[202]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-18/igt@[email protected]
- shard-tglu: NOTRUN -> [SKIP][203] ([i915#5439])
[203]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-10/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-indfb-fliptrack-mmap-gtt:
- shard-dg2: NOTRUN -> [SKIP][204] ([i915#8708]) +15 other tests skip
[204]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-5/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-pwrite:
- shard-dg2: NOTRUN -> [SKIP][205] ([i915#3458]) +21 other tests skip
[205]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-5/igt@kms_frontbuffer_tracking@fbcpsr-1p-offscren-pri-indfb-draw-pwrite.html

* igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-render:
- shard-rkl: NOTRUN -> [SKIP][206] ([i915#3023]) +27 other tests skip
[206]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@kms_frontbuffer_tracking@fbcpsr-1p-primscrn-pri-indfb-draw-render.html

* igt@kms_frontbuffer_tracking@fbcpsr-2p-indfb-fliptrack-mmap-gtt:
- shard-rkl: NOTRUN -> [SKIP][207] +37 other tests skip
[207]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-tiling-y:
- shard-dg2: NOTRUN -> [SKIP][208] ([i915#10055]) +1 other test skip
[208]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-5/igt@[email protected]

* igt@kms_frontbuffer_tracking@plane-fbc-rte:
- shard-rkl: NOTRUN -> [SKIP][209] ([i915#10070])
[209]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-shrfb-draw-blt:
- shard-dg1: NOTRUN -> [SKIP][210] ([i915#3458]) +21 other tests skip
[210]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-14/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-shrfb-draw-pwrite:
- shard-tglu: NOTRUN -> [SKIP][211] +47 other tests skip
[211]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-8/igt@kms_frontbuffer_tracking@psr-1p-primscrn-pri-shrfb-draw-pwrite.html

* igt@kms_frontbuffer_tracking@psr-2p-primscrn-indfb-pgflip-blt:
- shard-mtlp: NOTRUN -> [SKIP][212] ([i915#1825]) +7 other tests skip
[212]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-6/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-indfb-msflip-blt:
- shard-rkl: NOTRUN -> [SKIP][213] ([i915#1825]) +45 other tests skip
[213]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-2p-scndscrn-pri-indfb-draw-mmap-wc:
- shard-dg1: NOTRUN -> [SKIP][214] ([i915#8708]) +20 other tests skip
[214]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-16/igt@kms_frontbuffer_tracking@psr-2p-scndscrn-pri-indfb-draw-mmap-wc.html

* igt@kms_getfb@getfb-reject-ccs:
- shard-dg2: NOTRUN -> [SKIP][215] ([i915#6118])
[215]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-3/igt@[email protected]

* igt@kms_hdr@bpc-switch:
- shard-rkl: NOTRUN -> [SKIP][216] ([i915#3555] / [i915#8228])
[216]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-3/igt@[email protected]

* igt@kms_hdr@invalid-metadata-sizes:
- shard-dg2: NOTRUN -> [SKIP][217] ([i915#3555] / [i915#8228]) +2 other tests skip
[217]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-10/igt@[email protected]

* igt@kms_hdr@static-swap:
- shard-dg1: NOTRUN -> [SKIP][218] ([i915#3555] / [i915#8228]) +1 other test skip
[218]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-15/igt@[email protected]

* igt@kms_panel_fitting@atomic-fastset:
- shard-rkl: NOTRUN -> [SKIP][219] ([i915#6301])
[219]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-2/igt@[email protected]

* igt@kms_panel_fitting@legacy:
- shard-dg1: NOTRUN -> [SKIP][220] ([i915#6301])
[220]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-13/igt@[email protected]

* igt@kms_plane_scaling@2x-scaler-multi-pipe:
- shard-dg2: NOTRUN -> [SKIP][221] ([i915#5354] / [i915#9423])
[221]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-4/igt@[email protected]

* igt@kms_plane_scaling@intel-max-src-size@pipe-a-hdmi-a-1:
- shard-rkl: [PASS][222] -> [FAIL][223] ([i915#8292])
[222]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-rkl-4/igt@kms_plane_scaling@[email protected]
[223]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@kms_plane_scaling@[email protected]

* igt@kms_plane_scaling@plane-downscale-factor-0-25-with-modifiers@pipe-b-hdmi-a-4:
- shard-dg1: NOTRUN -> [SKIP][224] ([i915#9423]) +11 other tests skip
[224]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@kms_plane_scaling@[email protected]

* igt@kms_plane_scaling@plane-scaler-unity-scaling-with-rotation@pipe-b-hdmi-a-1:
- shard-rkl: NOTRUN -> [SKIP][225] ([i915#9423]) +3 other tests skip
[225]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@kms_plane_scaling@[email protected]

* igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25@pipe-b-hdmi-a-2:
- shard-rkl: NOTRUN -> [SKIP][226] ([i915#5235]) +9 other tests skip
[226]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-6/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25@pipe-b-hdmi-a-2.html

* igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25@pipe-c-hdmi-a-1:
- shard-tglu: NOTRUN -> [SKIP][227] ([i915#5235]) +3 other tests skip
[227]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-8/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25@pipe-c-hdmi-a-1.html

* igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25@pipe-d-dp-4:
- shard-dg2: NOTRUN -> [SKIP][228] ([i915#5235] / [i915#9423]) +7 other tests skip
[228]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@kms_plane_scaling@planes-downscale-factor-0-25-upscale-factor-0-25@pipe-d-dp-4.html

* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-c-hdmi-a-4:
- shard-dg1: NOTRUN -> [SKIP][229] ([i915#5235]) +15 other tests skip
[229]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-18/igt@kms_plane_scaling@[email protected]

* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-d-hdmi-a-2:
- shard-dg2: NOTRUN -> [SKIP][230] ([i915#5235] / [i915#9423] / [i915#9728]) +3 other tests skip
[230]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-3/igt@kms_plane_scaling@[email protected]

* igt@kms_pm_backlight@basic-brightness:
- shard-rkl: NOTRUN -> [SKIP][231] ([i915#5354])
[231]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@[email protected]

* igt@kms_pm_dc@dc3co-vpb-simulation:
- shard-tglu: NOTRUN -> [SKIP][232] ([i915#9685])
[232]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-9/igt@[email protected]

* igt@kms_pm_dc@dc6-dpms:
- shard-dg1: NOTRUN -> [SKIP][233] ([i915#3361])
[233]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-14/igt@[email protected]

* igt@kms_pm_dc@dc6-psr:
- shard-rkl: NOTRUN -> [SKIP][234] ([i915#9685])
[234]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-3/igt@[email protected]

* igt@kms_pm_rpm@dpms-lpsp:
- shard-dg2: [PASS][235] -> [SKIP][236] ([i915#9519])
[235]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg2-8/igt@[email protected]
[236]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-6/igt@[email protected]

* igt@kms_pm_rpm@dpms-mode-unset-lpsp:
- shard-dg2: NOTRUN -> [SKIP][237] ([i915#9519])
[237]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-1/igt@[email protected]

* igt@kms_pm_rpm@dpms-mode-unset-non-lpsp:
- shard-tglu: NOTRUN -> [SKIP][238] ([i915#9519])
[238]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-5/igt@[email protected]
- shard-mtlp: NOTRUN -> [SKIP][239] ([i915#9519])
[239]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-5/igt@[email protected]

* igt@kms_pm_rpm@dpms-non-lpsp:
- shard-rkl: [PASS][240] -> [SKIP][241] ([i915#9519])
[240]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-rkl-6/igt@[email protected]
[241]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]

* igt@kms_pm_rpm@fences:
- shard-dg1: NOTRUN -> [SKIP][242] ([i915#4077]) +7 other tests skip
[242]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-16/igt@[email protected]

* igt@kms_pm_rpm@modeset-non-lpsp:
- shard-rkl: NOTRUN -> [SKIP][243] ([i915#9519])
[243]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@[email protected]

* igt@kms_prime@basic-crc-hybrid:
- shard-rkl: NOTRUN -> [SKIP][244] ([i915#6524])
[244]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-2/igt@[email protected]

* igt@kms_prime@basic-modeset-hybrid:
- shard-tglu: NOTRUN -> [SKIP][245] ([i915#6524])
[245]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-5/igt@[email protected]
- shard-dg2: NOTRUN -> [SKIP][246] ([i915#6524] / [i915#6805])
[246]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-6/igt@[email protected]

* igt@kms_psr2_sf@fbc-primary-plane-update-sf-dmg-area:
- shard-dg1: NOTRUN -> [SKIP][247] +59 other tests skip
[247]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-13/igt@[email protected]

* igt@kms_psr2_su@page_flip-p010:
- shard-dg2: NOTRUN -> [SKIP][248] ([i915#9683])
[248]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-3/igt@kms_psr2_su@page_flip-p010.html
- shard-tglu: NOTRUN -> [SKIP][249] ([i915#9683])
[249]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-8/igt@kms_psr2_su@page_flip-p010.html

* igt@kms_psr2_su@page_flip-xrgb8888:
- shard-dg1: NOTRUN -> [SKIP][250] ([i915#9683])
[250]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@kms_psr2_su@page_flip-xrgb8888.html

* igt@kms_psr@fbc-psr2-primary-mmap-gtt:
- shard-tglu: NOTRUN -> [SKIP][251] ([i915#9732]) +11 other tests skip
[251]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-9/igt@[email protected]

* igt@kms_psr@fbc-psr2-primary-mmap-gtt@edp-1:
- shard-mtlp: NOTRUN -> [SKIP][252] ([i915#9688])
[252]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-2/igt@kms_psr@[email protected]

* igt@kms_psr@fbc-psr2-sprite-render:
- shard-rkl: NOTRUN -> [SKIP][253] ([i915#1072] / [i915#9732]) +22 other tests skip
[253]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]

* igt@kms_psr@psr-cursor-render:
- shard-dg2: NOTRUN -> [SKIP][254] ([i915#1072] / [i915#9673] / [i915#9732]) +4 other tests skip
[254]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@[email protected]

* igt@kms_psr@psr2-cursor-blt:
- shard-dg2: NOTRUN -> [SKIP][255] ([i915#1072] / [i915#9732]) +16 other tests skip
[255]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-6/igt@[email protected]

* igt@kms_psr@psr2-sprite-mmap-cpu:
- shard-dg1: NOTRUN -> [SKIP][256] ([i915#1072] / [i915#9732]) +21 other tests skip
[256]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-15/igt@[email protected]

* igt@kms_psr_stress_test@flip-primary-invalidate-overlay:
- shard-dg2: NOTRUN -> [SKIP][257] ([i915#9685])
[257]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-4/igt@[email protected]

* igt@kms_psr_stress_test@invalidate-primary-flip-overlay:
- shard-dg1: NOTRUN -> [SKIP][258] ([i915#9685]) +2 other tests skip
[258]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-15/igt@[email protected]

* igt@kms_rotation_crc@primary-y-tiled-reflect-x-180:
- shard-dg2: NOTRUN -> [SKIP][259] ([i915#5190]) +1 other test skip
[259]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-6/igt@[email protected]

* igt@kms_rotation_crc@primary-y-tiled-reflect-x-270:
- shard-dg2: NOTRUN -> [SKIP][260] ([i915#4235] / [i915#5190])
[260]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-5/igt@[email protected]

* igt@kms_rotation_crc@primary-yf-tiled-reflect-x-180:
- shard-tglu: NOTRUN -> [SKIP][261] ([i915#5289])
[261]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-9/igt@[email protected]

* igt@kms_rotation_crc@sprite-rotation-270:
- shard-dg2: NOTRUN -> [SKIP][262] ([i915#4235]) +1 other test skip
[262]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-6/igt@[email protected]

* igt@kms_scaling_modes@scaling-mode-center:
- shard-dg1: NOTRUN -> [SKIP][263] ([i915#3555]) +2 other tests skip
[263]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-16/igt@[email protected]

* igt@kms_setmode@basic@pipe-b-hdmi-a-2:
- shard-dg2: NOTRUN -> [FAIL][264] ([i915#5465]) +1 other test fail
[264]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-2/igt@kms_setmode@[email protected]

* igt@kms_setmode@invalid-clone-single-crtc:
- shard-dg2: NOTRUN -> [SKIP][265] ([i915#3555]) +3 other tests skip
[265]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-10/igt@[email protected]

* igt@kms_tiled_display@basic-test-pattern:
- shard-glk: NOTRUN -> [FAIL][266] ([i915#10959])
[266]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-glk5/igt@[email protected]

* igt@kms_tiled_display@basic-test-pattern-with-chamelium:
- shard-rkl: NOTRUN -> [SKIP][267] ([i915#8623])
[267]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-3/igt@[email protected]

* igt@kms_universal_plane@cursor-fb-leak@pipe-b-hdmi-a-1:
- shard-tglu: [PASS][268] -> [FAIL][269] ([i915#9196])
[268]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-tglu-3/igt@kms_universal_plane@[email protected]
[269]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-10/igt@kms_universal_plane@[email protected]

* igt@kms_vrr@flip-dpms:
- shard-mtlp: NOTRUN -> [SKIP][270] ([i915#3555] / [i915#8808])
[270]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-2/igt@[email protected]

* igt@kms_vrr@negative-basic:
- shard-tglu: NOTRUN -> [SKIP][271] ([i915#3555] / [i915#9906])
[271]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-6/igt@[email protected]

* igt@kms_vrr@seamless-rr-switch-drrs:
- shard-dg2: NOTRUN -> [SKIP][272] ([i915#9906])
[272]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@[email protected]

* igt@kms_vrr@seamless-rr-switch-virtual:
- shard-dg1: NOTRUN -> [SKIP][273] ([i915#9906]) +1 other test skip
[273]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-13/igt@[email protected]

* igt@kms_writeback@writeback-fb-id:
- shard-tglu: NOTRUN -> [SKIP][274] ([i915#2437])
[274]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-6/igt@[email protected]
- shard-glk: NOTRUN -> [SKIP][275] ([i915#2437])
[275]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-glk7/igt@[email protected]
- shard-dg2: NOTRUN -> [SKIP][276] ([i915#2437])
[276]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-2/igt@[email protected]
- shard-rkl: NOTRUN -> [SKIP][277] ([i915#2437]) +1 other test skip
[277]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@[email protected]

* igt@kms_writeback@writeback-fb-id-xrgb2101010:
- shard-dg2: NOTRUN -> [SKIP][278] ([i915#2437] / [i915#9412])
[278]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@[email protected]
- shard-tglu: NOTRUN -> [SKIP][279] ([i915#2437] / [i915#9412])
[279]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-6/igt@[email protected]

* igt@kms_writeback@writeback-pixel-formats:
- shard-rkl: NOTRUN -> [SKIP][280] ([i915#2437] / [i915#9412])
[280]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@[email protected]

* igt@perf@per-context-mode-unprivileged:
- shard-rkl: NOTRUN -> [SKIP][281] ([i915#2435])
[281]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-2/igt@[email protected]

* igt@perf_pmu@cpu-hotplug:
- shard-dg1: NOTRUN -> [SKIP][282] ([i915#8850])
[282]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]

* igt@perf_pmu@frequency@gt0:
- shard-dg2: NOTRUN -> [FAIL][283] ([i915#6806])
[283]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-3/igt@perf_pmu@[email protected]

* igt@perf_pmu@module-unload:
- shard-dg2: NOTRUN -> [FAIL][284] ([i915#10537] / [i915#5793])
[284]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-1/igt@[email protected]

* igt@perf_pmu@rc6-all-gts:
- shard-tglu: NOTRUN -> [SKIP][285] ([i915#8516])
[285]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-8/igt@[email protected]
- shard-rkl: NOTRUN -> [SKIP][286] ([i915#8516])
[286]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]

* igt@perf_pmu@rc6@other-idle-gt0:
- shard-dg1: NOTRUN -> [SKIP][287] ([i915#8516])
[287]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@perf_pmu@[email protected]

* igt@prime_vgem@basic-write:
- shard-dg2: NOTRUN -> [SKIP][288] ([i915#3291] / [i915#3708])
[288]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-1/igt@[email protected]
- shard-rkl: NOTRUN -> [SKIP][289] ([i915#3291] / [i915#3708]) +1 other test skip
[289]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-3/igt@[email protected]

* igt@sriov_basic@bind-unbind-vf:
- shard-rkl: NOTRUN -> [SKIP][290] ([i915#9917])
[290]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-5/igt@[email protected]

* igt@sriov_basic@enable-vfs-autoprobe-off:
- shard-mtlp: NOTRUN -> [SKIP][291] ([i915#9917])
[291]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-3/igt@[email protected]

* igt@sriov_basic@enable-vfs-autoprobe-on:
- shard-dg1: NOTRUN -> [SKIP][292] ([i915#9917])
[292]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@[email protected]

* igt@sriov_basic@enable-vfs-bind-unbind-each:
- shard-tglu: NOTRUN -> [SKIP][293] ([i915#9917])
[293]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-5/igt@[email protected]

#### Possible fixes ####

* igt@gem_ctx_exec@basic-nohangcheck:
- shard-tglu: [FAIL][294] ([i915#6268]) -> [PASS][295]
[294]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-tglu-3/igt@[email protected]
[295]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-10/igt@[email protected]

* igt@gem_ctx_isolation@preservation-s3@bcs0:
- shard-tglu: [DMESG-WARN][296] -> [PASS][297] +1 other test pass
[296]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-tglu-7/igt@gem_ctx_isolation@[email protected]
[297]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-3/igt@gem_ctx_isolation@[email protected]

* igt@gem_eio@hibernate:
- shard-tglu: [ABORT][298] ([i915#10030] / [i915#7975] / [i915#8213]) -> [PASS][299]
[298]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-tglu-10/igt@[email protected]
[299]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-3/igt@[email protected]

* igt@gem_exec_fair@basic-pace-share@rcs0:
- shard-glk: [FAIL][300] ([i915#2842]) -> [PASS][301]
[300]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-glk2/igt@gem_exec_fair@[email protected]
[301]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-glk2/igt@gem_exec_fair@[email protected]

* igt@gem_exec_fair@basic-pace@rcs0:
- shard-rkl: [FAIL][302] ([i915#2842]) -> [PASS][303] +1 other test pass
[302]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-rkl-5/igt@gem_exec_fair@[email protected]
[303]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-4/igt@gem_exec_fair@[email protected]

* igt@gem_exec_gttfill@engines@vcs1:
- shard-dg2: [INCOMPLETE][304] -> [PASS][305]
[304]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg2-5/igt@gem_exec_gttfill@[email protected]
[305]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@gem_exec_gttfill@[email protected]

* igt@kms_color@ctm-0-50@pipe-a:
- shard-tglu: [ABORT][306] -> [PASS][307] +1 other test pass
[306]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-tglu-10/igt@kms_color@[email protected]
[307]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-10/igt@kms_color@[email protected]

* igt@kms_cursor_legacy@cursora-vs-flipb-toggle:
- shard-snb: [SKIP][308] -> [PASS][309]
[308]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-snb7/igt@[email protected]
[309]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-snb6/igt@[email protected]

* igt@kms_flip@flip-vs-panning-vs-hang@a-edp1:
- shard-mtlp: [INCOMPLETE][310] ([i915#6113]) -> [PASS][311]
[310]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-mtlp-7/igt@kms_flip@[email protected]
[311]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-7/igt@kms_flip@[email protected]

* igt@kms_plane_cursor@viewport@pipe-d-edp-1-size-64:
- shard-mtlp: [DMESG-WARN][312] ([i915#1982]) -> [PASS][313]
[312]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-mtlp-8/igt@kms_plane_cursor@[email protected]
[313]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-mtlp-6/igt@kms_plane_cursor@[email protected]

* igt@kms_plane_scaling@intel-max-src-size@pipe-a-hdmi-a-1:
- shard-tglu: [FAIL][314] ([i915#8292]) -> [PASS][315]
[314]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-tglu-5/igt@kms_plane_scaling@[email protected]
[315]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-6/igt@kms_plane_scaling@[email protected]

* igt@kms_pm_dc@dc6-dpms:
- shard-tglu: [FAIL][316] ([i915#9295]) -> [PASS][317]
[316]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-tglu-7/igt@[email protected]
[317]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-6/igt@[email protected]

* igt@kms_pm_rpm@modeset-non-lpsp:
- shard-dg2: [SKIP][318] ([i915#9519]) -> [PASS][319]
[318]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg2-8/igt@[email protected]
[319]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-2/igt@[email protected]

* igt@kms_setmode@basic@pipe-a-hdmi-a-4:
- shard-dg1: [FAIL][320] ([i915#10187]) -> [PASS][321]
[320]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg1-17/igt@kms_setmode@[email protected]
[321]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@kms_setmode@[email protected]

* igt@kms_setmode@basic@pipe-b-hdmi-a-4:
- shard-dg1: [FAIL][322] ([i915#5465]) -> [PASS][323]
[322]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg1-17/igt@kms_setmode@[email protected]
[323]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg1-17/igt@kms_setmode@[email protected]

* igt@perf_pmu@busy-hang@vecs0:
- shard-dg2: [FAIL][324] ([i915#4349]) -> [PASS][325]
[324]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg2-2/igt@perf_pmu@[email protected]
[325]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-2/igt@perf_pmu@[email protected]

#### Warnings ####

* igt@i915_module_load@reload-with-fault-injection:
- shard-tglu: [ABORT][326] ([i915#9820]) -> [ABORT][327] ([i915#10887] / [i915#9820])
[326]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-tglu-5/igt@[email protected]
[327]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-tglu-3/igt@[email protected]

* igt@kms_frontbuffer_tracking@fbcpsr-shrfb-scaledprimary:
- shard-dg2: [SKIP][328] ([i915#10433] / [i915#3458]) -> [SKIP][329] ([i915#3458])
[328]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg2-4/igt@[email protected]
[329]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@[email protected]

* igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-indfb-draw-mmap-cpu:
- shard-dg2: [SKIP][330] ([i915#3458]) -> [SKIP][331] ([i915#10433] / [i915#3458]) +1 other test skip
[330]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg2-11/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-indfb-draw-mmap-cpu.html
[331]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-4/igt@kms_frontbuffer_tracking@psr-1p-offscren-pri-indfb-draw-mmap-cpu.html

* igt@kms_multipipe_modeset@basic-max-pipe-crc-check:
- shard-rkl: [SKIP][332] ([i915#4070] / [i915#4816]) -> [SKIP][333] ([i915#4816])
[332]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-rkl-6/igt@[email protected]
[333]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-rkl-3/igt@[email protected]

* igt@kms_psr@fbc-psr-cursor-mmap-cpu:
- shard-dg2: [SKIP][334] ([i915#1072] / [i915#9732]) -> [SKIP][335] ([i915#1072] / [i915#9673] / [i915#9732]) +8 other tests skip
[334]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg2-7/igt@[email protected]
[335]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-11/igt@[email protected]

* igt@kms_psr@psr-cursor-mmap-cpu:
- shard-dg2: [SKIP][336] ([i915#1072] / [i915#9673] / [i915#9732]) -> [SKIP][337] ([i915#1072] / [i915#9732]) +10 other tests skip
[336]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_14987/shard-dg2-11/igt@[email protected]
[337]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/shard-dg2-2/igt@[email protected]

[i915#10030]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10030
[i915#10055]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10055
[i915#10070]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10070
[i915#10166]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10166
[i915#10187]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10187
[i915#10307]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10307
[i915#10378]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10378
[i915#10433]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10433
[i915#10434]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10434
[i915#10537]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10537
[i915#10656]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10656
[i915#1072]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1072
[i915#10887]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10887
[i915#10959]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/10959
[i915#11078]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/11078
[i915#1339]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1339
[i915#1825]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1825
[i915#1839]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1839
[i915#1982]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/1982
[i915#2065]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2065
[i915#2122]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2122
[i915#2435]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2435
[i915#2437]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2527
[i915#2587]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2587
[i915#2672]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2672
[i915#280]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/280
[i915#2842]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2842
[i915#2856]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/2856
[i915#3023]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3023
[i915#3281]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3282
[i915#3291]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3291
[i915#3297]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3297
[i915#3299]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3299
[i915#3359]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3359
[i915#3361]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3361
[i915#3458]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3458
[i915#3539]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3539
[i915#3555]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3555
[i915#3637]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3638
[i915#3708]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3708
[i915#3742]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3742
[i915#3778]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3778
[i915#3804]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3804
[i915#3840]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3840
[i915#3966]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/3966
[i915#4070]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4070
[i915#4077]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4083
[i915#4087]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4087
[i915#4103]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4213
[i915#4215]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4215
[i915#4235]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4235
[i915#4270]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4270
[i915#4349]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4349
[i915#4387]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4387
[i915#4525]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4525
[i915#4537]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4537
[i915#4538]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4538
[i915#4565]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4565
[i915#4613]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4613
[i915#4771]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4771
[i915#4812]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4812
[i915#4816]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4816
[i915#4852]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4852
[i915#4854]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4854
[i915#4860]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4860
[i915#4879]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4879
[i915#4880]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4880
[i915#4881]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/4881
[i915#5190]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5190
[i915#5235]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5235
[i915#5286]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5286
[i915#5289]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5289
[i915#5354]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5354
[i915#5439]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5439
[i915#5465]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5465
[i915#5493]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5493
[i915#5723]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5723
[i915#5793]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/5793
[i915#6095]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6095
[i915#6113]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6113
[i915#6118]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6118
[i915#6188]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6188
[i915#6268]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6268
[i915#6301]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6301
[i915#6334]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6334
[i915#6335]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6335
[i915#6412]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6412
[i915#6524]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6524
[i915#6590]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6590
[i915#6621]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6621
[i915#6805]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6805
[i915#6806]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6806
[i915#6880]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6880
[i915#6944]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/6944
[i915#7091]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7091
[i915#7116]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7116
[i915#7118]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7118
[i915#7173]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7173
[i915#7276]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7276
[i915#7697]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7697
[i915#7707]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7707
[i915#7742]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7742
[i915#7828]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7828
[i915#7975]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/7975
[i915#8213]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8213
[i915#8228]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8228
[i915#8289]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8289
[i915#8292]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8292
[i915#8381]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8381
[i915#8399]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8399
[i915#8411]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8411
[i915#8414]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8414
[i915#8428]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8428
[i915#8516]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8516
[i915#8555]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8555
[i915#8562]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8562
[i915#8623]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8623
[i915#8708]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8708
[i915#8808]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8808
[i915#8812]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8812
[i915#8850]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/8850
[i915#9053]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9053
[i915#9067]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9067
[i915#9196]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9196
[i915#9295]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9295
[i915#9318]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9318
[i915#9323]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9323
[i915#9337]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9337
[i915#9412]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9412
[i915#9423]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9423
[i915#9424]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9424
[i915#9519]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9519
[i915#9673]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9673
[i915#9683]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9683
[i915#9685]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9685
[i915#9688]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9688
[i915#9723]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9723
[i915#9728]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9728
[i915#9732]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9732
[i915#9809]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9809
[i915#9820]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9820
[i915#9846]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9846
[i915#9906]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9906
[i915#9917]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9917
[i915#9934]: https://gitlab.freedesktop.org/drm/i915/kernel/-/issues/9934

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

* CI: CI-20190529 -> None
* IGT: IGT_7895 -> IGTPW_11295
* Piglit: piglit_4509 -> None

CI-20190529: 20190529
CI_DRM_14987: 383dc44a79848f13f2430c9ed811b5c9b22b882a @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_11295: 11295
IGT_7895: 7895
piglit_4509: fdc5a4ca11124ab8413c7988896eec4c97336694 @ git://anongit.freedesktop.org/piglit

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_11295/index.html