Skip to content

Two run.rs test regressions in 0.5.28, apparently due to installing typing-extensions (?) #11237

@mgorny

Description

@mgorny

Summary

$ cargo test
[…]
failures:

---- run::run_repeated stdout ----

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Unfiltered output ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
----- stdout -----

----- stderr -----
Using CPython 3.13.1 interpreter at: /home/mgorny/.local/share/uv/tests/.tmpp1Kpy8/python/3.13/python3
Creating virtual environment at: .venv
Resolved 2 packages in 373ms
Prepared 1 package in 116ms
Installed 1 package in 14ms
 + iniconfig==2.0.0
Resolved 1 package in 307ms
Prepared 1 package in 113ms
Installed 1 package in 1ms
 + typing-extensions==4.10.0

────────────────────────────────────────────────────────────────────────────────


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Unfiltered output ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
----- stdout -----

----- stderr -----
Resolved 2 packages in 97ms
Audited 1 package in 0.04ms
Resolved 1 package in 12ms
Installed 1 package in 8ms
 + typing-extensions==4.10.0

────────────────────────────────────────────────────────────────────────────────

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_repeated-2
Source: crates/uv/tests/it/run.rs:3914
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Expression: snapshot
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
    3     3 │ 
    4     4 │ ----- stderr -----
    5     5 │ Resolved 2 packages in [TIME]
    6     6 │ Audited 1 package in [TIME]
    7       │-Resolved 1 package in [TIME]
          7 │+Resolved 1 package in [TIME]
          8 │+Installed 1 package in [TIME]
          9 │+ + typing-extensions==4.10.0
────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'run::run_repeated' panicked at /home/mgorny/.cargo/registry/src/index.crates.io-6f17d22bba15001f/insta-1.42.1/src/runtime.rs:679:13:
snapshot assertion for 'run_repeated-2' failed in line 3914
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- run::run_without_overlay stdout ----

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Unfiltered output ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
----- stdout -----

----- stderr -----
Using CPython 3.13.1 interpreter at: /home/mgorny/.local/share/uv/tests/.tmpsb7AWS/python/3.13/python3
Creating virtual environment at: .venv
Resolved 2 packages in 444ms
Prepared 1 package in 132ms
Installed 1 package in 9ms
 + iniconfig==2.0.0
Resolved 1 package in 324ms
Prepared 1 package in 162ms
Installed 1 package in 26ms
 + typing-extensions==4.10.0

────────────────────────────────────────────────────────────────────────────────


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Unfiltered output ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
----- stdout -----

----- stderr -----
Resolved 1 package in 20ms
Traceback (most recent call last):
  File "<string>", line 1, in <module>
    import typing_extensions; import iniconfig
                              ^^^^^^^^^^^^^^^^
ModuleNotFoundError: No module named 'iniconfig'

────────────────────────────────────────────────────────────────────────────────


━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Unfiltered output ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
----- stdout -----

----- stderr -----
Resolved 2 packages in 305ms
Audited 1 package in 0.04ms
Resolved 1 package in 9ms
Installed 1 package in 9ms
 + typing-extensions==4.10.0

────────────────────────────────────────────────────────────────────────────────

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: run_without_overlay-3
Source: crates/uv/tests/it/run.rs:4001
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
Expression: snapshot
───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
    3     3 │ 
    4     4 │ ----- stderr -----
    5     5 │ Resolved 2 packages in [TIME]
    6     6 │ Audited 1 package in [TIME]
    7       │-Resolved 1 package in [TIME]
          7 │+Resolved 1 package in [TIME]
          8 │+Installed 1 package in [TIME]
          9 │+ + typing-extensions==4.10.0
────────────┴──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.
thread 'run::run_without_overlay' panicked at /home/mgorny/.cargo/registry/src/index.crates.io-6f17d22bba15001f/insta-1.42.1/src/runtime.rs:679:13:
snapshot assertion for 'run_without_overlay-3' failed in line 4001


failures:
    run::run_repeated
    run::run_without_overlay

test result: FAILED. 1656 passed; 2 failed; 4 ignored; 0 measured; 0 filtered out; finished in 557.08s

error: test failed, to rerun pass `-p uv --test it`

Platform

Gentoo Linux

Version

0.5.28

Python version

3.13.1

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingtestingInternal testing of behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions