Repository navigation
Description
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 depsis 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.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
vpacher commentedon Oct 27, 2026
Claiming: #2603
Plan as in the description: one PR, the three member manifests use
features = ["std"]forserde_json.vpacher commentedon Oct 27, 2026
Verified on master. Master push run 40494318282 (
7140eb3d4, #2604):soldr cookruns 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:f9e7e4902-ldb56d793b33c4cd8-soldrv0.9.43-xlinux-host-v1f1c7475cf-ldb56d793b33c4cd8-soldrv0.9.43-xlinux-host-v1f9e7e4902-ldb56d793b33c4cd8-soldrv0.9.43-xlinux-container-v1Gap: 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_dispatchfull 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.
ci: Cook the workspace dev-dependencies for the test lanes (#2661) (#…
build: Name serde_json's std feature so soldr cook builds again (obs-…
ci: Cook the workspace dev-dependencies for the test lanes (obs-rust#…
build(cmake): compile C with -Wmissing-prototypes and -Wstrict-protot…