Repository navigation
Description
What
Since #3061 (2026-10-30 12:01 UTC) pinned zackees/setup-soldr@9337570, setup-soldr saves the cook layers as cook-base-v3-…. The cache janitor (ci-lint cache janitor, zackees/ci.yml@a1917ce) does not recognize these keys and deletes them on every run:
key='cook-base-v3-linux-x64-glibc-rustc1.98.1-fea2183cb-…-xlinux-host-v1-soldrv0.9.45' 1352897770B -- CACHE-001: cache undeclared family: … matches no declared [cache.family] prefix
The deps family in ci.toml is declared via = "setup-soldr:cook". At a1917ce, ci_lint/cache/families.py resolves that to the prefix cook-base-v2- (the source comment cites COOK_BASE_KEY_PREFIX = "cook-base-v2"). The current zackees/ci.yml HEAD still has cook-base-v2-.
Janitor runs of the merge queue on 2026-10-31, 05:21 to 15:32 UTC: 26 runs, 15 of them deleted 1 to 6 cook-base-v3 entries (0.7 to 3.7 GB each). The other 11 found no cook entry left to delete.
Effect
A cook layer survives only until the next merge-queue run ends. Rust lane jobs on 2026-10-31 since 09:28 UTC (107 jobs, cook-cache-base line of each log):
| Lane | HIT | MISS | External crates compiled |
|---|---|---|---|
| Fast Gate | 4 | 33 | HIT 97–111, MISS 153–168 |
| Rust Cross Lint (Windows, macOS) | 2 | 3 | HIT 0–79, MISS 339 |
| Rust Tests (Windows) | 4 | 5 | 0–4 |
| Rust Tests (macOS) | 3 | 0 | 0 |
| Cross Compile | 13 | 7 | HIT 0, MISS 48 |
All four Fast Gate HITs came after a master push saved the layer at 14:37 UTC; the 15:32 UTC janitor run deleted it again. The Rust Tier 2 lanes do not cook (prebuild-deps: none) and are not affected.
Proposed
-
Declare the family by prefix in
ci.tomluntilci-lintknows the v3 key, for exampledeps = { prefix = "cook-base-v3-", max = …, evict = "lru", shapes = { … } }, and report the v2/v3 mismatch inzackees/ci.yml(families.py). -
Size the shapes from the layers that exist. Measured
cook-base-v3entries on 2026-10-31:Platform Layers Size each Declared shape Linux host --profile dev -- --tests(Fast Gate), host--profile dev(Cross Lint), cross-compile1.29–1.35 GB, 1.44–1.51 GB, 0.02 GB 1.4 GB macOS dev 0.72 GB 400 MB Windows dev 0.80–0.84 GB 650 MB With the shapes as declared, the LRU rule keeps one Linux layer and evicts the macOS and Windows layers. Shapes that fit all of them add about 2 GB to the declared total (10,257,799,577 B after ci: retire the app-build caches and fit the ASan archive (#1801, phase A) #3129, against the 10 GiB limit), so another family has to give room. That is a decision for the cache budget (fix(ci): reconcile global cache capacity and retain measured warm seeds #1801 phase A set it).
-
A test in
ci/that compares the cook key prefix of the pinned setup-soldr with thedepsfamily, so the next key bump fails CI instead of the cache.
Related
#2661 (cook layers rarely help), #3129 / #1801 (cache budget), #3128 (Fast Gate cooks the test profile), #3061 (setup-soldr bump).
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 31, 2026
Claiming:
depscache family — declare thecook-base-v3-prefixci/test_ci_toml.pythat pins the cook key prefix of thezackees/setup-soldrcommit the workflows use (9337570,COOK_BASE_KEY_PREFIX = "cook-base-v3") against thedepsfamily, so a future action bump fails CI instead of silently piling layers into the janitor's delete list.depsstops resolving throughvia = "setup-soldr:cook"(the pinned ci-linta1917cestill resolves that tocook-base-v2-) and declaresprefix = "cook-base-v3-"directly, as ci-lint's schema allows for a key no allowlistedviadescribes. Shapes andmaxstay as measured; the shape re-sizing in item 2 of the issue raises the declared footprint past the 10 GiB budget cap (measured v3 layers need ~3.8 GiB against 2.43 GiB declared, 0.45 GiB of headroom), so I post it as aDecision needed:for fix(ci): reconcile global cache capacity and retain measured warm seeds #1801 rather than deciding it here.uv run --no-project python -m unittest ci/test_ci_toml.py ci/test_cache_family_budget.py, then the janitor's own classification of the observed v3 key (cook-base-v3-linux-x64-glibc-rustc1.98.1-…) against the new family list.zackees commentedon Oct 31, 2026
Fix-up PR: #3169.
b072d9f:ci/test_ci_toml.py::test_deps_family_matches_the_pinned_setup_soldr_cook_prefixfails on master ('via' unexpectedly found in {'via': 'setup-soldr:cook', …}).ac065c5:deps = { prefix = "cook-base-v3-", … }— ci-lint's schema makesviaandprefixmutually exclusive — plus the preserved-family assertion moving to v3.uv run --no-project python -m unittest ci.test_ci_toml ci.test_cache_family_budget= 51 tests OK;./lint=lane lint: ok (181.1 s); the pinned linter'sci-lint cache audit --repo .classifies both live cook layers underdepsand reports nocook-base-v3-CACHE-001 violation.Item 2 of the issue (shape sizes) stays open: the measured v3 layers need ~3.8 GiB against 2.43 GiB declared, and the families already sit at 10,257,799,577 B of the 10 GiB cap (0.45 GiB headroom), so another family has to give room first. Budget question for the maintainer: which family trades capacity for the cook shapes —
zccache-tier2(1.50 GiB declared, 1.17 GiB measured),qt-ccache(0.73 GiB), or raising[cache].budget— or should the cook shapes stay at today's sizes and the macOS/Windows layers go on being LRU-evicted? #1801 phase A closed as the capacity decision, so this needs a new call rather than a worker default.The v2 keys are no longer written; they now match no family, so the janitor reclaims them on the next run, which is the intended cleanup.
fix(ci): declare the deps family by cook-base-v3 prefix (obs-rust#3166)…
test(ci): move SETUP_SOLDR_PIN with the setup-soldr bump
fix(ci): pin setup-soldr with transient download retries (obs-rust#3691)