Consider adding support for UncachedActionResult
Context
The UncachedActionResult message is a Bazel Buildbarn specific proto. message that maps in CAS an Action to its corresponding ActionResult. This message allows passing the mapping information to bb-bowser for actions which result has not been stored in action cache. There may be two reasons for that:
- The build failed and the remote execution service does not cache failed builds.
- The build client submitted an action with the
do_not_cacheflag set.
BuildGrid, by default, is caching ActionResult messages for failed builds. However, support for configurable failed build caching policy has recently been added. That means, once bb-browser URL support will be implemented (#157 (closed)), full build reports won't be available in case 2. but also in case 1. if caching of failed build has explicitly been turned off. Supporting full build reports in every cases would require to add support fo the UncachedActionResult custom message in BuildGrid.
Task Description
- Import Bazel Buildbarn custom
UncachedActionResultproto. definition. - Store
UncachedActionResultmessage in CAS for failed build. - Generate
uncached_action_resultURLs for these builds.
Acceptance Criteria
If build failure caching is disabled, an uncached_action_result instead of the regular action URL is returned to the client.