Repository navigation
ci: narrow pnpm cache keys and shallow development checkouts - #20370
Conversation
|
This run was cancelled 🛑 The workflow was cancelled before completion. Please check the link below for details. |
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (9)
📝 WalkthroughWalkthroughThe reusable Node dependency action now accepts configurable lockfile paths for pnpm caching. Mobile and pull request workflows pass both root and mobile lockfiles. Daily, hourly, and adhoc macOS workflows now use depth-1 checkouts. Tests validate cache configuration, shallow checkout behavior, build version identity, and vetted-commit reachability. ✨ Finishing Touches📝 Generate docstrings
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 |

ELI5
Stop fetching unused Git history in development builds, and stop invalidating desktop dependency caches for mobile-only changes.
What Changed
Why
Development version helpers read HEAD and obtain published versions from the release API, so full checkout history adds unnecessary transfer. Desktop-only dependency jobs also needlessly missed caches when only the mobile lockfile changed.
Linked Issue
Part of #20366. Independent PR targeting
main.Visual Proof
N/A — CI configuration only; no application UI or interaction changes.
Testing
Measured impact
Four real network fetches of the same main revision (
923858e0981667216826788ab7156294dfc5c755), ordered shallow/full/full/shallow, using single-branchmain, no tags, andblob:nonein both cases:Depth-one reduced history-transfer bytes by 97.4% and median fetch time by 60.2% (1.15s). This deliberately measures only the history cost on macOS, not checkout/materialization or full CI elapsed time. The original full checkout can fetch more refs and blobs, so this is a conservative comparison.
Desktop/mobile cache-key separation prevents unnecessary invalidation by construction; no additional cache restore step is added. Timing reports remain in
/tmp/orca-ci-impact/checkout-*in the measurement workspace.Review
Self-reviewed for versioning, publication gates, trust boundaries, and cross-platform compatibility. No application execution-host, SSH, folder-workspace, or wire changes.
Agent skill upstream boundary
Notes
Measurement rejected the proposed mobile pnpm release cache: cold fetch was 22.44s versus warm fetches of 15.81s and 16.50s, but its 300 MB compressed store took 28.15s just to extract locally, before network transfer. Archiving also took 36.81s. That is not a demonstrated runtime win, so the addition was removed. New Gradle/CocoaPods caches are likewise deferred pending their own end-to-end evidence. The proposed release-cache signing adjustment was removed because it is not a demonstrated performance improvement and deserves separate review.
Runners, triggers, full release-cut history, existing release cache/signing behavior, publication gates, and explicit reruns remain unchanged.
Checklist