Skip to content

ci: retry Go module downloads - #40

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: 2e1259f7-71ba-4e36-b5b2-1c41748c5ffe
📥 Commits

Reviewing files that changed from the base of the PR and between 6320065 and 1307dcb.

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

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: 0666251e-b741-438b-b1dd-698d071ef9c6
📥 Commits

Reviewing files that changed from the base of the PR and between 376dd9e and 6320065.

📒 Files selected for processing: 2
  • .github/workflows/pre-commit.yaml
  • 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 pre-commit workflow now runs dependency setup before prek. The setup task retries go mod download up to three times, with increasing delays between failed attempts.

Changes: Dependency setup

Layer / File(s) Summary
Dependency setup and retry
mise.toml, .github/workflows/pre-commit.yaml
setup:dependencies retries go mod download up to three times and exits with status 1 after the third failure. The workflow runs this task before prek.

Priority: ⬇️ Low

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

Change: Bug fix

Merge Risk: ⚪ Minimal · up to 63200

Pre-commit now prepares Go dependencies before validation and retries transient download failures; persistent failures stop validation. No material merge risk is evident.

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.
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] The PR appears safe to merge.

Summary

Adds Go cache support and downloads modules before running pre-commit hooks.

  • Pre-commit checks download Go modules with retries.

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

@skevetter
skevetter merged commit 1a2c9bd 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