public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Samuel Henrique (samueloph) <samhn@amazon.com>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.23.0-3: Run tests in parallel via make test-nonflaky, with serial fallback for race-prone tests
Date: Tue, 03 Nov 2026 12:39:50 GMT [thread overview]
Message-ID: <179370959056.1.444961290268742929.rpms-curl-389f14095491@fedoraproject.org> (raw)
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
reply other threads:[~2026-11-03 12:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179370959056.1.444961290268742929.rpms-curl-389f14095491@fedoraproject.org \
--to=samhn@amazon.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox