refactor: experimental repodata v3 - #2093
Merged
Merged
Conversation
Remove the packages.whl top-level key from RepoData, Shard, and PatchInstructions. Wheel packages should now be stored under experimental_v3.whl instead.
wolfv
approved these changes
Feb 20, 2026
Add a new `v3` top-level key to repodata that uses extension-less `ArchiveIdentifier` keys (name-version-build) with `tar.bz2`, `conda`, and `whl` sub-keys. This enables a backwards-compatible path for evolving the repodata format. Changes: - Add `ExperimentalV3Packages` struct with tar_bz2, conda, whl sub-maps - Add `experimental_v3` field to `RepoData`, `Shard`, and `PatchInstructions` - Add `DistArchiveIdentifier::new()` constructor - Update sparse loader with `LazyV3Packages` for deferred parsing - Update sharded subdir gateway to chain v3 packages - Update `SubdirRunExportsJson` to look up v3 run exports - Migrate test data from `packages.whl` to `v3.whl` format
baszalmstra
force-pushed
the
experimental-v3
branch
from
February 20, 2026 13:38
ff1d613 to
01fda61
Compare
Merged
2 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This PR implements experimental support for a combination of:
v3ceps#146The PR introduces the "v3" key in repodata (including shards) with subkeys "conda", "tar.bz2", and "whl". Things still missing are:
info.repodata_revisionsas defined in CEP XXXX: A backwards-compatible repodata update strategy for repodatav3ceps#146. I kept this out because the current CEP document doesn't reflect our latest conversations.Caution
Breaking: The
packages.whlkey is no longer supported. Any repodata usingpackages.whlmust migrate wheel records to v3.whl. This affects the experimental wheel support that was not yet widely deployed.Note that the syntax for conditional dependencies has also changed in #2007 to follow the CEPs more closely.
@danyeaw This will affect your work.
How Has This Been Tested?
CI runs tests that should verify correctness.
AI Disclosure
Tools: Claude Code Opus 4.6 Extended
Checklist: