Repository navigation
ci(cli): restore the shared Swift package cache in the CLI lane - #13668
Conversation
The cold resolve took about 90 of each run's ~230 seconds. Restore the nightly-seeded spm-<Package.resolved> cache from the configured store, retrying cold if the restored tree fails to resolve. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Bugbot is paused — on-demand spend limit reachedBugbot uses usage-based billing for this team and has hit its on-demand spend limit. A team admin can raise the spend limit in the Cursor dashboard, or wait for the next billing cycle to continue. |
|
Warning Review limit reachedNext included review available in 2 minutes. View limit detailsLimit details: You’ve used all 10 included reviews currently available. You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Review configuration: ⚙️ Run configurationConfiguration used: Repository: manaflow-ai/cmux/.coderabbit.yaml Review profile: ASSERTIVE Plan: Advanced Run ID: 📒 Files selected for processing (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
All contributors have signed the CLA ✍️ ✅ |
cli-pipe-regressions.ymlfeeds the requiredci-statuscheck. It used about 7.7k runner-min over the last 7 days, all on macOS. A typical passing run takes 231 s. Of that, 88 s goes toxcodebuild -resolvePackageDependencies, a cold clone of every package in the project, because the lane restores no cache.Change:
spm-<hash(Package.resolved)>entry through./.github/actions/cache-restoreinto.spm-cache, then run the same sanitizer ci-macos uses. The R2 store currently holds an exact hit for main'sPackage.resolved(about 1 GB,.tar.zst).CI_CACHE_R2_PUBLIC_URLon the job. ci.yml sets it at the workflow level, but workflow-levelenvdoes not reach a reusable workflow. Without it the R2 restore always misses.This PR edits the workflow file, so its own CI runs the CLI lane. Compare that run's resolve time with the 88 s baseline. Expected saving is about 1 min per run, roughly 25% of this lane (~1.5–2k runner-min/week), minus the R2 download time.
Side finding, not changed here:
ci-macos.ymlhas the same env gap. On today'smacOS compile admissionruns, everycache-restorelogsr2-cache: CI_CACHE_R2_PUBLIC_URL is not set; treating as a miss, both the SPM restore and the test compilation cache restore.🤖 Generated with Claude Code
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.Summary by cubic
Restores the shared Swift package cache in the CLI lane so
xcodebuild -resolvePackageDependenciesno longer cold-clones every package on each run.CI_CACHE_R2_PUBLIC_URLon the job since workflow-level env does not reach reusable workflows and the R2 restore would otherwise miss.ci-macos.ymlhas the same env gap, so its SPM and test-compilation cache restores currently miss in R2; not changed here.Written for commit 1f3dd19. Summary will update on new commits.