Skip to content

Lint Roller 7: core/services - #23499

Open
kalverra wants to merge 1 commit into
DX-5066/06-core-pipelinefrom
DX-5066/07-core-services
Open

Lint Roller 7: core/services#23499
kalverra wants to merge 1 commit into
DX-5066/06-core-pipelinefrom
DX-5066/07-core-services

Conversation

@kalverra

Copy link
Copy Markdown
Collaborator

Issues Fixed

Linter Issues Fixed
testifylint 138
revive 62
prealloc 39
gocritic 21
staticcheck 11
bodyclose 5
recvcheck 4
errname 1
Total 280

Packages Covered

  • core/services/...

Stack created with GitHub Stacks CLIGive Feedback 💬

@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

CORA - Pending Reviewers

Codeowners Entry Overall Num Files Owners
* 💬 51 @smartcontractkit/foundations, @smartcontractkit/core
/core/services/feeds/ 💬 7 @smartcontractkit/core, @smartcontractkit/devex-tooling
/core/services/ocr*/ 💬 39 @smartcontractkit/foundations, @smartcontractkit/core
/core/services/periodicbackup/ 💬 2 @smartcontractkit/foundations, @smartcontractkit/core
/core/services/pg/ 💬 7 @smartcontractkit/foundations, @smartcontractkit/core
/core/services/telemetry/ 💬 1 @smartcontractkit/data-tooling, @smartcontractkit/core
/core/services/llo/ 💬 8 @smartcontractkit/data-streams-engineers, @smartcontractkit/core
/core/services/vrf/ 💬 12 @smartcontractkit/dev-services, @smartcontractkit/core
/core/services/blockhashstore/ 💬 7 @smartcontractkit/dev-services, @smartcontractkit/core
/core/services/blockheaderfeeder/ 💬 3 @smartcontractkit/dev-services, @smartcontractkit/core
/core/services/pipeline/task.vrfv2.go 1 @smartcontractkit/dev-services
/core/services/pipeline/task.vrfv2plus.go 1 @smartcontractkit/dev-services
/core/services/registrysyncer/ 💬 8 @smartcontractkit/keystone
/core/services/workflows/ 💬 8 @smartcontractkit/keystone
/core/services/standardcapabilities/ 💬 2 @smartcontractkit/keystone

Legend: ✅ Approved | ❌ Changes Requested | 💬 Commented | 🚫 Dismissed | ⏳ Pending | ❓ Unknown

For more details, see the full review summary.

@github-actions

github-actions Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

✅ No conflicts with other open PRs targeting develop

@github-actions

Copy link
Copy Markdown
Contributor

I see you updated files related to core. Please run make gocs in the root directory to add a changeset as well as in the text include at least one of the following tags:

  • #added For any new functionality added.
  • #breaking_change For any functionality that requires manual action for the node to boot.
  • #bugfix For bug fixes.
  • #changed For any change to the existing functionality.
  • #db_update For any feature that introduces updates to database schema.
  • #deprecation_notice For any upcoming deprecation functionality.
  • #internal For changesets that need to be excluded from the final changelog.
  • #nops For any feature that is NOP facing and needs to be in the official Release Notes for the release.
  • #removed For any functionality/config that is removed.
  • #updated For any functionality that is updated.
  • #wip For any change that is not ready yet and external communication about it should be held off till it is feature complete.

@trunk-io

trunk-io Bot commented Aug 23, 2026

Copy link
Copy Markdown

Static BadgeStatic BadgeStatic Badge

Failed Test Failure Summary Logs
TestPipelineRunsController_Index_GlobalHappyPath The test failed without a specific error message, indicating an unspecified failure in the test execution. Logs ↗︎
TestPipelineRunsController_Show_HappyPath The test failed without a specific error message, indicating an unspecified failure in the test execution. Logs ↗︎
TestPipelineRunsController_Index_HappyPath The test failed without a specific error message, indicating an unspecified failure during the test execution. Logs ↗︎
TestPipelineRunsController_Index_Pagination The test failed without a specific error message, indicating an unspecified failure during the test execution. Logs ↗︎

... and 1 more

View Full Report ↗︎Docs

"google.golang.org/grpc/codes"
"google.golang.org/grpc/status"

common "github.com/smartcontractkit/chainlink-common/pkg/logger"

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.

Suggested change
common "github.com/smartcontractkit/chainlink-common/pkg/logger"
"github.com/smartcontractkit/chainlink-common/pkg/logger"

"time"

"github.com/ethereum/go-ethereum/common"
"github.com/pkg/errors"

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.

We actually want to block this module entirely, but haven't due to legacy uses

Suggested change
"github.com/pkg/errors"

Comment on lines 76 to +78
return nil, fmt.Errorf(
"getting chain ID %s: %w", cid, err)
"getting chain ID %s: %w", cid, err,
)

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.

IMHO this looks worse, but regardless, why wrap at all?

return nil, fmt.Errorf("getting chain ID %s: %w", cid, err)

Comment thread core/services/health.go

"github.com/pkg/errors"

common "github.com/smartcontractkit/chainlink-common/pkg/logger"

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.

Suggested change
common "github.com/smartcontractkit/chainlink-common/pkg/logger"
"github.com/smartcontractkit/chainlink-common/pkg/logger"

legacyChains legacyevm.LegacyChainContainer,
lggr logger.Logger,
mailMon *mailbox.Monitor) *Delegate {
lggr logger.SugaredLogger,

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.

This doesn't make sense paired with a call to logger.Sugared below. But why do we need either of them? Are the methods used?

@kalverra
kalverra force-pushed the DX-5066/07-core-services branch from ffd11ac to a281188 Compare August 24, 2026 18:24
@kalverra
kalverra force-pushed the DX-5066/07-core-services branch 2 times, most recently from 4569e42 to 573b199 Compare August 24, 2026 21:12
@kalverra
kalverra requested review from a team as code owners August 25, 2026 17:45
@kalverra
kalverra force-pushed the DX-5066/07-core-services branch from 573b199 to c9951f5 Compare August 25, 2026 17:45
@kalverra
kalverra force-pushed the DX-5066/07-core-services branch from c9951f5 to 0762e18 Compare August 25, 2026 17:53
@kalverra
kalverra force-pushed the DX-5066/07-core-services branch from 0762e18 to 39dee3f Compare August 26, 2026 19:36
@kalverra
kalverra force-pushed the DX-5066/07-core-services branch from 39dee3f to d82f0e3 Compare August 27, 2026 17:56
@cl-sonarqube-production

Copy link
Copy Markdown

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