Skip to content

Design: heavily caching CI on the Dell E640 runner host (setup-soldr owns caching, shared RAM+NVMe store, Rust artifacts, disk image, advisory coordination) #4954

Open

Description

@zackees

Summary

Design for a heavily caching CI system on the self-hosted Dell PowerEdge E640 merge-queue host (dell-fsx3mn2), written so a worker can implement it in phases.

  • One owner for cache logic: setup-soldr. Workflows declare what they need (a cache class, a path, a key). setup-soldr decides where it lives: the GHA cache on hosted runners, a host store in RAM and on NVMe on self-hosted runners, and optionally S3. obs-studio's .github/actions/cache composite becomes a shim, then goes away.
  • One shared, content-addressed store per host instead of six per-runner slots, with a RAM tier in front of an NVMe tier, lock-free reads, atomic writes, and verification on every read. It survives power loss instead of being wiped on boot.
  • Rust artifacts are cached, keyed on content hashes of the full input set.
  • No network on the warm path on self-hosted runners: no GHA cache round trip, no artifact upload for a consumer on the same host, and local toolchains, packages and git objects.
  • A disk image is the unit of fleet deployment, and the host stops depending on another machine to boot.
  • An optional coordination server gives hints only. Every job works without it, just slower.
  • A cache never decides a verdict. Only trusted events write; forks never touch the host store.

Targets: Tier 2 Linux build step ≤ 5 min warm (22 min today), network and setup steps ≤ 30 s in total (about 6 min today), warm hit rate ≥ 90% (26.7% today).

Refs #4953 (measurements and causes), #4896 (agentic workflow throughput), #4839 (merge-queue runner routing).

Contents

  1. Where we are
  2. Goals and non-goals
  3. Architecture
  4. setup-soldr owns all cache handling
  5. The host store: RAM tier, NVMe tier, concurrency
  6. Caching Rust artifacts
  7. Stop paying the network
  8. Direct filesystem access versus an S3 or MinIO mirror
  9. Crash and power-loss safety
  10. Correctness, trust and isolation
  11. Disk image and boot
  12. Optional coordination server
  13. Observability
  14. Phased rollout
  15. Risks
  16. Rejected alternatives
  17. Open questions

1. Where we are

