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

Golint is deprecated #4943

Closed
1 of 11 tasks
halamix2 opened this issue Feb 11, 2022 · 14 comments
Closed
1 of 11 tasks

Golint is deprecated #4943

halamix2 opened this issue Feb 11, 2022 · 14 comments
Assignees
Labels
area/ci Issues or PRs related to CI related topics Epic kind/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation.

Comments

@halamix2
Copy link
Member

halamix2 commented Feb 11, 2022

Description

Golint was deprecated: golang/go#38968
A golint is run by before-commit.sh script. This script is starting multiple tests/linters apart from golint.
A list of features provided by script should be used as a list of prowjobs to create.
Each prowjob should implement one feature from the list.
At the end all features must be provided by some standalone prowjob with dedicated tool.

Acceptance Criteria

  • Replacement can work with files changed in PR only.
  • Replacement can work against whole repository.
  • Prowjob running a linter should not have dependency to test-infra.
  • Replacement should allow for different configuration per repository.
  • Prowjobs running a replacment should be stored in test-infra repository.
  • Replacement must cover all features already provided by before-commit.sh script.

Attachments

/kind deprecation

@halamix2 halamix2 added the area/ci Issues or PRs related to CI related topics label Feb 11, 2022
@kyma-bot kyma-bot added the kind/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation. label Feb 11, 2022
@halamix2 halamix2 changed the title Golint is unsupported Golint is deprecated Feb 11, 2022
@Ressetkk
Copy link
Contributor

Let's try to deprecate the entire before-commit.sh script. We can use presubmits that will run on every PR that touches go code.

@Ressetkk
Copy link
Contributor

Ressetkk commented Mar 29, 2022

Maybe it'd be good to introduce the separate job that runs listing against entire codebase with using https://github.com/golangci/golangci-lint.

@Ressetkk
Copy link
Contributor

Ressetkk commented Apr 5, 2022

Static check are all over the place. We use at least 3 different binaries for static checks and different approaches.

We really need to look at some unified approach for static checks for all go code. Let's validate if golangci-lint running as a separate job would be enough. That job would run only when the go code is replaced. We can maintain it and configure autobumper so bumping is easy.

Let's work on that ASAP since it's getting out of hand.

@ghost
Copy link

ghost commented Jul 1, 2022

This issue has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. Thank you for your contributions.

@ghost ghost added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 1, 2022
@kasiakepka kasiakepka removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jul 4, 2022
@halamix2 halamix2 self-assigned this Jul 6, 2022
@kasiakepka
Copy link
Contributor

Related issue: kyma-project/kyma#11053

@github-actions
Copy link

This issue has been automatically marked as stale due to the lack of recent activity. It will soon be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 18, 2022
@dekiel dekiel removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Sep 20, 2022
@kyma-bot
Copy link
Contributor

This issue or PR has been automatically marked as stale due to the lack of recent activity.
Thank you for your contributions.

This bot triages issues and PRs according to the following rules:

  • After 60d of inactivity, lifecycle/stale is applied
  • After 7d of inactivity since lifecycle/stale was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Close this issue or PR with /close

If you think that I work incorrectly, kindly raise an issue with the problem.

/lifecycle stale

@kyma-bot kyma-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 19, 2022
@halamix2
Copy link
Member Author

/remove-lifecycle stale

@kyma-bot kyma-bot removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Nov 21, 2022
@kyma-bot
Copy link
Contributor

This issue or PR has been automatically marked as stale due to the lack of recent activity.
Thank you for your contributions.

This bot triages issues and PRs according to the following rules:

  • After 60d of inactivity, lifecycle/stale is applied
  • After 7d of inactivity since lifecycle/stale was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Close this issue or PR with /close

If you think that I work incorrectly, kindly raise an issue with the problem.

/lifecycle stale

@kyma-bot kyma-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 20, 2023
@kyma-bot
Copy link
Contributor

This issue or PR has been automatically closed due to the lack of activity.
Thank you for your contributions.

This bot triages issues and PRs according to the following rules:

  • After 60d of inactivity, lifecycle/stale is applied
  • After 7d of inactivity since lifecycle/stale was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle stale

If you think that I work incorrectly, kindly raise an issue with the problem.

/close

@kyma-bot
Copy link
Contributor

@kyma-bot: Closing this issue.

In response to this:

This issue or PR has been automatically closed due to the lack of activity.
Thank you for your contributions.

This bot triages issues and PRs according to the following rules:

  • After 60d of inactivity, lifecycle/stale is applied
  • After 7d of inactivity since lifecycle/stale was applied, the issue is closed

You can:

  • Reopen this issue or PR with /reopen
  • Mark this issue or PR as fresh with /remove-lifecycle stale

If you think that I work incorrectly, kindly raise an issue with the problem.

/close

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.

@Ressetkk Ressetkk reopened this Jan 27, 2023
@halamix2 halamix2 removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Jan 27, 2023
@kyma-bot
Copy link
Contributor

This issue or PR has been automatically marked as stale due to the lack of recent activity.
Thank you for your contributions.

This bot triages issues and PRs according to the following rules:

  • After 60d of inactivity, lifecycle/stale is applied
  • After 7d of inactivity since lifecycle/stale was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Close this issue or PR with /close

If you think that I work incorrectly, kindly raise an issue with the problem.

/lifecycle stale

@kyma-bot kyma-bot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 28, 2023
@Ressetkk
Copy link
Contributor

I believe we already agreed to use golangci-lint for all go-related codebase static checks. No need to keep this issue for this long.
/close

@kyma-bot
Copy link
Contributor

@Ressetkk: Closing this issue.

In response to this:

I believe we already agreed to use golangci-lint for all go-related codebase static checks. No need to keep this issue for this long.
/close

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.

@tobiscr tobiscr removed the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Mar 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ci Issues or PRs related to CI related topics Epic kind/deprecation Categorizes issue or PR as related to a feature/enhancement marked for deprecation.
Projects
None yet
Development

No branches or pull requests

6 participants