Skip to content

Recheck compatibility before reusing an installed wheel variant - #22758

Draft
konstin wants to merge 1 commit into
mainfrom
konsti/recheck-installed-wheel-variants
Draft

konstin wants to merge 1 commit into
mainfrom
konsti/recheck-installed-wheel-variants

Conversation

@konstin

@konstin konstin commented Oct 20, 2026 •

Copy link
Copy Markdown
Member

Check an installed wheel’s variant against the current system before reusing it. This covers registry, local path, direct URL, and Git wheels, including the uv pip install fast path.

For example, if the CUDA driver changes, uv pip install and uv pip sync can replace an incompatible variant with a compatible wheel at the same version. During resolution, a compatible installed variant remains preferred even if another variant would rank higher.

When the lockfile selects an sdist, uv sync replaces an installed wheel variant of the same version with the build from that sdist.

Stacked on #22724.

@konstin konstin added the preview Experimental behavior label Oct 20, 2026
@konstin
konstin added this pull request to stack #22757 October 20, 2026 11:20
@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from 1990b3e to c950449 Compare October 20, 2026 11:29
@konstin
konstin force-pushed the konsti/packse-wheel-variants branch from fb717e3 to 051462f Compare October 20, 2026 11:29
@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from c950449 to b9f52b1 Compare October 20, 2026 11:39
@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from b9f52b1 to 8f72343 Compare October 20, 2026 11:46
@codspeed

codspeed Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ 7 benchmarks are dominated by system calls

System calls cannot be simulated consistently and are left out of the measure. The reported value understates the real cost. Switch to the Walltime instrument to measure them.

Learn more about system calls

See affected benchmarks

✅ 89 untouched benchmarks
⏩ 84 skipped benchmarks1


Comparing konsti/recheck-installed-wheel-variants (de93f93) with main (5a96b4c)2

Open in CodSpeed

Footnotes

  1. 84 benchmarks were skipped, so the baseline results were used instead. If they were deleted from the codebase, click here and archive them to remove them from the performance reports. ↩

  2. No successful run was found on main (8d84065) during the generation of this report, so 5a96b4c was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from 7cca3da to f0dfb0a Compare October 21, 2026 09:01
@konstin
konstin force-pushed the konsti/packse-wheel-variants branch from f53f00b to 38dd0b0 Compare October 21, 2026 09:01
@konstin
konstin force-pushed the konsti/packse-wheel-variants branch from 38dd0b0 to f160a3c Compare October 21, 2026 11:31
@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from f0dfb0a to d482b6e Compare October 21, 2026 11:31
@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from d482b6e to 6ac9bdd Compare October 21, 2026 11:50
@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from 6ac9bdd to 23fc0ae Compare October 21, 2026 13:51
@konstin
konstin force-pushed the konsti/packse-wheel-variants branch from 36c4f48 to a063a5e Compare October 21, 2026 13:51
@konstin
konstin force-pushed the konsti/packse-wheel-variants branch from a063a5e to 184359c Compare October 22, 2026 22:14
@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from 23fc0ae to 58894a3 Compare October 22, 2026 22:20
@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from 58894a3 to d87beed Compare October 23, 2026 11:56
@konstin
konstin force-pushed the konsti/git-path-variant-wheels branch from ce70075 to 73e1890 Compare October 30, 2026 23:17
@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from cdc07eb to 9098cab Compare October 30, 2026 23:17
@konstin
konstin force-pushed the konsti/git-path-variant-wheels branch from 73e1890 to 1acd5b3 Compare October 31, 2026 01:08
@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from 9098cab to 0fac09c Compare October 31, 2026 01:08
@konstin
konstin removed this pull request from stack #22974 October 31, 2026 01:25
@konstin
konstin force-pushed the konsti/git-path-variant-wheels branch 2 times, most recently from 921d1f4 to aa83b57 Compare October 31, 2026 01:32
@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from 0fac09c to 094560d Compare October 31, 2026 01:37
@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from 094560d to 3548887 Compare October 31, 2026 01:51
@konstin
konstin force-pushed the konsti/git-path-variant-wheels branch from aa83b57 to 08a03ba Compare October 31, 2026 01:51
@konstin
konstin force-pushed the konsti/git-path-variant-wheels branch from 08a03ba to e71e9e3 Compare November 3, 2026 11:50
@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from 3548887 to ad1fab3 Compare November 3, 2026 11:50
@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from ad1fab3 to f84767e Compare November 4, 2026 10:24
@konstin
konstin force-pushed the konsti/recheck-installed-wheel-variants branch from f84767e to c067269 Compare November 4, 2026 13:47
@konstin
konstin force-pushed the konsti/git-path-variant-wheels branch from 42d5b3e to 47a5208 Compare November 4, 2026 13:47
@konstin
konstin force-pushed the konsti/git-path-variant-wheels branch 4 times, most recently from 518d9a6 to 3445176 Compare November 5, 2026 11:19

This branch was previously deployed

1 inactive (outdated) deployment
automations — afe8fdd0 Deployed Nov 20, 2026 by konsti-openai via review | security / security review #54214
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview Experimental behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants