Jelle van der Waa pushed to branch main at Arch Linux / Packaging / Packages / python
Commits: f6ece6ad by Jelle van der Waa at 2025-02-07T10:24:12+01:00 Parallize unit tests in check() This seems to give a good speedup (untimed) on our build server. - - - - - 1 changed file: - PKGBUILD Changes: ===================================== PKGBUILD ===================================== @@ -80,9 +80,14 @@ check() { export servernum=99 while ! xvfb-run -a -n "$servernum" /bin/true 2>/dev/null; do servernum=$((servernum+1)); done + # Don't parallize too hard, our build server for example has 96 cores and we + # don't want to debug racy parallel tests + local _jobs=$(nproc) + (( _jobs > 16 )) && _jobs=16 + LD_LIBRARY_PATH="${srcdir}/Python-${pkgver}":${LD_LIBRARY_PATH} \ LC_CTYPE=en_US.UTF-8 xvfb-run -s "-screen 0 1920x1080x16 -ac +extension GLX" -a -n "$servernum" \ - "${srcdir}/Python-${pkgver}/python" -m test.regrtest -v -uall -x test_tk -x test_ttk -x test_ttk.test_widgets \ + "${srcdir}/Python-${pkgver}/python" -m test.regrtest -j "$_jobs" -v -uall -x test_tk -x test_ttk -x test_ttk.test_widgets \ -x test_tkinter -x test_pyexpat -x test_socket -x test_unittest -x test_ssl } View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python/-/commit/f6ece6ada1666145793f5820b3f42a3758c42a5e -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/python/-/commit/f6ece6ada1666145793f5820b3f42a3758c42a5e You're receiving this email because of your account on gitlab.archlinux.org.