Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [igt-dev] [PATCH i-g-t v3 0/5] Speedup IGT build time
@ 2023-07-06 15:06 Mauro Carvalho Chehab
  2023-07-06 15:06 ` [igt-dev] [PATCH i-g-t v3 1/5] tests/meson.build: Simplify builds for core and i915 targets Mauro Carvalho Chehab
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Mauro Carvalho Chehab @ 2023-07-06 15:06 UTC (permalink / raw)
  To: igt-dev

From: Mauro Carvalho Chehab <mchehab@kernel.org>

Currently, even a single change on IGT makes the build time too
slow.

This is because it will re-generate the check testlist on every
single build that touches any file.

Change the logic to generate per-file testlists, with speeds up
build time from 22 seconds to 4 seconds.

It can be improved even further after changing the build logic
to maintain separate test_executables for i915, kms and xe.

As there's a pending patch series touching those tests, moving
them to tests/intel directory, let's not do a conflicting change.
Once such patch series gets merged, I'll write a patch with the
pending optimization.

---

v3:
- custom_target that generates testlist is now simpler and
  should work better.

v2:
- make it compatible with Meson 0.47;
- added a patch to simplify tests/meson.build
- dropped a change at gem_stress - maybe there's a real reason
  why this one was excluded from test_list, so let's keep it
  as-is.

Mauro Carvalho Chehab (5):
  tests/meson.build: Simplify builds for core and i915 targets
  lib/igt_core: use the macro when checking for list_subtests
  lib/igt_core: add an option to show the testlist
  tests/meson.build: create testlists for tests
  scripts/test_list.py: speedup testlist check logic

 lib/igt_core.c       |  26 ++++-
 scripts/test_list.py |  30 +----
 tests/meson.build    | 271 +++++++++++++++++--------------------------
 3 files changed, 131 insertions(+), 196 deletions(-)

-- 
2.40.1

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

end of thread, other threads:[~2023-07-07  5:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-07-06 15:06 [igt-dev] [PATCH i-g-t v3 0/5] Speedup IGT build time Mauro Carvalho Chehab
2023-07-06 15:06 ` [igt-dev] [PATCH i-g-t v3 1/5] tests/meson.build: Simplify builds for core and i915 targets Mauro Carvalho Chehab
2023-07-06 15:06 ` [igt-dev] [PATCH i-g-t v3 2/5] lib/igt_core: use the macro when checking for list_subtests Mauro Carvalho Chehab
2023-07-06 15:06 ` [igt-dev] [PATCH i-g-t v3 3/5] lib/igt_core: add an option to show the testlist Mauro Carvalho Chehab
2023-07-06 15:06 ` [igt-dev] [PATCH i-g-t v3 4/5] tests/meson.build: create testlists for tests Mauro Carvalho Chehab
2023-07-06 15:06 ` [igt-dev] [PATCH i-g-t v3 5/5] scripts/test_list.py: speedup testlist check logic Mauro Carvalho Chehab
2023-07-06 17:45 ` [igt-dev] ✗ Fi.CI.BUILD: failure for Speedup IGT build time (rev3) Patchwork
2023-07-07  5:26 ` [igt-dev] ✗ Fi.CI.BUILD: failure for Speedup IGT build time (rev4) Patchwork

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