Replies: 1 comment 1 reply
-
Hey @kvet, no you aren't doing anything wrong. Bazel has two "classes" of rules as you may be aware -- normal build rules which go from determinate input files and configuration to determinate output files, and "repository rules" which are allowed to go from configuration ex nihilo to indeterminate files by performing arbitrary code execution. This is the basis for how all the Bazel rulesets implement 3rdparty dependencies. Entries in the remote cache are identified by fingerprints reflecting the fingerprints of all input files transitively among other things. Since workspace rules -- that say run Turning on the downloader also doesn't (yet) help because Operationally this means it's critical to use stateful CI runners rather than stateless ones so that the results of the But in general I think it's safe to say Python under Bazel gets less mileage out of remote caching than say C or Go compilation since for the most part |
Beta Was this translation helpful? Give feedback.
-
Hi, I am trying to setup bazel remote cache. It works out of the box for build and test rules. But I didn't manage to get it working with pip. And because packages installation is quite slow, I don't see noticeable benefits of remote cache.
Here is my setup:
I am running local bazel-remote:
And here is content of
.bazelrc
:Am I doing something wrong? Or doesn't it work at all? Haven't found any information on web...
Beta Was this translation helpful? Give feedback.
All reactions