Add verbose output on flake for run_groups_requires_python (#14275)

See https://github.com/astral-sh/uv/issues/14160

Same as https://github.com/astral-sh/uv/pull/13817
This commit is contained in:
Zanie Blue 2025-06-26 12:11:34 -05:00 committed by GitHub
parent d27cec78b4
commit 8c27c2b494
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4686,6 +4686,22 @@ fn run_groups_requires_python() -> Result<()> {
+ typing-extensions==4.10.0
");
// TMP: Attempt to catch this flake with verbose output
// See https://github.com/astral-sh/uv/issues/14160
let output = context
.run()
.arg("python")
.arg("-c")
.arg("import typing_extensions")
.arg("-vv")
.output()?;
let stderr = String::from_utf8_lossy(&output.stderr);
assert!(
!stderr.contains("Removed virtual environment"),
"{}",
stderr
);
// Going back to just "dev" we shouldn't churn the venv needlessly
uv_snapshot!(context.filters(), context.run()
.arg("python").arg("-c").arg("import typing_extensions"), @r"