Skip to content

fix(ci): declare the deps family by cook-base-v3 prefix (#3166) - #3169

Merged
zackees merged 2 commits into
masterfrom
infra/3166-cook-base-v3-family
Oct 31, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/3166-cook-base-v3-family

Conversation

@zackees

@zackees zackees commented Oct 31, 2026

Copy link
Copy Markdown
Member

The pinned zackees/setup-soldr (9337570) writes cook-base-v3-… keys, while the pinned linter (a1917ce) still resolves via = "setup-soldr:cook" to cook-base-v2-. The cache janitor therefore classified every cook layer as an undeclared family and deleted it on each merge-queue run (#3166): 15 of 26 janitor runs on 2026-10-31 removed 1–6 entries of 0.7–3.7 GB, and Fast Gate compiled 153–168 external crates on a MISS against 97–111 on a HIT.

RED

b072d9f — ci/test_ci_toml.py, test_deps_family_matches_the_pinned_setup_soldr_cook_prefix. It reads the zackees/setup-soldr@<sha> pins out of .github/workflows/, requires them to equal SETUP_SOLDR_PIN, and requires deps to declare SETUP_SOLDR_COOK_PREFIX. On master:

AssertionError: 'via' unexpectedly found in {'via': 'setup-soldr:cook', 'max': '900MB', 'evict': 'lru', 'shapes': {...}}

GREEN

ac065c5 — deps declares prefix = "cook-base-v3-" itself. ci-lint's schema makes via and prefix mutually exclusive, so the via goes; max and the three shapes stay exactly as measured, so the declared footprint is unchanged (budget arithmetic below). The VIA_PREFIXES table keeps setup-soldr:cook -> cook-base-v2- with a note that the pinned linter resolves it that way, and test_setup_soldr_and_uv_families_declared drops cook from its required via set; the preserved-family assertion moves from cook-base-v2- to cook-base-v3- since v2 keys are no longer written.

Evidence

uv run --no-project python -m unittest ci.test_ci_toml ci.test_cache_family_budget: 51 tests, OK.

The pinned linter's own classification of the live repository cache (ci-lint cache audit --repo ., ci.yml@a1917ce, cache 69 entries): both live cook layers now match a family, and no cook-base-v3- key is a CACHE-001 violation.

cook-base-v3-linux-x64-glibc-rustc1.98.1-fea2183cb-l5ad6634…   -> deps
cook-base-v3-windows-x64-msvc-rustc1.98.1-fea2183cb-l43925ba… -> deps

./lint: == lane lint: ok (181.1 s).

Not in this PR

Issue item 2 (shape sizes from the measured v3 layers) is a cache-budget decision, not a prefix fix. With the measured 1.29–1.51 GB Linux, 0.72 GB macOS and 0.80–0.84 GB Windows layers plus 25 % room, deps would need ~3.8 GiB against 2.43 GiB declared; the families currently total 10,257,799,577 B against the 10 GiB cap, so only 0.45 GiB of headroom exists and another family has to give room. Filed as a Decision needed: on #1801 rather than decided here.

Fixes #3166

…3166)

The pinned setup-soldr (9337570) writes cook-base-v3 keys, while the
pinned linter resolves via setup-soldr:cook to cook-base-v2, so the
janitor deleted every cook layer as an undeclared family. This pins the
action commit and the prefix the deps family must declare.

Refs #3166
The pinned setup-soldr (9337570) writes cook-base-v3 keys, while the
pinned linter (a1917ce) resolves via setup-soldr:cook to cook-base-v2, so
the cache janitor classified every cook layer as an undeclared family and
deleted it on each merge-queue run: 15 of 26 janitor runs on 2026-10-31
deleted 1-6 layers of 0.7-3.7 GB, and the Fast Gate compiled 153-168
external crates on a MISS against 97-111 on a HIT.

deps now declares prefix = cook-base-v3- itself (ci-lint makes via and
prefix mutually exclusive), keeping the measured shapes. Shape re-sizing
needs cache budget (#1801): the measured v3 layers total ~3.8 GiB against
2.43 GiB declared and 0.45 GiB of headroom, so it is tracked separately
rather than decided here.

Fixes #3166
@zackees
zackees added this pull request to the merge queue Oct 31, 2026
Merged via the queue into master with commit 1fc4181 Oct 31, 2026
36 checks passed
@zackees
zackees deleted the infra/3166-cook-base-v3-family branch October 31, 2026 16:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

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

1 participant