-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Description
Description of the feature request:
Sometimes, it's useful to be able to dig into why a particular action was not cached by remote execution.
The usual culprits are a changed input file, different input files or a different command line. Bazel provides ample tools to query what it would run (aquery) and what it did (--execution_log_*_file or the BEP) but neither of these is amenable to post-facto debugging:
aqueryrequires extra conscious effort- The execution logs are too large to be always uploaded
- The BEP does not contain enough information
So it would be nice to be able to do some sort of logging to answer questions like "why did this build done two days ago did not reuse the cached actions from that other build done 30 minutes before it".
This doesn't necessarily need to be done within Bazel (although that's the particular hammer I have); I could also imagine logging on the remote execution side where it is logged with actions are done by which Bazel invocations.
What underlying problem are you trying to solve with this feature?
Being able to tell why a particular action was not cached so that future cache hit rates are higher.
Which operating system are you running Bazel on?
No response
What is the output of bazel info release?
No response
If bazel info release returns development version or (@non-git), tell us how you built Bazel.
No response
What's the output of git remote get-url origin; git rev-parse master; git rev-parse HEAD ?
No response
Have you found anything relevant by searching the web?
No response
Any other information, logs, or outputs that you want to share?
No response