Repository navigation
CI: save the madtrex cache on main only, build it in warm_cache - #530
Merged
Merged
Conversation
acceptancetest_mg7_madtrex saved its content-addressed madtrex/install cache from every branch and PR on a miss. It is the only consumer of that build, so the save is now gated on refs/heads/main: a PR with main's madtrex/madspace sources restores main's entry, any other PR builds it in the job without leaving a per-PR cache behind. warm_cache.yml gets a main-only madtrex_cache job (same key), which restores it -- keeping it warm on the scheduled run -- and on a miss builds madspace + madtrex, checks the install with reweight_backend.madtrex_is_installed/madtrex_build_problem and saves it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
How CI reacts to this PR
|
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.
What
acceptancetest_mg7.yml(acceptancetest_mg7_madtrex): themadtrex/installcache is now saved only onrefs/heads/main. A PR whosemadtrex/+madspace/sources match main restores main's entry (PRs can read their base branch's caches); otherwise the job builds madtrex itself and leaves no per-PR cache behind. This job is the only consumer of the build, so nothing else in a PR run loses anything.warm_cache.yml: new main-onlymadtrex_cachejob, same content-addressed key. It restores the entry (which keeps it warm on the twice-weekly scheduled run); on a miss it builds/restores madspace viabuild_madspace, gets numpy from the pip cache (as the acceptance job does), runsmadtrex/install.py, verifies the result withreweight_backend.madtrex_is_installed()/madtrex_build_problem(), then saves.Why
Branch/PR runs were creating madtrex (and other) cache entries against the shared 10 GB quota. The non-main caches present today (PR #521 pyamplicol + cargo,
feat-madmatrix-*madspace/madtrex, ~0.26 GB) were deleted by hand; this stops madtrex from recreating them.Notes for the reviewer
madtrex/**is deliberately not added to warm_cache's pushpaths: a push-triggered warm run also rebuilds the whole heptools chain (~3.5 GB). The acceptance job already saves madtrex on main pushes.build_pyamplicol, and the cargo cache still save from branches.🤖 Generated with Claude Code