Skip to content

ci: retry Go module downloads - #98

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: d9d4d653-7892-4c43-a89e-8b750a95fa83
📥 Commits

Reviewing files that changed from the base of the PR and between 3350b9f and f2fa61b.

📒 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: 6c97ccce-32fc-4ea7-89b2-28e106529f3a
📥 Commits

Reviewing files that changed from the base of the PR and between 704c84a and 3350b9f.

📒 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 retries go mod download up to three times, with delays after the first two failures. The pre-commit workflow runs this task before prek.

Changes: Dependency Setup

Layer / File(s) Summary
Retry and workflow setup
mise.toml, .github/workflows/pre-commit.yml
setup:dependencies retries go mod download up to three times, waits 5 seconds and then 10 seconds after failures, and exits with status 1 after the third failure. The pre-commit workflow runs the task before prek.

Priority: ⬇️ Low

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

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 3350b

The pre-commit workflow now retries Go module downloads before running its checks, and stops if all attempts fail. No actionable merge-blocking risk remains.

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 identifies the main change: retrying Go module downloads in CI. It matches the pull request objectives and changeset.
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

[Medium impact] This PR appears safe to merge; no actionable issues were found.

Summary

This PR adds Go caching and retries module downloads before pre-commit checks.

  • The pre-commit job prepares Go before running its checks.
  • Go module setup retries downloads that fail.

No actionable issues were found. The review checked the code without running CI.

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

@skevetter
skevetter merged commit 991fe84 into main Oct 20, 2026
7 checks passed
@skevetter
skevetter deleted the fix/retry-go-module-download branch October 20, 2026 03:59
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