[CI] Measure what debug info costs a ccache entry

Throwaway diagnostic, not for merge. Adds COCKATRICE_DEBUG_INFO_LEVEL (cache
option, empty by default, so local and release builds are unchanged) and runs
the Arch debug leg and the Debian 13 release leg cold with -g0 and -g1 against a
6G bound, so the cache size of each configuration can be compared with the
1.2 GB the default flags produce.

One Arch configuration costs 1.2 GB with the default flags and a cache bigger
than that served 1058 of 1059 calls, so the per-leg bounds cannot hold a build
and evict what the next one asks for. This measures whether dropping DWARF is
what makes a whole configuration fit.
This commit is contained in:
Lukas Brübach 2026-11-04 12:29:41 +01:00
parent a1069edd8a
commit 2bf0e3f93a
3 changed files with 73 additions and 59 deletions

View file

@ -163,6 +163,12 @@ export CMAKE_POLICY_VERSION_MINIMUM=3.10
# Add cmake flags
flags=("-DCMAKE_BUILD_TYPE=$BUILDTYPE")
# PROBE ONLY (throwaway ccache diagnostic, see .github/workflows/ccache-probe.yml): extra
# -D flags from the environment, because this script has no generic passthrough.
if [[ ${PROBE_CMAKE_ARGS:-} ]]; then
# shellcheck disable=SC2206
flags+=($PROBE_CMAKE_ARGS)
fi
if [[ $MAKE_SERVER ]]; then
flags+=("-DWITH_SERVER=1")
fi