Skip to content

ci: retry Go module downloads - #148

Merged
skevetter merged 2 commits into
mainfrom
fix/retry-go-module-download
Oct 20, 2026
Merged

skevetter merged 2 commits into
mainfrom
fix/retry-go-module-download

Conversation

@skevetter

@skevetter skevetter commented Oct 19, 2026 •

Copy link
Copy Markdown
Contributor

Summary\n- restore and save Go module/build caches with actions/setup-go\n- retry cold-cache module downloads up to three times in the existing mise setup task\n- prefetch modules before running pre-commit hooks\n\n## Testing\n- mise run setup:dependencies\n- prek run --all-files\n\n## AI assistance\n- AI-assisted implementation and validation

@coderabbitai

coderabbitai Bot commented Oct 19, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

Warning

Review limit reached

You'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 19 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 7c363a67-b7bb-4954-91d7-942b9c87a689
📥 Commits

Reviewing files that changed from the base of the PR and between 884c31c and 9c0cecd.

📒 Files selected for processing: 1
  • .github/workflows/pre-commit.yml

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0e2ac1a4-3628-42c5-ba75-9c018bb42858
📥 Commits

Reviewing files that changed from the base of the PR and between ca0cb51 and 884c31c.

📒 Files selected for processing: 2
  • .github/workflows/pre-commit.yml
  • mise.toml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📝 Walkthrough

The dependency setup task now retries failed Go module downloads up to three times. The pre-commit workflow runs the task before its checks.

Changes: Dependency setup

Layer / File(s) Summary
Dependency setup and workflow
.github/workflows/pre-commit.yml, mise.toml
setup:dependencies retries failed module downloads up to three times, with 5-second and 10-second delays before retries. The workflow runs the task before prek run --all-files.

Priority: ⬇️ Low

Estimated code review effort: 2 (Simple) | ~8 minutes

Change: Other

Merge Risk: ⚪ Minimal · up to 884c3

Dependency setup runs before pre-commit checks and retries failed downloads as intended. No merge-blocking workflow issue was found.

Pre-merge checks: Passed 5
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: retrying Go module downloads in CI. It is directly related to the pull request changes.
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (2 skipped: 2 unsupported.)

✨ Finishing Touches
✨ Simplify code
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@skevetter

Copy link
Copy Markdown
Contributor Author

@greptileai review

@greptile-apps

greptile-apps Bot commented Oct 20, 2026 •

Copy link
Copy Markdown

RetriggerView in GreptileConfidence Score: 5/5

[Low impact] The PR appears safe to merge; no actionable issues were found.

Summary

The PR adds Go cache support and downloads modules before running the pre-commit hooks.

  • Pre-commit prepares Go modules before running hooks.
  • Go module setup retries failed downloads before giving up.

Reviews (1) · Last reviewed commit: "ci: cache Go modules in pre-commit" · Reviewed by Greptile

@skevetter
skevetter merged commit 71be11f into main Oct 20, 2026
7 checks passed
@skevetter
skevetter deleted the fix/retry-go-module-download branch October 20, 2026 03:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant