Skip to content

ci(cache): declare ancestor promotion for dylint and dylint-out (#335) - #422

Merged
zackees merged 1 commit into
mainfrom
cache-promote-ancestor
Oct 5, 2026
Merged

zackees merged 1 commit into
mainfrom
cache-promote-ancestor

Conversation

@zackees

@zackees zackees commented Oct 5, 2026

Copy link
Copy Markdown
Owner

Second and final pilot application of zackees/ci.yml#335 (tooling half merged as zackees/ci.yml#337), after clud#1802.

What this declares

[cache.promote] mode = "ancestor" (previously absent) plus promote = "ancestor" on the two families at or above CACHE-031's 256 MB floor:

family max opted in
dylint-out 700MB yes
dylint 600MB yes
toolchain 210MB no — below the floor
deps 150MB no
compile 150MB no
soldr-mini 15MB no
uv 5MB no

These two are exactly what held this repository's budget — 87% of its entries were superseded before the janitor work. Opting in declares their keys carry a lineage label, which is what makes a nearest-ancestor search decidable; a key ending in a bare content hash destroys the ancestry at save time.

Validation

schema findings: clean
CACHE-031 (key shape): clean
CACHE-031 without the opt-in: fires for both families  <- it discriminates
CACHE-030 / CACHE-032: needs_review

A pre-existing finding this surfaced

CACHE-029 also fires for dylint and dylint-out — neither declares evict = "lru", so neither bounds its entry count. This reproduces on unmodified main and is not caused by this change (verified by stashing the diff and re-running). Left alone deliberately to keep this diff to the #335 question, but it's real and worth its own PR.

Still a declaration

setup-soldr#566 is merged but unreleased; the opt-in is inert until a release carries it. Request is on zackees/setup-soldr#552.

🤖 Generated with Claude Code

zackees/ci.yml#335 standardizes promotion on setup-soldr's ancestor encoding
(shortest parent-edge distance from a live git DAG walk) rather than a
first-parent ordinal, which inverts on wide merges: a 50-commit branch tip
reports ordinal 53 while the merge commit containing it reports 4, so a cache
saved at the merge looks OLDER than one saved 50 commits before it. #335 keeps
the `m<n>` label for offline audit only.

dylint (600MB) and dylint-out (700MB) are the two families at or above
CACHE-031's 256MB floor, and they are what held this repository's budget --
87% of its entries were superseded before the janitor work. The other five
families sit at or below 210MB and stay unopted: a small family's entry count
is noise, not a budget threat. Both families now also carry evict = "lru"
(#421), so CACHE-029 is clean.

A declaration only: setup-soldr#566 is merged but unreleased (no tag contains
it; v0.9.85 predates it; the sanctioned v0 float trails main), so CACHE-030
and CACHE-032 report `needs_review` and the opt-in is inert until a release
carries it.

Validated against the merged rules: schema clean, CACHE-029 clean,
CACHE-031 clean (and it fires for exactly these two families when the opt-in
is removed), CACHE-030/032 `needs_review` as expected.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Local-Gate: v1 tree=51c622f181d9a3eb1735a2b528a06a8ea73c3c9e secs=794 lanes=linux-minimal:run,dylint-minimal:run
Ci-Attestation: {"at":1791168159,"gate":"general/all/ci-guards","host":"linux-x86_64","key":"38f79479d0d8128012ebe7e9432b03395fa814b16e0610d4812c902473338141","lane":"linux-minimal","parents":["d5e66b030b89cd788d2fca26321a10521a644778"],"secs":302,"stamp":"e4be5d15cb58b396f9cd8877b7cf8c9a","tree":"51c622f181d9a3eb1735a2b528a06a8ea73c3c9e","v":1,"via":"run"}
Ci-Attestation: {"at":1791168159,"gate":"rust/x86_64-unknown-linux-gnu/default-facade-clippy","host":"linux-x86_64","key":"38f79479d0d8128012ebe7e9432b03395fa814b16e0610d4812c902473338141","lane":"linux-minimal","parents":["d5e66b030b89cd788d2fca26321a10521a644778"],"secs":302,"stamp":"6de01abf2a62725daef5c66b6361c929","tree":"51c622f181d9a3eb1735a2b528a06a8ea73c3c9e","v":1,"via":"run"}
Ci-Attestation: {"at":1791168159,"gate":"rust/x86_64-unknown-linux-gnu/default-facade-test","host":"linux-x86_64","key":"38f79479d0d8128012ebe7e9432b03395fa814b16e0610d4812c902473338141","lane":"linux-minimal","parents":["d5e66b030b89cd788d2fca26321a10521a644778"],"secs":302,"stamp":"ec2c89460937515e87bdc712e134ab74","tree":"51c622f181d9a3eb1735a2b528a06a8ea73c3c9e","v":1,"via":"run"}
Ci-Attestation: {"at":1791168159,"gate":"rust/x86_64-unknown-linux-gnu/desktop-status-test","host":"linux-x86_64","key":"38f79479d0d8128012ebe7e9432b03395fa814b16e0610d4812c902473338141","lane":"linux-minimal","parents":["d5e66b030b89cd788d2fca26321a10521a644778"],"secs":302,"stamp":"9bc2fb172dbdc571d2e5c5da787a3407","tree":"51c622f181d9a3eb1735a2b528a06a8ea73c3c9e","v":1,"via":"run"}
Ci-Attestation: {"at":1791168159,"gate":"rust/x86_64-unknown-linux-gnu/dylint-all-features-all-targets","host":"linux-x86_64","key":"47939ce85da57bea5dd277f4db1980721a2ff73648eb03e90a9460b64967789a","lane":"dylint-minimal","parents":["d5e66b030b89cd788d2fca26321a10521a644778"],"secs":492,"stamp":"ffc3ed5502e7a89db8e3ff03d78ec5e1","tree":"51c622f181d9a3eb1735a2b528a06a8ea73c3c9e","v":1,"via":"run"}
@zackees
zackees force-pushed the cache-promote-ancestor branch from 67ae428 to 0dc5149 Compare October 5, 2026 02:43
@zackees
zackees merged commit 0892a62 into main Oct 5, 2026
7 checks passed
@zackees
zackees deleted the cache-promote-ancestor branch October 5, 2026 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant