public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/curl] curl-v8.23.0-3: Run tests in parallel via make test-nonflaky, with serial fallback for race-prone tests
@ 2026-11-03 12:39 Samuel Henrique
0 siblings, 0 replies; only message in thread
From: Samuel Henrique @ 2026-11-03 12:39 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.23.0-3
Commit : 389f1409549178f639afa49f478c544fdaa87be2
Author : Samuel Henrique (samueloph) <samhn@amazon.com>
Date : 2026-03-19T03:05:53+00:00
Stats : +7/-5 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/389f1409549178f639afa49f478c544fdaa87be2?branch=curl-v8.23.0-3
Log:
Run tests in parallel via make test-nonflaky, with serial fallback for race-prone tests
This can easily lead to build time improvement of 10x, we have seen the
total build time going from roughly 1 hour down to 6 minutes in Amazon
Linux.
I'm also the co-maintainer of curl on Debian and we have been running
the tests in parallel for a few years now with no issues.
- Remove out-of-tree srcdir export (no longer needed with make test-nonflaky)
- Run the bulk of tests in parallel using _smp_build_ncpus * 7 jobs
- Exclude race-prone tests (766) from parallel execution
- Run excluded tests serially afterward
---
diff --git a/curl.spec b/curl.spec
index 8fac99c..fb6f576 100644
--- a/curl.spec
+++ b/curl.spec
@@ -355,9 +355,6 @@ sed -e 's/^runpath_var=.*/runpath_var=/' \
export OPENSSL_SYSTEM_CIPHERS_OVERRIDE=XXX
export OPENSSL_CONF=
-# make runtests.pl work for out-of-tree builds
-export srcdir=../../tests
-
# prevent valgrind from being extremely slow (#1662656)
# https://fedoraproject.org/wiki/Changes/DebuginfodByDefault
unset DEBUGINFOD_URLS
@@ -369,8 +366,13 @@ for size in minimal full; do (
# we have to override LD_LIBRARY_PATH because we eliminated rpath
export LD_LIBRARY_PATH="${PWD}/lib/.libs"
- cd tests
- perl -I../../tests ../../tests/runtests.pl -a -p -v '!flaky'
+ # tests that must run in serial to avoid intermittent failures under parallel execution
+ serial_tests="766"
+ serial_excludes=$(for t in $serial_tests; do printf ' !%s' "$t"; done)
+ # run the bulk of tests in parallel, excluding serial ones
+ TFLAGS="-v -j$(( %{_smp_build_ncpus} * 7 ))${serial_excludes}" make test-nonflaky
+ # run serial tests one at a time
+ TFLAGS="-v ${serial_tests}" make test-nonflaky
)
done
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-03 12:39 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-03 12:39 [rpms/curl] curl-v8.23.0-3: Run tests in parallel via make test-nonflaky, with serial fallback for race-prone tests Samuel Henrique
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox