Repository navigation
ci: stop the cache eviction and skip builds for files that CI does not read - #1760
Merged
Merged
Conversation
…not read - Remove the `target/` cache from builds.yml, tests.yml and ffi-builds.yml. One run saved 16 caches with 12 GB in total, and a repository can keep 10 GB. GitHub evicted every cache within minutes, the sccache objects too, so each job built from zero. - The `core` filter of ci.yml no longer matches files that no build, test or feature-combination job reads: the release configuration, workflows that these jobs do not call, package files of the Node bindings, and Gradle files. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
🔍 Devin Review: 2 flags
Not posted on this PR by your GitHub settings — view them in Devin Review. (Configure)
ladvoc
approved these changes
Dec 2, 2026
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.
A CI run takes 33 minutes and about 405 job-minutes. That is the median of 90 runs from 2026-11-26 to 2026-12-01. Almost each job builds from zero, because the caches evict each other. A second cost: a PR that changes only files that cargo does not read runs the full build matrix.
Change
No cache of
target/.builds.yml,tests.ymlandffi-builds.ymlno longer savetarget/withactions/cache.target/caches, 12 GB in total. A repository can keep 10 GB.sccache and the cache of the cargo registry stay. The runs on
mainfill sccache, and each PR can read those objects.A narrower
corefilter. The build, test and feature-combination jobs no longer start for a PR that changes only these files:verwalter.tomland the two scripts of the releaserelease.yml,ffi-builds.ymlanduniffi-*.ymlpnpm-lock.yaml,pnpm-workspace.yamland thepackage.jsonfiles of the Node bindingsThe list names files, so a new file runs the jobs. Each push to
mainruns them without the filter. The formatting, license, changeset and API test jobs do not use this filter and run as before.Verified
livekit-ffi-node-bindings/build.rscallsnapi_build::setup()only. No Rust build script names a Gradle or package file.actionlintpasses on the four changed workflows.Not done yet
mainafter the merge to fill. The first runs of this PR are cold too.node-builds.yml,uniffi-dart-publish.ymlanduniffi-dart-test.ymlkeep theirtarget/cache. The first two run only for a release. The Dart test saves one cache.🤖 Generated with Claude Code