ci: fix mod-check#1146
Conversation
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request addresses CI failures caused by network restrictions on GitLab-hosted modules. By pre-fetching these dependencies through the public Go proxy before running the module check, the build process becomes more resilient to external network blocking. Highlights
New Features🧠 You can now enable Memory (public preview) to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console. Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize the Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counterproductive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here. Footnotes
|
There was a problem hiding this comment.
Code Review
This pull request introduces a pre-fetching mechanism in the Makefile to seed specific GitLab and modernc.org modules from the public Go proxy, which helps prevent CI runner traffic rejections. Feedback highlights that maintaining a hardcoded list of modules and versions is a significant maintenance burden and suggests using a proxy fallback instead. Additionally, the sequential download loop in the Makefile is inefficient and should be replaced with a single parallel command. Finally, an inconsistency was noted in the go.mod file where an indirect dependency tag was removed without moving the dependency to the direct block.
|
@claude review this |
Code ReviewOverviewThis PR works around GitLab blocking GitHub CI runner IPs during the Makefile changesWhat works well
Potential issues
|
GitLab probably blocked GitHub's CI runner IP address. So we can't download packages from GitLab directly during this check. Workaround applied: download these particular packages from proxy.golang.org which works in CI.
|
Addressed Claude's 1st finding. |
GitLab probably blocked GitHub's CI runner IP address. So we can't download packages from GitLab directly during this check. Workaround applied: download these particular packages from proxy.golang.org which works in CI.
Pull Request Checklist
release_notes.mdif your PR contains major features, breaking changes or bugfixes