public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Benjamin A. Beasley <code@musicinmybrain.net>
To: git-commits@fedoraproject.org
Subject: [rpms/uv] f44: Backport upstream fix for skipping uv check tests when offline
Date: Wed, 03 Jun 2026 18:36:26 GMT [thread overview]
Message-ID: <178051178660.1.18052438324554988353.rpms-uv-a3a0dee7aa1a@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/uv
Branch : f44
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=f44
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
reply other threads:[~2026-06-03 18:36 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=178051178660.1.18052438324554988353.rpms-uv-a3a0dee7aa1a@fedoraproject.org \
--to=code@musicinmybrain.net \
--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