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

🐛 : (go/v4) fixes based on golangci-lint run -v #4384

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

monteiro-renato
Copy link
Contributor

Fixes: #4376

@k8s-ci-robot k8s-ci-robot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Nov 22, 2024
@k8s-ci-robot
Copy link
Contributor

Hi @monteiro-renato. Thanks for your PR.

I'm waiting for a kubernetes-sigs member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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-sigs/prow repository.

@k8s-ci-robot k8s-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Nov 22, 2024
@monteiro-renato monteiro-renato marked this pull request as draft November 22, 2024 22:37
@k8s-ci-robot k8s-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 22, 2024
@monteiro-renato monteiro-renato force-pushed the patch-2 branch 2 times, most recently from 56438d6 to cfddeb6 Compare November 22, 2024 22:53
@monteiro-renato monteiro-renato changed the title 🐛 fix: bump golangci-lint to 1.62 and fixes based on golangci-lint run -v 🌱: fixes based on golangci-lint run -v Nov 22, 2024
@monteiro-renato monteiro-renato marked this pull request as ready for review November 22, 2024 22:55
@k8s-ci-robot k8s-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Nov 22, 2024
@monteiro-renato
Copy link
Contributor Author

I also tried bumping the version of golangci-lint to 1.62 but the lint action started breaking with:

  Error: testdata/project-v4/test/utils/utils.go:40:21: undefined: GinkgoWriter (typecheck)
  	_, _ = fmt.Fprintf(GinkgoWriter, "warning: %v\n", err)

Copy link
Member

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

/lgtm
/ok-to-test

@k8s-ci-robot k8s-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Nov 22, 2024
@k8s-ci-robot k8s-ci-robot added lgtm "Looks good to me", indicates that a PR is ready to be merged. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Nov 22, 2024
@camilamacedo86 camilamacedo86 changed the title 🌱: fixes based on golangci-lint run -v 🐛 : (go/v4) fixes based on golangci-lint run -v Nov 22, 2024
@camilamacedo86
Copy link
Member

THANK you a lot 🥇
You are been a rock star 🚀

By the way, 🌱 we just use when it is something that does not change anything for end users

@k8s-ci-robot k8s-ci-robot removed the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 22, 2024
Copy link
Member

@camilamacedo86 camilamacedo86 left a comment

Choose a reason for hiding this comment

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

/lgtm
/ok-to-test

@k8s-ci-robot k8s-ci-robot added the lgtm "Looks good to me", indicates that a PR is ready to be merged. label Nov 22, 2024
@k8s-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: camilamacedo86, monteiro-renato

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

@monteiro-renato
Copy link
Contributor Author

This seems to be mergeable but I think I found another bug.
The e2e tests on the test setup I created based on your commands are failing due to the container failing to start.

NAME                                          READY   STATUS              RESTARTS   AGE
kb-test-controller-manager-6fd7dfb975-2dqkq   0/1     ContainerCreating   0          2m7s

Describing the pod displays:

Warning  FailedMount  29s (x9 over 2m45s)  kubelet            MountVolume.SetUp failed for volume "cert" : secret "webhook-server-cert" not found

Looks like there's further troubleshooting to do.

@k8s-ci-robot k8s-ci-robot merged commit 4cc36da into kubernetes-sigs:master Nov 22, 2024
24 of 25 checks passed
@monteiro-renato monteiro-renato deleted the patch-2 branch November 22, 2024 23:57
@monteiro-renato
Copy link
Contributor Author

monteiro-renato commented Nov 22, 2024

Might not actually be a bug. Might be some missing manual configs (which may or may not be documented in the book, I haven't checked).

But yea, simply running those three commands you posted in the issue and pushing the code to Github doesn't seem to be enough to make the e2e tests happy.

Edit: I'm done for the day. I might take a look at the docs during the weekend if I find the time.

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.

Project scaffold by default has some lint errors which must be fixed
3 participants