Allow Fetch
to match a subset of qualifiers on a Push
ed asset?
#8
Labels
enhancement
New feature or request
Fetch
to match a subset of qualifiers on a Push
ed asset?
#8
Currently we demand that a Fetch request match all the qualifiers for a previously Pushed blob to be found, however this doesn't line up with how BuildStream plans on using the Remote Asset API. In https://gitlab.com/BuildStream/buildstream/-/issues/1274 it's suggested that BuildStream will use a different set of Qualifiers for Push and Fetch requests - fetch qualifiers being a subset of those pushed. As a result this will mean that Push'd sources will never be Fetch'd by BuildStream. Note that BuildStream doing this is explicitly allowed in the spec, but our current implementation is also fully compliant with the spec...
Our implementation currently uses a list of all qualifiers as part of the inputs to a hash, which is in turn used as the key for a BlobAccess. As a result, matching on just a subset of qualifiers is a non-trivial change.
This may prove to be impossible to implement with #3, but it's worth having this on the radar.
The text was updated successfully, but these errors were encountered: