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

🌱 lint: enable ginkgolinter and fix findings #2282

Merged
merged 1 commit into from
Aug 28, 2023

Conversation

nunnatsa
Copy link
Contributor

What this PR does / why we need it

The PR enables ginkgolinter. This linter enforce several standards of using ginkgo and gomega, and can find some bugs in tests (e.g. test with no assertion). The PR also fixes all ginkgolinter findings.

Part of #2058

Signed-off-by: Nahshon Unna-Tsameret <[email protected]>
@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Aug 26, 2023
@k8s-ci-robot k8s-ci-robot added the size/L Denotes a PR that changes 100-499 lines, ignoring generated files. label Aug 26, 2023
@nunnatsa nunnatsa changed the title lint: enable ginkgolinter and fix findings 🌱 lint: enable ginkgolinter and fix findings Aug 26, 2023
Copy link
Contributor

@zhanggbj zhanggbj left a comment

Choose a reason for hiding this comment

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

@nunnatsa Thanks for the PR!
/lgtm
/hold waiting for other reviews

@k8s-ci-robot k8s-ci-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 28, 2023
@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Aug 28, 2023
@k8s-ci-robot
Copy link
Contributor

LGTM label has been added.

Git tree hash: ba8726e2f04ed15963a48a3667292fd97fc64765

Copy link
Member

@chrischdi chrischdi left a comment

Choose a reason for hiding this comment

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

One question to discuss.

Otherwise lgtm.

.golangci.yml Show resolved Hide resolved
@sbueringer
Copy link
Member

sbueringer commented Aug 28, 2023

/lgtm
/approve

/hold
Let's give folks in core CAPI a day or two to review the config change there

@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sbueringer

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

@k8s-ci-robot k8s-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Aug 28, 2023
@nunnatsa
Copy link
Contributor Author

trying:
/ok-to-test

@k8s-ci-robot k8s-ci-robot added the ok-to-test Indicates a non-member PR verified by an org member that is safe to test. label Aug 28, 2023
@nunnatsa
Copy link
Contributor Author

/lgtm /approve

/hold Let's give folks in core CAPI a day or two to review the config change there

CAPI PR just merged. Thanks @sbueringer

@chrischdi
Copy link
Member

/hold cancel

@k8s-ci-robot k8s-ci-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 28, 2023
@k8s-ci-robot k8s-ci-robot merged commit 9cfdc84 into kubernetes-sigs:main Aug 28, 2023
12 of 13 checks passed
@k8s-ci-robot k8s-ci-robot added this to the v1.9 milestone Aug 28, 2023
@nunnatsa nunnatsa deleted the enable-ginkgolinter branch August 28, 2023 18:30
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. cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. lgtm "Looks good to me", indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants