You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ci: restore and save the libobs module cache in the existing jobs #3264
Wire modcache/ through .github/actions/cache in the existing build jobs: restore on PRs with a fallback to the master prefix, save on master. Narrow ci/ci_scope.py, so that a change to a single module skips unrelated OS lanes.
Acceptance criteria
The median Tier 2 Linux job time on code PRs drops measurably in a ci/cache_metrics.py before/after window.
RED then GREEN where a check applies; record before and after build times. Parent: #3256.
Claiming: #3264, stacked on #3321 (the module cache tool).
RED: ci/test_tier2_modcache.py checks three things:
validate.sh restores modules before the Tier 2 build, reconfigures with -DOBS_LIBOBS_MODULE_CACHE, and stores them after a successful build, all only when OBS_LIBOBS_MODULE_CACHE_DIR is set.
The main configure always clears the variable, so a persistent local tree never keeps stale hits.
The Tier 2 Linux build job restores .tier2-modcache (from its own PR's key, then master's prefix) and saves it only on master pushes, as zccache is.
GREEN: the wiring.
A second PR narrows ci/ci_scope.py for module-only changes.
The acceptance window (ci/cache_metrics.py before and after) can only be read once this has run on master for a while.
Claim bot:@zackees, this can't be claimed yet: it needs investigation before anyone can implement it. Comment Claiming: investigation to take the research.
The cache is wired into CI by #3336 (merged). validate.sh restores, reconfigures, builds and then runs store --prune when OBS_LIBOBS_MODULE_CACHE_DIR is set. The Tier 2 Linux build job restores libobs-modules-tier2-linux-* and saves only on master after a successful build.
Still open on this issue: the tier2-libobs-modules cache family in ci.toml is set to 200 MB as an estimate. I'll size it from the first master save, then close this.
Activity
zackees commentedon Oct 31, 2026
/investigate
Blocked by #3262 (needs
ci/libobs_modules.pyandmodcache/before CI can restore and save them).zackees commentedon Nov 1, 2026
Claiming: #3264, stacked on #3321 (the module cache tool).
ci/test_tier2_modcache.pychecks three things:validate.shrestores modules before the Tier 2 build, reconfigures with-DOBS_LIBOBS_MODULE_CACHE, and stores them after a successful build, all only whenOBS_LIBOBS_MODULE_CACHE_DIRis set..tier2-modcache(from its own PR's key, then master's prefix) and saves it only on master pushes, as zccache is.ci/ci_scope.pyfor module-only changes.The acceptance window (
ci/cache_metrics.pybefore and after) can only be read once this has run on master for a while.github-actions commentedon Nov 1, 2026
Claim bot: @zackees, this can't be claimed yet: it needs investigation before anyone can implement it. Comment
Claiming: investigationto take the research.test(ci): the Tier 2 Linux build uses the libobs module cache (#3264)
ci(tier2): restore and save the libobs module cache in the Tier 2 Lin…
test(ci): the Tier 2 Linux build uses the libobs module cache (#3264)
ci(tier2): restore and save the libobs module cache in the Tier 2 Lin…
test(ci): the Tier 2 configure writes compile_commands.json (#3264)
ci(tier2): write compile_commands.json for the module cache (#3264)
zackees commentedon Nov 1, 2026
The cache is wired into CI by #3336 (merged).
validate.shrestores, reconfigures, builds and then runsstore --prunewhenOBS_LIBOBS_MODULE_CACHE_DIRis set. The Tier 2 Linux build job restoreslibobs-modules-tier2-linux-*and saves only on master after a successful build.Still open on this issue: the
tier2-libobs-modulescache family inci.tomlis set to 200 MB as an estimate. I'll size it from the first master save, then close this.ci(scope): libobs group files start their lib-module's OS lane (obs-r…
ci(tier2): restore and save the libobs module cache in the Tier 2 Lin…
ci: size the libobs module cache family from its first master save (o…