Measured on 2026-11-17 (details in #4953):

Item Today
Tier 2 Linux build step 1313 s cold, 1320 s "warm"
zccache hit rate, warm slot 1843 of 6936 compilations (26.7%), no wall time saved
Rust artifacts not cached
zackees/setup-soldr step 71–86 s
Install Git + Install Tier 2 packages 22–28 s + 50–93 s (about 590 packages unpacked into a fresh container)
actions/checkout up to 50 s
Upload Tier 2 tree 183–194 s
Host 64 threads, 109 GB RAM (about 94 GB available with 6 runners busy), 566 GB free NVMe, 32 GiB swap, ext4 root

How caching is wired now:

  • Host (private forge-ci/gh-runner NixOS flake): /var/cache/obs-runner holds one slots/<runner>/ directory per runner (8 GB cap) and a shared apt-archives/. A marker file .persistent-cache tells a job it is on a real host cache. obs-runner-cache-scrub empties every slot on each boot. obs-runner-cache-gc empties whole idle slots when one is over its cap or free disk falls below 150 GB. zccache has no LRU of its own.
  • obs-studio: about 45 uses of the repo's .github/actions/cache composite (the sanctioned actions/cache wrapper, lint rule CACHE-001) across build-project.yaml, appimage.yaml, ci.yml, sanitizers.yaml and the services-validator action. The Tier 2 build job has a hand-written Select Persistent Cache step that picks the slot and then guards each cache step with if: steps.pcache.outputs.* == ''. That logic exists in one job only.
  • setup-soldr: already has cache, cache-dir, cache-preset, save-cache, save-cache-remote, s3-bucket / s3-endpoint / s3-region / s3-cache-limit, build-cache, cargo-registry-cache, solo-toolchain-cache, the dylint caches, prebuild-deps (soldr cook), cache-eviction-policy, job-status, and hit-rate outputs. It knows two runner profiles: GitHub-hosted, and "local runner" (ACT=true). It has no profile for a persistent self-hosted runner, so on the Dell it sets ZCCACHE_CACHE_DIR to a per-job temp directory and the cache dies with the job. target-cache is deprecated and inert: soldr removed its target cache in favour of soldr cook.
  • Ledger: .github/actions/job-cache-ledger and ci/cache_ledger.py already record one JSON ledger per job, and ci/cache_baseline.py rolls lanes up.

Two things this design does not assume:

  • Why the warm C hit rate is only 26.7% is not known. The two measured jobs ran on different runners and different merge-group commits. Candidate causes are run-specific absolute paths or flags in the key, a slot warmed by a different build, and module outputs that depend on generated headers. Phase 0 measures this before anything is built on top of it.
  • The real build floor is not measured yet. Dell E640 runner caches are ineffective: 22 min Tier 2 builds whether cold or warm (measurements and causes) #4953 estimates 3–5 min; a measurement on the Dell (same build twice, then a build after touching one Rust file) is in progress. No measured floor was available when this was written. Phase 0 records it, and the Phase 2 and 3 targets are re-based on it if it differs.

2. Goals and non-goals

Goals:

  1. Tier 2 Linux build step ≤ 5 min on a warm host for a typical port PR (one Rust crate and one C unity group changed).
  2. Network and setup steps ≤ 30 s in total on a warm host.
  3. Warm hit rate ≥ 90% over compilations, C and Rust together, measured per job.
  4. A power loss costs no more than the RAM tier's contents. No boot wipe.
  5. A second Dell comes up from an image in under an hour of wall time, with a warm cache, identical to the first.
  6. A cache hit can never turn a failing job green.
  7. Every answer to "are we missing?" comes from recorded data.

Non-goals:

3. Architecture

 workflow step                      setup-soldr                         backends
 ─────────────                      ───────────                         ────────
 "I need class=compiler-output" ──► resolve runner profile ──► hosted:      GHA cache (+ S3)
 "I need class=download, key K"     resolve trust level        self-hosted: host store
 "hand this tree to job X"          pick backend + policy                     L0 RAM (tmpfs)
                                    restore / save / verify                   L1 NVMe (CAS)
                                    write the ledger                          L2 S3 or MinIO (optional)

 optional, advisory only:  coordination server ── hints: who holds key K, which host
                                                  should take job J, who may write, what to evict

The tiers, in the order a read tries them:

Tier Medium Holds Lost when Shared across
L0 tmpfs, capped hot objects, job scratch (build trees, cargo target dirs, unpacked package roots) reboot or power loss runners on one host
L1 NVMe, content-addressed everything durable: compiler outputs, Rust artifacts, toolchains, packages, git objects, job handoffs never, short of disk failure (verified on read) runners on one host
L2 S3 or a MinIO on the fleet LAN, optional packed objects written by trusted events bucket eviction hosts, and hosted runners
GHA GitHub Actions cache what it holds today GitHub eviction hosted runners only

A self-hosted job reads L0, then L1, then L2, and never the GHA cache. A hosted job reads the GHA cache and L2, as today.

4. setup-soldr owns all cache handling

4.1 Principle

A workflow says what it needs. It never names a backend, a mount path or a runner. Today the Tier 2 job does all three by hand, and no other job got the benefit.

4.2 A third runner profile

setup-soldr resolves one of three profiles at the start of a job:

Profile Detected by Backend order Compression Size cap
hosted GitHub-hosted runner GHA cache, then S3 zstd 3 GitHub's 10 GB budget
local ACT=true (act, act2, bosn), exists today local directory zstd 1 none
host-store (new) a valid host-store descriptor, see below L0, L1, then L2 none inside the store watermarks from the descriptor

The host-store descriptor replaces the .persistent-cache marker. It is a small JSON file at a fixed path that the host writes at boot and mounts read-only into runner and job containers:

{
  "schema": 1,
  "host": "dell-fsx3mn2",
  "store": "/var/cache/soldr-store",
  "ram": "/var/cache/soldr-store/ram",
  "socket": "/run/soldr-store/store.sock",
  "writable_namespaces": ["trusted", "scratch"],
  "boot_id": "…",
  "l1_high_bytes": 214748364800,
  "l0_high_bytes": 42949672960
}

Rules:

  • No descriptor, an unreadable one, or an unknown schema means the hosted profile. A hosted runner that mounts the same path sees an empty directory, exactly as with today's marker.
  • The descriptor is advice about location. It grants nothing: the trust level comes from the event (section 10), never from the descriptor.
  • SETUP_SOLDR_PROFILE=hosted forces the hosted profile on any runner. This is the kill switch, set as a repository variable, and it needs no commit.

4.3 What a workflow declares

Two entry points, both in zackees/setup-soldr:

  1. The main action, already used at every Rust callsite. It keeps its inputs. On the host-store profile it points ZCCACHE_CACHE_DIR, the cook store, the cargo registry, the rustup and soldr toolchain roots and the dylint caches at the host store instead of a temp directory, and skips every GHA cache restore and save.
  2. A generic cache sub-action, zackees/setup-soldr/cache, for the arbitrary path-and-key caches that the obs-studio composite serves today. Same interface as the composite, plus a class:
- uses: zackees/setup-soldr/cache@<sha>
  with:
    mode: restore            # restore | save
    class: download          # compiler-output | download | toolchain | handoff | scratch
    path: ${{ runner.temp }}/apt-archives
    key: tier2-apt-…
    restore-keys: tier2-apt-
    fail-on-cache-miss: false

The class decides the policy, so a callsite cannot get it wrong:

Class Example Who may write L2 Verified by
compiler-output zccache objects, Rust artifacts trusted events yes content hash + input-keyed action entry
download .deb files, crates, tarballs any job on the host yes upstream signature or pinned digest, plus content hash
toolchain rustup toolchains, soldr, zccache, uv, Python host image and trusted events yes pinned digest
handoff Tier 2 tree from a build job to its test jobs the producing job on demand content hash, key bound to run id and attempt
scratch build trees, target dirs the owning job never not shared

Outputs keep the composite's cache-hit and add cache-tier (ram, nvme, s3, gha, miss) and cache-restore-ms.

4.4 Migrating obs-studio

Three steps, each one a small PR:

  1. Shim. The body of .github/actions/cache/action.yml changes from calling actions/cache/restore and actions/cache/save to calling zackees/setup-soldr/cache at a pinned SHA, with class defaulting to download. All callsites move at once, and behaviour on hosted runners is unchanged because the hosted profile still uses the GHA cache.
  2. Classify. Each callsite gets its real class. The Tier 2 job loses Select Persistent Cache, the if: steps.pcache.outputs.* == '' guards, Bound zccache, and the container.volumes entry if the runner can inject the mount itself (section 17).
  3. Remove. Callsites reference zackees/setup-soldr/cache directly and the composite is deleted. Lint rule CACHE-001 (in zackees/ci.yml) changes its sanctioned wrapper from the local composite to the setup-soldr sub-action. The pin rule SEC-004 already applies to it.

astral-sh/setup-uv's own cache and any other third-party action cache get the same treatment: on the host-store profile, setup-soldr exports the cache directory for the tool (UV_CACHE_DIR and so on) into the host store, and the action's own remote cache is switched off.

5. The host store: RAM tier, NVMe tier, concurrency

5.1 One store per host, not per runner

Today a job warms only its own runner's slot, so with six runners most jobs start cold (at one sample, 2 of 6 slots held anything). The store becomes a single tree that all runners on the host read and write.

5.2 Layout

/var/cache/soldr-store/
  descriptor.json
  cas/<ns>/<aa>/<blake3>            immutable blobs, named by content hash
  ac/<ns>/<aa>/<action-key>         small records: action key -> list of blob hashes + record checksum
  packs/<ns>/<key>.manifest         path-and-key caches: file list -> blob hashes (no tarball)
  handoff/<run>-<attempt>/<name>    manifests for job-to-job trees
  pins/<job-id>                     blob hashes a running job depends on
  tmp/<boot-id>/                    in-flight writes, deleted wholesale at boot
  ram/                              tmpfs mount: cas/, scratch/<job-id>/
  ledger/                           access and eviction records

<ns> is the trust namespace: trusted, or pr-<n> for a pull request's private overlay (section 10).

5.3 Concurrency

  • Blobs are immutable and named by content. A reader opens a path and either gets the complete blob or ENOENT. There are no read locks.
  • Writes go to tmp/<boot-id>/<random>, are flushed, and are renamed into place. Two writers of the same content race harmlessly: both rename the same bytes to the same name.
  • Action records are written the same way. Last writer wins, and both writers describe the same inputs.
  • Path-and-key caches stop being tarballs. A save hashes each file into cas/ and writes a manifest; a restore materializes files from the manifest by hard link or reflink where the filesystem allows, and by copy otherwise. Two caches that share 95% of their files share 95% of their storage, and a restore from L0 or L1 costs no decompression.
  • No daemon is required to read. Jobs read the store through the filesystem. A host daemon behind the descriptor's socket handles only writes into the trusted namespace, eviction and replication to L2. If the daemon is down, reads still work and writes fall back to the job's own scratch.
  • zccache needs the matching change: several daemons, one per job container, sharing one object directory safely, or a single host daemon that job containers reach over a socket. The Tier 2 job currently deletes stale daemon-*.lock files by hand because a slot assumes one owner; that assumption goes away.

5.4 The RAM tier

The host has 109 GB of RAM and about 94 GB available with all six runners busy. Proposed budget, to be tuned from Phase 0 data:

Use Budget Notes
L0 hot blobs (tmpfs) high watermark 40 GB, low 32 GB read-through from L1, written first on a save
Job scratch (tmpfs) up to 6 GB per runner, 36 GB in total build trees, cargo target dirs, package roots; gone at job end
Left for compilers, linkers and tests at least 30 GB six concurrent Tier 2 builds

Notes:

  • tmpfs pages can be swapped, and the host has 32 GiB of swap, so an overshoot degrades to disk speed instead of an OOM kill. The store daemon still evicts L0 down to its low watermark when available memory falls below a floor, before the kernel has to.
  • The kernel page cache already keeps hot L1 files in RAM for reads. The explicit tmpfs tier earns its place for writes (no journal, no flush on the build's critical path; L1 is filled behind the job) and for scratch, which is the larger win: a build tree in tmpfs with its inputs hard-linked or copied from L0.
  • L0 is populated two ways: on first read of an L1 blob, and by a warm-up at boot that loads the most recently used blobs up to the low watermark, so the first job after a boot is not the one that pays.

5.5 Eviction: dynamic and post-build

zccache has no LRU, so today's only eviction is "delete the whole slot". Replace it with:

  • When: after each job (the job-completed hook asks the daemon), and on a timer as a backstop. Never during a restore.
  • What: least recently used first, using access times recorded in ledger/ in batches rather than filesystem atime. Action records whose blobs are gone are dropped with them.
  • Never: a blob listed in pins/<job-id> for a running job. A pin file older than the longest possible job (7 h, the existing busyStaleHours) is stale and ignored.
  • Watermarks: L1 high 200 GB, low 160 GB, and the existing rule that free disk on / stays above 150 GB wins over both. L0 as in 5.4.
  • Classes evict in order: handoff entries for finished runs first (they are dead weight once the run ends), then compiler-output, then download, then toolchain last.

6. Caching Rust artifacts

The 16 minutes inside the Tier 2 build are mostly libobs-rust and the crates it pulls in, and none of that is cached. This is the largest single win and the one with the sharpest correctness edge.

6.1 Why it is off today

forge-ci/zccache#1943 showed the hazard: a rustc compile whose source changed while its size and mtime stayed the same was served as a hit with the old output. Cargo reported success for a file that did not parse. The suspected cause was a (size, mtime) stamp standing in for the file's content in the key. A cache like that can turn a failing build green, which is exactly what section 10 forbids. So the rule for Rust is not "turn it on" but "key it on content".

6.2 Three layers, cheapest first

  1. Dependency closure: soldr cook (exists). Third-party crates change only when Cargo.lock, the toolchain, the profile or the feature set changes. On the host-store profile the cook store lives in L1 under the toolchain and compiler-output classes instead of being restored from the GHA cache. Key: toolchain commit hash, target triple, profile, feature set, RUSTFLAGS, linker choice and Cargo.lock hash.

  2. Workspace crates: per-invocation rustc caching in zccache, keyed on the full input set:

    Key component Source
    compiler identity rustc -vV commit hash and host, plus the hash of the driver binary for clippy and dylint drivers
    arguments the full command line after normalization, with --remap-path-prefix applied so the checkout path is not in the key
    environment every variable rustc and the crate can read: CARGO_*, RUSTFLAGS, OUT_DIR contents, and each env! / option_env! name reported in dep-info
    sources content hash of every file in the crate's dep-info (.d), including include!, include_str! and include_bytes! targets. Never size and mtime alone.
    upstream crates content hash of every --extern rlib and rmeta and every -L search path entry actually read
    build script output hash of the build script's stdout directives and of every file under its OUT_DIR
    proc macros hash of the proc-macro dylib

    Not cacheable, and recorded as such in the ledger rather than guessed: crates whose build.rs reads inputs it does not declare with rerun-if-changed / rerun-if-env-changed, incremental compilation (off in CI), and link steps (cheap with mold or rust-lld, and their inputs are the whole graph).

    The first compile of a crate has no dep-info, so the key is two-level, as in ccache's direct mode: a manifest keyed on arguments and the crate root lists the dep-info of earlier compiles, and a hit requires that every listed file's current content hash matches.

  3. A golden target/ snapshot for the lanes where per-invocation caching still leaves cargo doing minutes of fingerprint work. A trusted master build publishes its target/ directory as a manifest in the store. A job materializes it into its tmpfs scratch (hard links to L0 blobs, with the files read-only so a rewrite breaks the link rather than the blob), and cargo's own fingerprints decide what is stale. This depends on stable mtimes, which setup-soldr's source-mtime-normalize and preserve-source-mtimes inputs already handle. It is last because cargo's fingerprint is the thing bug: obs-properties: parent callbacks can destroy child groups twice #1943 warns about: use it only together with layer 2's content check, or behind the cold canary of section 10.

6.3 Proof before trust

Rust caching ships in shadow mode first: zccache computes the key, compiles anyway, and compares the fresh output's hash with what the cache would have served. A mismatch is logged with both hashes and the key. Serving from the cache starts only after a week of merge-queue traffic with zero mismatches, and the #1943 reproduction (same-size edit with the mtime restored) becomes a permanent test in zccache.

7. Stop paying the network

Each row is a step the Dell pays today and how it goes local:

Step today Cost Change Target
actions/cache restore and save (about 45 composite uses) WAN round trips, compress and decompress host-store profile: no GHA cache call at all 0 s network
Upload Tier 2 tree 183–194 s handoff class: publish a manifest in the store, see 7.1 ≤ 5 s
zackees/setup-soldr 71–86 s soldr, zccache, the pinned Rust toolchain and components come from the toolchain class in L1, pre-baked in the image (section 11) ≤ 5 s
Install Git 22–28 s git and the other bootstrap packages are in the job root, see 7.2 0 s
Install Tier 2 packages 50–93 s see 7.2 ≤ 10 s
actions/checkout up to 50 s host git mirror, see 7.3 ≤ 5 s

7.1 Job-to-job handoff without an upload

The Tier 2 build job uploads its tree as an artifact for test jobs that almost always run on the same host. Instead:

  1. The build job saves the tree with class: handoff, key bound to run_id, run_attempt and the artifact name. On the host-store profile this hashes files into the store and writes a manifest. No tarball, no upload.
  2. The build job emits its host label as a job output. The test jobs' runs-on uses that label, so they queue for the same host. This reuses the existing mq-runner-labels routing (ci: overflow saturated merge-queue runners to hosted (Refs #4838) #4839); nothing new is needed in the workflow file beyond the output.
  3. A test job restores the handoff from the store. Blobs are verified by hash as they are materialized.
  4. If the consumer cannot find it (it landed elsewhere, the host rebooted and the entry was in L0 only, or the entry was evicted), it falls back in order: L2 if the entry was replicated, then the ordinary artifact if one was uploaded. To make the fallback real rather than hopeful, the store daemon uploads the handoff to L2 in the background, after the build job has ended, so the build job never waits for it. Until L2 exists (Phase 5), the build job keeps uploading the artifact on a hosted runner and skips it only on the host-store profile with same-host consumers; a consumer that then finds nothing fails with a clear, retryable infrastructure error. That is a red run, never a false pass.

On hosted runners nothing changes: handoff maps to upload-artifact and download-artifact.

7.2 Packages

Three options, in order of preference. The constraint is real: #966 and #982 chose a stock ubuntu:26.04 image, pinned by digest, because results differed between environments, so this must not change what gets installed.

  • A. Local package source plus tmpfs unpack (no image change). The host runs a caching apt proxy or a snapshot mirror, so apt-get update and every .deb come from the LAN, and the job container's root sits on tmpfs so dpkg unpacks at memory speed. Same stock image, same packages, same apt resolution.
  • B. A host-built root layer. The host builds, outside any workflow, an image that is the pinned stock image plus the packages in rust/tools/linux-validate/apt-packages.txt, tagged by the hash of the base digest, the package list and the apt index snapshot. The job uses it when present and the stock image otherwise. It is fastest (0 s install) but adds an image whose contents must be proven identical to a fresh install: the tag includes the index snapshot, and a nightly job diffs dpkg -l between the two.
  • C. Keep today's shared apt-archives/. Already in place; saves the download but not the unpack.

Recommendation: A first. B only if A does not reach the target, and only with the nightly diff.

7.3 Git objects

The host keeps a bare mirror of obs-rust/obs-studio and its submodules, refreshed on a timer and mounted read-only into jobs. A checkout that borrows objects from it (git alternates, or GIT_ALTERNATE_OBJECT_DIRECTORIES for the fetch) transfers only what the mirror lacks. The mirror never prunes while a job is running. A stale or missing mirror costs a normal fetch, nothing else. Whether actions/checkout honours alternates set from the environment in the job container needs a spike (section 17).

8. Direct filesystem access versus an S3 or MinIO mirror

Direct FS, RAM + NVMe on the host MinIO on the fleet LAN S3-compatible bucket over the WAN
Latency per object microseconds (tmpfs, page cache) to well under a millisecond (NVMe) about a millisecond and up: HTTP request, auth, TLS if on tens of milliseconds
Throughput memory or NVMe speed NIC speed uplink speed
Cost of 6,900 small objects, one at a time well under a second several seconds to tens of seconds minutes (6,900 × 30 ms is about 3.5 min), which forces whole-cache tarballs
Granularity that makes sense per object per object or per pack per pack only
Failure modes disk full, corruption after power loss, eviction bugs service down, credentials, a second system to patch and monitor outage, throttling, credentials, egress
Fails how local, visible to the host's own health check every job on every host at once, if it is on the hot path same
Multi-host sharing none by itself yes, within the LAN yes, including hosted runners
Eviction ours: LRU, watermarks, pins bucket lifecycle or ours s3-cache-limit, evicted by merge-group runs
Trust boundary host filesystem permissions and the write daemon credentials on every host credentials in workflow secrets
Cost none beyond the hardware one more service storage and egress

The latency figures are estimates to be replaced with Phase 0 measurements; the shape of the comparison does not depend on their exact values.

Recommendation:

  • L0 and L1 by direct filesystem access are the hot path, always. A Tier 2 build touches thousands of small objects, and only local access makes per-object caching cheap. Per-object caching is what gives a high hit rate when one crate changes.
  • L2 is a cold tier and a sharing tier, never on the critical path of a warm job. Use it to seed a new or wiped host, to share between hosts, and as the handoff fallback. It is written asynchronously by the store daemon from trusted events only, as packs (many blobs per object), and read only on an L1 miss, with a strict time budget after which the job just builds.
  • Start L2 on the S3-compatible bucket setup-soldr already supports (s3-bucket and friends are wired at every callsite, and s3-cache-canary.yaml already checks it). Add a MinIO on the LAN only when a second host exists and the measured WAN seed time for a cold host is a problem. One host gains nothing from MinIO: it would be a slower path to its own disk.
  • Do not put the L1 store on a network filesystem shared between hosts (section 16).

9. Crash and power-loss safety

The host lost AC power twice in four days, and each time the boot scrub threw away every cache. The scrub exists for a good reason (a power loss left a toolchain binary at 0 bytes), so the replacement has to be at least as safe.

Principle: never trust a file because it exists; trust it because its hash matches. Correctness comes from verification on read, so a boot-time check is only an optimization.

  1. Verify on read. Every blob is hashed as it is materialized (BLAKE3 runs at gigabytes per second per core, so this is cheap next to a compile). A mismatch deletes the blob, records a corrupt event and is treated as a miss. Action records and manifests carry their own checksum and are handled the same way.
  2. Durable writes into L1. Write to tmp/<boot-id>/, fsync the file, rename, and fsync the directory in batches. Writes into L0 skip all of this; L1 is filled behind the job by the daemon, so the flush is never on a build's critical path.
  3. Boot recovery replaces the scrub (obs-runner-cache-scrub becomes soldr-store-recover):
    • delete tmp/ for every boot id but the current one, and all of pins/;
    • if the previous shutdown left no clean-shutdown marker, verify every blob written during the last few minutes before the crash, found from a small write journal, and delete the ones that fail;
    • start the runners, then run a full verification at idle I/O priority in the background.
      A typical recovery touches a few hundred files, not the whole store.
  4. Toolchains get the same treatment. heal-toolchains.sh detects truncation by looking for 0-byte files. With toolchains stored as toolchain-class manifests, a toolchain is verified against its manifest and repaired file by file from L1 or L2. A truncated file with a plausible size is caught too, which the 0-byte heuristic misses.
  5. A whole-store escape hatch stays. A flag file or a kernel command-line switch makes recovery wipe the store, for the day the format or the filesystem is in doubt.
  6. The store format is versioned. A store whose schema the host does not understand is moved aside, not read.

What a power loss then costs: the contents of L0 that had not yet reached L1 (a few minutes of writes), and the jobs that were running. Not 20 minutes of rebuild per runner.

10. Correctness, trust and isolation

10.1 A cache must never decide a verdict

  • The host store holds build inputs and build outputs only: compiler outputs keyed by their inputs, downloads verified against a signature or a pinned digest, toolchains verified against a pinned digest, and job handoffs bound to one run. Test verdicts, ctest cost files, module-cache state and attestation state stay out of it, as docs/caches.md in the host repo requires today.
  • A cache error of any kind (miss, timeout, corruption, daemon down, descriptor unreadable) degrades to a build from source. No step fails because a cache was unavailable, except a handoff consumer with no fallback, which fails red.
  • Every hit is explainable: the action record names the input hashes that produced it.

10.2 Who may write

The store is shared by every job on the host, so a job that can write under a trusted key can feed its output to every later job. That is the poisoning path, and content addressing alone does not close it: it proves a blob's bytes match its name, not that an action key honestly describes how the blob was made.

Event Read trusted Write trusted Private namespace
push to master yes yes no
merge_group yes yes no
pull_request from a same-repository branch by an org member, on self-hosted yes no pr-<n>, read and write, evicted when the PR closes
pull_request from a fork does not run on self-hosted hardware – –
release and tag builds no (cold build, by policy) no no

How it is enforced, not just declared:

  • Job containers mount the trusted namespace read-only. Writes go through the host daemon, which decides from the runner-provided job context whether the job's event may write, and which namespace it gets. A job cannot grant itself a level.
  • Fork PRs never reach the host: the runner group is limited to obs-rust/obs-studio, and routing sends only merge-queue runs there. This design adds a third check in setup-soldr: on a fork event the host-store profile is refused even if a descriptor is present.
  • A merge-group run still executes code from a PR head. It is trusted to write because the PR passed review and attestation to get into the queue, which is the same trust the queue already extends when it merges that code. A merge-group job that fails writes nothing (job-status already implements this for build outputs).
  • The S3 tier is not ref-scoped today ("every run writes only its own key, pull requests included"). For classes that other runs restore, L2 writes follow the table above.

10.3 Detecting a bad cache

  • Cold canary. A small, fixed fraction of merge-group Tier 2 builds run with caching off and record the hashes of their outputs. A second comparison runs in the background on the host: rebuild a sampled action cold and compare with the stored blob. Any difference is a nondeterminism bug or a poisoned entry; both are worth an alert, and the entry is dropped.
  • Shadow mode for new cache kinds (section 6.3).
  • Releases never read the shared store.

10.4 Key design

  • A key is the hash of every input and nothing else. Run-specific values (workspace path, run id, runner name, timestamps, the temp directory) must not be in a compiler-output key; compilers get path remapping so they are not in the output either. Removing these is the likely fix for today's 26.7%.
  • A key includes what the cache cannot see otherwise: compiler binary hash, target triple, the container image digest for native code (libc and headers come from it), and a schema version for the key format itself.
  • Path-and-key caches keep human-readable keys, with the class and namespace prefixed by setup-soldr so two callsites cannot collide by accident.
  • restore-keys prefix matching is allowed for download and for whole-cache seeds. It is not allowed to stand in for an action key.

11. Disk image and boot

11.1 The image as the unit of fleet deployment

Bringing up dell-fsx3mn2 took a manual partition, a hand-run nixos-install, keys copied by hand, and a boot workaround. The private forge-ci/gh-runner flake already describes the whole host, and it already has a bootable ISO path for iDRAC virtual media. Build on that:

  • A flake output that is a complete disk image for the fleet's hardware class, plus an unattended installer ISO that partitions the disk and writes it. The installer is attached through iDRAC virtual media. No keyboard input.
  • One generic configuration. The host names itself dell-<service tag> from DMI data at first boot, mounts by partition label rather than UUID, and reads its runner count from a small per-host file. hosts/<name>/ shrinks to that file.
  • Pre-baked in the image, so first boot needs no downloads:
    • the NixOS closure;
    • the runner container image, loaded into Docker at first boot from the Nix store, and the pinned job base image;
    • toolchains as toolchain-class entries: the pinned Rust toolchain and components, soldr, zccache, uv and the Python versions the lanes use;
    • the package set of section 7.2 (the apt snapshot or the root layer);
    • a git mirror of the repository and submodules.
  • A cache seed, kept separate from the image. A seed is an export of the trusted namespace from a recent master build, with a manifest of hashes. It lives on its own partition or is fetched from L2 at first boot. It is separate because it goes stale in days while the image is rebuilt in weeks, and because a stale seed is harmless (every entry is input-keyed) but should not force an image rebuild.
  • Never in the image: runner registration tokens, SSH keys, iDRAC logins or any other secret. Registration stays a separate, per-host step. The image is built and stored privately.
  • Rollout of a new image to a running host stays nixos-rebuild plus the existing one-at-a-time runner roll. The image is for new hosts and for recovery; it is not a second upgrade mechanism.

Success test: a second Dell goes from bare metal to passing its first merge-queue job with one command per step and no console interaction, and its first Tier 2 build is warm.

11.2 Removing the boot dependency

dell-fsx3mn2's firmware does not boot its NVMe disk directly, so it HTTP-boots a small EFI loader served by another machine on the LAN. When that machine is down, the host cannot boot, which turns a power blip into an outage. Options, best first:

  1. Carry the loader on a local device the firmware does boot: an internal USB port, the internal dual SD module, a BOSS card or a SATA device, whichever the chassis has. It needs a few megabytes: an ESP with the loader, which then chains to the NVMe disk's own boot loader as today. The loader names no kernel or generation, so it never needs updating. This removes the dependency completely.
  2. Keep the loader in the iDRAC, if the licence level provides persistent local virtual media, so the fallback ISO is always attached without a share on another machine.
  3. Serve the loader from more than one place. Each fleet host also serves it, and the firmware's HTTP boot entry lists more than one URI or the boot order lists more than one source. This helps only once a second host exists.
  4. Native NVMe boot, retried whenever a firmware update lands. It failed on two BIOS levels on this unit.

Recommendation: option 1, with HTTP boot kept last in the boot order as a fallback and the ISO as the manual recovery path. The image installer of 11.1 writes the loader device when one is present.

12. Optional coordination server

An obs-rust coordination server is acceptable on one condition: its loss is not fatal. Every runner and job keeps working, only slower, when the server is down, slow or wrong.

12.1 What it may do

Role Without the server
Location hints: which host holds key K or handoff H the job looks in its own store, then L2, then builds
Job-to-host affinity: suggest the host whose store is warmest for this change, or the host that holds the build's handoff the static MQ_RUNNER_LABELS variable and the build job's own host output
Writer election: a lease so one job populates an expensive entry (cook, golden target snapshot) instead of six doing it at once everyone builds; duplicates are identical and harmless
Eviction coordination: tell hosts which blobs another host still needs, or which seed to keep each host evicts by its own LRU
Fleet ledger: collect per-job ledgers for dashboards ledgers stay as job artifacts, as today

12.2 Rules that keep it advisory

  1. Never on the correctness path. A hint is a guess about where to look. The client fetches and verifies by hash as it would anywhere else. A wrong hint costs one failed lookup.
  2. A hard time budget. A client waits at most a few hundred milliseconds for the server, once per job, and then proceeds without it. After a failure it stops asking for the rest of the job.
  3. No authority. The server cannot grant write access, change a trust level, mark anything verified, or supply a cache entry. Trust comes from the event and the host daemon (section 10).
  4. Leases expire. A lease is a timestamp with a short lifetime. A holder that dies is forgotten by the clock, not by a cleanup step, and a job that cannot get a lease builds anyway.
  5. No state that cannot be rebuilt. Everything the server knows, the hosts can re-report. Wiping it loses nothing.
  6. Tested dead. CI for the client runs the suite with the server absent, hanging, and returning garbage, and all three must pass.

GitHub decides which runner takes a job, from labels fixed when the job is queued. So affinity can only work through the label an earlier job emits; the server can advise that job, nothing more. That limit is also what keeps the server off the critical path.

It comes last in the rollout (Phase 6) and only if two hosts exist and the data shows cross-host misses worth chasing. One host needs none of it.

13. Observability

Today "are we missing?" took log archaeology to answer. The pieces exist (job-cache-ledger, ci/cache_ledger.py, ci/cache_baseline.py, and setup-soldr's hit-rate outputs); they need to cover every cache and say why.

13.1 Per-job ledger

One JSON record per job, written by setup-soldr and collected by the existing ledger action:

  • runner, host, profile, trust level, event, base and head commit;

  • per cache class: lookups, hits by tier (ram, nvme, s3, gha), misses, bytes read and written, time spent restoring and saving;

  • per compiler family (C, C++, Rust): compilations, hits, misses, uncacheable, time saved;

  • a reason for every miss, from a fixed list:

    Reason Meaning
    never-seen no entry with this key ever existed on this host
    key-changed:<component> the nearest earlier key differs in this component (a source file, a flag, an env var, the compiler)
    evicted the entry existed and was evicted, with the eviction time
    uncacheable:<why> not cacheable by design (link step, undeclared build.rs input, …)
    trust-denied an entry exists in a namespace this job may not read
    corrupt failed verification and was dropped
    timeout the tier did not answer within its budget
  • step timings for the network steps of section 7, so their total is a number rather than a sum someone does by hand.

key-changed:<component> is the reason that matters most: it turns "26.7%" into "5,000 misses because the workspace path is in the key".

13.2 Host metrics

The store daemon writes a small metrics file that scripts/fleet_health.py in the host repo already has a place for: size and object count per tier and class, evictions and their cause, verification failures, recovery duration after each boot, and available memory against the L0 budget.

13.3 Dashboards without a new workflow

  • The job summary shows one line per job: hit rate, tier split, top three miss reasons.
  • ci/cache_baseline.py grows a rollup over the last N merge-group runs per lane: hit rate, build-step time, network-step time, each against its target. An existing scheduled workflow publishes it to the existing dashboard location. No new workflow file.
  • An alert condition, checked by the same rollup: warm hit rate below 80% for five consecutive merge-group runs, or any corrupt event, or any shadow-mode or canary mismatch.

14. Phased rollout

Each phase is shippable alone, has a number that says whether it worked, and can be turned off with SETUP_SOLDR_PROFILE=hosted.

Phase 0: measure and explain (no behaviour change)

  • Record the real floor on the Dell: the same Tier 2 build twice, then again after touching one Rust file. Record per-object latency for tmpfs, NVMe and the S3 bucket.
  • Add miss reasons to the ledger and run them on merge-queue traffic for a few days.
  • Fix the keys that the reasons point at (expected: run-specific paths).

Repos: zackees/zccache (miss reasons, key explain), zackees/setup-soldr (ledger fields), obs-rust/obs-studio (ci/cache_ledger.py, ci/cache_baseline.py, the ledger action).
Done when: every miss in a Tier 2 job has a reason; a rebuild of an unchanged tree on the same runner reaches ≥ 95% C hit rate; the floor is written down in this issue.

Phase 1: one shared, crash-safe store, owned by setup-soldr

  • Host: the store layout, descriptor, tmpfs tier, write daemon, LRU eviction with pins, and soldr-store-recover in place of the boot scrub. Per-runner slots are retired.
  • zccache: several jobs sharing one object directory.
  • setup-soldr: the host-store profile. ZCCACHE_CACHE_DIR and the other roots point at the store. No GHA cache restore or save on this profile.
  • obs-studio: the Tier 2 job's hand-written slot selection is removed.

Repos: private forge-ci/gh-runner, zackees/zccache, zackees/setup-soldr, forge-ci/soldr, obs-rust/obs-studio.
Done when: warm C hit rate ≥ 90% regardless of which runner takes the job; a power-cycle test (runners drained, power cut through iDRAC during a synthetic write load) recovers in under 2 minutes with zero corrupt blobs served and a store that is still warm; zero GHA cache requests from a Dell job.

Phase 2: stop paying the network

  • The generic cache sub-action; the obs-studio composite becomes a shim, callsites get classes.
  • Handoff for the Tier 2 tree, with same-host routing of the test jobs.
  • Toolchains from the store; packages by option A of 7.2; the git mirror.

Repos: zackees/setup-soldr, obs-rust/obs-studio, private forge-ci/gh-runner, zackees/ci.yml (CACHE-001).
Done when: on a warm host the network and setup steps of a Tier 2 build job (git install, checkout, packages, setup-soldr, tree handoff) total ≤ 30 s, down from about 6 min; the job makes no request to GitHub's cache or artifact services.

Phase 3: Rust artifacts

Repos: zackees/zccache, forge-ci/soldr, zackees/setup-soldr, obs-rust/obs-studio (lane flags only).
Done when: a week of merge-queue traffic in shadow mode shows zero mismatches; then the Tier 2 build step is ≤ 5 min at the median and ≤ 8 min at the 90th percentile for PRs that change at most one Rust crate and one C unity group; overall warm hit rate ≥ 90%.

Phase 4: image and boot

  • Disk image and unattended installer from the flake, with pre-baked toolchains, images, packages and git mirror, and a separate cache seed. The local boot device.

Repos: private forge-ci/gh-runner.
Done when: a host installed from the image passes its first merge-queue job with no console interaction; its first Tier 2 build meets the Phase 3 target; dell-fsx3mn2 boots with the machine that used to serve its loader switched off.

Phase 5: S3 tier and the migration's end

  • L2 on the existing bucket: asynchronous pack upload from trusted events, read on L1 miss within a time budget, handoff fallback. The composite is deleted and callsites use the sub-action directly.

Repos: zackees/setup-soldr, forge-ci/soldr, obs-rust/obs-studio, zackees/ci.yml.
Done when: a host with an empty store reaches ≥ 80% hit rate on its first Tier 2 build from L2 alone; a warm job's time is unchanged with L2 unreachable; .github/actions/cache no longer exists.

Phase 6: coordination server (only with a second host)

  • Hints, leases and the fleet ledger, under the rules of section 12.

Repos: a new service in the private fleet repo or its own repo, zackees/setup-soldr (client), obs-rust/obs-studio (the routing script only).
Done when: the client's suite passes with the server absent, hanging and lying; with the server up, cross-host misses fall measurably; with it down, job times are within 5% of Phase 5.

Summary of targets

Metric Today Target Phase
Warm C hit rate, same runner, unchanged tree not measured (26.7% across runners) ≥ 95% 0
Warm hit rate, any runner 26.7% ≥ 90% 1 (C), 3 (C and Rust)
Caches lost per power loss all RAM tier only 1
Network and setup steps, Tier 2 build job about 6 min ≤ 30 s 2
Tier 2 build step, warm, typical port PR 22 min ≤ 5 min median 3
New host, bare metal to first green job hours, manual under 1 hour, unattended 4
Dependence on another machine to boot yes none 4

15. Risks

Risk Mitigation
A stale Rust hit turns a failing build green (the #1943 class) content hashes only, shadow mode before serving, the cold canary, the reproduction as a permanent test, releases never read the store
A poisoned entry in the shared store read-only mount for jobs, writes through the host daemon by event, failed jobs write nothing, private PR namespaces, canary rebuilds
tmpfs pressure starves builds L0 and scratch are capped, eviction triggers on available memory, swap absorbs an overshoot, and the budget starts conservative
The 5 min target is below the real floor Phase 0 measures the floor first; targets are re-based on it in this issue, in the open
setup-soldr becomes a single point of failure for all caching every backend error degrades to a build from source; the hosted kill switch needs no commit; the profile logic gets its own tests on all three profiles
The shim changes behaviour on hosted runners the hosted profile calls the same GHA cache with the same keys; the shim PR is verified by comparing ledgers before and after
Shared store means shared blast radius namespaces, verify on read, the whole-store wipe switch, and a versioned format
A baked package layer drifts from a fresh install option A first; option B only with the snapshot in its tag and a nightly dpkg -l diff
Handoff consumer lands on another host same-host label from the build job; background L2 copy; otherwise a clear red infrastructure failure, never a pass
Work spread over five repositories stalls each phase lists its repos and a number; Phase 0 and 1 need only three
The power feed still fails out of scope here (#4953 asks for a second circuit or a UPS); this design bounds the cost of each failure
The coordination server grows into a dependency the rules of 12.2, and the "tested dead" suite as a merge condition for its client

16. Rejected alternatives

  • Keep per-runner slots and make them bigger. The problem is not size (a Tier 2 cache is about 1.3 GiB against an 8 GB cap). It is that five of six runners hold someone else's history.
  • Keep the boot wipe and fix the power. The power should be fixed, but a reboot for a kernel update or a crash would still cost every cache. Verification on read is needed anyway, and once it exists the wipe protects nothing.
  • S3 or MinIO as the primary store. Per-object latency makes fine-grained caching expensive, and a network service on the hot path of every job is the failure mode this design is trying to remove. Kept as L2.
  • A network filesystem shared between hosts for L1. It couples every host's builds to one server and one network, has weak rename and locking guarantees under failure, and gives a shared store with no trust boundary between hosts.
  • Everything in RAM. 109 GB does not survive a power loss, and the power is the known weak point.
  • Persistent workspaces (no clean checkout, reuse the last build tree). Fastest in theory, but it lets one job's leftovers influence the next job's result, which is the opposite of "a cache never decides a verdict". Scratch stays per job.
  • A shared, long-lived cargo target/ directory used by all runners. Cargo locks the build directory, so six jobs would run one at a time, and its fingerprints rely on mtimes. A per-job copy of a published snapshot keeps the benefit without the lock.
  • sccache or Bazel remote execution in place of zccache. A tool change does not fix any of the four causes in Dell E640 runner caches are ineffective: 22 min Tier 2 builds whether cold or warm (measurements and causes) #4953, and the content-hash keying and shared-directory work is needed either way. The design reuses the action-cache and content-store split those tools use.
  • A bespoke cache action in obs-studio. That is what the hand-written slot selection is, and it reached one job out of dozens. Other repositories on the same runners would each need their own.
  • A coordination server that is required (a scheduler, or a lock service that jobs block on). Rejected by direction: its loss must not be fatal.
  • New workflow files in obs-studio for dashboards or canaries. Repository policy; existing workflows and actions carry the changes.

17. Open questions

  1. Can the runner inject the store mount into every job container (through the runner's container hooks) so workflows need no container.volumes entry? If not, the entry stays, as a single documented line.
  2. Does actions/checkout in a job container honour git alternates supplied from the environment, or does the mirror need a small pre-checkout step in setup-soldr?
  3. For zccache: several daemons on one directory, or one host daemon behind a socket? The second gives one place for eviction and stats but adds a process whose loss must degrade cleanly.
  4. Should same-repository PR jobs run on the Dell at all, or should the host stay merge-queue only until the namespace enforcement has run for a while?
  5. Which local boot device does this chassis actually have free?
  6. What is the measured floor? If it is well above 5 min after Phase 3, the remaining time is in configure (about 2 min 20 s today) and linking, which this design does not address and which would need its own issue.

Activity

  1. zackees commented on Nov 17, 2026

    @zackees
    MemberAuthor

    Maintainer direction since this was written (2026-11-17), which changes the storage tiers:

    • The NVMe is being removed from dell-fsx3mn2. The durable tier becomes a btrfs RAID 1 mirror of two HDDs, with checksummed copies, zstd compression and read-only snapshots. Read every "NVMe tier" below as "HDD btrfs mirror".
    • RAM (tmpfs) is the primary working tier. The host store's hot tier, the runner work directories and /tmp all live in memory. The mirror is write-back backing only: sync, then take an atomic read-only snapshot; on boot, restore from the newest complete snapshot instead of wiping.
    • Filesystem metadata stays RAM-resident (low vfs_cache_pressure, plus warming at boot and after restore), so the HDDs only see sequential data I/O.
    • Incremental defrag and filtered balance run on timers, aware of snapshot sharing.
    • The host now boots natively from the mirror, which removes the netboot dependency, and the maintainer has authorized reboots.

    Phase 0's floor measurements should therefore be taken against tmpfs working directories with an HDD mirror behind them, not against NVMe. The host migration is under way in the private gh-runner repo.

  2. zackees commented on Nov 17, 2026

    @zackees
    MemberAuthor

    Phase 0 finding (measured on the Dell, 2026-11-17): the 16-minute Tier 2 build is limited by the zccache daemon, not by compilers, Rust or storage.

    • Where the time goes. In a cold Tier 2 build with ninja keeping 66 compiles in flight, an average of 2.2 compiler processes were running while 65.8 zccache clients waited on the daemon (151 samples over 5 minutes). The daemon handled 8.6 compiles/s on 64 cores. CI matches this: 6865 compiles in about 16 minutes. Daemon threads sat idle in futex_wait, I/O pressure was about 0, and 40–59 of the 64 compile slots stayed free.
    • Why a warm cache saved nothing (1313 s cold vs 1320 s with 26.7% hits): hits and misses wait in the same daemon queue.
    • Exclusive mode for large files. zccache gives any C source of 1 MB or more exclusive use of the daemon (compile_resource_gate.rs, AMALGAMATION_BYTES). The SWIG wrappers obsluaLUA_wrap.c and obspythonPYTHON_wrap.c each run alone for about 30 s.
    • Compile work is small. Total compiler CPU time is about 5128 s, which would be about 80–120 s if spread across 64 cores (unmeasured). Rust is minor: a cold libobs-rust cargo rustc takes 28.8 s.

    Revised priorities:

    1. First and cheapest: on hosts with many cores, compile the Tier 2 C build with no launcher, or fix the daemon's throughput (an issue is being filed against zccache). Expected saving: about 12–14 min per job (unmeasured; it needs an A/B run).
    2. Keep a Tier 2 build tree on tmpfs and replay its mtimes. Estimated floor: about 2.5–3.5 min for a typical port PR.
    3. Local tier2-tree handoff (saves the 193 s upload), and a persistent setup-soldr. setup-soldr can already do this with cache-dir plus explicit RUSTUP_HOME and CARGO_HOME; a persistent-root input would make it a single switch.

    The measurement was cut short when the host went down for the NVMe removal, so the no-launcher and rebuild runs are still to do.

  3. zackees commented on Nov 17, 2026

    @zackees
    MemberAuthor

    Claiming: P1 Tier 2 Linux compiler-launcher override on branch fix/4954-tier2-no-launcher. 1. Record a local RED regression for hosted zccache versus Dell no-launcher selection. 2. Add the configurable launcher and conditional reporting, document pending Dell A/B timing, and push RED/GREEN together. 3. Run ./lint once, open the PR with Refs #4954 and arm pinned auto-merge. First PR expected this session. Other phases remain outside this claim.

  4. added
    ready
    on Nov 17, 2026
  5. zackees commented on Nov 17, 2026

    @zackees
    MemberAuthor

    Claiming: P3 + P5 + P7 (the Dell Tier 2 wiring that builds on P1), on branch infra/4954-dell-persistent-tier2.

    1. P3: bump the setup-soldr pin to the persistent-root input (feat: persistent-root input for self-hosted runners forge-ci/setup-soldr#674, P4). On the Dell it auto-detects /var/cache/obs-runner/.persistent-cache and keeps the toolchain, CARGO_HOME and soldr's zccache in the runner's slot, with no Actions-cache round trip. Hosted runners are unchanged, and SETUP_SOLDR_PROFILE=hosted is wired in as a repository-variable kill switch.
    2. P5: keep the Tier 2 build tree between trusted merge_group runs on a host that provides /var/cache/obs-runner/trees/. Use zccache snapshot / zccache replay for source mtimes, plus a crash-safe .clean marker.
    3. P7: hand the tier2-tree to the test jobs through /var/cache/obs-runner/handoff/<run>, verified by sha256. The 193 s artifact upload is skipped only when the test jobs' labels pin this host.
    4. Add a RED then GREEN in the ci tests (ci/test_tier2_*) and the A/B numbers from the Dell, which go on this issue.

    First PR expected this session. P1 (OBS_TIER2_LAUNCHER) stays with its claimant; I rebase onto it when it lands.

  6. zackees commented on Nov 17, 2026

    @zackees
    MemberAuthor

    Here are the Dell A/B results for the Tier 2 build step after the reinstall (dell-fsx3mn2: 64 cores, tmpfs work tier).

    Each run is validate.sh with CI's environment (build stage, OFF+ON, MCP, pack) in the pinned ubuntu:26.04 image. The work dir is tmpfs, and every run starts from a fresh clone at the same path. Container setup, setup-soldr and the upload are excluded.

    Run What Wall Ninja edges zccache hit
    a today: zccache launcher, cold cache 879 s 7289 0%
    a2 today: zccache launcher, warm cache 449 s 7928 46.7%
    b P1: no launcher, fresh tree 430 s 6664 –
    c P5: kept tmpfs tree plus zccache replay, no change 385 s 276 –
    d P5: kept tree, 1 Rust file plus 1 C unity group changed 389 s 1040 –
    c3 P5 plus the one-pass ported-object proof (#4968), no change 210 s 1076 –
    d3 P5 plus #4968, 1 Rust file plus 1 C unity group changed 221 s 1040 –

    Against the floor. The estimated floor is about 2.5–3.5 min. d3, the typical port PR, takes 3.7 min, against 7.5 min warm and 14.7 min cold today.

    Kept tree (P5).

    • Restore and save each take 0.1–0.2 s (renames on tmpfs).
    • zccache replay restored 97.7% of source mtimes (14 830 of 15 184; 354 missing, 0 modified).
    • The tree is about 2.2 GB per runner.

    The surprise. With a kept tree, 176 s of c's 385 s went to validate.sh's ported-object proof: a shell loop spawning a grep per object per unity group. #4968 replaces it with one Python pass. On the same tree it takes 0.8 s instead of 139.5 s, and all 942 answers are identical.

    Network.

    Whole Dell Tier 2 build job. Today it takes about 22 min. Projected: about 5–6 min warm and about 9 min on a cold tree.

    Still above the floor:

    • configure runs every build;
    • test/cmocka/tests.d/*_link_support.cmake uses file(WRITE) on every configure, so 171 objects rebuild each time;
    • the MCP cargo test target dir (24–30 s) is outside the kept set.

    PRs:

    Full write-up, including the phase breakdown and the remaining gaps: .worker-pool/dell-cache2/demo.md.

  7. zackees commented on Nov 17, 2026

    @zackees
    MemberAuthor

    Claiming: Dell compression speed policy on branch infra/4954-dell-zstd-fast (maintainer assignment zstd-fast). 1. Inventory compressor paths and measure the existing real Tier 2 tree on tmpfs. 2. Commit local RED workflow regressions, then GREEN runner-selected plain tar/fast upload settings; hosted defaults stay unchanged. 3. Run ./lint once and publish RED/GREEN together through ./push, opening the requested PR this session. Other Dell work remains with its current claimants.

  8. zackees commented on Nov 17, 2026

    @zackees
    MemberAuthor

    Claiming the setup-soldr cook-store pin bump for this: branch ci/setup-soldr-cook-store-675, PR #4977 (setup-soldr side: forge-ci/setup-soldr#676).

  9. 4 remaining items

  10. moved this from In progress to Ready in obs-rust Multiviewon Nov 19, 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

    ready

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions