PEP 694: Add some clarifications based on DPO feedback#5012
Merged
Conversation
* Close some race conditions * Describe conflict resolution and name reservation
Documentation build overview
|
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.
the release's filename namespace: the server reserves the session's filenames for the duration of a
publish so that concurrent uploads (including through the legacy API) receive a
409 Conflict, andreleases the reservation if the publish fails. Clarify that the conflict check at file upload session
creation is best-effort and that the authoritative check happens atomically at publish time, reported
synchronously as a
409 Conflictor, for a deferred publish, by moving the session to theerrorstate with the reason in
notices.(
publishedorcanceled) state, the server SHOULD keep serving its status URL reporting theterminal status for an index-specific retention period, after which it MAY return
404 Not Found,and that clients must be prepared for such a
404. Reconcile the cancellation rules accordingly: thedata-bearing and action URLs may become unavailable once purged, while the status URL is retained.
Tie file upload session status URL retention to the parent publishing session: while the parent is
non-terminal the server SHOULD keep its file upload session status URLs valid, and once the parent
terminates they are retained no longer than the parent's status URL.
multi-project releases (all projects can be fully staged before a final step publishes each one) and lay a
foundation for a possible future "publish multiple projects" endpoint.