Skip to content

ci: the cache janitor deletes every soldr cook layer since setup-soldr writes cook-base-v3 keys (#3061) #3166

Closed

Description

@vpacher

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

  1. Declare the family by prefix in ci.toml until ci-lint knows the v3 key, for example deps = { prefix = "cook-base-v3-", max = …, evict = "lru", shapes = { … } }, and report the v2/v3 mismatch in zackees/ci.yml (families.py).

  2. Size the shapes from the layers that exist. Measured cook-base-v3 entries on 2026-10-31:

    Platform Layers Size each Declared shape
    Linux host --profile dev -- --tests (Fast Gate), host --profile dev (Cross Lint), cross-compile 1.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).

  3. A test in ci/ that compares the cook key prefix of the pinned setup-soldr with the deps family, 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).

Activity

  1. zackees commented on Oct 31, 2026

    @zackees
    Member

    Claiming: deps cache family — declare the cook-base-v3- prefix

    1. RED: an offline test in ci/test_ci_toml.py that pins the cook key prefix of the zackees/setup-soldr commit the workflows use (9337570, COOK_BASE_KEY_PREFIX = "cook-base-v3") against the deps family, so a future action bump fails CI instead of silently piling layers into the janitor's delete list.
    2. GREEN: deps stops resolving through via = "setup-soldr:cook" (the pinned ci-lint a1917ce still resolves that to cook-base-v2-) and declares prefix = "cook-base-v3-" directly, as ci-lint's schema allows for a key no allowlisted via describes. Shapes and max stay 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 a Decision needed: for fix(ci): reconcile global cache capacity and retain measured warm seeds #1801 rather than deciding it here.
    3. Verify: 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.
  2. added
    ready
    on Oct 31, 2026
  3. zackees commented on Oct 31, 2026

    @zackees
    Member

    Fix-up PR: #3169.

    • RED b072d9f: ci/test_ci_toml.py::test_deps_family_matches_the_pinned_setup_soldr_cook_prefix fails on master ('via' unexpectedly found in {'via': 'setup-soldr:cook', …}).
    • GREEN ac065c5: deps = { prefix = "cook-base-v3-", … } — ci-lint's schema makes via and prefix mutually exclusive — plus the preserved-family assertion moving to v3.
    • Evidence: 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's ci-lint cache audit --repo . classifies both live cook layers under deps and reports no cook-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.

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