Why bazel remote cache hit is greater than total actions number

Viewed 99

We are using Bazel to build and test with remote cache. And when running bazel test, sometimes Bazel reports that the remote cache hits number is greater than the total actions number. In which cases can this happen? I just assume that the remote cache hit should always less than the total actions.

The Bazel version we are using is 3.7.0

1 Answers

Bazel documentation suggests:

If you are getting 0 processes (or a number lower than expected), run bazel clean followed by your build/test command.

Maybe for some reason your cache is "damaged".

Related