Should failed actions be cached?
According to this [1] bug report on the Bazel mailing list buildgrid stores failed actions (exit code not equal 0) in the action cache. We had this discussion in Bazel a while ago and decided to not allow failed actions to be cached. However, I believe we forgot to add this restriction to the API specification. I suppose we can also add no such restrictions and update Bazel to treat a failed cached action as a cache miss.
Do you believe that caching failed actions is valuable?
[1] https://groups.google.com/d/msg/bazel-discuss/kuRjYFfhDd0/y-Y5nfN1EAAJ