Skip to content

Invalidate locks when local package names change - #440

Draft
zaniebot wants to merge 1 commit into
mainfrom
zb/uv-dev-validate-local-package-names
Draft

zaniebot wants to merge 1 commit into
mainfrom
zb/uv-dev-validate-local-package-names

Conversation

@zaniebot

Copy link
Copy Markdown
Collaborator

Renaming a non-workspace local dependency in pyproject.toml left both ordinary and metadata-free lockfiles incorrectly accepted because refreshed package metadata was never compared with the locked package name. Validate the refreshed name before accepting its dependency metadata so stale package identities trigger a new resolution.

@zaniebot zaniebot added priority:2 Important: bounded correctness, release reliability, committed work, or proven performance gains. size:2 Moderate: one subsystem with meaningful invariants, edge cases, or operational evidence to inspect. bug Something isn't working preview Experimental behavior risk:1 Negligible risk of localized mistakes that are obvious and easy to correct. labels Sep 9, 2026
@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/uv-dev-validate-local-package-names branch from d1fea31 to 5369950 Compare September 16, 2026 12:38
@codspeed

codspeed Bot commented Sep 16, 2026 •

Copy link
Copy Markdown

Merging this PR will improve performance by ×9.1

⚠️ Different runtime environments detected

Some benchmarks with significant performance changes were compared across different runtime environments,
which may affect the accuracy of the results.

Open the report in CodSpeed to investigate

⚡ 11 improved benchmarks
✅ 43 untouched benchmarks
🆕 7 new benchmarks
⏩ 35 skipped benchmarks1

Performance Changes

Mode Benchmark BASE HEAD Efficiency
⚡ WallTime unzip_wheel_many_files 371 ms 12.3 ms ×30
⚡ WallTime install_wheel_many_files 385 ms 13.8 ms ×28
⚡ WallTime prepare_wheel_many_files 383.4 ms 15.1 ms ×25
⚡ WallTime unpack_sdist_many_files 317.2 ms 37.5 ms ×8.5
⚡ WallTime resolve_warm_jupyter_universal 87.6 ms 11.9 ms ×7.4
⚡ WallTime resolve_warm_jupyter 17.4 ms 2.5 ms ×7
⚡ WallTime discover_workspace_from_all_members_with_excludes 52.7 ms 8.4 ms ×6.3
⚡ WallTime discover_workspace_from_all_members 50.5 ms 8 ms ×6.3
⚡ WallTime run_python_version_synthetic_workspace 268.4 ms 43.5 ms ×6.2
⚡ WallTime resolve_warm_airflow 233.2 ms 42.2 ms ×5.5
⚡ WallTime hash_sha256 1,165.6 µs 413.8 µs ×2.8
🆕 Simulation cli_command N/A 12.3 ms N/A
🆕 Simulation pip_compile N/A 21.6 ms N/A
🆕 Simulation pip_install N/A 21.4 ms N/A
🆕 Simulation tool_install N/A 21.6 ms N/A
🆕 Simulation preview_bool N/A 59.2 µs N/A
🆕 Simulation preview_list N/A 72.6 µs N/A
🆕 Simulation trusted_hosts N/A 106.1 µs N/A

Tip

Curious why performance improved? Comment @codspeedbot explain why performance improved on this PR, or directly use the CodSpeed MCP with your agent.


Comparing zb/uv-dev-validate-local-package-names (1c9f8bc) with main (b7c8c62)2

Open in CodSpeed

Footnotes

  1. 35 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 (1f85ea1) during the generation of this report, so b7c8c62 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@astral-automations-bot
astral-automations-bot Bot force-pushed the zb/uv-dev-validate-local-package-names branch from 5369950 to 1c9f8bc Compare October 7, 2026 20:56

This branch was successfully deployed

1 active deployment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working preview Experimental behavior priority:2 Important: bounded correctness, release reliability, committed work, or proven performance gains. risk:1 Negligible risk of localized mistakes that are obvious and easy to correct. size:2 Moderate: one subsystem with meaningful invariants, edge cases, or operational evidence to inspect.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants