Skip to content

Speedup IGT build time

Mauro Carvalho Chehab igt-dev 5 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest7 patches 13 repliesIn review
  2. v46 patches 0 repliesSuperseded
  3. v35 patches 0 repliesSuperseded
Earlier versions · 2
VersionPostedPatchesRepliesStatus
v25 patches0 repliesSuperseded
v11 patch0 repliesSuperseded

Changes in v5 from the cover letter

- add an extra patch at the end to gain extra 3x performance at the testlist check logic by using pre-compiled regexes, and do some additional regex compile cleanups.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7tests/meson.build: Simplify builds for core and i915 targetstests/meson.build+61 -1621 reply
2/7lib/igt_core: use the macro when checking for list_subtestslib/igt_core.c+5 -51 reply
3/7lib/igt_core: add an option to show the testlistlib/igt_core.c+15 -11 reply
4/7tests/meson.build: create testlists for testsdocs/testplan/meson.build tests/meson.build+49 -87 replies
5/7scripts/test_list.py: speedup testlist check logicscripts/test_list.py+6 -241 reply
6/7tests/build: Generate and store an intel-ci.testlisttests/intel-ci/meson.build+8 -01 reply
7/7scripts/test_list.py: optimize check regexscripts/test_list.py+12 -101 reply

Reviews trailers per patch

3 of 7 patches have a Reviewed-by or Acked-by.

PatchKamil Konieczny
1/7R-b
2/7R-b
3/7
4/7
5/7
6/7
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [igt-dev] [PATCH i-g-t v5 0/7] Speedup IGT build time

From: Mauro Carvalho Chehab <[email protected]>

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.

---

v5:
- add an extra patch at the end to gain extra 3x performance at the testlist check logic by using pre-compiled regexes, and do some additional regex compile cleanups.

v4:
- fix dependency chain for igt-doc.py;
- create an intel-ci.testlist with core tests and tests for intel drivers.

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 (7):
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 tests/build: Generate and store an intel-ci.testlist scripts/test_list.py: optimize check regex

 docs/testplan/meson.build  |   2 +-
 lib/igt_core.c             |  26 +++-
 scripts/test_list.py       |  50 +++----
 tests/intel-ci/meson.build |   8 ++
 tests/meson.build          | 272 +++++++++++++++----------------------
 5 files changed, 152 insertions(+), 206 deletions(-)
Signature · 1 line
2.40.1