bazelbuild/bazel

Add bazel flag for max_cas_entry size.

Open

#18.449 geöffnet am 19. Mai 2023

Auf GitHub ansehen
 (8 Kommentare) (3 Reaktionen) (1 zugewiesene Person)Java (4.465 Forks)batch import
P3help wantedteam-Performanceteam-Remote-Exectype: feature request

Repository-Metriken

Stars
 (25.384 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 22T 20h) (77 gemergte PRs in 30 T)

Beschreibung

Description of the feature request:

As of today, the max_cas_entry_size is declared at the server side. In the event that Bazel sends a write request containing a digest larger than the specified max_cas_entry_size, the remote cache throws an 'out_of_range' error. By introducing a Bazel flag for max_cas_entry_size, it becomes possible to validate it on the client side, potentially eliminating the need for a round trip to the server. This improvement has the potential to enhance build performance.

What underlying problem are you trying to solve with this feature?

Improved build performance with remote cache.

Contributor Guide