From 650f97c15d0bd9e8c5d725afe53d4bb2eab92770 Mon Sep 17 00:00:00 2001 From: Tristan Partin Date: Wed, 17 Jun 2026 19:05:43 +0000 Subject: [PATCH v1 1/7] Use long options for ccache commands -s, -X, and -z don't mean much to someone reading this script unless they are very familiar with the ccache CLI. Signed-off-by: Tristan Partin --- src/tools/ci/gha_ccache_decide.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/ci/gha_ccache_decide.py b/src/tools/ci/gha_ccache_decide.py index a8e32310d0..ea9fbe9452 100644 --- a/src/tools/ci/gha_ccache_decide.py +++ b/src/tools/ci/gha_ccache_decide.py @@ -49,7 +49,7 @@ def main(): # Log ccache stats, useful for more in-depth understanding. To avoid # swamping the output, collapse it in a group. print("::group::ccache_stats") - print(run(["ccache", "-s", "-vv"])) + print(run(["ccache", "--show-stats", "-vv"])) print("::endgroup::") # compute cache hit ratio @@ -84,12 +84,12 @@ def main(): # probably be improved. print("::group::ccache_shrink") print(run(["ccache", "--evict-older-than", f"{45*60}s"])) - print(run(["ccache", "-X", "10"])) + print(run(["ccache", "--recompress", "10"])) # Don't store ccache stats, otherwise we'd need to reset the cache access # data after restoring the cache in the next run, to be able to get the # hit ratio of the CI run. - print(run(["ccache", "-z"])) + print(run(["ccache", "--zero-stats"])) print("::endgroup::") # Before continuing, try to kill all ccache instances, otherwise -- Tristan Partin https://tristan.partin.io