public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/uv] epel10: Backport upstream fix for skipping uv check tests when offline
@ 2026-06-03 18:36 Benjamin A. Beasley
0 siblings, 0 replies; only message in thread
From: Benjamin A. Beasley @ 2026-06-03 18:36 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/uv
Branch : epel10
Commit : a3a0dee7aa1a400294ee61679166a19c6017bebb
Author : Benjamin A. Beasley <code@musicinmybrain.net>
Date : 2026-06-03T19:11:51+01:00
Stats : +56/-10 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/uv/c/a3a0dee7aa1a400294ee61679166a19c6017bebb?branch=epel10
Log:
Backport upstream fix for skipping uv check tests when offline
---
diff --git a/19661.patch b/19661.patch
new file mode 100644
index 0000000..72c1f1e
--- /dev/null
+++ b/19661.patch
@@ -0,0 +1,52 @@
+From e1abeab3147489e3d1d7385d6973cabd33d81ff6 Mon Sep 17 00:00:00 2001
+From: Aria Desires <aria.desires@gmail.com>
+Date: Wed, 3 Jun 2026 12:07:17 -0400
+Subject: [PATCH 1/2] Use the same feature gates on `check` tests as `format`
+
+The test-pypi feature is used as a proxy for "this test does networking" so people running in offline scenarios don't run them.
+
+Fixes #19658
+---
+ crates/uv/tests/it/main.rs | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/crates/uv/tests/it/main.rs b/crates/uv/tests/it/main.rs
+index 30c27554ae985..cb1a3b6d660a7 100644
+--- a/crates/uv/tests/it/main.rs
++++ b/crates/uv/tests/it/main.rs
+@@ -39,7 +39,7 @@ mod edit;
+ #[cfg(all(feature = "test-python", feature = "test-pypi"))]
+ mod export;
+
+-#[cfg(feature = "test-python")]
++#[cfg(all(feature = "test-python", feature = "test-pypi"))]
+ mod check;
+
+ #[cfg(all(feature = "test-python", feature = "test-pypi"))]
+
+From b52907462863ccdafdde4a55fd8b050d87da32ad Mon Sep 17 00:00:00 2001
+From: Aria Desires <aria.desires@gmail.com>
+Date: Wed, 3 Jun 2026 13:10:53 -0400
+Subject: [PATCH 2/2] move both to r2
+
+---
+ crates/uv/tests/it/main.rs | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/crates/uv/tests/it/main.rs b/crates/uv/tests/it/main.rs
+index cb1a3b6d660a7..27bf679237cac 100644
+--- a/crates/uv/tests/it/main.rs
++++ b/crates/uv/tests/it/main.rs
+@@ -39,10 +39,10 @@ mod edit;
+ #[cfg(all(feature = "test-python", feature = "test-pypi"))]
+ mod export;
+
+-#[cfg(all(feature = "test-python", feature = "test-pypi"))]
++#[cfg(all(feature = "test-python", feature = "test-r2"))]
+ mod check;
+
+-#[cfg(all(feature = "test-python", feature = "test-pypi"))]
++#[cfg(all(feature = "test-python", feature = "test-r2"))]
+ mod format;
+
+ mod help;
diff --git a/uv.spec b/uv.spec
index 30e9bb9..72dc7a6 100644
--- a/uv.spec
+++ b/uv.spec
@@ -154,6 +154,10 @@ Source1: uv.toml
# https://github.com/astral-sh/uv/issues/4451
Patch: 0001-Downstream-patch-always-find-the-system-wide-uv-exec.patch
+# fix feature-gates on format and check tests to specify they access r2
+# https://github.com/astral-sh/uv/pull/19661
+Patch: %{url}/pull/19661.patch
+
# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}
@@ -639,16 +643,6 @@ skip="${skip-} --skip user_agent_version::test_user_agent_has_linehaul"
skip="${skip-} --skip user_agent_version::test_user_agent_has_subcommand"
skip="${skip-} --skip user_agent_version::test_user_agent_has_version"
-# Some tests for “uv check” introduced in 0.11.18 require network access
-# https://github.com/astral-sh/uv/issues/19658
-skip="${skip-} --skip check::check_missing_pyproject_toml"
-skip="${skip-} --skip check::check_no_project"
-skip="${skip-} --skip check::check_project"
-skip="${skip-} --skip check::check_ty_version_no_match"
-skip="${skip-} --skip check::check_ty_version_pinned_verbose"
-skip="${skip-} --skip check::check_type_error"
-skip="${skip-} --skip check::check_with_undeclared_dependency"
-
%cargo_test -- -- --exact ${skip-}
%endif
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-03 18:36 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-03 18:36 [rpms/uv] epel10: Backport upstream fix for skipping uv check tests when offline Benjamin A. Beasley
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox