Skip to content

infra: obs-studio-libs prebuilt build-dependency cache (phase 2 of #520), gated on CI-time measurement #525

Closed

Description

@zackees

Follow-up (b) from #520.

Phase 2 of #520: an obs-rust/obs-studio-libs cache of manylinux_2_28 builds of the Linux build-time dependencies (FFmpeg with nv-codec-headers, x264, libvpl, librist, srt, libdatachannel, ...), described with zackees/manifest.json. Never NVIDIA driver libraries or the CUDA runtime.

Gate: start only after #427 data shows dependency setup costs enough CI minutes to pay off; record the decision on #520. Creating the repo and its producer workflow needs explicit maintainer sign-off. Packaging changes need a test-appimage.sh lane (newer-glibc container, saved NVENC profile) per AGENTS.md.

Refs #520, #427, #498.

Activity

  1. zackees commented on Oct 13, 2026

    @zackees
    MemberAuthor

    Decision: no-go for obs-studio-libs (phase 2 of #520), for now

    #427 has job- and step-level timings but none for the build-dependency setup itself, so I measured it from the step logs of the successful build jobs in Push run 38454083952 (2026-10-13, one sample per job). The step totals of five runs (38454083952, 38453537500, 38442696317, 38452710972, 38456741085) were used only to rank where CI time goes.

    Job How dependencies arrive today Time spent on them Job's build step
    Windows x64 prebuilt obsproject/obs-deps zips (x86, x64, Qt6) + CEF, downloaded by CMake ~18 s (19:42:03.8 → 19:42:21.7) 235 s
    macOS arm64 prebuilt obs-deps universal + Qt6 tarballs + CEF ~10 s (19:46:45.4 → 19:46:55.0) 186 s
    Ubuntu apt: 301 packages / 127 MB, including FFmpeg (libavcodec-dev …), x264, Qt, X11/Mesa; plus a 7-package apt run ~52 s (47 s + ~5 s); FFmpeg/x264 are a few of the 301 packages 284 s
    Flatpak every dependency module is already a flatpak-builder cache hit (obs-deps-buildstream-{base,devel,devtools,qt}, cef, all "skipping build") 0 s building deps; ~70 s restoring the builder cache tarball, which a prebuilt cache would not remove 617 s

    What a cache could save:

    • Windows and macOS: nothing. They already use a prebuilt cache (upstream obs-deps), and it takes seconds.
    • Flatpak: nothing. Its dependencies are already cached; its time goes to the OBS compile and to debuginfo compression (infra: CI: PR runs spend most of their time on per-run setup #427 item 1).
    • Ubuntu: at most ~20–30 s per job. A cache of FFmpeg/x264 would still need a download and extract, which takes ~5–10 s judging by obs-deps on the other OSes. Qt, X11, Mesa and the rest would still come from apt.

    That is under a minute per run in total. The cost would be a new repo, a producer workflow (which needs maintainer sign-off) and a test-appimage.sh lane. The same runs show where the minutes actually go, and it is #427's list: Rust Tier 2 Linux (1832 s summed over the five runs, mostly the uncached Docker image), Rust Tests on Ubuntu (1035 s), Flatpak (711 s) and Rust Cross Lint (704 s).

    Decision: no-go. Keep the effort on #427 items 1–4.

    Revisit if a Linux job starts compiling FFmpeg/x264 (or similar) from source. The likeliest case is a manylinux_2_28 or AppImage build that cannot use the distro's apt packages. Once that compile step takes more than ~2 minutes per run, phase 2 pays for itself.

    To re-measure: in a run's job logs, take the timestamps of the obs-deps Setting up Pre-Built / Downloading lines (Windows/macOS), of the Reading package lists → last Setting up lines of the main apt install (Ubuntu), and of the flatpak-builder Cache hit / Building module lines (Flatpak).

    The obs-studio-libs repo has not been created.

  2. zackees commented on Oct 16, 2026

    @zackees
    MemberAuthor

    Decision (maintainer, 2026-10-16): go. #926 moves the AppImage onto a glibc 2.28 (manylinux_2_28) base, where Qt 6.10, the FFmpeg stack, PipeWire and others must be built from source (about an hour on a clean machine). That changes the gate: without a prebuilt cache every clean build would recompile Qt.

    Refs #520, #926, #927.

  3. zackees commented on Oct 25, 2026

    @zackees
    MemberAuthor

    Closing as done. The cache this issue asked for exists and master uses it:

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

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions