Skip to content

chore: bump go to 1.26#980

Closed
patricios-space wants to merge 12 commits into
mainfrom
go-1.26-linter
Closed

chore: bump go to 1.26#980
patricios-space wants to merge 12 commits into
mainfrom
go-1.26-linter

Conversation

@patricios-space

@patricios-space patricios-space commented May 14, 2026

Copy link
Copy Markdown
Contributor

Followups:

  • Migrate to aws-sdk-go-v2
  • Migrate pubKey.X in KMSSigner.SignHash(txHash []byte) and isValidRecovery
  • Migrate pubKey.X in signer_test

This changes are blocking NONEVM-4520

jkongie and others added 2 commits May 14, 2026 18:09
Bumps the Go version to 1.26.2 and updates dependencies
@patricios-space patricios-space requested a review from a team as a code owner May 14, 2026 18:29
@changeset-bot

changeset-bot Bot commented May 14, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: c7c1ef5

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
chainlink-deployments-framework Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@patricios-space patricios-space changed the base branch from bump-go-1.26 to main May 14, 2026 20:12
@@ -130,8 +130,6 @@ func LoadFork(
if err != nil {
if errors.Is(err, offchain.ErrEndpointsRequired) {
lggr.Warn("Skipping JD initialization: gRPC endpoint is not set in config")

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@jkongie does this look good to you?

argArr := make([]byte, argArrTyp.Len())
for i := range argArrTyp.Len() {
argArr[i] = byte(argArrTyp.Index(i).Uint())
argArr[i] = byte(argArrTyp.Index(i).Uint()) //nolint:gosec // value is always in byte range from ABI decoding

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@ecPablo is this asumption right?

Copilot AI review requested due to automatic review settings May 14, 2026 20:18

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates Go/tooling versions, dependency versions, and applies repository-wide lint/style fixes across deployment, chain provider, analyzer, catalog, and engine packages.

Changes:

  • Bumps Go/tooling and several Go dependencies, with a changeset for the release.
  • Adds or adjusts lint suppressions, import grouping, naming fixes, and minor simplifications.
  • Refactors small control-flow and helper patterns without broad feature changes.

Reviewed changes

Copilot reviewed 170 out of 171 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
.changeset/slimy-icons-divide.md Adds minor release note for Go/dependency/lint updates.
.github/workflows/pull-request-main.yml Updates golangci-lint version in PR CI.
.github/workflows/schedule-main.yml Updates scheduled lint golangci-lint version.
.tool-versions Bumps Go and golangci-lint tool versions.
go.mod Bumps Go directive and dependencies.
operations/validation.go Adjusts exhaustive lint suppression.
offchain/ocr/secrets.go Adds revive suppression for exported type naming.
offchain/node/config.go Adds revive suppression for exported type naming.
offchain/jd/client.go Reorders imports and updates deprecation comments/lint suppression.
offchain/jd/cognito_test.go Removes gosec suppression from test token literal.
offchain/jd/memory/* Renames ID helper identifiers and adds revive suppression.
jira/* Adds revive suppressions and simplifies zero-value test construction.
experimental/analyzer/* Applies import grouping, lint suppressions, naming, and minor simplifications.
engine/test/* Applies test lint simplifications and suppression comment updates.
engine/cld/* Applies broad lint fixes, naming updates, small refactors, and suppression comments.
deployment/* Applies doc/lint update and address-book branch simplification.
datastore/catalog/* Applies lint-driven simplifications and test setup cleanup.
cre/* Renames HTTP helpers and adds exported API lint suppressions.
chain/* Applies provider naming/import/lint fixes and small control-flow simplifications.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread engine/cld/environment/fork.go
Comment thread offchain/jd/cognito_test.go Outdated
Comment thread engine/cld/commands/pipeline/run_test.go Outdated
Comment thread engine/cld/commands/mcms/cmd_run_hooks_test.go Outdated
@patricios-space patricios-space changed the title fix: linting chore: bump go to 1.26 May 14, 2026
Copilot AI review requested due to automatic review settings May 14, 2026 21:22

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 203 out of 204 changed files in this pull request and generated 1 comment.

Comment thread go.mod
module github.com/smartcontractkit/chainlink-deployments-framework

go 1.25.5
go 1.26.2
Copilot AI review requested due to automatic review settings May 14, 2026 22:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 205 out of 206 changed files in this pull request and generated 4 comments.

Comment on lines +14 to 15
envGitHubToken = "GITHUB_TOKEN" //nolint:gosec // G101: not a credential, just env var name
envGHToken = "GH_TOKEN"
Comment thread chain/utils/chain_info.go
@@ -1,4 +1,4 @@
package utils //nolint:revive // var-naming: We need to keep this name for now for backwards compatibility.
package utils
@@ -1,4 +1,4 @@
package common //nolint:revive // var-naming: This is an internal package for common code that is shared between chains.
package common
Comment on lines 131 to 135
if errors.Is(err, offchain.ErrEndpointsRequired) {
lggr.Warn("Skipping JD initialization: gRPC endpoint is not set in config")
} else {
return ForkedEnvironment{}, fmt.Errorf("failed to load offchain client: %w", err)
}

return ForkedEnvironment{}, fmt.Errorf("failed to load offchain client: %w", err)
Comment thread engine/cld/scaffold/scaffold.go Outdated

// ScaffoldOptions holds configuration options for domain scaffolding.
type ScaffoldOptions struct {
type ScaffoldOptions struct { //nolint:revive // renaming would be a breaking change

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I see many of these lint exclusiions for renaming, but I it is not actually clear what is wrong with these some of these names.

What is actually wrong with ScaffoldOptions?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I ran the linter here and this passes if I remove the nolint directive

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

In the new linter version, the linter complains the use of these "stutters". e.g. scaffold.ScaffoldOptions. As in go you always prefixs the package name in imports, the package name prefix is redundant. The idiomatic way to express this is scaffold.Options. It results obvious in use that Options refers to scaffold.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

This error is raised by smartcontractkit/.github/actions/ci-lint-go@ci-lint-go/v4.

Copilot AI review requested due to automatic review settings May 15, 2026 11:11

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 183 out of 184 changed files in this pull request and generated 2 comments.

Comment thread chain/utils/chain_info.go
@@ -1,4 +1,4 @@
package utils //nolint:revive // var-naming: We need to keep this name for now for backwards compatibility.
package utils
@@ -1,4 +1,4 @@
package common //nolint:revive // var-naming: This is an internal package for common code that is shared between chains.
package common
@cl-sonarqube-production

Copy link
Copy Markdown

Quality Gate failed Quality Gate failed

Failed conditions
68.1% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube

@patricios-space

Copy link
Copy Markdown
Contributor Author

Closed in favor of #981

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.

3 participants