Skip to content

Improve pytest runtime

Tom Rini u-boot 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 1 replyIn review
  2. v110 patches 6 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10test/py: Rework test_cat to not use virt-make-fstest/py/tests/test_cat.py test/py/tests/test_cat/conftest.py test/py/tests/test_cat/test_cat.py+37 -560 replies
2/10test/py: Rework test_xxd to not use virt-make-fstest/py/tests/test_xxd.py test/py/tests/test_xxd/conftest.py test/py/tests/test_xxd/test_xxd.py+40 -590 replies
3/10test/py/tests: Move "setup_image" from test_ut.py to fs_helper.pytest/py/tests/fs_helper.py test/py/tests/test_ut.py+38 -340 replies
4/10test/py: Fix a problem with setup_imagetest/py/tests/fs_helper.py+1 -10 replies
5/10test/py: Rework test_efi_bootmgr to not use virt-make-fstest/py/tests/test_efi_bootmgr.py test/py/tests/test_efi_bootmgr/conftest.py test/py/tests/test_efi_bootmgr/test_efi_bootmgr.py+70 -820 replies
6/10test/py: Rework test_eficonfig to not use virt-make-fstest/py/tests/test_eficonfig.py test/py/tests/test_eficonfig/conftest.py+46 -470 replies
7/10test/py: Rework test_efi_capsule to not use virt-make-fstest/py/tests/test_efi_capsule/capsule_common.py test/py/tests/test_efi_capsule/conftest.py+26 -210 replies
8/10test/py: Rework test_efi_secboot to not use virt-make-fstest/py/tests/test_efi_secboot/conftest.py+25 -270 replies
9/10doc/develop/py_testing.rst: Update section on filesystem imagesdoc/develop/py_testing.rst+6 -190 replies
10/10Dockerfile: Update to drop virt-make-fs packagestools/docker/Dockerfile+0 -50 replies

Reviews trailers per patch

1 of 10 patches has a Reviewed-by or Acked-by.

PatchIlias Apalodimas
1/10
2/10
3/10
4/10
5/10
6/10A-b
7/10
8/10
9/10
10/10

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

Read the v2 thread

Cover letter [PATCH v2 00/10] Improve pytest runtime

Hey all,

One thing that Simon Glass has noted is that our pytest run time keeps getting longer. Looking at:
https://source.denx.de/u-boot/u-boot/-/pipelines/25011/test_report?job_name=sandbox%20test.py%3A%20%5Bfast%20amd64%5D
we can see that some of the longest running tests are a little puzzling. It turns out that we have two ways of making filesystem images without requiring root access and one of them is significantly slower than the other. This series changes us from using virt-make-fs to only using the mk_fs helper that currently resides in test_ut.py which uses standard userspace tools. The final result can be seen at:
https://source.denx.de/u-boot/u-boot/-/pipelines/25015/test_report?job_name=sandbox%20test.py%3A%20%5Bfast%20amd64%5D
and the tests changed here now run much quicker.

The changes in v2 are that this has been rebased on top of current -next.

Signature · 1 line
Tom