Skip to content

Remove the legacy hash digest cache representation - #22060

Merged
charliermarsh merged 1 commit into
charlie/sdist-revision-fastidfrom
charlie/remove-hash-digest-wire
Sep 30, 2026
Merged

charliermarsh merged 1 commit into
charlie/sdist-revision-fastidfrom
charlie/remove-hash-digest-wire

Conversation

@charliermarsh

@charliermarsh charliermarsh commented Sep 28, 2026 •

Copy link
Copy Markdown
Member

We serialize HashDigest directly with Serde and rkyv, removing the legacy HashDigestWire adapter. Archived digests validate their length and hexadecimal characters through Digest<BYTES> and normalize to lowercase on deserialization.

The cache bumps cover the source-distribution, wheel, simple-index, and flat-index buckets that contain these hashes. Lockfile and index hash formats are unchanged.

@charliermarsh charliermarsh added the internal A refactor or improvement that is not user-facing label Sep 28, 2026
@charliermarsh
charliermarsh force-pushed the charlie/remove-hash-digest-wire branch from a353c75 to 144a207 Compare September 28, 2026 23:15
@charliermarsh
charliermarsh changed the base branch from charlie/refresh-cache-policy-in-place to charlie/sdist-revision-fastid September 28, 2026 23:15
@charliermarsh
charliermarsh force-pushed the charlie/remove-hash-digest-wire branch from 144a207 to 7f81f68 Compare September 29, 2026 17:16
@charliermarsh
charliermarsh force-pushed the charlie/remove-hash-digest-wire branch from 7f81f68 to 077598c Compare September 30, 2026 01:43
@charliermarsh
charliermarsh merged commit c426475 into main Sep 30, 2026
104 of 174 checks passed
@charliermarsh
charliermarsh deleted the charlie/remove-hash-digest-wire branch September 30, 2026 02:07
@codspeed

codspeed Bot commented Sep 30, 2026

Copy link
Copy Markdown

Merging this PR will degrade performance by 5.63%

❌ 1 regressed benchmark
✅ 71 untouched benchmarks
⏩ 28 skipped benchmarks1

Warning

Please fix the performance issues or acknowledge them on CodSpeed.

Performance Changes

Mode Benchmark BASE HEAD Efficiency
❌ WallTime create_shared[blocking] 41.4 ms 43.9 ms -5.63%

Tip

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


Comparing charlie/remove-hash-digest-wire (077598c) with charlie/sdist-revision-fastid (b6e3c7a)

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. ↩

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 #22060 for 0.13.

We serialize `HashDigest` directly with Serde and rkyv, removing the
legacy `HashDigestWire` adapter. Archived digests validate their length
and hexadecimal characters through `Digest<BYTES>` and normalize to
lowercase on deserialization.

The cache bumps cover the source-distribution, wheel, simple-index, and
flat-index buckets that contain these hashes. Lockfile and index hash
formats are unchanged.
zanieb pushed a commit that referenced this pull request Oct 7, 2026
Reapplies #22060 for 0.13.

We serialize `HashDigest` directly with Serde and rkyv, removing the
legacy `HashDigestWire` adapter. Archived digests validate their length
and hexadecimal characters through `Digest<BYTES>` and normalize to
lowercase on deserialization.

The cache bumps cover the source-distribution, wheel, simple-index, and
flat-index buckets that contain these hashes. Lockfile and index hash
formats are unchanged.
zanieb pushed a commit that referenced this pull request Oct 9, 2026
Reapplies #22060 for 0.13.

We serialize `HashDigest` directly with Serde and rkyv, removing the
legacy `HashDigestWire` adapter. Archived digests validate their length
and hexadecimal characters through `Digest<BYTES>` and normalize to
lowercase on deserialization.

The cache bumps cover the source-distribution, wheel, simple-index, and
flat-index buckets that contain these hashes. Lockfile and index hash
formats are unchanged.
astral-automations-bot Bot pushed a commit to astral-sh/uv-dev that referenced this pull request Oct 10, 2026
Reapplies astral-sh#22060 for 0.13.

We serialize `HashDigest` directly with Serde and rkyv, removing the
legacy `HashDigestWire` adapter. Archived digests validate their length
and hexadecimal characters through `Digest<BYTES>` and normalize to
lowercase on deserialization.

The cache bumps cover the source-distribution, wheel, simple-index, and
flat-index buckets that contain these hashes. Lockfile and index hash
formats are unchanged.

This branch was previously deployed

1 inactive deployment
automations — 077598ce Deployed Sep 30, 2026 by charliermarsh via review / security review #48398
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