OCM-00000 | ci: Update module github.com/golangci/golangci-lint/v2 to v2.12.2#3271
OCM-00000 | ci: Update module github.com/golangci/golangci-lint/v2 to v2.12.2#3271amandahla wants to merge 3 commits into
Conversation
… v2.12.2 Signed-off-by: red-hat-konflux <126015336+red-hat-konflux[bot]@users.noreply.github.com>
Regenerate bingo tooling for v2.12.2 and reset the goconst baseline after the stricter goconst v1.10.0 bundled with golangci-lint v2.12.2. Co-authored-by: Cursor <cursoragent@cursor.com>
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: amandahla The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
📝 WalkthroughWalkthroughThe PR bumps the pinned 🚥 Pre-merge checks | ✅ 15✅ Passed checks (15 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@amandahla: all tests passed! Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
Configure goconst for the stricter v1.10.0 behavior instead of resetting the lint baseline, and restore new-from-rev to the prior golangci bump. Co-authored-by: Cursor <cursoragent@cursor.com>
PR Summary
Supersedes Konflux mintmaker PR #3261 by bumping
golangci-lintto v2.12.2, regenerating bingo tooling, and tuninggoconstsettings for the stricter v1.10.0 bundled with that release.Detailed Description of the Issue
Konflux PR #3261 updates
.bingo/golangci-lint.modto v2.12.2 but failsci/prow/lint. Version v2.12.2 shipsgoconstv1.10.0 (up from v1.8.2 in v2.11.4), which reports repeated string literals more aggressively. Withissues.new: trueand the existingnew-from-revbaseline, those findings fail the lint job. The mintmaker PR also omits regenerated bingo tooling files.Related Issues and PRs
Type of Change
Previous Behavior
CI lint passes on
masterwithgolangci-lintv2.11.4 andgoconstv1.8.2. Mintmaker PR #3261 bumps the dependency to v2.12.2 but leaves bingo tooling out of sync and fails lint with newgoconstfindings.Behavior After This Change
CI lint uses
golangci-lintv2.12.2 with regenerated bingo tooling..golangci.ymltunesgoconstfor v1.10.0 (ignore-tests,match-constant: false,ignore-calls,min-occurrences: 5) and excludestests/e2e/andtests/utils/fromgoconst, while keeping the existingnew-from-revbaseline at3ab0817ee.make lintpasses with 0 issues. No CLI behavior changes.How to Test (Step-by-Step)
Preconditions
Test Steps
make lintExpected Results
golangci-lintv2.12.2 runs and reports 0 issues.Proof of the Fix
Breaking Changes
Breaking Change Details / Migration Plan
N/A
Developer Verification Checklist
[JIRA-TICKET] | [TYPE]: <MESSAGE>.make install-hookshas been run in this clone.make testpasses.make lintpasses.make rosapasses.