Restore snapshot for sync_dry_run (#14274)

In addition to our flake catch, keep a snapshot.

Extends https://github.com/astral-sh/uv/pull/13817
This commit is contained in:
Zanie Blue 2025-06-26 11:23:37 -05:00 committed by GitHub
parent 1e02008d8b
commit d27cec78b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -8173,6 +8173,8 @@ fn sync_dry_run() -> Result<()> {
+ iniconfig==2.0.0
");
// TMP: Attempt to catch this flake with verbose output
// See https://github.com/astral-sh/uv/issues/13744
let output = context.sync().arg("--dry-run").arg("-vv").output()?;
let stderr = String::from_utf8_lossy(&output.stderr);
assert!(
@ -8181,6 +8183,19 @@ fn sync_dry_run() -> Result<()> {
stderr
);
uv_snapshot!(context.filters(), context.sync().arg("--dry-run"), @r"
success: true
exit_code: 0
----- stdout -----
----- stderr -----
Discovered existing environment at: .venv
Resolved 2 packages in [TIME]
Found up-to-date lockfile at: uv.lock
Audited 1 package in [TIME]
Would make no changes
");
Ok(())
}