-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
failures:
---- version::self_version_json stdout ----
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Unfiltered output ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
----- stdout -----
{
"package_name": "uv",
"version": "0.7.0",
"commit_info": null
}
----- stderr -----
────────────────────────────────────────────────────────────────────────────────
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: self_version_json
Source: crates/uv/tests/it/version.rs:1178
────────────────────────────────────────────────────────────────────────────────
Expression: snapshot
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
2 2 │ ----- stdout -----
3 3 │ {
4 4 │ "package_name": "uv",
5 5 │ "version": "[VERSION]",
6 │- "commit_info": {
7 │- "short_commit_hash": "[LONGHASH]",
8 │- "commit_hash": "[LONGHASH]",
9 │- "commit_date": "[DATE]",
10 │- "last_tag": "[TAG]",
11 │- "commits_since_last_tag": [COUNT]
12 │- }
6 │+ "commit_info": null
13 7 │ }
14 8 │
15 9 │ ----- stderr -----
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'version::self_version_json' panicked at /var/tmp/portage/dev-python/uv-0.7.0/work/cargo_home/gentoo/insta-1.43.0/src/runtime.rs
:679:13:
snapshot assertion for 'self_version_json' failed in line 1178
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---- version::version_get_fallback_unmanaged_json stdout ----
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Unfiltered output ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
----- stdout -----
{
"package_name": "uv",
"version": "0.7.0",
"commit_info": null
}
----- stderr -----
warning: Failed to read project metadata (The project is marked as unmanaged: `/var/tmp/portage/dev-python/uv-0.7.0/homedir/.local/shar
e/uv/tests/.tmpApoa5j/temp`). Running `uv self version` for compatibility. This fallback will be removed in the future; pass `--preview
` to force an error.
────────────────────────────────────────────────────────────────────────────────
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: version_get_fallback_unmanaged_json
Source: crates/uv/tests/it/version.rs:947
────────────────────────────────────────────────────────────────────────────────
Expression: snapshot
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
2 2 │ ----- stdout -----
3 3 │ {
4 4 │ "package_name": "uv",
5 5 │ "version": "[VERSION]",
6 │- "commit_info": {
7 │- "short_commit_hash": "[LONGHASH]",
8 │- "commit_hash": "[LONGHASH]",
9 │- "commit_date": "[DATE]",
10 │- "last_tag": "[TAG]",
11 │- "commits_since_last_tag": [COUNT]
12 │- }
6 │+ "commit_info": null
13 7 │ }
14 8 │
15 9 │ ----- stderr -----
16 10 │ warning: Failed to read project metadata (The project is marked as unmanaged: `[TEMP_DIR]/`). Running `uv self version` f
or compatibility. This fallback will be removed in the future; pass `--preview` to force an error.
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'version::version_get_fallback_unmanaged_json' panicked at /var/tmp/portage/dev-python/uv-0.7.0/work/cargo_home/gentoo/insta-1.4
3.0/src/runtime.rs:679:13:
snapshot assertion for 'version_get_fallback_unmanaged_json' failed in line 947
My educated guess would be that the tests are assuming they're going to be run from a git checkout, whereas we're running them from unpacked GitHub archives.
Platform
Gentoo Linux amd64
Version
0.7.0
Python version
No response
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working