Skip to content

perf(ci): Tier 2 Linux build spends ~15 s of soldr setup loading a cook cache Corrosion never usesΒ #3027

Closed

Description

@zackees

Set Up soldr πŸ¦€ in Rust Tier 2 Linux 🐧 (build) takes 24–40 s (queue run 41023136317: 28 s). Breakdown from that log:

  • 00:00–00:09 toolchain/registry/cook archive restores (solo-toolchain 178 MB, cook-base 23 MB, registry 6 MB)
  • 00:09–00:13 cargo --version fetches LLVM 21.1.5 + libxml2 from raw.githubusercontent.com (~4 s, uncached)
  • 00:13–00:25 soldr load of the cook base: 727 files, mtimes replayed on 118,946 files (12 s)
  • 00:25–00:28 soldr cook --release (2.7 s)

The cook output is never used by this job: the build compiles Rust only through Corrosion (libobs/cmake/rust.cmake, plugins/obs-nvenc), which uses its own target dir under the CMake build tree (<build>/cargo/build) and an explicit Rust_CARGO_TARGET triple, and validate.sh never touches the workspace target/. So ~15 s of the step (plus the cook-base save on master) is waste.

Fix (in repo): prebuild-deps: none on this job, keeping cargo-registry-cache: true explicitly so Corrosion's cargo still gets the crate sources offline. Expected: setup ~28 s -> ~13 s.

The uncached LLVM fetch (~4 s) is setup-soldr/soldr territory; not changed here.

Activity

  1. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Claiming: #3027 together with #3026 (same job, one PR). Plan: RED ci/test pin, GREEN workflow fix; PR today.

  2. added
    ready
    on Oct 30, 2026
  3. zackees commented on Oct 30, 2026

    @zackees
    MemberAuthor

    Fixed by #3028 (merged bfae421). Master push run 41027144517: cook: skipped - prebuild-deps=none, and Set Up soldr took 9 s (08:35:00.8 to 08:35:10.0), down from 28 s in queue run 41023136317. The Tier 2 build ran green with Corrosion, so the cooked target/ was never needed. What's left is the uncached ~4 s LLVM fetch inside cargo --version (soldr/setup-soldr), which this change doesn't touch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

ready

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions