public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
To: git-commits@fedoraproject.org
Subject: [rpms/python3.14] f44: Deduplicate the riscv64 --timeout %if
Date: Fri, 13 Nov 2026 11:08:24 GMT [thread overview]
Message-ID: <179456810420.1.10537611553967851647.rpms-python3.14-ed3acc342228@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/python3.14
Branch : f44
Commit : ed3acc3422282b4bfab393d5adcd47f2f9d5cd93
Author : Miro Hrončok <miro@hroncok.cz>
Date : 2026-11-13T12:07:18+01:00
Stats : +11/-13 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/python3.14/c/ed3acc3422282b4bfab393d5adcd47f2f9d5cd93?branch=f44
Log:
Deduplicate the riscv64 --timeout %if
[skip changelog]
---
diff --git a/python3.14.spec b/python3.14.spec
index cdf8ec4..eada41d 100644
--- a/python3.14.spec
+++ b/python3.14.spec
@@ -222,6 +222,15 @@ Provides: bundled(python3dist(zipp)) = 3.19.2
# Remove the default -O2 flag, our flags are applied in %%build/%%install
%global __global_compiler_flags %(echo '%{__global_compiler_flags}' | sed 's/-O[[:digit:]]//')
+# Timeout for tests in seconds, passed as --timeout argument, used for each test separately
+%ifarch riscv64
+# slow arch, 135 minutes
+%global test_timeout 8100
+%else
+# normal arches, 45 minutes
+%global test_timeout 2700
+%endif
+
# Changing the shebangs of the test files confuses the tests which count with a specific data offset
# We can't remove the executable bit, the files are run directly in other tests
%global __brp_mangle_shebangs_exclude_from ^%{pylibdir}/test/archivetestdata/exe_with_.*$
@@ -1517,27 +1526,16 @@ CheckPython() {
LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.pythoninfo
# Run the upstream test suite
- # --timeout=2700: kill test running for longer than 45 minutes
# test_check_probes is failing since it was introduced in 3.12.0rc1,
# the test is skipped until it is fixed in upstream.
# see: https://github.com/python/cpython/issues/104280#issuecomment-1669249980
LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \
- -wW --slowest %{_smp_mflags} \
- %ifarch riscv64
- --timeout=8100 \
- %else
- --timeout=2700 \
- %endif
+ -wW --slowest %{_smp_mflags} --timeout=%{test_timeout} \
-i test_check_probes \
# Re-run the hashlib/hmac/ssl related tests with FIPS mode forced on.
OPENSSL_FORCE_FIPS_MODE=1 LD_LIBRARY_PATH=$ConfDir $ConfDir/python -m test.regrtest \
- -wW --slowest %{_smp_mflags} \
- %ifarch riscv64
- --timeout=8100 \
- %else
- --timeout=2700 \
- %endif
+ -wW --slowest %{_smp_mflags} --timeout=%{test_timeout} \
test_hashlib test_hmac test_ssl \
-i test_case_md5_0 -i test_case_md5_1 -i test_case_md5_2
reply other threads:[~2026-11-13 11:08 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=179456810420.1.10537611553967851647.rpms-python3.14-ed3acc342228@fedoraproject.org \
--to=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