Repository navigation
ci: cache CocoaPods downloads in sample app builds - #695
Merged
Merged
Conversation
The Pods cache step saved nothing because its path, example/Pods, does not exist; the Podfile is in example/ios. Cache CocoaPods' own download cache so the second and later runs of an iOS build can reuse downloaded pods. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Empty commit. The first run on this ref saved the CocoaPods download cache; this run should restore it. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
mahmoud-elmorabea
marked this pull request as ready for review
October 30, 2026 20:34
mrehan27
requested changes
Nov 2, 2026
Drop ~/.cocoapods so a restored trunk CDN index cannot hide a newly released CustomerIO version from the APN trunk check. The key prefix changes so earlier caches that include ~/.cocoapods are not restored. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
mrehan27
approved these changes
Nov 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.
The iOS sample build's CocoaPods cache has never saved anything. This points it at a path that exists.
Problem: the cache step uses
example/Pods, but the Podfile is inexample/ios, so the path never exists. All 4 iOS build logs I checked showCache not foundfollowed byPath Validation Error: ... no cache is being saved, and the repository holds nomacOS-APN-PodsormacOS-FCM-Podscaches.Change: cache CocoaPods' own download cache (
~/Library/Caches/CocoaPods) only.~/.cocoapodsis left out on purpose: it holds the trunk CDN index, and the APN trunk check runspod install --no-repo-update, so a restored index could hide a newly released CustomerIO version. The key prefix isPodsDownloadsso earlier caches that included~/.cocoapodsare never restored. The generatedexample/ios/Podsis still rebuilt every run, so there is no stale-project risk.Measured (one cold run, then one restored run per job, same ref):
Install dependencies for sample apppod installThat is about 0.8 to 1.1 minutes per iOS job. Each figure is one pair of runs, so treat it as unconfirmed; baselines on this runner swing widely between attempts. The restored APN run still passed the trunk check.
Cost to watch: each cache is about 127 MB, and each PR ref saves its own.
Revert by restoring the old path.
🤖 Generated with Claude Code