-
Notifications
You must be signed in to change notification settings - Fork 56
Clean up "Writing consistent snapshots" section #187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Clean up "Writing consistent snapshots" section #187
Conversation
* Match how metadata and target filenames are referred to in the detailed client workflow, i.e. filename.ext -> FILENAME.EXT * Remove suggestion to write a version of the root metadata without a version prefix. We only ever look for version-prefixed version of root metadata. Signed-off-by: Joshua Lock <[email protected]>
|
||
On the other hand, consistent target files should be written to | ||
non-volatile storage as digest.filename.ext. This means that if the | ||
non-volatile storage as HASH.FILENAME.EXT. This means that if the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In general I like DIGEST
better than HASH
, but I know that we use HASH
elsewhere in the spec. No need to change it unless others feel strongly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used HASH
because that's what we use in section 5.7.3 of the detailed client workflow and the name of the attribute in metadata is 'hashes'.
* More cleanups of filename.ext -> FILENAME.EXT * More use of RFC-2119 keywords to clarify repository handling of consistent snapshots * Link to CONSISTENT_SNAPSHOT attribute definition * Clarify that all versions of root metadata MUST be kept for outdated clients to be able to update Signed-off-by: Joshua Lock <[email protected]>
Thanks for the review @mnm678, I've addressed your comments and clarified some more of the text in the "Writing consistent snapshots" section. Please take a look. |
@lukpueh @trishankatdatadog could we get a second review here? Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great set of clarifications, @joshuagl! I added one minor suggestion. Feel free to ignore if you think the phrase is obvious without it.
Integrate suggestion from code review to make the sentence clearer. Co-authored-by: lukpueh <[email protected]>
Co-authored-by: Trishank Karthik Kuppusamy <[email protected]>
75b1bff
Thanks for the suggestion Trishank. I've committed it and dismissed all reviews. Please take another look all @mnm678 @lukpueh @trishankatdatadog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Still LGTM!
client workflow, i.e. filename.ext -> FILENAME.EXT
version prefix. We only ever look for version-prefixed version of root
metadata.
Fixes #184