Skip to content

Test tool lock invalidation and upgrades - #20016

Merged
charliermarsh merged 1 commit into
mainfrom
charlie/tool-lock-coverage
Jun 26, 2026
Merged

charliermarsh merged 1 commit into
mainfrom
charlie/tool-lock-coverage

Conversation

@charliermarsh

Copy link
Copy Markdown
Member

Summary

This PR adds regression coverage for the standalone tool-lock paths introduced in #18937.

It verifies that changing a constraint invalidates an otherwise reusable lock, uv tool upgrade rejects distributions whose served wheel does not match the hash recorded during resolution, and a lock-backed upgrade recreates the environment when --python selects a new interpreter.

Each test distinguishes the intended behavior from the corresponding stale-lock, unverified-hash, or wrong-interpreter path. The full tool integration suite passes, along with test-target Clippy and the file-scoped repository hooks.

};
insta::with_settings!({ filters => context.filters() }, {
assert_snapshot!(version_info, @"version_info = 3.12.[X]");
});

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I'd snapshot the whole thing but apparently this is what we do in the file.

@charliermarsh charliermarsh added the internal:testing Internal testing of behavior label Jun 26, 2026
@charliermarsh
charliermarsh marked this pull request as ready for review June 26, 2026 20:51
@charliermarsh
charliermarsh merged commit e0de46e into main Jun 26, 2026
52 of 54 checks passed
@charliermarsh
charliermarsh deleted the charlie/tool-lock-coverage branch June 26, 2026 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal:testing Internal testing of behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant