Repository navigation
fix(ci): allow local Go cache for fork pull requests - #5098
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Team Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 8 included reviews per hour; 7 remain after this review. 📝 WalkthroughWalkthroughThe CI workflow now skips Depot Go cache verification for fork pull requests. The OpenAPI generator job runs its ChangesCI cache verification
Estimated code review effort: 2 (Simple) | ~10 minutes Merge Risk: ⚪ Minimal · up to Fork pull requests can now use Go's local cache without failing Depot cache assertions, while trusted-source cache checks and runner tool validation remain in place. The change is ready to merge. Suggested reviewers: 🚥 Pre-merge checks | ✅ 4✅ Passed checks (4 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
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 |
Summary
GOCACHEPROGis not exposed, and let Go use its local cacheRoot cause
The CI optimization in #5072 made the Depot Go cache assertion fatal in all pull request contexts. External fork runs receive the same upstream Go toolchain but do not receive
GOCACHEPROG, so build, lint, test, generator, SDK, and migration jobs stopped before performing their actual work.Validation
git diff --checkpassedactionlintreports only the three existing repository-template references using$/.github/workflows/...; this change introduces no new workflow lint findingsNo Jira ticket.
Greptile Summary
This PR allows external fork pull requests to use Go's local cache while preserving Depot cache enforcement for pushes and same-repository pull requests.
Confidence Score: 5/5
The PR appears safe to merge, with the fork-specific cache fallback applied consistently across all affected jobs.
No actionable failures were found; the condition matches established workflow patterns, covers every relevant cache assertion, and preserves unconditional runner-tool validation.
Important Files Changed
Reviews (1): Last reviewed commit: "fix(ci): allow local Go cache for fork p..." | Re-trigger Greptile
Summary by CodeRabbit