public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python3.14] f44: Deduplicate the riscv64 --timeout %if
@ 2026-11-13 11:08
0 siblings, 0 replies; only message in thread
From: @ 2026-11-13 11:08 UTC (permalink / raw)
To: git-commits
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-11-13 11:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-13 11:08 [rpms/python3.14] f44: Deduplicate the riscv64 --timeout %if
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox