Skip to content

update Golanci-lint config#1120

Merged
openshift-merge-bot[bot] merged 2 commits intocodeready-toolchain:masterfrom
fbm3307:lintwithltestubunt
Feb 17, 2025
Merged

update Golanci-lint config#1120
openshift-merge-bot[bot] merged 2 commits intocodeready-toolchain:masterfrom
fbm3307:lintwithltestubunt

Conversation

@fbm3307
Copy link
Contributor

@fbm3307 fbm3307 commented Feb 17, 2025

The Golanci-lint action recently changed the golangci-lint verify command to by default be true. Change

This broke our Golanci-lint CI errorrepo1.

The fix is to remove the additional parameter which the verify doesn't allow

Similar Prs

Signed-off-by: Feny Mehta <fbm3307@gmail.com>
@openshift-ci
Copy link

openshift-ci bot commented Feb 17, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

.golangci.yml Outdated
@@ -1,5 +1,5 @@
service:
project-path: github.com/codeready-toolchain/toolchain-e2e
#service:
Copy link
Contributor

Choose a reason for hiding this comment

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

let's just remove these lines, instead of keeping them commented out

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yes we can.. i just didnt know why we had these lines in the first place so just commented it to check and get review

Copy link
Contributor

Choose a reason for hiding this comment

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

This is probably some legacy/outdated config and as you pointed out, since v6.5.0, golangci-lint action validates the config and starts failing. We simply didn't realize these lines had been invalid for a long time 🤷‍♂️

Signed-off-by: Feny Mehta <fbm3307@gmail.com>
@sonarqubecloud
Copy link

@fbm3307 fbm3307 changed the title Fix for Golanci-lint verify true update Golanci-lint config Feb 17, 2025
Copy link
Collaborator

@MatousJobanek MatousJobanek left a comment

Choose a reason for hiding this comment

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

/lgtm

@openshift-ci
Copy link

openshift-ci bot commented Feb 17, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: fbm3307, MatousJobanek, xcoulon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:
  • OWNERS [MatousJobanek,fbm3307,xcoulon]

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@fbm3307
Copy link
Contributor Author

fbm3307 commented Feb 17, 2025

/test e2e
looks flaky test

@openshift-merge-bot openshift-merge-bot bot merged commit a87bb8d into codeready-toolchain:master Feb 17, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants