-
Notifications
You must be signed in to change notification settings - Fork 180
optimize github workflow cache space #1273
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Note Other AI code review bot(s) detectedCodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review. WalkthroughIntroduces two new composite GitHub Actions for freeing disk space and cleaning Gradle artifacts, expands Gradle cache paths, and wires these actions into multiple mobile workflows (CI, deploy, E2E, SDK demo). Also adds corepack enable/prepare for Yarn in one E2E workflow. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
participant WF as GitHub Workflow
participant FS as Free Disk Space (action)
participant DC as Dependency Cache
participant GR as Gradle (Build)
participant CL as Cleanup Gradle Artifacts (action)
WF->>FS: Run free-disk-space
FS-->>WF: Disk space reclaimed
WF->>DC: Cache/restore deps (Yarn/Gradle)
WF->>GR: Build Android
GR-->>WF: Build completes
WF->>CL: Cleanup Gradle artifacts
CL-->>WF: Cleanup complete
sequenceDiagram
autonumber
participant WF as mobile-e2e
participant CP as Corepack
participant YN as Yarn deps build
WF->>CP: corepack enable
WF->>CP: corepack prepare [email protected] --activate
CP-->>WF: Yarn v4.6.0 active
WF->>YN: yarn build:deps
YN-->>WF: Deps built
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
🧰 Additional context used📓 Path-based instructions (1).github/workflows/**/*.{yml,yaml}📄 CodeRabbit inference engine (AGENTS.md)
Files:
🧠 Learnings (1)📓 Common learnings⏰ Context from checks skipped due to timeout of 300000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 4
📜 Review details
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (7)
.github/actions/cache-gradle/action.yml(1 hunks).github/actions/cleanup-gradle-artifacts/action.yml(1 hunks).github/actions/free-disk-space/action.yml(1 hunks).github/workflows/mobile-ci.yml(2 hunks).github/workflows/mobile-deploy.yml(2 hunks).github/workflows/mobile-e2e.yml(2 hunks).github/workflows/mobile-sdk-demo-e2e.yml(2 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
.github/workflows/**/*.{yml,yaml}
📄 CodeRabbit inference engine (AGENTS.md)
.github/workflows/**/*.{yml,yaml}: In GitHub workflows, use the shared composite actions in .github/actions for dependency caching instead of calling actions/cache directly
Use the cache-yarn composite action for Yarn dependency caching in workflows
Use the cache-bundler composite action for Ruby gems caching in workflows
Use the cache-gradle composite action for Gradle caching in workflows
Use the cache-pods composite action for CocoaPods caching in workflows
Files:
.github/workflows/mobile-e2e.yml.github/workflows/mobile-deploy.yml.github/workflows/mobile-ci.yml.github/workflows/mobile-sdk-demo-e2e.yml
🧠 Learnings (1)
📚 Learning: 2025-10-04T05:29:43.587Z
Learnt from: CR
PR: selfxyz/self#0
File: AGENTS.md:0-0
Timestamp: 2025-10-04T05:29:43.587Z
Learning: Applies to .github/workflows/**/*.{yml,yaml} : Use the cache-gradle composite action for Gradle caching in workflows
Applied to files:
.github/actions/cache-gradle/action.yml.github/actions/cleanup-gradle-artifacts/action.yml
⏰ Context from checks skipped due to timeout of 300000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
- GitHub Check: e2e-ios
- GitHub Check: build-deps
- GitHub Check: analyze-ios
- GitHub Check: analyze-android
Summary by CodeRabbit