Skip to content

Separate registry response context from publish failures - #21605

Draft
zanieb wants to merge 2 commits into
zb/diagnostic-info-20260910from
zb/publish-response-info-20260910
Draft

zanieb wants to merge 2 commits into
zb/diagnostic-info-20260910from
zb/publish-response-info-20260910

Conversation

@zanieb

@zanieb zanieb commented Sep 10, 2026 •

Copy link
Copy Markdown
Member

Registry upload failures currently mix the HTTP status and server response into one cause, making multiline responses hard to distinguish from uv's own explanation. Use the typed presentation API to keep the status or endpoint failure as the cause while rendering the server's response in a separate info: block. PyPI JSON errors, RFC 9457 problem details, and plain-text responses retain their useful context without changing upload behavior or exit statuses.

Prior work:

Comment thread crates/uv-publish/src/lib.rs Resolved
@zanieb
zanieb force-pushed the zb/publish-response-info-20260910 branch from 0699a04 to 0aec510 Compare September 11, 2026 18:12
@zanieb
zanieb force-pushed the zb/publish-response-info-20260910 branch from 0aec510 to 5454af8 Compare September 11, 2026 18:37
@zanieb
zanieb force-pushed the zb/publish-response-info-20260910 branch from 5454af8 to 6d256df Compare September 11, 2026 19:09
@zanieb
zanieb force-pushed the zb/publish-response-info-20260910 branch from 6d256df to 16a37a6 Compare September 11, 2026 20:12

This branch was previously deployed

1 inactive deployment
automations — b826df03 Deployed Sep 11, 2026 by zanieb via review / security review #46475
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant