Skip to content

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

Merged

Conversation

joshuagl
Copy link
Member

  • 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.

Fixes #184

* 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
Copy link
Collaborator

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.

Copy link
Member Author

@joshuagl joshuagl Sep 22, 2021

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]>
@joshuagl
Copy link
Member Author

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.

mnm678
mnm678 previously approved these changes Sep 22, 2021
@joshuagl
Copy link
Member Author

joshuagl commented Nov 5, 2021

@lukpueh @trishankatdatadog could we get a second review here? Thank you!

lukpueh
lukpueh previously approved these changes Nov 8, 2021
Copy link
Member

@lukpueh lukpueh left a 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]>
@joshuagl joshuagl dismissed stale reviews from lukpueh and mnm678 via 9d78171 November 9, 2021 14:42
@joshuagl
Copy link
Member Author

joshuagl commented Nov 9, 2021

Thanks for the review both. I committed Lukas' change, which dismissed existing reviews. Please take another look @mnm678 @lukpueh

lukpueh
lukpueh previously approved these changes Nov 9, 2021
mnm678
mnm678 previously approved these changes Nov 9, 2021
Co-authored-by: Trishank Karthik Kuppusamy <[email protected]>
@joshuagl joshuagl dismissed stale reviews from trishankatdatadog, mnm678, and lukpueh via 75b1bff November 10, 2021 10:56
@joshuagl
Copy link
Member Author

Thanks for the suggestion Trishank. I've committed it and dismissed all reviews. Please take another look all @mnm678 @lukpueh @trishankatdatadog

Copy link
Member

@lukpueh lukpueh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Still LGTM!

@joshuagl joshuagl merged commit 107be15 into theupdateframework:master Nov 11, 2021
@joshuagl joshuagl deleted the joshuagl/consistent-snapshots branch November 11, 2021 13:21
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.

should repository make unversioned root metadata available or not?
4 participants