Skip to content

ci: reclaim retention for disabled compiler-store archives - #1380

Merged
zackees merged 3 commits into
masterfrom
infra/1286-retire-unused-cache-family
Oct 18, 2026
Merged

zackees merged 3 commits into
masterfrom
infra/1286-retire-unused-cache-family

Conversation

@zackees

@zackees zackees commented Oct 18, 2026

Copy link
Copy Markdown
Member

Summary

Refs #1286; follows merged #1372.

All seven setup-soldr callsites disable embedded build-cache transport after the full-run audit found no active consumer sessions. The old retention family still protects three legacy archives totaling 183,330,575 bytes. Remove that family so normal janitor cleanup can reclaim unused storage.

Cook, registry, toolchain and native compiler/apt families remain declared. This does not change workflow files, cache writer permissions, the Rust compiler safeguard, or global retention allocation. Retirement is a bounded follow-up to disabling the layer; it does not claim to solve the missing target-cache seeds reported in #1269.

RED → GREEN

  • RED c8cc72798: uv run -m unittest ci.test_rust_cache_policy fails three platform cases because legacy compiler-store keys still match a retained family.
  • GREEN: uv run -m unittest ci.test_rust_cache_policy ci.test_ci_toml ci.test_scheduled_cache_policy ci.test_soldr_toolchain_cache passes all 14 tests. The regression also verifies useful dependency/native keys retain family coverage.
  • git diff --check passes. Existing offline contract test now requires enabled setup-soldr layers; disabled build-cache retention is checked separately.

Focused configuration change: local RED and GREEN commits pushed together under coordination policy. Runtime reclamation remains to be observed after merge; the archive byte count is a point-in-time inventory, not a speedup or stable-headroom claim. No manual cache deletion or new workflow is introduced. Preexisting obs-websocket submodule dirt is excluded.

@zackees
zackees enabled auto-merge October 18, 2026 01:59
@zackees

zackees commented Oct 18, 2026

Copy link
Copy Markdown
Member Author

Additional executor-level verification completed against the pinned ci-lint implementation (1a970f01574447d681571ff3d0b8de56cb983dcc), using saved real cache API entries and an injected offline fetch callback:

  • Before: the three legacy embedded archives are protected.
  • After: the janitor plans deletion of all three, exactly 183,330,575 bytes.
  • The set difference between before/after deletion plans is exactly those three IDs; all eight useful-cache control decisions are unchanged. One superseded registry entry is selected in both plans, so this does not incorrectly assert that every historical control must be retained.
  • delete=None, dry_run=True, synthetic fixed clock after the grace window; zero live deletions and zero network calls from the probe.

The initial probe assertion incorrectly expected every control to survive, despite the preexisting duplicate registry entry. Inspection showed the same superseded-registry decision before and after. The corrected invariant compares complete plan sets and proves this patch adds only the three retired archives.

In-repo scratch reproducer: build_ci_audit/probe-retired-compile-family.py; results: build_ci_audit/retire-compile-family-executor-proof.json. Runtime janitor reclamation still awaits merge.

@zackees

zackees commented Oct 18, 2026

Copy link
Copy Markdown
Member Author

Fixed the actual PR CI failure: the standalone-test import guard rejected the new from ci.test_ci_toml cross-test import. Moved the regression into test_ci_toml.py alongside its existing helpers, eliminating that import without changing policy behavior.

Validation before this push:

  • Focused policy + runner guard: 16 tests pass.
  • Full repository CI self-test discovery: 661 tests pass in 55.948 seconds (uv run -m unittest discover -s ci -p 'test_*.py').
  • git diff --check passes.

Raw failure and full local results remain in build_ci_audit/retire-compile-family-format-failure.log and retire-compile-family-all-selftests.log. This is a tested correction to a diagnosed failure, not a rerun of the old SHA.

@zackees
zackees added this pull request to the merge queue Oct 18, 2026
@zackees

zackees commented Oct 18, 2026

Copy link
Copy Markdown
Member Author

Runtime reclamation is now verified on the actual merge-group candidate:

The sweep deleted six entries total; the reclaimed number above counts only these three retired archives, not other normal cleanup. Required queue checks are still running. This proves reclamation on the queue candidate, not stable global headroom or completed merge.

Raw log and API inventory: build_ci_audit/retire-compile-family-queue-janitor.log, retire-compile-family-queue-inventory.json.

Merged via the queue into master with commit df86995 Oct 18, 2026
22 checks passed
@zackees
zackees deleted the infra/1286-retire-unused-cache-family branch October 26, 2026 15:45
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.

1 participant