Repository navigation
Conversation
✅ Deploy Preview for images-devsy-sh canceled.
|
|
@greptileai review |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 14 minutes. View limit details
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. |
|
@coderabbitai full review |
✅ Deploy Preview for devsydev canceled.
|
Action not completed
|
[Low impact] This PR appears safe to merge; no actionable issues were found. SummaryAdds a cache for
No actionable issues found. Hosted cache save and restore remain unverified, as noted by Reviews (1) · Last reviewed commit: "perf(ci): cache prek hook environments" · Reviewed by Greptile |
|
@coderabbitai full review |
Action not completed
|
|
Closing: the measured saving on the second Pre-commit run was about 40 seconds, within normal run-to-run variation, so the cache is not justified. |
Cause
The Pre-commit job caches mise tools but reinstalls prek hook environments on fresh runners. The formatter runs on the repository even when prek receives filenames.
Fix
Cache prek's home by runner image, architecture and prek/mise manifests. Hook commands and coverage are unchanged.
Test evidence
Commit: 60a8906.
mise exec -- actionlint .github/workflows/pr-ci.yml: passed.mise run cli:format: passed, 29.81s.mise run cli:lint:ci: passed, 0 issues, 201.61s.prek run --all-files -v: 13 passed, 0 failed, 380.87s with existing hook environments and isolated Go caches. Hook seconds: whitespace 0.07, EOF 0.04, YAML 0.00, large files 0.01, conflicts 0.00, shellcheck 0.25, shfmt 0.04, actionlint 0.42, biome format 0.24, biome ci 0.26, gitleaks 0.09, lint 321.07, fmt 57.84.prek run golangci-lint-fmt --files main.go -v: first 59.89s, hook 30.34s; warm 51.48s, hook 50.30s.coderabbit review --agent --committed: completed, 0 findings.Not verified
Two isolated cold full runs failed installing shfmt after 18.65s and 13.95s due to incomplete downloads. Hosted rerun restore and timing are pending. GitHub CodeRabbit remained rate limited after one retry.