-
Notifications
You must be signed in to change notification settings - Fork 275
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
RepositorySimulator: add support for delegated hash bins #1639
Comments
IMO this feature should not be implemented in test code but rather be part of repository tooling (#1136). |
absolutely true as the mid/long term goal but it might still make sense to implement in RepositorySimulator first:
|
The hashed bin delegation code in repository_tool was cleaned up and simplified when the Warehouse work kicked off. See, for example, #1007 and #1012. Specifically: As a follow-on we refactored some of the helper functions to be public API (see #1058) in repository_lib for use with an early iteration of the metadata API: |
Can I take this? |
Seems like the latest tendency is towards implementing the delegated hash bins functionality in a repository-side and test code at a later stage. For this reason the issue can be re-scoped to include only the needed tests from a client point of view. Let's use the newly added delegated hash bins example as a reference #1700. An
Following the chosen prefix length and number of bins in the example: rolename = "f8-ff"
path_hash_prefixes = ["f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"]
`test_hashed_bins.ext` -> fff0838676c1dacb8827b02511e89f85b43814a74dd2c3ffb31d952a1db94311
Currently two PRs add tests for delegated roles and it would be nice if the hashed bins test is included after them in |
Description of issue or feature request:
Currently
repository_tool.py
provides an easy way to distribute a large number of target files over multiple delegated roles (hashed bins). A feature described in PEP458 that would be used in warehouse.python-tuf/tuf/repository_tool.py
Line 2494 in 2206fc9
Having such functionality in
RepositorySimulator
that usesmetadata api
will be useful for testing the newer code.The text was updated successfully, but these errors were encountered: