Skip to content

Use Packse in uv check tests#19913

Merged
zsol merged 3 commits into
mainfrom
zsol/use-packse-for-uv-check
Jun 23, 2026
Merged

Use Packse in uv check tests#19913
zsol merged 3 commits into
mainfrom
zsol/use-packse-for-uv-check

Conversation

@zsol

@zsol zsol commented Jun 18, 2026

Copy link
Copy Markdown
Member

Replace live-PyPI dependencies in uv check project lock and sync tests with existing Packse fixtures. The tests now pass the local index explicitly and use deterministic package metadata instead of anyio, iniconfig, and unnecessary CLI --exclude-newer cutoffs.

This also moves declared-dependency and isolated-project coverage into the test-r2 shard. The TY executable precedence test remains test-pypi gated because it requires installing a real ty executable; existing TY precedence and ty download tests are otherwise unchanged.

@zsol
zsol force-pushed the zsol/use-packse-for-uv-check branch from 364c368 to 0a012a9 Compare June 18, 2026 17:14
@zsol
zsol changed the base branch from main to zsol/uv-check-no-sync-locking June 18, 2026 17:14
@zsol
zsol force-pushed the zsol/use-packse-for-uv-check branch from 0a012a9 to a4fbef8 Compare June 18, 2026 17:17
@zsol
zsol marked this pull request as ready for review June 18, 2026 17:25
Comment thread crates/uv/tests/project/check.rs Outdated
@astral-sh-bot

astral-sh-bot Bot commented Jun 18, 2026

Copy link
Copy Markdown

uv test inventory changes

This PR changes the tests when compared with the latest main baseline.

  • Added tests: 1
  • Removed tests: 0
  • Changed suites: 1
uv::pip: +1 / -0

Added:

  • uv::pip::pip_install_scenarios::single_package

Removed: none

Base automatically changed from zsol/uv-check-no-sync-locking to main June 18, 2026 17:44
@zsol
zsol force-pushed the zsol/use-packse-for-uv-check branch from 3e9a2cf to 8c32817 Compare June 18, 2026 18:13
@zsol
zsol force-pushed the zsol/use-packse-for-uv-check branch from 8c32817 to 2e682db Compare June 19, 2026 10:04
@zsol
zsol merged commit 90fbc3a into main Jun 23, 2026
56 checks passed
@zsol
zsol deleted the zsol/use-packse-for-uv-check branch June 23, 2026 12:57
zsol added a commit that referenced this pull request Jun 24, 2026
`uv check` currently resolves its standalone `ty` executable from uv’s
built-in compatible range, even when the project’s locked development
dependencies select a different version or source.

When `uv.lock` contains an applicable `ty` package, `uv check` now runs
that exact locked package. It first looks in the project’s `dev` group,
then falls back to a direct runtime dependency. With `--no-sync` (or
when `ty` is excluded by the selected dependency groups), uv
materializes only the locked `ty` subgraph into a cached environment
without modifying the project environment.

The precedence order for ty version selection is now:

- the `TY` executable override
- an explicit `--ty-version`
- the applicable `ty` package from `uv.lock` (if any)
- uv’s default constrained range when the lock contains no applicable
`ty` development dependency

This work was split into several focused pull requests, which are now
dependencies of this PR:

-
[[#19907](https://github.com/astral-sh/uv/pull/19907)](https://github.com/astral-sh/uv/pull/19907)
adds the locked-subgraph materialization and cached-installation
primitives this PR uses. This PR is stacked on it.
-
[[#19909](https://github.com/astral-sh/uv/pull/19909)](https://github.com/astral-sh/uv/pull/19909)
makes `uv check --no-sync` perform the normal lock operation while
skipping environment synchronization.
-
[[#19892](https://github.com/astral-sh/uv/pull/19892)](https://github.com/astral-sh/uv/pull/19892)
adds the hidden `uv check --show-version` flag used to verify version
selection.
-
[[#19913](https://github.com/astral-sh/uv/pull/19913)](https://github.com/astral-sh/uv/pull/19913)
moves related `uv check` tests from live PyPI dependencies to
deterministic Packse fixtures.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants