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

Fix golangcli-lint issue #1276

Merged
merged 2 commits into from Apr 21, 2021
Merged

Fix golangcli-lint issue #1276

merged 2 commits into from Apr 21, 2021

Conversation

erkanerol
Copy link
Contributor

@erkanerol erkanerol commented Apr 21, 2021

Signed-off-by: Erkan Erol eerol@redhat.com

We are hitting golangci/golangci-lint-action#135 in our checks. This PR disables some functionalities of the linter as a workaround shared here: golangci/golangci-lint-action#135 (comment)

Reviewer Checklist

  • PR Message
  • Commit Messages
  • How to test
  • Unit Tests
  • Functional Tests
  • User Documentation
  • Developer Documentation
  • Upgrade Scenario
  • Uninstallation Scenario
  • Backward Compatibility
  • Troubleshooting Friendly

Release note:

NONE

@kubevirt-bot kubevirt-bot added release-note-none Denotes a PR that doesn't merit a release note. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. size/XS labels Apr 21, 2021
@nunnatsa
Copy link
Collaborator

pr-sanity action didn't run. It seems that the file indentation is wrong.

Signed-off-by: Erkan Erol <eerol@redhat.com>
@nunnatsa
Copy link
Collaborator

Failed because of linter timeout.

Let's take out the temp kubevirt directory. Maybe also the tests directory.

@tiraboschi
Copy link
Member

tiraboschi commented Apr 21, 2021

Failed because of linter timeout.

Let's take out the temp kubevirt directory. Maybe also the tests directory.

on my machine it's running in 1 second:

stirabos@t14s:~/go/src/github.com/kubevirt/hyperconverged-cluster-operator$ time golangci-lint run
real	0m0,936s
user	0m3,169s
sys	0m0,418s

while the github action is failing due to timeout after 98s

Signed-off-by: Erkan Erol <eerol@redhat.com>
@sonarcloud
Copy link

sonarcloud bot commented Apr 21, 2021

SonarCloud Quality Gate failed.

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
3.8% 3.8% Duplication

@coveralls
Copy link
Collaborator

coveralls commented Apr 21, 2021

Pull Request Test Coverage Report for Build 770587678

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 72.202%

Totals Coverage Status
Change from base Build 770516980: 0.0%
Covered Lines: 2922
Relevant Lines: 4047

💛 - Coveralls

@erkanerol
Copy link
Contributor Author

I increased the timeout from 1m to 5m. I am checking the stability and possible configurations.

@nunnatsa
Copy link
Collaborator

on my machine it's running in 1 second:

stirabos@t14s:~/go/src/github.com/kubevirt/hyperconverged-cluster-operator$ time golangci-lint run
real	0m0,936s
user	0m3,169s
sys	0m0,418s

Local caching?

@nunnatsa
Copy link
Collaborator

I increased the timeout from 1m to 5m. I am checking the stability and possible configurations.

I still think we don't need to check the whole project.

@erkanerol
Copy link
Contributor Author

I increased the timeout from 1m to 5m. I am checking the stability and possible configurations.

I still think we don't need to check the whole project.

According to my tests, it doesn't check the kubevirt directory. However, it does check tests. I prefer checking tests as well since we need to ensure the quality of the tests as well.

@kubevirt-bot kubevirt-bot added the lgtm Indicates that a PR is ready to be merged. label Apr 21, 2021
@tiraboschi
Copy link
Member

/approve

@kubevirt-bot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: tiraboschi

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

@kubevirt-bot kubevirt-bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Apr 21, 2021
@kubevirt-bot kubevirt-bot merged commit 031aa45 into kubevirt:master Apr 21, 2021
@nunnatsa
Copy link
Collaborator

/lgtm
/approve

@erkanerol erkanerol deleted the fix-lint branch April 21, 2021 14:00
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. dco-signoff: yes Indicates the PR's author has DCO signed all their commits. lgtm Indicates that a PR is ready to be merged. release-note-none Denotes a PR that doesn't merit a release note. size/XS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants