public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jan Macku <jamacku@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.23.0-3: Fix test459 to pass when running tests in parallel
Date: Tue, 03 Nov 2026 12:39:51 GMT [thread overview]
Message-ID: <179370959125.1.2899384096660870385.rpms-curl-f28e76422afd@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/curl
Branch : curl-v8.23.0-3
Commit : f28e76422afd01201245bfad881902d2961c3e1d
Author : Jan Macku <jamacku@redhat.com>
Date : 2026-03-20T10:32:57+01:00
Stats : +45/-3 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/curl/c/f28e76422afd01201245bfad881902d2961c3e1d?branch=curl-v8.23.0-3
Log:
Fix test459 to pass when running tests in parallel
Also don't run test 2502 in parallel to avoid failures
Also cap parallel jobs at 64 to avoid overwhelming systemd resources:
```
192 CPU × 7 = 1344 parallel test runners
```
```
Internal error: still have tests to run at ../../tests/runtests.pl line 3100
make[1]: *** [Makefile:837: nonflaky-test] Error 9
```
---
diff --git a/001-curl-8.19.0-test459-switch-to-mode-warn-for-stderr-check.patch b/001-curl-8.19.0-test459-switch-to-mode-warn-for-stderr-check.patch
new file mode 100644
index 0000000..daccf3e
--- /dev/null
+++ b/001-curl-8.19.0-test459-switch-to-mode-warn-for-stderr-check.patch
@@ -0,0 +1,33 @@
+From 4d4c2c8e09a87de6b66da014cd9e485836e0be43 Mon Sep 17 00:00:00 2001
+From: Daniel Stenberg <daniel@haxx.se>
+Date: Thu, 12 Mar 2026 16:41:47 +0100
+Subject: [PATCH] test459: switch to mode="warn" for stderr check
+
+In a -j192 build, this output used a three-digit number for the output,
+thus wrapping differently and causing it to error.
+
+Reported-by: Carlos Henrique Lima Melara
+
+Closes #20910
+
+(cherry picked from commit d20fa5cd39dea166c013e2377bfbe68e5d54506e)
+---
+ tests/data/test459 | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/tests/data/test459 b/tests/data/test459
+index 7a2e1db7b3..91f2d67bca 100644
+--- a/tests/data/test459
++++ b/tests/data/test459
+@@ -53,7 +53,7 @@ Content-Type: application/x-www-form-urlencoded
+
+ arg
+ </protocol>
+-<stderr mode="text">
++<stderr mode="warn">
+ Warning: %LOGDIR/config:1 Option 'data' uses argument with unquoted whitespace.%SP
+ Warning: This may cause side-effects. Consider double quotes.
+ </stderr>
+--
+2.53.0
+
diff --git a/curl.spec b/curl.spec
index fb6f576..7728b1b 100644
--- a/curl.spec
+++ b/curl.spec
@@ -12,7 +12,7 @@
Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
Name: curl
Version: 8.19.0
-Release: 1%{?dist}
+Release: 2%{?dist}
License: curl
Source0: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz
Source1: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz.asc
@@ -21,6 +21,9 @@ Source1: https://curl.se/download/%{name}-%{version_no_tilde}.tar.xz.asc
# which points to the GPG key as of April 7th 2016 of https://daniel.haxx.se/mykey.asc
Source2: mykey.asc
+# Fix test459 to pass when running tests in parallel
+Patch001: 001-curl-8.19.0-test459-switch-to-mode-warn-for-stderr-check.patch
+
# patch making libcurl multilib ready
Patch101: 0101-curl-7.32.0-multilib.patch
@@ -367,10 +370,13 @@ for size in minimal full; do (
export LD_LIBRARY_PATH="${PWD}/lib/.libs"
# tests that must run in serial to avoid intermittent failures under parallel execution
- serial_tests="766"
+ serial_tests="766 2502"
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
+ # cap at 64 jobs to avoid overwhelming system resources on high-CPU machines
+ test_jobs=$(( %{_smp_build_ncpus} * 7 ))
+ [ $test_jobs -gt 64 ] && test_jobs=64
+ TFLAGS="-v -j${test_jobs}${serial_excludes}" make test-nonflaky
# run serial tests one at a time
TFLAGS="-v ${serial_tests}" make test-nonflaky
)
@@ -444,6 +450,9 @@ rm -f ${RPM_BUILD_ROOT}%{_mandir}/man1/wcurl.1*
%{_libdir}/libcurl.so.4.[0-9].[0-9].minimal
%changelog
+* Fri Mar 20 2026 Jan Macku <jamacku@redhat.com> - 8.19.0-2
+- fix the failing test459 and test2502 after enabling parallel tests
+
* Tue Mar 17 2026 Jan Macku <jamacku@redhat.com> - 8.19.0-1
- new upstream release
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=179370959125.1.2899384096660870385.rpms-curl-f28e76422afd@fedoraproject.org \
--to=jamacku@redhat.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