From: Gustavo Sousa <gustavo.sousa@intel.com>
To: "Zbigniew Kempczyński" <zbigniew.kempczynski@intel.com>
Cc: <igt-dev@lists.freedesktop.org>,
Kamil Konieczny <kamil.konieczny@linux.intel.com>,
Ryszard Knop <ryszard.knop@intel.com>,
Krzysztof Karas <krzysztof.karas@intel.com>
Subject: Re: [PATCH i-g-t v3 5/5] runner/resultgen: Insert attachments list into results.json
Date: Wed, 15 Apr 2026 17:31:33 -0300 [thread overview]
Message-ID: <875x5synh6.fsf@intel.com> (raw)
In-Reply-To: <so5eiricgthaxs7n7qonvktwhpsbjol4g2qnzsxtlde2sypt4d@umwitlziyivy>
Zbigniew Kempczyński <zbigniew.kempczynski@intel.com> writes:
> On Wed, Apr 15, 2026 at 01:20:42PM -0300, Gustavo Sousa wrote:
>
> <cut>
>
>> >>
>> >> >
>> >> > For attachments case imo allowing recursive creation from hooks scripts
>> >> > is an overkill.
>> >>
>> >> The hook mechanism is not something created for exclusive use by CI. It
>> >> is a tool for developers to use are they see fit. That was my original
>> >> intention when I first developed the hooks infrastructure.
>> >>
>> >> I don't like the fact that we are making assumptions of how the hooks
>> >> will behave here.
>> >>
>> >> If CI wants a flat structure, that's fine: let CI provide hooks that
>> >> generate files in a flat hierarchy. I just think that it is not right
>> >> to assume that all hooks will behave like that.
>> >
>> > Executing hooks out of igt_runner won't provide results.json, right?
>> > So all that recursive removal / etc doesn't makes sense when you execute
>> > tests standalone.
>>
>> My comment above is not about running igt_runner vs standalone tests;
>> it is about the users having their own custom hook scripts, which could
>> be used as part of an igt_runner call.
>>
>> By the way, did we reach an agreement about whether we should or not be
>> adding the attachments to the results.json? I remember Ryszard had his
>> doubts. I might have missed some conversation about it.
>
> Yes. We got some offline discussion about this and Ryszard requirement
> was we should pack only attachment filenames to results.json. No content
> should land into this file because it is already big and adding content
> packed via base64 will only make it bigger.
Ah, this makes it simpler then: just an array of paths relative to the
result dir and no need to recreate the hirerarchy in the JSON. That
would solve my requirement as well.
>
> If you don't mind I would like to provide minimalistic solution which
> will provide guc logs first. I suppose you have your own setup which
> likely uses hooks much, but at the moment I would like to solve problem
> with valid guc logs for failing tests. We may try to satisfy your
> workflow in a followup series, but I would like not to loose my primary
> goal from the radar.
Okay.
>
> --
> Zbigniew
>
>
>>
>> --
>> Gustavo Sousa
>>
>> >
>> > --
>> > Zbigniew
>> >
>> >
>> >>
>> >> --
>> >> Gustavo Sousa
>> >>
>> >> >
>> >> > --
>> >> > Zbigniew
>> >> >
>> >> >>
>> >> >> --
>> >> >> Gustavo Sousa
>> >> >>
>> >> >> > + fchdir(dirfd(currdir));
>> >> >> > +
>> >> >> > + return ret ? false : true;
>> >> >> > +}
>> >> >> > +
>> >> >> > static const char *result_from_exitcode(int exitcode)
>> >> >> > {
>> >> >> > switch (exitcode) {
>> >> >> > @@ -2244,6 +2304,9 @@ static bool parse_test_directory(int dirfd,
>> >> >> > fprintf(stderr, "Error parsing output files (dmesg.txt)\n");
>> >> >> > }
>> >> >> >
>> >> >> > + if (!fill_from_attachments(dirfd, results->tests))
>> >> >> > + fprintf(stderr, "Error parsing attachments directory\n");
>> >> >> > +
>> >> >> > override_results(entry->binary, &subtests, results->tests);
>> >> >> > prune_subtests(settings, entry, &subtests, results->tests);
>> >> >> >
>> >> >> > --
>> >> >> > 2.43.0
next prev parent reply other threads:[~2026-04-15 20:31 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-13 20:17 [PATCH i-g-t v3 0/5] RFC: Add attachments support Zbigniew Kempczyński
2026-04-13 20:17 ` [PATCH i-g-t v3 1/5] runner: Rename dirfd to avoid clash with dirfd() Zbigniew Kempczyński
2026-04-14 7:40 ` Krzysztof Karas
2026-04-13 20:17 ` [PATCH i-g-t v3 2/5] runner: Create attachments directory to use by hooks Zbigniew Kempczyński
2026-04-14 7:34 ` Krzysztof Karas
2026-04-14 19:13 ` Zbigniew Kempczyński
2026-04-14 19:27 ` Gustavo Sousa
2026-04-15 5:34 ` Zbigniew Kempczyński
2026-04-15 13:48 ` Gustavo Sousa
2026-04-15 16:37 ` Zbigniew Kempczyński
2026-04-13 20:17 ` [PATCH i-g-t v3 3/5] scripts/hooks: Example guc log copy script and allowlist Zbigniew Kempczyński
2026-04-14 8:06 ` Krzysztof Karas
2026-04-14 19:34 ` Zbigniew Kempczyński
2026-04-14 20:33 ` Gustavo Sousa
2026-04-15 8:23 ` Zbigniew Kempczyński
2026-04-15 12:51 ` Gustavo Sousa
2026-04-16 18:44 ` Zbigniew Kempczyński
2026-04-16 19:59 ` Gustavo Sousa
2026-04-13 20:17 ` [PATCH i-g-t v3 4/5] runner/resultgen: Add json array create/get helper Zbigniew Kempczyński
2026-04-14 8:31 ` Krzysztof Karas
2026-04-13 20:17 ` [PATCH i-g-t v3 5/5] runner/resultgen: Insert attachments list into results.json Zbigniew Kempczyński
2026-04-14 9:35 ` Krzysztof Karas
2026-04-14 19:39 ` Zbigniew Kempczyński
2026-04-14 21:39 ` Gustavo Sousa
2026-04-15 6:31 ` Zbigniew Kempczyński
2026-04-15 12:16 ` Gustavo Sousa
2026-04-15 16:09 ` Zbigniew Kempczyński
2026-04-15 16:20 ` Gustavo Sousa
2026-04-15 19:56 ` Zbigniew Kempczyński
2026-04-15 20:31 ` Gustavo Sousa [this message]
2026-04-14 1:57 ` ✓ i915.CI.BAT: success for RFC: Add attachments support (rev3) Patchwork
2026-04-14 2:03 ` ✓ Xe.CI.BAT: " Patchwork
2026-04-14 5:30 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-04-14 7:59 ` ✓ i915.CI.Full: success " Patchwork
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875x5synh6.fsf@intel.com \
--to=gustavo.sousa@intel.com \
--cc=igt-dev@lists.freedesktop.org \
--cc=kamil.konieczny@linux.intel.com \
--cc=krzysztof.karas@intel.com \
--cc=ryszard.knop@intel.com \
--cc=zbigniew.kempczynski@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox