Optimize golangci-lint for CI speed using best practices #8762
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Reviewed golangci-lint documentation and applied performance optimizations to the lint-go CI step. These changes eliminate redundant module downloads and prevent timeout issues without altering linting behavior.
Configuration changes (
.golangci.yml)Performance impact
actions/setup-goDocumentation
Added inline comments in
Makefileandci.ymlexplaining the optimizations for future maintainers.Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
4d63.com/update-job-proxy /update-job-proxy /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt /usr�� stitutions_RootCA_2015.pem test test 52c538d.0 infocmp /usr/local/sbin/--global basename /usr�� m test /usr/local/sbin/test 1bed8c6aa76d0bc8/usr/bin/unpigz gh est test(dns block)/update-job-proxy /update-job-proxy -o br-9256d59589b2 -j DOCKER-ISOLATION-STAGE-2 /go/pkg/mod/cach-n1(dns block)cloud.google.com/update-job-proxy /update-job-proxy /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt /usr�� stitutions_RootCA_2015.pem test test 52c538d.0 infocmp /usr/local/sbin/--global basename /usr�� m test /usr/local/sbin/test 1bed8c6aa76d0bc8/usr/bin/unpigz gh est test(dns block)/update-job-proxy /update-job-proxy -o br-9256d59589b2 -j DOCKER-ISOLATION-STAGE-2 /go/pkg/mod/cach-n1(dns block)codeberg.org/update-job-proxy /update-job-proxy /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt /usr�� stitutions_RootCA_2015.pem test test 52c538d.0 infocmp /usr/local/sbin/--global basename /usr�� m test /usr/local/sbin/test 1bed8c6aa76d0bc8/usr/bin/unpigz gh est test(dns block)/update-job-proxy /update-job-proxy -o br-9256d59589b2 -j DOCKER-ISOLATION-STAGE-2 /go/pkg/mod/cach-n1(dns block)dev.gaijin.team/update-job-proxy /update-job-proxy /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt /usr�� stitutions_RootCA_2015.pem test test 52c538d.0 infocmp /usr/local/sbin/--global basename /usr�� m test /usr/local/sbin/test 1bed8c6aa76d0bc8/usr/bin/unpigz gh est test(dns block)/update-job-proxy /update-job-proxy -o br-9256d59589b2 -j DOCKER-ISOLATION-STAGE-2 /go/pkg/mod/cach-n1(dns block)gitlab.com/update-job-proxy /update-job-proxy /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt /usr�� stitutions_RootCA_2015.pem test test 52c538d.0 infocmp /usr/local/sbin/--global basename /usr�� m test /usr/local/sbin/test 1bed8c6aa76d0bc8/usr/bin/unpigz gh est test(dns block)go-simpler.org/update-job-proxy /update-job-proxy /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt /usr�� stitutions_RootCA_2015.pem test test 52c538d.0 infocmp /usr/local/sbin/--global basename /usr�� m test /usr/local/sbin/test 1bed8c6aa76d0bc8/usr/bin/unpigz gh est test(dns block)go.augendre.info/update-job-proxy /update-job-proxy /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt /usr�� stitutions_RootCA_2015.pem test test 52c538d.0 infocmp /usr/local/sbin/--global basename /usr�� m test /usr/local/sbin/test 1bed8c6aa76d0bc8/usr/bin/unpigz gh est test(dns block)go.googlesource.com/update-job-proxy /update-job-proxy /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt /usr�� stitutions_RootCA_2015.pem test test 52c538d.0 infocmp /usr/local/sbin/--global basename /usr�� m test /usr/local/sbin/test 1bed8c6aa76d0bc8/usr/bin/unpigz gh est test(dns block)go.opentelemetry.io/update-job-proxy /update-job-proxy /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt /usr�� stitutions_RootCA_2015.pem test test 52c538d.0 infocmp /usr/local/sbin/--global basename /usr�� m test /usr/local/sbin/test 1bed8c6aa76d0bc8/usr/bin/unpigz gh est test(dns block)go.uber.org/update-job-proxy /update-job-proxy /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt /usr�� stitutions_RootCA_2015.pem test test 52c538d.0 infocmp /usr/local/sbin/--global basename /usr�� m test /usr/local/sbin/test 1bed8c6aa76d0bc8/usr/bin/unpigz gh est test(dns block)go.yaml.in/update-job-proxy /update-job-proxy /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt /usr�� stitutions_RootCA_2015.pem test test 52c538d.0 infocmp /usr/local/sbin/--global basename /usr�� m test /usr/local/sbin/test 1bed8c6aa76d0bc8/usr/bin/unpigz gh est test(dns block)golangci-lint.run/home/REDACTED/go/bin/golangci-lint golangci-lint config verify -pack 1432�� h /dev/null pkg/mod/golang.ogithub.com/felixge/httpsnoop ux-amd64/pkg/tool/linux_amd64/compile --gdwarf-5 asses/asmdecl mpile ux-amd64/pkg/too-trimpath -o ngci-lint/v2@v2.-p mpile ux-amd64/pkg/tool/linux_amd64/compile -p ns/analyzer mpile ux-amd64/pkg/tool/linux_amd64/compile(dns block)google.golang.org/update-job-proxy /update-job-proxy /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt /usr�� stitutions_RootCA_2015.pem test test 52c538d.0 infocmp /usr/local/sbin/--global basename /usr�� m test /usr/local/sbin/test 1bed8c6aa76d0bc8/usr/bin/unpigz gh est test(dns block)gopkg.in/update-job-proxy /update-job-proxy /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt /usr�� stitutions_RootCA_2015.pem test test 52c538d.0 infocmp /usr/local/sbin/--global basename /usr�� m test /usr/local/sbin/test 1bed8c6aa76d0bc8/usr/bin/unpigz gh est test(dns block)honnef.co/update-job-proxy /update-job-proxy /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt /usr�� stitutions_RootCA_2015.pem test test 52c538d.0 infocmp /usr/local/sbin/--global basename /usr�� m test /usr/local/sbin/test 1bed8c6aa76d0bc8/usr/bin/unpigz gh est test(dns block)mvdan.cc/update-job-proxy /update-job-proxy /home/REDACTED/work/_temp/runtime-logs/mkcert/rootCA.pem --updater-env NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/dbot-ca.crt /usr�� stitutions_RootCA_2015.pem test test 52c538d.0 infocmp /usr/local/sbin/--global basename /usr�� m test /usr/local/sbin/test 1bed8c6aa76d0bc8/usr/bin/unpigz gh est test(dns block)If you need me to access, download, or install something from one of these locations, you can either:
Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.