ci: cache CI dependencies to reduce PR workflow runtime#753
Draft
nickolas-dimitrakas wants to merge 6 commits intomainfrom
Draft
ci: cache CI dependencies to reduce PR workflow runtime#753nickolas-dimitrakas wants to merge 6 commits intomainfrom
nickolas-dimitrakas wants to merge 6 commits intomainfrom
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
📦 SDK Size Impact ReportMeasures how much the SDK adds to an app's size (with-SDK minus without-SDK).
➡️ SDK size impact change is minimal. Raw measurementsTarget branch (main): {"baseline_app_size_kb":84,"baseline_executable_size_bytes":75464,"with_sdk_app_size_kb":1876,"with_sdk_executable_size_bytes":76312,"sdk_impact_kb":1792,"sdk_executable_impact_bytes":848,"xcframework_size_kb":6528}This PR: {"baseline_app_size_kb":84,"baseline_executable_size_bytes":75464,"with_sdk_app_size_kb":1876,"with_sdk_executable_size_bytes":76312,"sdk_impact_kb":1792,"sdk_executable_impact_bytes":848,"xcframework_size_kb":6528} |
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…rmat() limitation Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.
Background
PR workflow jobs in `build-kits` were taking 15-19 minutes each because third-party SDKs (Firebase, Airship, Rokt) were being downloaded and compiled from scratch on every run with no caching.
Profiled from CI run #24418060388:
What Has Changed
build-kits.yml
actions/cache@v5.0.5for~/.cocoapodsand~/Library/Caches/CocoaPodsinpod-lint-kits, keyed per-kit by podspec hash + weekly window — avoids re-downloading Airship/Firebase on every lint run; weekly window ensures new upstream releases are picked upDerivedDatacache inbuild-kits, key computed via shellfind | shasumacross kit source files + core SDK source files (mParticle-Apple-SDK/**,mParticle-Apple-SDK-Swift/**) — enables incremental xcodebuild instead of full recompilation on warm runs; busts on any kit or core SDK changetimeout-minutes: 30to bothpod-lint-kitsandbuild-kitsjobs to enforce the target CI runtimefetch-depthfrom0→1(full git history not needed for builds)build-and-lint.yml
~/.gem) forxcodeproj; switched to user-level gem installcross-platform-tests.yml
~/.gem) forcocoapods+cocoapods-generate, keyed byPodfile.lockintegration-tests.yml
actions/cache@v5.0.5for WireMock JAR, keyed by version — skips Maven Central download on cache hitAll
actions/cachereferences pinned to SHA (v5.0.5).Screenshots/Video
N/A
Checklist
Additional Notes
Cold runs (first PR after a cache miss) remain as today. On warm runs (no source changes), kit builds should drop from 15-18 min to ~2-5 min via incremental xcodebuild. Monitor GitHub Actions cache storage in Settings → Actions → Caches — Firebase DerivedData is large (1-3 GB per kit) and may approach the 10 GB repo limit.