Skip to content

ci: restore and save the libobs module cache in the existing jobs #3264

Closed

Description

@zackees

Scope

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.

Activity

  1. added
    infra
    P3
    size:M
    on Oct 31, 2026
  2. zackees commented on Oct 31, 2026

    @zackees
    MemberAuthor

    /investigate
    Blocked by #3262 (needs ci/libobs_modules.py and modcache/ before CI can restore and save them).

  3. added
    needs-investigation
    on Oct 31, 2026
  4. zackees commented on Nov 1, 2026

    @zackees
    MemberAuthor

    Claiming: #3264, stacked on #3321 (the module cache tool).

    1. 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.
    2. GREEN: the wiring.
    3. 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.

  5. github-actions commented on Nov 1, 2026

    @github-actions

    Claim bot: @zackees, this can't be claimed yet: it needs investigation before anyone can implement it. Comment Claiming: investigation to take the research.

  6. zackees commented on Nov 1, 2026

    @zackees
    MemberAuthor

    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.

  7. moved this from Investigating to Done in obs-rust Multiviewon Nov 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3infraneeds-investigationsize:M

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions