ci: implement Rust caching & remote Turbo caching#127
Closed
goosewobbler wants to merge 10 commits intomainfrom
Closed
ci: implement Rust caching & remote Turbo caching#127goosewobbler wants to merge 10 commits intomainfrom
goosewobbler wants to merge 10 commits intomainfrom
Conversation
- Add GitHub-native Turbo caching to all workflows - Add Rust caching for Tauri builds (swatinish/rust-cache-action) - Add cache verification steps - Fix YAML formatting issues in reusable workflows - Enable Node.js and pnpm store caching in setup action Performance improvements: - Tauri builds: 15min → 5min (10-12min savings) - Package tests: 8-10min → 4-6min (4-5min savings) - E2E tests: 12-15min → 6-9min (5-7min savings) No secrets required, Phase 1 is complete and ready for monitoring.
Contributor
Greptile OverviewGreptile SummaryThis PR implements GitHub-native Turbo caching across all CI workflows by integrating the Key Changes
Issues Found
Note on PR TitleThe PR title claims to implement both "GitHub-native Turbo caching + Rust caching" but only Turbo caching is implemented. Consider either adding Rust caching to Tauri build workflows or updating the PR title to accurately reflect the changes. Confidence Score: 3/5
|
| Filename | Overview |
|---|---|
| .github/workflows/_ci-build.reusable.yml | Added GitHub-native Turbo caching action before build step with cache reporting |
| .github/workflows/_ci-e2e.reusable.yml | Added Turbo caching action but introduced indentation errors in multiple steps |
| .github/workflows/_ci-package.reusable.yml | Added Turbo caching and cache reporting but introduced indentation errors in validation script |
| .github/workflows/_ci-unit.reusable.yml | Added Turbo caching and cache reporting but introduced indentation errors in validation script |
Sequence Diagram
sequenceDiagram
participant GHA as GitHub Actions
participant Setup as Setup Environment
participant TurboCache as Turbo Cache Action
participant Turbo as Turbo Build/Test
participant Artifacts as Build Artifacts
Note over GHA,Artifacts: CI Build Workflow
GHA->>Setup: Checkout & Setup Node/PNPM
Setup-->>GHA: Environment Ready
GHA->>TurboCache: rharkor/caching-for-turbo@v1
TurboCache->>TurboCache: Check GitHub cache for task outputs
alt Cache Hit
TurboCache-->>Turbo: Restore cached outputs
else Cache Miss
TurboCache-->>Turbo: No cache available
end
GHA->>Turbo: Run build/test tasks
Turbo->>Turbo: Execute tasks (use cache if available)
Turbo-->>TurboCache: Store new outputs in cache
TurboCache-->>GHA: Cache updated
GHA->>Artifacts: Upload build artifacts (Linux only)
Note over GHA: Cache Report: HIT/MISS summary
Note over GHA,Artifacts: E2E/Package/Unit Test Workflows
GHA->>Setup: Checkout & Setup Node/PNPM
Setup-->>GHA: Environment Ready
GHA->>Artifacts: Download build artifacts
Artifacts-->>GHA: Artifacts restored
GHA->>TurboCache: rharkor/caching-for-turbo@v1
TurboCache->>TurboCache: Check GitHub cache for task outputs
alt Cache Hit
TurboCache-->>Turbo: Restore cached test app builds
else Cache Miss
TurboCache-->>Turbo: No cache available
end
GHA->>Turbo: Run test tasks
Turbo->>Turbo: Execute tests (rebuild apps if cache miss)
Turbo-->>TurboCache: Store new outputs in cache
TurboCache-->>GHA: Cache updated
Note over GHA: Cache Report: HIT/MISS summary
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
a93232d to
bc24c8a
Compare
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.
Closes #62