public inbox for igt-dev@lists.freedesktop.org
 help / color / mirror / Atom feed
* [PATCH i-g-t v4 0/4] RFC: Add attachments support
@ 2026-04-20  8:56 Zbigniew Kempczyński
  2026-04-20  8:56 ` [PATCH i-g-t v4 1/4] runner: Rename dirfd to avoid clash with dirfd() Zbigniew Kempczyński
                   ` (3 more replies)
  0 siblings, 4 replies; 9+ messages in thread
From: Zbigniew Kempczyński @ 2026-04-20  8:56 UTC (permalink / raw)
  To: igt-dev
  Cc: Zbigniew Kempczyński, Kamil Konieczny, Ryszard Knop,
	Gustavo Sousa, Krzysztof Karas

This series introduces support for hook/test written attachments.
It is somehow limited and stiff but allows to write anything test/hook
wants in attachments directory. File names which occured in attachments
directory are added to results.json.

Series targets our need to include guc logs for failed tests especially
in the point of time when it occurs.

v2: - added clearing of attachments dir in overwrite mode
    - guc-log hook script is now installed to igt datadir/hooks dir
    - added hook-exec-allowlist to selectively execute hook scripts
v3: - drop hook-exec-allowlist in runner, now scripts are filtering
      allowlist on their own
    - add support for attachments in recursive directories
v4: - change clear results to use path (used then in nftw())
    - introduce hooks-wrapper.sh, common helper for hooks scripts
    - replace if/else to switch/case

Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski@intel.com>
Cc: Kamil Konieczny <kamil.konieczny@linux.intel.com>
Cc: Ryszard Knop <ryszard.knop@intel.com>
Cc: Gustavo Sousa <gustavo.sousa@intel.com>
Cc: Krzysztof Karas <krzysztof.karas@intel.com>

Zbigniew Kempczyński (4):
  runner: Rename dirfd to avoid clash with dirfd()
  runner: Create attachments directory to use by hooks
  intel-ci/hooks: Add hooks-wrapper and aux scripts/allowlists
  runner/resultgen: Insert attachments list into results.json

 lib/igt_hook.c                                |  4 +
 runner/executor.c                             | 89 +++++++++++++++----
 runner/executor.h                             |  2 +
 runner/resultgen.c                            | 79 ++++++++++++++++
 tests/intel-ci/hooks/common.helper            | 47 ++++++++++
 .../hooks/copy_guc_log_on_fail.allowlist      |  2 +
 tests/intel-ci/hooks/copy_guc_log_on_fail.sh  | 24 +++++
 tests/intel-ci/hooks/hook-example.allowlist   |  2 +
 tests/intel-ci/hooks/hook-example.sh          | 17 ++++
 tests/intel-ci/hooks/hooks-wrapper.sh         | 12 +++
 tests/intel-ci/meson.build                    | 11 +++
 11 files changed, 271 insertions(+), 18 deletions(-)
 create mode 100755 tests/intel-ci/hooks/common.helper
 create mode 100644 tests/intel-ci/hooks/copy_guc_log_on_fail.allowlist
 create mode 100755 tests/intel-ci/hooks/copy_guc_log_on_fail.sh
 create mode 100644 tests/intel-ci/hooks/hook-example.allowlist
 create mode 100755 tests/intel-ci/hooks/hook-example.sh
 create mode 100755 tests/intel-ci/hooks/hooks-wrapper.sh

-- 
2.43.0


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-04-21  9:01 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-20  8:56 [PATCH i-g-t v4 0/4] RFC: Add attachments support Zbigniew Kempczyński
2026-04-20  8:56 ` [PATCH i-g-t v4 1/4] runner: Rename dirfd to avoid clash with dirfd() Zbigniew Kempczyński
2026-04-20  8:56 ` [PATCH i-g-t v4 2/4] runner: Create attachments directory to use by hooks Zbigniew Kempczyński
2026-04-21  6:57   ` Krzysztof Karas
2026-04-20  8:56 ` [PATCH i-g-t v4 3/4] intel-ci/hooks: Add hooks-wrapper and aux scripts/allowlists Zbigniew Kempczyński
2026-04-21  8:15   ` Krzysztof Karas
2026-04-21  9:01     ` Zbigniew Kempczyński
2026-04-20  8:56 ` [PATCH i-g-t v4 4/4] runner/resultgen: Insert attachments list into results.json Zbigniew Kempczyński
2026-04-21  8:35   ` Krzysztof Karas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox