Skip to content

Add test coverage for wheel metadata redirect behavior - #21353

Merged
zanieb merged 5 commits into
mainfrom
zb/range-reader-redirect-tests
Aug 29, 2026
Merged

zanieb merged 5 commits into
mainfrom
zb/range-reader-redirect-tests

Conversation

@astral-automations-bot

@astral-automations-bot astral-automations-bot Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

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 #21347 and its follow-up implementation.

These are unit tests overlapping with #21350

@astral-sh-bot

astral-sh-bot Bot commented Aug 28, 2026

Copy link
Copy Markdown

uv test inventory changes

This PR changes the tests when compared with the main base revision.

  • Added tests: 3
  • Removed tests: 0
  • Changed suites: 1
uv-client::it: +3 / -0

Added:

  • uv-client::it::remote_metadata::remote_metadata_redirect_cross_origin
  • uv-client::it::remote_metadata::remote_metadata_redirect_method_specific_target
  • uv-client::it::remote_metadata::remote_metadata_redirect_same_origin

Removed: none

zanieb added a commit that referenced this pull request Aug 29, 2026
…n tests (#21350)

Require the private registry integration tests to use wheel metadata
range requests for Artifactory, CodeArtifact, Cloudsmith, and GitLab.
Leave the Azure assertion disabled and linked to #21349; Google Artifact
Registry and Gemfury remain unchanged because the configured endpoints
do not currently satisfy the requirement.

Unit tests are added separately in
#21353

Co-authored-by: Zanie Blue <[email protected]>
@zanieb
zanieb enabled auto-merge (squash) August 29, 2026 14:01
@zanieb
zanieb merged commit 7f51bb9 into main Aug 29, 2026
34 checks passed
@zanieb
zanieb deleted the zb/range-reader-redirect-tests branch August 29, 2026 14:04
zanieb added a commit 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.

1 participant