Skip to content

fix: increase golangci-lint timeout from 5m to 10m - #70

Merged
dunganle merged 1 commit into
mainfrom
fix/golangci-lint-timeout-10m
Apr 16, 2026
Merged

dunganle merged 1 commit into
mainfrom
fix/golangci-lint-timeout-10m

Conversation

@cnewell0

Copy link
Copy Markdown
Contributor

Problem

Repos with large dependency trees (e.g., Kochava/mcp with 143 deps) need ~6 minutes for golangci-lint to compile and analyze on CI runners. The current --timeout=5m causes the linter to exit with code 4 (timeout) even when there are 0 lint issues:

0 issues.
level=error msg="Timeout exceeded: try increasing it by passing --timeout option"
Error: golangci-lint exit with code 4
Ran golangci-lint in 369884ms

Fix

Bump --timeout=5m to --timeout=10m. This is a safe change — repos that finish quickly are unaffected (the timeout is just a ceiling, not a delay). Only repos with large dependency trees benefit.

Context

This is the final piece after #68 (only-new-issues, fetch-depth: 0) and #69 (revert version pin). Those changes are working correctly — the linter now reports only new issues and uses a Go-compatible version. This just gives it enough time to finish the analysis.

After merge, go/app/v1 tag needs to be moved to the new main HEAD.

🤖 Generated with Claude Code

Repos with large dependency trees (e.g., mcp with 143 deps) need ~6m
for golangci-lint to compile and analyze on CI runners. The 5m timeout
causes false failures. Bumping to 10m gives headroom without affecting
repos that finish faster.

Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
@dunganle
dunganle merged commit 2d20b64 into main Apr 16, 2026
@dunganle
dunganle deleted the fix/golangci-lint-timeout-10m branch April 16, 2026 14:16
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.

2 participants