[igt-dev] ✗ Fi.CI.BAT: failure for new engine discovery interface (rev7)
Tvrtko Ursulin
tvrtko.ursulin at linux.intel.com
Mon Feb 25 13:22:02 UTC 2019
On 15/02/2019 09:50, Petri Latvala wrote:
> On Tue, Feb 12, 2019 at 08:43:24AM +0000, Tvrtko Ursulin wrote:
>> Is generating subtest names without accessing the driver an absolute
>> requirement?
>
> Yes.
I don't like how this creates a coupling between CI _implementation_ and
IGT codebase and think can be improved.
>
>> This particular failure would be fixable if the engine list was initialized
>> on the first call to __for_each_engine_class_instance, as called by the
>> perf_pmu above. And the fixture block is already ran in test enumeration,
>> where the driver is opened. I think a lot of tests are like this. So in this
>> context a simple query ioctl on top doesn't sound bad.
>
> Fixtures are not executed when enumerating tests.
Okay.
>
>> I think it would be simpler if we didn't have to maintain a separate static
>> list of all possible engines. To make that work we would need to detect the
>> mode of execution (list vs execute) in the engine iterator as well. So gain,
>> to me it sounds preferable that tests would be allowed to enumerate
>> dynamically.
>
> Can the tests be refactored to have a subtest per engine _class_?
> That's a static list, isn't it? Within the subtest they would loop
> over instances of the class. Kind of like tests that loop over
> connectors of $type.
Sounds quite invasive, fundamental and limiting (how to run a test
against a single engine in this world?) change. How about instead, which
is more or less copy & paste from my reply to Arek:
Would it be feasible to generate the test list on sharded platforms?
It could be a "list tests" job which you could send to each of the shard
platforms (one machine of each platforms), executed before randomizing
and chunking.
Advantage there would be that you don't send chunks containing tests
which a particular platform cannot run.
And of course another advantage is that we remove unnecessary coupling
between two components so IGT maintenance becomes easier. (No two sets
of engines, no two ways to iterate those sets, and no need to remember
when to use each.)
Regards,
Tvrtko
More information about the igt-dev
mailing list