Skip to content
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

libtuf.py: Staged metadata directory names with user-set suffixes #145

Closed
vladimir-v-diaz opened this issue Nov 23, 2013 · 4 comments
Closed

Comments

@vladimir-v-diaz
Copy link
Contributor

libtuf.py supports staged metadata directories so that repository maintainers may work on the next release, or multiple, without affecting the "live" repository's metadata. The new repository tool currently fixes the staged metadata directory to "metadata.staged", however, any suffix should be allowed and set by the repository maintainer(s) (e.g., "metadata.new_release", "metadata.next", etc.)

libtuf.py should allow user-set suffixes of staged metadata directories.

@ghost ghost assigned vladimir-v-diaz Nov 23, 2013
@JustinCappos
Copy link
Member

This might be more complicated. The version number needs to be
incremented. What if two groups are trying to get signatures for a
partial write simultaneously?

On Sat, Nov 23, 2013 at 6:52 PM, Vladimir Diaz notifications@github.comwrote:

libtuf.py supports staged metadata directories so that repository
maintainers may work on the next release, or multiple, without affecting
the "live" repository's metadata. The new repository tool currently fixes
the staged metadata directory to "metadata.staged", however, any suffix
should be allowed and set by the repository maintainer(s) (e.g.,
"metadata.new_release", "metadata.next", etc.)

libtuf.py should allow user-set suffixes of staged metadata directories.


Reply to this email directly or view it on GitHubhttps://github.com//issues/145
.

@vladimir-v-diaz
Copy link
Contributor Author

If both maintainers are only incrementing the version number, that means the resulting metadata will be identical. That is, both metadata updates are treated as a write_partial() and their respective version numbers automatically incremented. In that case, both signatures may be merged.

If you are instead asking about simultaneous access to the repository:
We have mentioned locked files and directories. Repository maintainers may also be restricted to specific staged metadata. Santiago and I will come up with a precise proposal in the near future that we can then review.

@JustinCappos
Copy link
Member

If both maintainers are only incrementing the version number, that means
the resulting metadata will be identical. That is, both metadata updates
are treated as a write_partial() and their respective version numbers
automatically incremented. In that case, both signatures may be merged.

Only if they are writing the same content. Otherwise they will each have
version number n+1 which will conflict.

If you are instead asking about simultaneous access to the repository:
We have mentioned locked files and directories. Repository maintainers may
also be restricted to specific staged metadata. Santiago and I will come up
with a precise proposal in the near future that we can then review.

Okay, sounds good.

@trishankatdatadog
Copy link
Member

Closing because stale

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

No branches or pull requests

3 participants