Skip to content

ci: soldr cook fails since #2061, so every Rust lane compiles all dependencies #2603

Closed

Description

@vpacher

What

Since #2061 (2026-10-24 06:12 UTC), soldr cook fails in every CI lane. setup-soldr continues without cooked dependencies, so the cook cache is never saved and never restored. Every Rust lane (Fast Gate, Rust Tests, Rust Tier 2, Cross Lint, Cross Compile) compiles all external crates from source, on every run.

Master push run Fast Gate cook cache
40063718396 (2026-10-24 04:47, before #2061) HIT, 886.7 MB restored in 18.5 s
40487191660 (2026-10-27, now) MISS (no match); cook: failed with exit 101; save skipped

Log of the current failure (master Fast Gate, same in every lane):

cook: running '.../soldr cook --release'
error: serde_json requires that either `std` (default) or `alloc` feature is enabled
error: could not compile `serde_json` (lib) due to 1 previous error
thread 'main' panicked at src/recipe.rs:218:27: ... <chef::recipe::Recipe>::cook
cook: failed with exit 101 after 11.2s; continuing without cooked deps
...
cook-cache: post-step layered save_layer=none hit=false ran=false
cook-cache: layered cache warm or cook did not run successfully - skipping save

The repository cache has no cook-base-v2-* entry for any platform.

Cause

#2061 declares serde_json = { version = "=1.0.151", default-features = false } in the root [workspace.dependencies]. Three members turn the default features on again with serde_json = { workspace = true, default-features = true }: rust/obs-build, rust/obs-preflight, rust/obs-studio-rust. Cargo honours this override. The cargo-chef recipe that soldr cook builds does not, so serde_json builds with neither std nor alloc and fails.

Reproduction

On Linux (CT104, soldr 0.9.31; CI uses 0.9.43), in a checkout of master:

soldr cook --release        # exit 101, serde_json error above
soldr cook --profile dev    # exit 101, same error

Plan

One PR: in the three members, replace default-features = true with features = ["std"]. std is the default feature of serde_json, so the normal build does not change, and Cargo.lock does not change. Verified on CT104: with this change, soldr cook --release and soldr cook --profile dev both exit 0.

Notes for the coordinator (not in the PR)

  • Cache size. When the cook saves again, each platform and recipe variant needs about 0.9 GB or more. The repository cache is at 7.9 GB of 10 GB now (Flatpak 2.1 GB, Tier 2 zccache 1.3 GB, Windows ccache 1.0 GB, ...). The cook layers and the app caches can evict each other. A larger cache limit or fewer cook variants can be necessary.
  • Silent failure. cook: failed ... continuing without cooked deps is a plain log line. A ::warning:: annotation, or a failure on master, would make the next regression visible.
  • Found while measuring CI time for ci: A lost runner blocks the merge queue for up to 2 h; parity tests are most of the Rust test time #2593.

Activity

  1. vpacher commented on Oct 27, 2026

    @vpacher
    MemberAuthor

    Claiming: #2603

    Plan as in the description: one PR, the three member manifests use features = ["std"] for serde_json.

  2. added
    ready
    on Oct 27, 2026
  3. vpacher commented on Oct 27, 2026

    @vpacher
    MemberAuthor

    Verified on master. Master push run 40494318282 (7140eb3d4, #2604): soldr cook runs to the end in every lane, and the post step saves the base layer (save_layer=base hit=false ran=true). The repository cache now has three cook layers:

    Key (end) Size Saved by
    f9e7e4902-ldb56d793b33c4cd8-soldrv0.9.43-xlinux-host-v1 1157 MB Fast Gate
    f1c7475cf-ldb56d793b33c4cd8-soldrv0.9.43-xlinux-host-v1 1285 MB Rust Cross Lint (Windows, macOS)
    f9e7e4902-ldb56d793b33c4cd8-soldrv0.9.43-xlinux-container-v1 20 MB Rust Tier 2 Linux (build)

    Gap: no macOS and Windows layers yet. That master push ran no macOS or Windows Rust lane (#2604 changed only manifests, so the scope skipped them). The Rust Tests and Rust Tier 2 lanes on macOS and Windows, the longest jobs, keep compiling all dependencies until a master run that includes them saves their layers. A workflow_dispatch full run on master, or a scheduled run, would fill them.

    Cache size. The repository cache is at 8.6 GB of 10 GB (32 entries); the three new layers are 2.4 GB of that. The macOS and Windows layers will add more than 1 GB each. GitHub then evicts the least recently used entries, which can be cook layers or the app caches (Flatpak 2.1 GB, ccache, zccache). A larger cache limit, or fewer cook variants per platform, prevents that.

    Measurement. The first HIT is still to come. #2516's merge queue run restored before the Fast Gate layer was saved (MISS); its Tier 2 build lane hit the 20 MB container layer, which does not change that lane's time (it compiles C). I will add the compile time per lane from the next PR run that hits the Fast Gate and Cross Lint layers.

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