Skip to content

Add test coverage for wheel metadata redirect behavior - #910

Closed
zaniebot wants to merge 1 commit into
mainfrom
zb/range-reader-redirect-tests
Closed

zaniebot wants to merge 1 commit into
mainfrom
zb/range-reader-redirect-tests

Conversation

@zaniebot

@zaniebot zaniebot commented Aug 28, 2026 •

Copy link
Copy Markdown
Collaborator

Wheel metadata extraction takes a different path for redirects depending on whether range requests stay within an origin, cross origins, or receive method-specific targets. Capture the current behavior for all three cases, including source credential propagation, cross-origin credential stripping, destination credentials, and the existing streaming fallback.

This provides an explicit behavioral baseline for astral-sh#21347 and its follow-up implementation.

@astral-automations-bot astral-automations-bot Bot added internal A refactor or improvement that is not user-facing internal:testing Internal testing of behavior labels Aug 28, 2026
@zaniebot
zaniebot force-pushed the zb/range-reader-redirect-tests branch 4 times, most recently from ae18601 to a43f680 Compare August 28, 2026 19:55
@zaniebot
zaniebot force-pushed the zb/range-reader-redirect-tests branch from a43f680 to 043e682 Compare August 28, 2026 20:02
@zanieb zanieb changed the title Cover wheel metadata redirect behavior Add test coverage for wheel metadata redirect behavior Aug 28, 2026
@zanieb
zanieb marked this pull request as ready for review August 28, 2026 20:39
@astral-automations-bot

Copy link
Copy Markdown

Promoted to #21353.

zanieb added a commit to astral-sh/uv that referenced this pull request Aug 29, 2026
Extend the wheel metadata redirect coverage with a server that accepts
bounded ranges but rejects suffix ranges, and redirected storage that
rejects ranged requests while allowing streaming. Move the
method-specific case's metadata away from the ZIP directory so enabling
ranges must preserve the redirect and credentials across multiple reads.

Stacked on the coverage from astral-sh#910, promoted to
#21353. This adds no production behavior changes.

---------

Co-authored-by: Zanie Blue <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal:testing Internal testing of behavior 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