Skip to content

ci: stop uv cache churn on PR and merge-queue refs - #1670

Merged
zackees merged 2 commits into
masterfrom
infra/1269-cache-retention-budget
Oct 21, 2026
Merged

zackees merged 2 commits into
masterfrom
infra/1269-cache-retention-budget

Conversation

@zackees

@zackees zackees commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

The pinned setup-uv action saves remote caches by default on PR and merge-queue refs. Those archives cannot warm master, violate this repository's master-only writer policy, and are later reclaimed by the janitor. Set save-cache explicitly to the master ref at all 29 callsites while preserving restores and the two existing disabled-cache environments.

Refs #1269, #1667. This does not complete global capacity allocation or durable retention validation.

Validation:

  • RED e9cd29688: uv run --no-project -m unittest ci.test_ci_toml.UvCacheWriterTest failed at all 29 callsites.
  • GREEN de624689d: all six CI TOML tests pass, including writer restrictions and restore preservation. The initial test's overbroad ban on the two pre-existing enable-cache: false settings was corrected; those settings are preserved.
  • Read-only snapshot and replay use the exact pinned ci-lint executor with no delete callback. The hypothetical grace-expired plan identifies 30,567,460 bytes of non-master uv entries. This is neither observed deletion nor a measured speedup.
  • Published raw inventory, exact configuration, reproducible audit script, and allocation limitations under docs/ci-evidence/2026-10-21-cache-retention*.

The broader declaration remains 16,363,867,340 bytes against a 10 GiB budget. This change does not alter family limits, protected newest-entry/grace safeguards, required checks, C tests, or compiler freshness safeguards. Hosted producer/consumer behavior and retention across nightly writes remain to verify.

Local full gate: ./lint passed in 62.9 s, including all 148 CI self-test files, rustfmt, Clippy, and Dylint.

@zackees
zackees marked this pull request as ready for review October 21, 2026 22:42
@zackees
zackees added this pull request to the merge queue Oct 21, 2026
@zackees

zackees commented Oct 21, 2026

Copy link
Copy Markdown
Member Author

PR required gate passed on de62468. The PR is queued normally.

Hosted writer validation: Event Data job 119527049836 in run 39688056753 reports save-cache: false, restore-cache: true, and save-cache is false. Skipping save cache step.

Log: https://github.com/obs-rust/obs-studio/actions/runs/39688056753/job/119527049836

This verifies the real PR-ref consumer keeps restoration enabled and suppresses remote saves. Merge-group/master producer behavior and broader retention durability remain to inspect; the change does not complete #1269's global allocation work.

Merged via the queue into master with commit b7c8fcb Oct 21, 2026
22 checks passed
@zackees
zackees deleted the infra/1269-cache-retention-budget branch October 26, 2026 15:44
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