Skip to content

Use bounded wheel cache lock names on Windows - #22062

Merged
charliermarsh merged 2 commits into
charlie/derive-cache-record-serializefrom
charlie/windows-wheel-cache-lock-key
Sep 30, 2026
Merged

charliermarsh merged 2 commits into
charlie/derive-cache-record-serializefrom
charlie/windows-wheel-cache-lock-key

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

We use WheelFilename::cache_key() for Windows wheel download, extraction, and metadata locks, limiting lock filenames to 69 characters, including .lock. This covers both PEP 658 metadata requests and the range-request fallback.

The wheels-v7 and sdists-v10 bumps remove the need to share lock filenames with older uv versions.

@charliermarsh charliermarsh added the internal A refactor or improvement that is not user-facing label Sep 28, 2026
@charliermarsh
charliermarsh force-pushed the charlie/windows-wheel-cache-lock-key branch from a38a788 to ef05d7d Compare September 28, 2026 23:15
@charliermarsh
charliermarsh changed the base branch from charlie/refresh-cache-policy-in-place to charlie/derive-cache-record-serialize September 28, 2026 23:15
@charliermarsh
charliermarsh force-pushed the charlie/windows-wheel-cache-lock-key branch from ef05d7d to 0872944 Compare September 29, 2026 17:16
@codspeed

codspeed Bot commented Sep 29, 2026 •

Copy link
Copy Markdown

Merging this PR will degrade performance by 6%

❌ 1 regressed benchmark
✅ 47 untouched benchmarks
🆕 24 new benchmarks
⏩ 28 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ WallTime revalidate_shared 80.5 ms 85.6 ms -6%
🆕 WallTime finish_blake2b[4096] N/A 109.4 ms N/A
🆕 WallTime finish_blake2b[65536] N/A 104.3 ms N/A
🆕 WallTime finish_combined[4096] N/A 397 ms N/A
🆕 WallTime finish_combined[65536] N/A 390.4 ms N/A
🆕 WallTime finish_none[4096] N/A 10.3 ms N/A
🆕 WallTime finish_none[65536] N/A 5.2 ms N/A
🆕 WallTime finish_sha256[4096] N/A 53.7 ms N/A
🆕 WallTime finish_sha256[65536] N/A 48.2 ms N/A
🆕 WallTime finish_sha384[4096] N/A 131.2 ms N/A
🆕 WallTime finish_sha384[65536] N/A 125.8 ms N/A
🆕 WallTime finish_sha512[4096] N/A 131.1 ms N/A
🆕 WallTime finish_sha512[65536] N/A 125.8 ms N/A
🆕 Simulation finish_blake2b[4096] N/A 622.7 ms N/A
🆕 Simulation finish_blake2b[65536] N/A 532.7 ms N/A
🆕 Simulation finish_combined[4096] N/A 2.6 s N/A
🆕 Simulation finish_combined[65536] N/A 2.5 s N/A
🆕 Simulation finish_none[4096] N/A 176.4 ms N/A
🆕 Simulation finish_none[65536] N/A 105.1 ms N/A
🆕 Simulation finish_sha256[4096] N/A 917 ms N/A
... ... ... ... ... ...

ℹ️ Only the first 20 benchmarks are displayed. Go to the app to view all benchmarks.

Tip

Investigate this regression by commenting @codspeedbot fix this regression on this PR, or directly use the CodSpeed MCP with your agent.


Comparing charlie/windows-wheel-cache-lock-key (4d4ac81) with charlie/derive-cache-record-serialize (5919952)2

Open in CodSpeed

Footnotes

  1. 28 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 charlie/derive-cache-record-serialize (0b2bb0b) during the generation of this report, so 3890f4e was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

@charliermarsh
charliermarsh force-pushed the charlie/windows-wheel-cache-lock-key branch from 0872944 to 4d4ac81 Compare September 30, 2026 01:43
@charliermarsh
charliermarsh merged commit 394f848 into main Sep 30, 2026
113 of 174 checks passed
@charliermarsh
charliermarsh deleted the charlie/windows-wheel-cache-lock-key branch September 30, 2026 02:07
charliermarsh added a commit that referenced this pull request Oct 1, 2026
We revert the cache-format stack so `main` retains the 0.12 cache
formats and bucket versions. These changes are deferred to 0.13.

This reverts the following PRs together, including the six cache bucket
bumps and the serialization and Windows lock-name changes that depend on
them:

- #22052: Refresh HTTP cache policies in place
- #22059: Store source distribution revision IDs inline
- #22060: Remove the legacy hash digest cache representation
- #22061: Derive serialization for cached artifact records
- #22062: Use bounded wheel cache lock names on Windows
- #22078: Pack HTTP cache policy flags and optional integers
- #22079: Align cached HTTP policies within the payload buffer
charliermarsh added a commit that referenced this pull request Oct 1, 2026
Reapplies #22062 for 0.13.

We use `WheelFilename::cache_key()` for Windows wheel download,
extraction, and metadata locks, limiting lock filenames to 69
characters, including `.lock`. This covers both PEP 658 metadata
requests and the range-request fallback.

The `wheels-v7` and `sdists-v10` bumps remove the need to share lock
filenames with older uv versions.
zanieb pushed a commit that referenced this pull request Oct 7, 2026
Reapplies #22062 for 0.13.

We use `WheelFilename::cache_key()` for Windows wheel download,
extraction, and metadata locks, limiting lock filenames to 69
characters, including `.lock`. This covers both PEP 658 metadata
requests and the range-request fallback.

The `wheels-v7` and `sdists-v10` bumps remove the need to share lock
filenames with older uv versions.
zanieb pushed a commit that referenced this pull request Oct 9, 2026
Reapplies #22062 for 0.13.

We use `WheelFilename::cache_key()` for Windows wheel download,
extraction, and metadata locks, limiting lock filenames to 69
characters, including `.lock`. This covers both PEP 658 metadata
requests and the range-request fallback.

The `wheels-v7` and `sdists-v10` bumps remove the need to share lock
filenames with older uv versions.
astral-automations-bot Bot pushed a commit to astral-sh/uv-dev that referenced this pull request Oct 10, 2026
Reapplies astral-sh#22062 for 0.13.

We use `WheelFilename::cache_key()` for Windows wheel download,
extraction, and metadata locks, limiting lock filenames to 69
characters, including `.lock`. This covers both PEP 658 metadata
requests and the range-request fallback.

The `wheels-v7` and `sdists-v10` bumps remove the need to share lock
filenames with older uv versions.

This branch was previously deployed

1 inactive deployment
automations — 4d4ac814 Deployed Sep 30, 2026 by charliermarsh via review / security review #48413
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants