ci: declare the cache model main actually writes (zackees/ci.yml#93) - #380
Merged
Merged
Conversation
A main push runs minimal mode, so only linux and dylints (ubuntu-24.04 x64) save caches; full mode restores but never saves. ci.toml now declares exactly those families, per = "none", with sizes measured on main 2026-09-29. ci-lint CACHE-004's static worst case drops from 28,521,267,200 B to 2,967,470,080 B (budget 10,200,547,328 B). The cross-target build-cache, prepared-SDK and cargo-registry entries on main came from an older full-mode saving policy; nothing writes them now. test_main_writers_are_linux_x64_only pins the assumption.
Owner
Author
|
CI on this PR (run 36575614913) was cancelled by the Dylint job's "Cancel the run" step. setup-soldr failed there on a 404 for This is upstream and unrelated to this ci.toml/test change:
Re-run this PR's CI once that URL returns 200, then merge if it is green. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes zackees/ci.yml#93 (part of zackees/ci.yml#37 / #52, round M2-41).
The model
A main push runs minimal mode (
ci/ci_mode.py), so on main onlylinuxanddylintsrun. Both are on ubuntu-24.04 x64, and since #379 the ci-lint plan'scache_saveis true only there. Full mode (ci-full PRs, dispatched candidate SHAs) restores caches but never saves, and the release and nightly macOS lanes passsave-cache: "false". So every declared family now has exactly one writer shape,per = "none", and each max is rounded up from the largest live main entry measured on 2026-09-29:registryandsdkare no longer declared. Their live entries, along with the cross-target build caches, came from an older policy that saved from full-mode runs, and nothing writes them any more. The newtest_main_writers_are_linux_x64_onlypins this assumption: push is minimal, every plan-saving step islinux/dylintson ubuntu-24.04, or is gated to full mode. I checked it RED by removingbuild's full-modeif:, and the test failed.Evidence
precheckviolations 910 -> 909.gh apiso no token was handled:ci-lint cache janitordeleted 21 entries: 12 undeclared (4 prepared-SDK, 7 cargo-registry, plus the poisoned 237 B macOS registry as CACHE-005), 8 superseded setup-uv (including 2 of merged PR Bound native crash sampling and reuse module inventory #360's), and the superseded dylint-output generation.ci-lint cache heal --key K --ref refs/pull/360/merge. The main entries with the same keys are intact.cache audit:Not done