buchgr / bazel-remote

A remote cache for Bazel
https://bazel.build
Apache License 2.0
576 stars 150 forks source link

How to setup lifecycle rule for s3 backend for bazel remote cache? #737

Open microyahoo opened 4 months ago

microyahoo commented 4 months ago

As the cache data gradually grows, how to setup lifecycle rule for s3 backend for bazel remote cache, and without reducing build speed?

mostynb commented 4 months ago

Hi, I think there is a setup described in #624 that might help do what you want, but it is not perfect- see the proposed patch in #625. I wonder if you could help test this? If so, we might be able to land #625.

microyahoo commented 4 months ago

hi @mostynb, thanks for your quick response.

I wonder if you could help test this? If so, we might be able to land https://github.com/buchgr/bazel-remote/pull/625.

Yes, I'd be happy to help with testing this, but I'm not very familiar with bazel remote, could you tell me on what needs to be tested? How to verify that expectations are met? Or do we just need to verify whether the modification time has been updated? Thanks.