Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to golangci-lint GH action #2493

Merged
merged 1 commit into from
Jan 10, 2025

Conversation

afrittoli
Copy link
Member

Changes

Start using the golangci-lint github action and stop using the check as part of the build jobs.

This way the version of the actions can be maintained by dependabot, the version of golangci-lint can be updated in the YAML and code in PRs can be annotated with issues. It also reduces the load in the prow job slighlty, saving a little infra cost.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

See the contribution guide for more details.

Release Notes

NONE

@tekton-robot tekton-robot added the release-note-none Denotes a PR that doesnt merit a release note. label Jan 10, 2025
@tekton-robot tekton-robot added the size/S Denotes a PR that changes 10-29 lines, ignoring generated files. label Jan 10, 2025
@afrittoli afrittoli force-pushed the golangci-lint-action branch from bd4125a to 524e3f5 Compare January 10, 2025 09:42
@afrittoli afrittoli mentioned this pull request Jan 10, 2025
4 tasks
@afrittoli afrittoli force-pushed the golangci-lint-action branch 2 times, most recently from bb2ad80 to 796261d Compare January 10, 2025 11:51
@tekton-robot tekton-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Jan 10, 2025
Start using the golangci-lint github action and stop using
the check as part of the build jobs.

This way the version of the actions can be maintained by
dependabot, the version of golangci-lint can be updated in
the YAML and code in PRs can be annotated with issues.

It also reduces the load in the prow job slighlty, saving
a little infra cost.

Removing the failing golang lint surfaced some issues in the
yamllint. Issues in workflow YAMLs have been fixed.
All testdata YAML files have been excluded from linting.

Signed-off-by: Andrea Frittoli <[email protected]>
@afrittoli afrittoli force-pushed the golangci-lint-action branch from 796261d to 1711092 Compare January 10, 2025 12:36
@afrittoli
Copy link
Member Author

@vdemeester @PuneetPunamiya @jkhelil this is ready for review now. It would be great to merge it soon-ish to unlock CI

@jkhelil
Copy link
Member

jkhelil commented Jan 10, 2025

@afrittoli Great work, Thank you for unblocking Ci with this
/approve
/lgtm

@tekton-robot tekton-robot added the lgtm Indicates that a PR is ready to be merged. label Jan 10, 2025
@tekton-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jkhelil

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

The pull request process is described here

Needs approval from an approver in each of these files:

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

@tekton-robot tekton-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jan 10, 2025
@tekton-robot tekton-robot merged commit 2fc974d into tektoncd:main Jan 10, 2025
9 checks passed
@jkhelil
Copy link
Member

jkhelil commented Jan 11, 2025

/cherry-pick release-v0.73.x
/cherry-pick release-v0.74.x

@tekton-robot
Copy link
Contributor

@jkhelil: new pull request created: #2501

In response to this:

/cherry-pick release-v0.73.x
/cherry-pick release-v0.74.x

Instructions 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/test-infra repository.

@jkhelil
Copy link
Member

jkhelil commented Jan 11, 2025

/cherry-pick release-v0.74.x

@tekton-robot
Copy link
Contributor

@jkhelil: new pull request created: #2506

In response to this:

/cherry-pick release-v0.74.x

Instructions 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/test-infra repository.

@jkhelil
Copy link
Member

jkhelil commented Jan 13, 2025

/cherry-pick release-v0.74.x

@tekton-robot
Copy link
Contributor

@jkhelil: new pull request created: #2508

In response to this:

/cherry-pick release-v0.74.x

Instructions 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/test-infra repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesnt merit a release note. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants