bazelbuild / remote-apis

An API for caching and execution of actions on a remote system.
Apache License 2.0
339 stars 118 forks source link

Support range downloads in the Remote Asset API #305

Open harshita-gupta opened 4 months ago

harshita-gupta commented 4 months ago

This issue is a follow-up to https://github.com/bazelbuild/bazel/issues/22207, which has more context on the motivation and need for range downloads

I'm using https://github.com/chainguard-dev/rules_apko, which depends on range downloads. In bazel >7.1, this is achieved by setting the headers attr.

The remote download APIs currently don't support range downloads, so I can't use rules_apko in my bazel workspace.

sluongng commented 3 months ago

I recently looked at this and my understanding is that range request happens via http Headers, and Bazel is currently propagating these headers through a set of remote asset API qualifiers?

If that's the case, https://github.com/bazelbuild/remote-apis/issues/301 could be relevant because the majority of the Remote Asset APIs don't support Bazel's custom qualifiers but don't report errors when these qualifiers are requested.