public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/fedrq] epel10: temporarily skip flaky tests on py3.12
@ 2026-07-14  1:11 Maxwell G
  0 siblings, 0 replies; only message in thread
From: Maxwell G @ 2026-07-14  1:11 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/fedrq
            Branch : epel10
            Commit : dc4f0e8484a637d1c9715d1cb009f21cc7264c4a
            Author : Maxwell G <maxwell@gtmx.me>
            Date   : 2023-07-05T21:16:14+00:00
            Stats  : +12/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/fedrq/c/dc4f0e8484a637d1c9715d1cb009f21cc7264c4a?branch=epel10

            Log:
            temporarily skip flaky tests on py3.12

Fixes: https://bugzilla.redhat.com/2219993

---
diff --git a/fedrq.spec b/fedrq.spec
index c555b15..55c7ecc 100644
--- a/fedrq.spec
+++ b/fedrq.spec
@@ -85,8 +85,18 @@ install -Dpm 0644 fedrq.fish %{buildroot}%{fish_completions_dir}/fedrq.fish
 
 %check
 FEDRQ_BACKEND=dnf %pytest -v -m "not no_rpm_mock"
+
 %if %{with libdnf5}
-FEDRQ_BACKEND=libdnf5 %pytest -v -m "not no_rpm_mock"
+# Some tests are failing only in mock and only with Python 3.12
+#   RuntimeError: Failed to download metadata
+%if v"0%{?python3_version}" >= v"3.12"
+%global skips %{shrink:
+    not test_smartcache_not_used
+    and not test_smartcache_config
+    and not test_baseurl_repog
+}
+%endif
+FEDRQ_BACKEND=libdnf5 %pytest -v -m "not no_rpm_mock" %{?skips:-k '%{skips}'}
 %endif
 
 
@@ -104,6 +114,7 @@ FEDRQ_BACKEND=libdnf5 %pytest -v -m "not no_rpm_mock"
 %changelog
 * Mon Jul 03 2023 Python Maint <python-maint@redhat.com> - 0.9.0-2
 - Rebuilt for Python 3.12
+- Fixes: rhbz#2219993
 
 * Thu Jun 29 2023 Maxwell G <maxwell@gtmx.me> - 0.9.0-1
 - Update to 0.9.0.

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-14  1:11 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-14  1:11 [rpms/fedrq] epel10: temporarily skip flaky tests on py3.12 Maxwell G

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox