Skip to content

Fix golangci-lint CI job - #38

Open
hanzei wants to merge 1 commit into
masterfrom
ccr-03c49cdd-dkvs8j-ci-lint
Open

hanzei wants to merge 1 commit into
masterfrom
ccr-03c49cdd-dkvs8j-ci-lint

Conversation

@hanzei

@hanzei hanzei commented Dec 3, 2026 •

Copy link
Copy Markdown

Summary

The lint job fails on every run with about 49 spurious typecheck errors, such as driver.config.StatementTimeoutInSecs undefined and undefined: NewFile. The cause is that the job pins golangci-lint v1.61.0, which was built with Go 1.23, but never installs Go. The linter then typechecks against whatever newer Go the runner has, which it can't handle. The code itself builds and vets cleanly.

This PR:

  • installs Go from go.mod with actions/setup-go@v5
  • bumps golangci-lint to v1.64.8 and golangci-lint-action to v6
  • bumps actions/checkout to v4

Testing

Ticket Link

Unblocks a green lint check for #37 (https://mattermost.atlassian.net/browse/MM-72647).


Generated by Claude Code

Change Impact: 🟢 Low

Changes Breakdown:

+6 -3 Production Changes (100%)
+0 -0 Test Changes (0%)

Regression Risk: The change modifies only the CI workflow file .github/workflows/golangci-lint.yml, and no application code changes. The main risk is a failing lint job if the golangci-lint v1.64.8 upgrade or the golangci-lint-action v6 upgrade reports new findings.

Generated by CodeRabbitAI

The lint job pinned golangci-lint v1.61.0 without installing Go, so it ran
against the runner's newer toolchain and failed with spurious typecheck
errors. Install Go from go.mod and use golangci-lint v1.64.8.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FpCfx4vHgXXz8FocntG7Y2
@hanzei
hanzei marked this pull request as ready for review December 3, 2026 20:24
@hanzei
hanzei requested review from isacikgoz and a lite review from Copilot December 3, 2026 20:25
@coderabbitai

coderabbitai Bot commented Dec 3, 2026

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Go lint workflow updates actions/checkout to v4 and golangci-lint to action v6, pinned to linter version v1.64.8. It adds actions/setup-go@v5, which reads the Go version from go.mod.

Merge Risk: Minimal · up to d1b51

This updates the lint workflow to install Go and use a newer linter so the spurious typecheck errors go away. It does not touch product code, and no merge-blocking risk was found.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title "Fix golangci-lint CI job" matches the main change. The PR updates the golangci-lint workflow, pins golangci-lint to v1.64.8, adds actions/setup-go@v5 to install Go from go.mod, and upgrades…
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: Title check

Explanation

The title "Fix golangci-lint CI job" matches the main change. The PR updates the golangci-lint workflow, pins golangci-lint to v1.64.8, adds actions/setup-go@v5 to install Go from go.mod, and upgrades checkout and golangci-lint-action. The title is short and specific, and a reviewer scanning history can see the primary change. It does not name the root cause (spurious typecheck errors) but that detail is not required.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

No active review issues remain for the workflow updates.

No open issues 🎉

What changed in this PR

Updates the lint workflow to install the repository’s Go version and use current GitHub Actions and golangci-lint releases, preventing spurious typecheck failures.

Changes:

  • Upgraded checkout and golangci-lint actions.
  • Added Go installation from go.mod.
  • Updated golangci-lint to v1.64.8.
File Description
.github/​workflows/​golangci-lint.yml Aligns the lint workflow with the repository’s Go version and updates its CI action and golangci-lint versions.

Review effort: Lite

@hanzei hanzei added the 2: Dev Review Requires review by a core committer label Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2: Dev Review Requires review by a core committer

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants