From 5cb953343649e7c8a90fa34811817836fbbcf6de Mon Sep 17 00:00:00 2001 From: "David Andrews (LexGenius.ai)" Date: Thu, 16 Jul 2026 08:39:37 -0400 Subject: [PATCH 1/2] fix(shell): parse uv run --extra values --- crates/pi-shell/src/minimizer/filters/mod.rs | 3 ++- packages/natives/CHANGELOG.md | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/crates/pi-shell/src/minimizer/filters/mod.rs b/crates/pi-shell/src/minimizer/filters/mod.rs index d68963a89..3a0e21489 100644 --- a/crates/pi-shell/src/minimizer/filters/mod.rs +++ b/crates/pi-shell/src/minimizer/filters/mod.rs @@ -376,6 +376,7 @@ fn uv_wrapper_tool<'a>(ctx: &'a MinimizerCtx<'_>) -> Option<&'a str> { /// is already a single flag token and needs no entry here. const WRAPPER_VALUE_OPTIONS: &[&str] = &[ // uv run + "--extra", "--with", "--with-requirements", "--with-editable", @@ -633,7 +634,7 @@ mod tests { #[test] fn uv_run_pytest_routes_to_python_filter() { let config = MinimizerConfig::default(); - let context = ctx("uv", Some("run"), "uv run pytest", &config); + let context = ctx("uv", Some("run"), "uv run --extra turso pytest", &config); let input = "============================= test session starts \ ==============================\ncollected 2 items\n\na.py .\nb.py \ F\n\n=================================== FAILURES \ diff --git a/packages/natives/CHANGELOG.md b/packages/natives/CHANGELOG.md index 4e517c278..bf7f6a025 100644 --- a/packages/natives/CHANGELOG.md +++ b/packages/natives/CHANGELOG.md @@ -2,6 +2,10 @@ ## [Unreleased] +### Fixed + +- Fixed `uv run --extra pytest ...` bypassing native pytest minimization because the wrapper parser mistook the `--extra` value for the executable. + ## [17.0.1] - 2026-07-16 ### Fixed From dea5fc87772f38abb5af0b851147c209196cc9ec Mon Sep 17 00:00:00 2001 From: "David Andrews (LexGenius.ai)" Date: Thu, 16 Jul 2026 10:32:01 -0400 Subject: [PATCH 2/2] ci: retry flaky workspace tests